From b144dde317da7cd9fbb116bce5e7ec23085d5c92 Mon Sep 17 00:00:00 2001 From: iSmartCoding Date: Wed, 6 Mar 2024 16:39:55 +0800 Subject: [PATCH] Update web code --- app/build.gradle.kts | 4 ++-- .../com/ismartcoding/plain/web/websocket/WebSocketHelper.kt | 5 ++++- .../{AIChatView-d4a94ef9.js => AIChatView-e729c9cb.js} | 2 +- ...ChatsRootView-d2e5ee91.js => AIChatsRootView-6784f91e.js} | 2 +- .../{AIChatsView-18cbb2e2.js => AIChatsView-6971920d.js} | 2 +- .../{AppsRootView-c4cfe0c5.js => AppsRootView-b01648a0.js} | 2 +- .../assets/{AppsView-25dd4b0d.js => AppsView-0a306bf4.js} | 2 +- ...AudiosRootView-e8169982.js => AudiosRootView-c3d93ee1.js} | 2 +- .../{AudiosView-e2f521fa.js => AudiosView-fd00afb0.js} | 2 +- .../{Breadcrumb-9fbc434f.js => Breadcrumb-5456253f.js} | 2 +- ...> BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js} | 2 +- .../{CallsRootView-d0307ed3.js => CallsRootView-83600678.js} | 2 +- .../assets/{CallsView-ea154f44.js => CallsView-c5c9e223.js} | 2 +- ...actsRootView-9b0848f1.js => ContactsRootView-b98dc457.js} | 2 +- .../{ContactsView-4ee6f78f.js => ContactsView-79362ad5.js} | 2 +- ...DeviceInfoView-c5fa5356.js => DeviceInfoView-333cc003.js} | 2 +- .../{DevicesView-a73d5ee2.js => DevicesView-3fb0718f.js} | 2 +- ...=> EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js} | 2 +- ...EditValueModal-2509bdbc.js => EditValueModal-068407b0.js} | 2 +- .../{FeedEntryView-0a490c72.js => FeedEntryView-34f4210f.js} | 2 +- .../{FeedsRootView-16561317.js => FeedsRootView-3b90be68.js} | 2 +- .../assets/{FeedsView-b953d3d9.js => FeedsView-c929e406.js} | 2 +- ...lesRecentView-1a58103f.js => FilesRecentView-3cb4bc25.js} | 2 +- .../{FilesRootView-0cea3334.js => FilesRootView-2c249124.js} | 2 +- .../assets/{FilesView-47b82c11.js => FilesView-69259bc9.js} | 2 +- .../assets/{HomeView-2a622ad9.js => HomeView-9fddd089.js} | 2 +- ...ImagesRootView-d085454e.js => ImagesRootView-dbda6158.js} | 2 +- .../{ImagesView-f5772acc.js => ImagesView-73d78fde.js} | 2 +- ...JsonViewerView-7a955368.js => JsonViewerView-2490e1ea.js} | 2 +- app/src/main/resources/web/assets/LoginView-189a754f.css | 1 + .../assets/{LoginView-9a2b7ffd.js => LoginView-a75f2c43.js} | 2 +- app/src/main/resources/web/assets/LoginView-c32a18d9.css | 1 - ...agesRootView-327bdb7a.js => MessagesRootView-1f3665f1.js} | 2 +- .../{MessagesView-ed17a017.js => MessagesView-9ca1b035.js} | 2 +- ...> MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js} | 4 ++-- .../{NetworkView-1bbc5b0e.js => NetworkView-cd23fd42.js} | 2 +- .../{NoteEditView-a7e56dfc.js => NoteEditView-14cf96a0.js} | 2 +- .../{NotesRootView-978e456f.js => NotesRootView-9c77db22.js} | 2 +- ...NotesTrashView-4f8c9b81.js => NotesTrashView-9ffe18fd.js} | 2 +- .../assets/{NotesView-adfdc1fd.js => NotesView-2825dc60.js} | 2 +- ...ratorView-72764576.js => QrCodeGeneratorView-ea803af3.js} | 2 +- .../{RoutesView-005bcd48.js => RoutesView-51f5ef71.js} | 2 +- .../assets/{RulesView-58977238.js => RulesView-7e630970.js} | 2 +- ...enMirrorView-ae9ae5ba.js => ScreenMirrorView-358fa446.js} | 2 +- ...s => TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js} | 2 +- ...VideosRootView-5a79ba17.js => VideosRootView-05227378.js} | 2 +- .../{VideosView-b11c2f7a.js => VideosView-75127da9.js} | 2 +- .../assets/{WiFiView-62b31998.js => WiFiView-1d609bca.js} | 2 +- ...ardEditView-a2d73302.js => WireGuardEditView-18959341.js} | 2 +- .../{WireGuardView-5e83229d.js => WireGuardView-038544fc.js} | 2 +- ...-rounded-90d0aca0.js => call-outline-rounded-027b1fc9.js} | 2 +- .../web/assets/{cssMode-f8a12b8f.js => cssMode-d0ed9f18.js} | 2 +- .../{freemarker2-f57a57cd.js => freemarker2-02bfb3b4.js} | 2 +- ...ded-388859d3.js => grid-view-outline-rounded-c791dd48.js} | 2 +- .../{handlebars-74e74baf.js => handlebars-071155a3.js} | 2 +- .../web/assets/{html-60c9e445.js => html-0a927e79.js} | 2 +- .../assets/{htmlMode-ba2f4a4d.js => htmlMode-39850671.js} | 2 +- .../web/assets/{index-4040ca75.js => index-40f25da6.js} | 2 +- .../{javascript-26decd57.js => javascript-6be51775.js} | 2 +- .../assets/{jsonMode-aac536f7.js => jsonMode-a748f807.js} | 2 +- .../web/assets/{liquid-28efbe21.js => liquid-b7e49653.js} | 2 +- .../web/assets/{list-2b55c026.js => list-b6a3249f.js} | 2 +- .../assets/{markdown-7d435800.js => markdown-c78c3af8.js} | 2 +- ...rounded-5fc4afb9.js => print-outline-rounded-f6e90fab.js} | 2 +- .../web/assets/{python-b4217ff7.js => python-42dab718.js} | 2 +- ...rounded-72e52d2c.js => question-mark-rounded-50577cc8.js} | 2 +- .../web/assets/{razor-48ef3acc.js => razor-5bcbaab2.js} | 2 +- ...fresh-rounded-ba092d85.js => refresh-rounded-4826b5dd.js} | 2 +- .../{sort-rounded-21b00447.js => sort-rounded-6ce111fd.js} | 2 +- .../{splitpanes.es-20249936.js => splitpanes.es-a34c2504.js} | 2 +- .../web/assets/{tags-5a94e769.js => tags-15dfcb58.js} | 2 +- .../web/assets/{tsMode-9d1f3fbb.js => tsMode-da7e0c92.js} | 2 +- .../{typescript-37df992a.js => typescript-07248291.js} | 2 +- ...upload-rounded-168dfb03.js => upload-rounded-b3049477.js} | 2 +- ...validate.esm-a8549f5b.js => vee-validate.esm-7088b7c0.js} | 2 +- .../web/assets/{xml-b5d59370.js => xml-40f65ec6.js} | 2 +- .../web/assets/{yaml-6b245353.js => yaml-2af7b3bd.js} | 2 +- app/src/main/resources/web/index.html | 2 +- 78 files changed, 82 insertions(+), 79 deletions(-) rename app/src/main/resources/web/assets/{AIChatView-d4a94ef9.js => AIChatView-e729c9cb.js} (95%) rename app/src/main/resources/web/assets/{AIChatsRootView-d2e5ee91.js => AIChatsRootView-6784f91e.js} (91%) rename app/src/main/resources/web/assets/{AIChatsView-18cbb2e2.js => AIChatsView-6971920d.js} (93%) rename app/src/main/resources/web/assets/{AppsRootView-c4cfe0c5.js => AppsRootView-b01648a0.js} (93%) rename app/src/main/resources/web/assets/{AppsView-25dd4b0d.js => AppsView-0a306bf4.js} (96%) rename app/src/main/resources/web/assets/{AudiosRootView-e8169982.js => AudiosRootView-c3d93ee1.js} (70%) rename app/src/main/resources/web/assets/{AudiosView-e2f521fa.js => AudiosView-fd00afb0.js} (96%) rename app/src/main/resources/web/assets/{Breadcrumb-9fbc434f.js => Breadcrumb-5456253f.js} (81%) rename app/src/main/resources/web/assets/{BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js => BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js} (93%) rename app/src/main/resources/web/assets/{CallsRootView-d0307ed3.js => CallsRootView-83600678.js} (74%) rename app/src/main/resources/web/assets/{CallsView-ea154f44.js => CallsView-c5c9e223.js} (94%) rename app/src/main/resources/web/assets/{ContactsRootView-9b0848f1.js => ContactsRootView-b98dc457.js} (69%) rename app/src/main/resources/web/assets/{ContactsView-4ee6f78f.js => ContactsView-79362ad5.js} (98%) rename app/src/main/resources/web/assets/{DeviceInfoView-c5fa5356.js => DeviceInfoView-333cc003.js} (96%) rename app/src/main/resources/web/assets/{DevicesView-a73d5ee2.js => DevicesView-3fb0718f.js} (92%) rename app/src/main/resources/web/assets/{EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js => EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js} (92%) rename app/src/main/resources/web/assets/{EditValueModal-2509bdbc.js => EditValueModal-068407b0.js} (91%) rename app/src/main/resources/web/assets/{FeedEntryView-0a490c72.js => FeedEntryView-34f4210f.js} (95%) rename app/src/main/resources/web/assets/{FeedsRootView-16561317.js => FeedsRootView-3b90be68.js} (95%) rename app/src/main/resources/web/assets/{FeedsView-b953d3d9.js => FeedsView-c929e406.js} (95%) rename app/src/main/resources/web/assets/{FilesRecentView-1a58103f.js => FilesRecentView-3cb4bc25.js} (98%) rename app/src/main/resources/web/assets/{FilesRootView-0cea3334.js => FilesRootView-2c249124.js} (91%) rename app/src/main/resources/web/assets/{FilesView-47b82c11.js => FilesView-69259bc9.js} (96%) rename app/src/main/resources/web/assets/{HomeView-2a622ad9.js => HomeView-9fddd089.js} (98%) rename app/src/main/resources/web/assets/{ImagesRootView-d085454e.js => ImagesRootView-dbda6158.js} (70%) rename app/src/main/resources/web/assets/{ImagesView-f5772acc.js => ImagesView-73d78fde.js} (94%) rename app/src/main/resources/web/assets/{JsonViewerView-7a955368.js => JsonViewerView-2490e1ea.js} (96%) create mode 100644 app/src/main/resources/web/assets/LoginView-189a754f.css rename app/src/main/resources/web/assets/{LoginView-9a2b7ffd.js => LoginView-a75f2c43.js} (73%) delete mode 100644 app/src/main/resources/web/assets/LoginView-c32a18d9.css rename app/src/main/resources/web/assets/{MessagesRootView-327bdb7a.js => MessagesRootView-1f3665f1.js} (75%) rename app/src/main/resources/web/assets/{MessagesView-ed17a017.js => MessagesView-9ca1b035.js} (95%) rename app/src/main/resources/web/assets/{MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js => MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js} (99%) rename app/src/main/resources/web/assets/{NetworkView-1bbc5b0e.js => NetworkView-cd23fd42.js} (88%) rename app/src/main/resources/web/assets/{NoteEditView-a7e56dfc.js => NoteEditView-14cf96a0.js} (93%) rename app/src/main/resources/web/assets/{NotesRootView-978e456f.js => NotesRootView-9c77db22.js} (72%) rename app/src/main/resources/web/assets/{NotesTrashView-4f8c9b81.js => NotesTrashView-9ffe18fd.js} (94%) rename app/src/main/resources/web/assets/{NotesView-adfdc1fd.js => NotesView-2825dc60.js} (95%) rename app/src/main/resources/web/assets/{QrCodeGeneratorView-72764576.js => QrCodeGeneratorView-ea803af3.js} (99%) rename app/src/main/resources/web/assets/{RoutesView-005bcd48.js => RoutesView-51f5ef71.js} (97%) rename app/src/main/resources/web/assets/{RulesView-58977238.js => RulesView-7e630970.js} (97%) rename app/src/main/resources/web/assets/{ScreenMirrorView-ae9ae5ba.js => ScreenMirrorView-358fa446.js} (97%) rename app/src/main/resources/web/assets/{TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js => TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js} (94%) rename app/src/main/resources/web/assets/{VideosRootView-5a79ba17.js => VideosRootView-05227378.js} (70%) rename app/src/main/resources/web/assets/{VideosView-b11c2f7a.js => VideosView-75127da9.js} (95%) rename app/src/main/resources/web/assets/{WiFiView-62b31998.js => WiFiView-1d609bca.js} (95%) rename app/src/main/resources/web/assets/{WireGuardEditView-a2d73302.js => WireGuardEditView-18959341.js} (95%) rename app/src/main/resources/web/assets/{WireGuardView-5e83229d.js => WireGuardView-038544fc.js} (94%) rename app/src/main/resources/web/assets/{call-outline-rounded-90d0aca0.js => call-outline-rounded-027b1fc9.js} (91%) rename app/src/main/resources/web/assets/{cssMode-f8a12b8f.js => cssMode-d0ed9f18.js} (99%) rename app/src/main/resources/web/assets/{freemarker2-f57a57cd.js => freemarker2-02bfb3b4.js} (99%) rename app/src/main/resources/web/assets/{grid-view-outline-rounded-388859d3.js => grid-view-outline-rounded-c791dd48.js} (95%) rename app/src/main/resources/web/assets/{handlebars-74e74baf.js => handlebars-071155a3.js} (99%) rename app/src/main/resources/web/assets/{html-60c9e445.js => html-0a927e79.js} (98%) rename app/src/main/resources/web/assets/{htmlMode-ba2f4a4d.js => htmlMode-39850671.js} (99%) rename app/src/main/resources/web/assets/{index-4040ca75.js => index-40f25da6.js} (99%) rename app/src/main/resources/web/assets/{javascript-26decd57.js => javascript-6be51775.js} (77%) rename app/src/main/resources/web/assets/{jsonMode-aac536f7.js => jsonMode-a748f807.js} (99%) rename app/src/main/resources/web/assets/{liquid-28efbe21.js => liquid-b7e49653.js} (98%) rename app/src/main/resources/web/assets/{list-2b55c026.js => list-b6a3249f.js} (97%) rename app/src/main/resources/web/assets/{markdown-7d435800.js => markdown-c78c3af8.js} (99%) rename app/src/main/resources/web/assets/{print-outline-rounded-5fc4afb9.js => print-outline-rounded-f6e90fab.js} (91%) rename app/src/main/resources/web/assets/{python-b4217ff7.js => python-42dab718.js} (98%) rename app/src/main/resources/web/assets/{question-mark-rounded-72e52d2c.js => question-mark-rounded-50577cc8.js} (97%) rename app/src/main/resources/web/assets/{razor-48ef3acc.js => razor-5bcbaab2.js} (99%) rename app/src/main/resources/web/assets/{refresh-rounded-ba092d85.js => refresh-rounded-4826b5dd.js} (90%) rename app/src/main/resources/web/assets/{sort-rounded-21b00447.js => sort-rounded-6ce111fd.js} (88%) rename app/src/main/resources/web/assets/{splitpanes.es-20249936.js => splitpanes.es-a34c2504.js} (99%) rename app/src/main/resources/web/assets/{tags-5a94e769.js => tags-15dfcb58.js} (96%) rename app/src/main/resources/web/assets/{tsMode-9d1f3fbb.js => tsMode-da7e0c92.js} (99%) rename app/src/main/resources/web/assets/{typescript-37df992a.js => typescript-07248291.js} (98%) rename app/src/main/resources/web/assets/{upload-rounded-168dfb03.js => upload-rounded-b3049477.js} (90%) rename app/src/main/resources/web/assets/{vee-validate.esm-a8549f5b.js => vee-validate.esm-7088b7c0.js} (99%) rename app/src/main/resources/web/assets/{xml-b5d59370.js => xml-40f65ec6.js} (94%) rename app/src/main/resources/web/assets/{yaml-6b245353.js => yaml-2af7b3bd.js} (98%) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5e5a0430..83726c11 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -37,9 +37,9 @@ android { else -> 0 } - val vCode = 250 + val vCode = 253 versionCode = vCode - singleAbiNum - versionName = "1.2.39" + versionName = "1.2.40" ndk { //noinspection ChromeOsAbiSupport diff --git a/app/src/main/java/com/ismartcoding/plain/web/websocket/WebSocketHelper.kt b/app/src/main/java/com/ismartcoding/plain/web/websocket/WebSocketHelper.kt index 084f4cd9..d6d5d4e9 100644 --- a/app/src/main/java/com/ismartcoding/plain/web/websocket/WebSocketHelper.kt +++ b/app/src/main/java/com/ismartcoding/plain/web/websocket/WebSocketHelper.kt @@ -3,13 +3,16 @@ package com.ismartcoding.plain.web.websocket import com.ismartcoding.lib.helpers.CryptoHelper import com.ismartcoding.lib.helpers.JsonHelper import com.ismartcoding.lib.logcat.LogCat +import com.ismartcoding.plain.BuildConfig import com.ismartcoding.plain.web.HttpServerManager import io.ktor.websocket.* object WebSocketHelper { suspend fun sendEventAsync(event: WebSocketEvent) { val json = JsonHelper.jsonEncode(event) - LogCat.d("sendEventAsync: $json") + if (BuildConfig.DEBUG) { + LogCat.d("sendEventAsync: $json") + } HttpServerManager.wsSessions.toList().forEach { if (event.encrypted) { val token = HttpServerManager.tokenCache[it.clientId] diff --git a/app/src/main/resources/web/assets/AIChatView-d4a94ef9.js b/app/src/main/resources/web/assets/AIChatView-e729c9cb.js similarity index 95% rename from app/src/main/resources/web/assets/AIChatView-d4a94ef9.js rename to app/src/main/resources/web/assets/AIChatView-e729c9cb.js index 442f7f9b..1ace324b 100644 --- a/app/src/main/resources/web/assets/AIChatView-d4a94ef9.js +++ b/app/src/main/resources/web/assets/AIChatView-e729c9cb.js @@ -1,4 +1,4 @@ -import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as R,aR as ie,U as B,O as le,P as N,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,b0 as ue,b1 as pe,b2 as _e,o as c,F as ve,J as me,t as p,b3 as I,k as Q,S as he,m as x,Y as K,h as z,b4 as F,v as fe,ap as y,l as m,b5 as ye,at as ge,b6 as Ce,A as be,B as ke,_ as Ae}from"./index-4040ca75.js";import{g as G,M as we}from"./splitpanes.es-20249936.js";import{u as Me}from"./markdown-7d435800.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),xe={class:"page-container"},Te={class:"main"},$e={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Re={slot:"headline"},Be={key:2,class:"chat-title"},Ne={class:"name"},Qe={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),T=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await B(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:$,onDone:O}=R({document:pe,appApi:!0});function D(){!i.value||C.value||$({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await B(),L()}});function L(){const e=T.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=R({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&$({id:d.value,message:b.value,isMe:!1}))};return le(()=>{N.on("ai_chat_replied",S)}),ce(()=>{N.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",xe,[s("div",Te,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:T},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",$e,p(l(I)(a.createdAt)),1)):Q("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Re,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Be,[s("span",Ne,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Qe,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):Q("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[x(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` +import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as R,aR as ie,U as B,O as le,P as N,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,b0 as ue,b1 as pe,b2 as _e,o as c,F as ve,J as me,t as p,b3 as I,k as Q,S as he,m as x,Y as K,h as z,b4 as F,v as fe,ap as y,l as m,b5 as ye,at as ge,b6 as Ce,A as be,B as ke,_ as Ae}from"./index-40f25da6.js";import{g as G,M as we}from"./splitpanes.es-a34c2504.js";import{u as Me}from"./markdown-c78c3af8.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),xe={class:"page-container"},Te={class:"main"},$e={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Re={slot:"headline"},Be={key:2,class:"chat-title"},Ne={class:"name"},Qe={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),T=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await B(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:$,onDone:O}=R({document:pe,appApi:!0});function D(){!i.value||C.value||$({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await B(),L()}});function L(){const e=T.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=R({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&$({id:d.value,message:b.value,isMe:!1}))};return le(()=>{N.on("ai_chat_replied",S)}),ce(()=>{N.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",xe,[s("div",Te,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:T},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",$e,p(l(I)(a.createdAt)),1)):Q("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Re,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Be,[s("span",Ne,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Qe,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):Q("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[x(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` `,["shift","exact","prevent"]),["enter"])),t[2]||(t[2]=y(m(a=>i.value+=` `,["ctrl","exact","prevent"]),["enter"])),t[3]||(t[3]=y(m(a=>i.value+=` `,["alt","exact","prevent"]),["enter"])),t[4]||(t[4]=y(m(a=>i.value+=` diff --git a/app/src/main/resources/web/assets/AIChatsRootView-d2e5ee91.js b/app/src/main/resources/web/assets/AIChatsRootView-6784f91e.js similarity index 91% rename from app/src/main/resources/web/assets/AIChatsRootView-d2e5ee91.js rename to app/src/main/resources/web/assets/AIChatsRootView-6784f91e.js index 3b1bab18..9f27de4e 100644 --- a/app/src/main/resources/web/assets/AIChatsRootView-d2e5ee91.js +++ b/app/src/main/resources/web/assets/AIChatsRootView-6784f91e.js @@ -1 +1 @@ -import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b7 as x,an as G,g as I,x as D,b8 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-4040ca75.js";import{g as y,M as J}from"./splitpanes.es-20249936.js";import{u as O,a as W}from"./vee-validate.esm-a8549f5b.js";import"./EditValueModal-2509bdbc.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; +import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b7 as x,an as G,g as I,x as D,b8 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-40f25da6.js";import{g as y,M as J}from"./splitpanes.es-a34c2504.js";import{u as O,a as W}from"./vee-validate.esm-7088b7c0.js";import"./EditValueModal-068407b0.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; diff --git a/app/src/main/resources/web/assets/AIChatsView-18cbb2e2.js b/app/src/main/resources/web/assets/AIChatsView-6971920d.js similarity index 93% rename from app/src/main/resources/web/assets/AIChatsView-18cbb2e2.js rename to app/src/main/resources/web/assets/AIChatsView-6971920d.js index 9b20f503..479a29e7 100644 --- a/app/src/main/resources/web/assets/AIChatsView-18cbb2e2.js +++ b/app/src/main/resources/web/assets/AIChatsView-6971920d.js @@ -1,4 +1,4 @@ -import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-2b55c026.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as Se,N as qe,w as De,O as Ve,P as b,Q as Qe,R as Ue,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as S,t as d,H as Be,J as K,S as Me,T as Ne,U as Re,b2 as Le,x as Fe,b9 as He,C as j,W as E,o as n,v as ze,I as Pe,aS as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,ba as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-4040ca75.js";import{_ as et}from"./Breadcrumb-9fbc434f.js";import{u as tt,a as at}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},St={class:"nowrap"},qt={key:0},Dt={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const q=ye(),p=k([]),D=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(Se(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Ne(e),await Re(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:U,toggleAllChecked:B,toggleItemChecked:M,toggleRow:se,total:m,checked:N}=ve(p),{loading:le,load:ne,refetch:I}=qe({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});De(C,e=>{j(q,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),R(),D.value.dismiss()}function R(){j(q,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(U(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` +import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-b6a3249f.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as Se,N as qe,w as De,O as Ve,P as b,Q as Qe,R as Ue,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as S,t as d,H as Be,J as K,S as Me,T as Ne,U as Re,b2 as Le,x as Fe,b9 as He,C as j,W as E,o as n,v as ze,I as Pe,aS as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,ba as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-40f25da6.js";import{_ as et}from"./Breadcrumb-5456253f.js";import{u as tt,a as at}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},St={class:"nowrap"},qt={key:0},Dt={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const q=ye(),p=k([]),D=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(Se(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Ne(e),await Re(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:U,toggleAllChecked:B,toggleItemChecked:M,toggleRow:se,total:m,checked:N}=ve(p),{loading:le,load:ne,refetch:I}=qe({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});De(C,e=>{j(q,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),R(),D.value.dismiss()}function R(){j(q,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(U(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` mutation DeleteAIChat($query: String!) { deleteAIChats(query: $query) } diff --git a/app/src/main/resources/web/assets/AppsRootView-c4cfe0c5.js b/app/src/main/resources/web/assets/AppsRootView-b01648a0.js similarity index 93% rename from app/src/main/resources/web/assets/AppsRootView-c4cfe0c5.js rename to app/src/main/resources/web/assets/AppsRootView-b01648a0.js index f51df977..ea8f5031 100644 --- a/app/src/main/resources/web/assets/AppsRootView-c4cfe0c5.js +++ b/app/src/main/resources/web/assets/AppsRootView-b01648a0.js @@ -1 +1 @@ -import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-4040ca75.js";import{g as m,M}from"./splitpanes.es-20249936.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; +import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-40f25da6.js";import{g as m,M}from"./splitpanes.es-a34c2504.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; diff --git a/app/src/main/resources/web/assets/AppsView-25dd4b0d.js b/app/src/main/resources/web/assets/AppsView-0a306bf4.js similarity index 96% rename from app/src/main/resources/web/assets/AppsView-25dd4b0d.js rename to app/src/main/resources/web/assets/AppsView-0a306bf4.js index 9ff425e8..a6ea9e20 100644 --- a/app/src/main/resources/web/assets/AppsView-25dd4b0d.js +++ b/app/src/main/resources/web/assets/AppsView-0a306bf4.js @@ -1 +1 @@ -import{u as $e,_ as be,a as Ce,b as we}from"./list-2b55c026.js";import{P,d as Se,ae as Ae,e as De,r as g,u as Ie,s as Ve,f as Ue,K as Te,af as qe,L as Pe,D as Qe,M as Be,ag as Fe,T as Y,g as Le,w as ze,i as Me,N as Re,O as Ne,Q as Ge,R as Ke,c as i,a as t,p as r,j as n,m as p,l as _,k as T,h as A,t as a,H as je,F as q,J as xe,S as Ee,x as He,ah as Je,ai as Oe,C as D,W as I,aj as We,ak as Ye,o,v as Ze,I as Xe,z as et,Y as Z,Z as X,$ as tt,al as st,am as nt,a5 as lt,ad as at}from"./index-4040ca75.js";import{_ as ot}from"./Breadcrumb-9fbc434f.js";const ee=m=>{P.emit("tap_phone",m)};function it(m,V){const $=m.findIndex(b=>b.id===V);$!==-1&&m.splice($,1)}const ct={class:"v-toolbar"},dt=t("md-ripple",null,null,-1),ut=["onClick"],rt=t("md-ripple",null,null,-1),pt={class:"filters"},_t={class:"form-row"},ht=["label"],ft={class:"buttons"},mt=["onClick"],kt={class:"table-responsive"},vt={class:"table"},gt=["checked","indeterminate"],yt=t("th",null,null,-1),$t=t("th",null,null,-1),bt=["onClick"],Ct=["checked"],wt=["src"],St={class:"v-center"},At={class:"nowrap"},Dt={class:"action-btns"},It={indeterminate:"",class:"spinner-sm"},Vt=["onClick"],Ut=["onClick"],Tt=t("md-ripple",null,null,-1),qt=["onClick"],Pt=t("md-ripple",null,null,-1),Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={class:"nowrap"},zt={key:0},Mt={colspan:"8"},Rt={class:"no-data-placeholder"},y=50,jt=Se({__name:"AppsView",setup(m){var J,O;const{input:V,upload:$,uploadChanged:b}=Ae(),C=De(),c=g([]),Q=g(),{t:B}=Ie(),{app:te,urlTokenKey:U}=Ve(Ue()),w=Te({text:"",tags:[]}),{allChecked:F,realAllChecked:L,selectRealAll:se,allCheckedAlertVisible:ne,clearSelection:z,toggleAllChecked:M,toggleItemChecked:R,toggleRow:le,total:k,checked:N}=$e(c),{downloadItems:ae}=qe(U,Pe.PACKAGE,c,z,"apps.zip"),{downloadFile:oe}=st(U),G=Qe(),K=G.query,S=g(parseInt(((J=K.page)==null?void 0:J.toString())??"1")),d=g(Be(((O=K.q)==null?void 0:O.toString())??"")),j=Fe(d.value),h=G.params.type;h&&j.push({name:"type",op:"",value:h});const x=g(Y(j)),ie=()=>{$(te.value.downloadsDir)},ce=e=>{e.isUninstalling=!1},{loading:de}=Le({handle:(e,l)=>{l?He(B(l),"error"):e&&(c.value=e.packages.map(u=>({...u,checked:!1,icon:Je(U.value,"pkgicon://"+u.id)})),k.value=e.packageCount)},document:Oe,variables:()=>({offset:(S.value-1)*y,limit:y,query:x.value}),appApi:!0});ze(S,e=>{h?D(C,`/apps/${h}?page=${e}&q=${I(d.value)}`):D(C,`/apps?page=${e}&q=${I(d.value)}`)});function ue(){const e=[];w.text&&e.push({name:"text",op:"",value:w.text}),d.value=Y(e),E(),Q.value.dismiss()}function E(){h?D(C,`/apps/${h}?q=${I(d.value)}`):D(C,`/apps?q=${I(d.value)}`)}const{mutate:re}=Me({document:We,appApi:!0});function pe(e){e.isUninstalling=!0,ee(B("confirm_uninstallation_on_phone")),re({id:e.id})}const{loading:_e,load:he,refetch:fe}=Re({handle:(e,l)=>{if(e)for(const u of e.packageStatuses)u.exist||(it(c.value,u.id),ee(""))},document:Ye,variables:()=>({ids:c.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),H=e=>{e.status};return Ne(()=>{P.on("upload_task_done",H);let e=!0;setInterval(()=>{c.value.some(l=>l.isUninstalling)&&!_e.value&&(e?(he(),e=!1):fe())},1e3)}),Ge(()=>{P.off("upload_task_done",H)}),(e,l)=>{const u=ot,W=nt,me=be,ke=Ce,ve=lt,ge=at,ye=we,f=Ke("tooltip");return o(),i(q,null,[t("div",ct,[r(u,{current:()=>`${e.$t("page_title.apps")} (${n(k)})`},null,8,["current"]),n(N)?p((o(),i("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=_(s=>n(ae)(n(L),x.value),["stop"]))},[dt,r(W)])),[[f,e.$t("download")]]):T("",!0),t("button",{class:"icon-button",onClick:_(ie,["stop"]),style:{display:"none"}},[rt,A(" "+a(e.$t("install")),1)],8,ut),r(me,{ref_key:"searchInputRef",ref:Q,modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=s=>d.value=s),search:E},{filters:je(()=>[t("div",pt,[t("div",_t,[p(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>w.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ht),[[Ze,w.text]])]),t("div",ft,[t("md-filled-button",{onClick:_(ue,["stop"])},a(e.$t("search")),9,mt)])])]),_:1},8,["modelValue"])]),r(ke,{limit:y,total:n(k),"all-checked-alert-visible":n(ne),"real-all-checked":n(L),"select-real-all":n(se),"clear-selection":n(z)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",kt,[t("table",vt,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>n(M)&&n(M)(...s)),checked:n(F),indeterminate:!n(F)&&n(N)},null,40,gt)]),yt,t("th",null,a(e.$t("name")),1),$t,t("th",null,a(e.$t("size")),1),t("th",null,a(e.$t("type")),1),t("th",null,a(e.$t("installed_at")),1),t("th",null,a(e.$t("updated_at")),1)])]),t("tbody",null,[(o(!0),i(q,null,xe(c.value,s=>(o(),i("tr",{key:s.id,class:Xe({selected:s.checked}),onClick:_(v=>n(le)(s),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...v)=>n(R)&&n(R)(...v)),checked:s.checked},null,40,Ct)]),t("td",null,[t("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),t("td",null,[t("strong",St,a(s.name)+" ("+a(s.version)+")",1),r(ve,{id:s.id,raw:s},null,8,["id","raw"])]),t("td",At,[t("div",Dt,[s.isUninstalling?(o(),i(q,{key:0},[p(t("md-circular-progress",It,null,512),[[f,e.$t("uninstalling")]]),A("  "),t("md-outlined-button",{class:"btn-sm",onClick:_(v=>ce(s),["stop"])},a(e.$t("cancel")),9,Vt)],64)):p((o(),i("button",{key:1,class:"icon-button",onClick:_(v=>pe(s),["stop"])},[Tt,r(ge)],8,Ut)),[[f,e.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:_(v=>n(oe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Pt,r(W)],8,qt)),[[f,e.$t("download")]])])]),t("td",Qt,a(n(et)(s.size)),1),t("td",Bt,a(e.$t("app_type."+s.type)),1),t("td",Ft,[p((o(),i("span",null,[A(a(n(X)(s.installedAt)),1)])),[[f,n(Z)(s.installedAt)]])]),t("td",Lt,[p((o(),i("span",null,[A(a(n(X)(s.updatedAt)),1)])),[[f,n(Z)(s.updatedAt)]])])],10,bt))),128))]),c.value.length?T("",!0):(o(),i("tfoot",zt,[t("tr",null,[t("td",Mt,[t("div",Rt,a(e.$t(n(tt)(n(de)))),1)])])]))])]),n(k)>y?(o(),Ee(ye,{key:0,modelValue:S.value,"onUpdate:modelValue":l[5]||(l[5]=s=>S.value=s),total:n(k),limit:y},null,8,["modelValue","total"])):T("",!0),t("input",{ref_key:"fileInput",ref:V,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:l[6]||(l[6]=(...s)=>n(b)&&n(b)(...s))},null,544)],64)}}});export{jt as default}; +import{u as $e,_ as be,a as Ce,b as we}from"./list-b6a3249f.js";import{P,d as Se,ae as Ae,e as De,r as g,u as Ie,s as Ve,f as Ue,K as Te,af as qe,L as Pe,D as Qe,M as Be,ag as Fe,T as Y,g as Le,w as ze,i as Me,N as Re,O as Ne,Q as Ge,R as Ke,c as i,a as t,p as r,j as n,m as p,l as _,k as T,h as A,t as a,H as je,F as q,J as xe,S as Ee,x as He,ah as Je,ai as Oe,C as D,W as I,aj as We,ak as Ye,o,v as Ze,I as Xe,z as et,Y as Z,Z as X,$ as tt,al as st,am as nt,a5 as lt,ad as at}from"./index-40f25da6.js";import{_ as ot}from"./Breadcrumb-5456253f.js";const ee=m=>{P.emit("tap_phone",m)};function it(m,V){const $=m.findIndex(b=>b.id===V);$!==-1&&m.splice($,1)}const ct={class:"v-toolbar"},dt=t("md-ripple",null,null,-1),ut=["onClick"],rt=t("md-ripple",null,null,-1),pt={class:"filters"},_t={class:"form-row"},ht=["label"],ft={class:"buttons"},mt=["onClick"],kt={class:"table-responsive"},vt={class:"table"},gt=["checked","indeterminate"],yt=t("th",null,null,-1),$t=t("th",null,null,-1),bt=["onClick"],Ct=["checked"],wt=["src"],St={class:"v-center"},At={class:"nowrap"},Dt={class:"action-btns"},It={indeterminate:"",class:"spinner-sm"},Vt=["onClick"],Ut=["onClick"],Tt=t("md-ripple",null,null,-1),qt=["onClick"],Pt=t("md-ripple",null,null,-1),Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={class:"nowrap"},zt={key:0},Mt={colspan:"8"},Rt={class:"no-data-placeholder"},y=50,jt=Se({__name:"AppsView",setup(m){var J,O;const{input:V,upload:$,uploadChanged:b}=Ae(),C=De(),c=g([]),Q=g(),{t:B}=Ie(),{app:te,urlTokenKey:U}=Ve(Ue()),w=Te({text:"",tags:[]}),{allChecked:F,realAllChecked:L,selectRealAll:se,allCheckedAlertVisible:ne,clearSelection:z,toggleAllChecked:M,toggleItemChecked:R,toggleRow:le,total:k,checked:N}=$e(c),{downloadItems:ae}=qe(U,Pe.PACKAGE,c,z,"apps.zip"),{downloadFile:oe}=st(U),G=Qe(),K=G.query,S=g(parseInt(((J=K.page)==null?void 0:J.toString())??"1")),d=g(Be(((O=K.q)==null?void 0:O.toString())??"")),j=Fe(d.value),h=G.params.type;h&&j.push({name:"type",op:"",value:h});const x=g(Y(j)),ie=()=>{$(te.value.downloadsDir)},ce=e=>{e.isUninstalling=!1},{loading:de}=Le({handle:(e,l)=>{l?He(B(l),"error"):e&&(c.value=e.packages.map(u=>({...u,checked:!1,icon:Je(U.value,"pkgicon://"+u.id)})),k.value=e.packageCount)},document:Oe,variables:()=>({offset:(S.value-1)*y,limit:y,query:x.value}),appApi:!0});ze(S,e=>{h?D(C,`/apps/${h}?page=${e}&q=${I(d.value)}`):D(C,`/apps?page=${e}&q=${I(d.value)}`)});function ue(){const e=[];w.text&&e.push({name:"text",op:"",value:w.text}),d.value=Y(e),E(),Q.value.dismiss()}function E(){h?D(C,`/apps/${h}?q=${I(d.value)}`):D(C,`/apps?q=${I(d.value)}`)}const{mutate:re}=Me({document:We,appApi:!0});function pe(e){e.isUninstalling=!0,ee(B("confirm_uninstallation_on_phone")),re({id:e.id})}const{loading:_e,load:he,refetch:fe}=Re({handle:(e,l)=>{if(e)for(const u of e.packageStatuses)u.exist||(it(c.value,u.id),ee(""))},document:Ye,variables:()=>({ids:c.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),H=e=>{e.status};return Ne(()=>{P.on("upload_task_done",H);let e=!0;setInterval(()=>{c.value.some(l=>l.isUninstalling)&&!_e.value&&(e?(he(),e=!1):fe())},1e3)}),Ge(()=>{P.off("upload_task_done",H)}),(e,l)=>{const u=ot,W=nt,me=be,ke=Ce,ve=lt,ge=at,ye=we,f=Ke("tooltip");return o(),i(q,null,[t("div",ct,[r(u,{current:()=>`${e.$t("page_title.apps")} (${n(k)})`},null,8,["current"]),n(N)?p((o(),i("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=_(s=>n(ae)(n(L),x.value),["stop"]))},[dt,r(W)])),[[f,e.$t("download")]]):T("",!0),t("button",{class:"icon-button",onClick:_(ie,["stop"]),style:{display:"none"}},[rt,A(" "+a(e.$t("install")),1)],8,ut),r(me,{ref_key:"searchInputRef",ref:Q,modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=s=>d.value=s),search:E},{filters:je(()=>[t("div",pt,[t("div",_t,[p(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>w.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ht),[[Ze,w.text]])]),t("div",ft,[t("md-filled-button",{onClick:_(ue,["stop"])},a(e.$t("search")),9,mt)])])]),_:1},8,["modelValue"])]),r(ke,{limit:y,total:n(k),"all-checked-alert-visible":n(ne),"real-all-checked":n(L),"select-real-all":n(se),"clear-selection":n(z)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",kt,[t("table",vt,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>n(M)&&n(M)(...s)),checked:n(F),indeterminate:!n(F)&&n(N)},null,40,gt)]),yt,t("th",null,a(e.$t("name")),1),$t,t("th",null,a(e.$t("size")),1),t("th",null,a(e.$t("type")),1),t("th",null,a(e.$t("installed_at")),1),t("th",null,a(e.$t("updated_at")),1)])]),t("tbody",null,[(o(!0),i(q,null,xe(c.value,s=>(o(),i("tr",{key:s.id,class:Xe({selected:s.checked}),onClick:_(v=>n(le)(s),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...v)=>n(R)&&n(R)(...v)),checked:s.checked},null,40,Ct)]),t("td",null,[t("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),t("td",null,[t("strong",St,a(s.name)+" ("+a(s.version)+")",1),r(ve,{id:s.id,raw:s},null,8,["id","raw"])]),t("td",At,[t("div",Dt,[s.isUninstalling?(o(),i(q,{key:0},[p(t("md-circular-progress",It,null,512),[[f,e.$t("uninstalling")]]),A("  "),t("md-outlined-button",{class:"btn-sm",onClick:_(v=>ce(s),["stop"])},a(e.$t("cancel")),9,Vt)],64)):p((o(),i("button",{key:1,class:"icon-button",onClick:_(v=>pe(s),["stop"])},[Tt,r(ge)],8,Ut)),[[f,e.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:_(v=>n(oe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Pt,r(W)],8,qt)),[[f,e.$t("download")]])])]),t("td",Qt,a(n(et)(s.size)),1),t("td",Bt,a(e.$t("app_type."+s.type)),1),t("td",Ft,[p((o(),i("span",null,[A(a(n(X)(s.installedAt)),1)])),[[f,n(Z)(s.installedAt)]])]),t("td",Lt,[p((o(),i("span",null,[A(a(n(X)(s.updatedAt)),1)])),[[f,n(Z)(s.updatedAt)]])])],10,bt))),128))]),c.value.length?T("",!0):(o(),i("tfoot",zt,[t("tr",null,[t("td",Mt,[t("div",Rt,a(e.$t(n(tt)(n(de)))),1)])])]))])]),n(k)>y?(o(),Ee(ye,{key:0,modelValue:S.value,"onUpdate:modelValue":l[5]||(l[5]=s=>S.value=s),total:n(k),limit:y},null,8,["modelValue","total"])):T("",!0),t("input",{ref_key:"fileInput",ref:V,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:l[6]||(l[6]=(...s)=>n(b)&&n(b)(...s))},null,544)],64)}}});export{jt as default}; diff --git a/app/src/main/resources/web/assets/AudiosRootView-e8169982.js b/app/src/main/resources/web/assets/AudiosRootView-c3d93ee1.js similarity index 70% rename from app/src/main/resources/web/assets/AudiosRootView-e8169982.js rename to app/src/main/resources/web/assets/AudiosRootView-c3d93ee1.js index 2650b7e4..c3f7d339 100644 --- a/app/src/main/resources/web/assets/AudiosRootView-e8169982.js +++ b/app/src/main/resources/web/assets/AudiosRootView-c3d93ee1.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-4040ca75.js";import{g as u,M}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-40f25da6.js";import{g as u,M}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-e2f521fa.js b/app/src/main/resources/web/assets/AudiosView-fd00afb0.js similarity index 96% rename from app/src/main/resources/web/assets/AudiosView-e2f521fa.js rename to app/src/main/resources/web/assets/AudiosView-fd00afb0.js index bdd780d9..f0ae88a5 100644 --- a/app/src/main/resources/web/assets/AudiosView-e2f521fa.js +++ b/app/src/main/resources/web/assets/AudiosView-fd00afb0.js @@ -1 +1 @@ -import{u as Ge,_ as Ke,a as Oe,b as je}from"./list-2b55c026.js";import{o as l,c as a,a as e,i as ce,aL as We,u as ue,P as b,x as _e,r as D,aM as xe,d as Je,e as Xe,s as le,f as Ye,K as et,L as tt,D as ot,M as st,aB as nt,af as lt,aA as at,N as it,w as dt,O as ct,Q as ut,R as _t,p as d,j as o,F as P,m,l as h,k as F,H,t as f,J as N,S as rt,T as pt,U as mt,aN as ht,C as ae,W as ie,at as ft,v as vt,I as gt,aF as yt,a9 as bt,z as kt,$ as $t,A as Tt,B as qt,al as Ct,aG as wt,as as It,aH as At,a0 as St,a1 as Bt,a2 as Dt,a3 as Vt,ad as Rt,am as Mt,a4 as Pt,a5 as Zt,a6 as Et,_ as Lt}from"./index-4040ca75.js";import{_ as Qt}from"./sort-rounded-21b00447.js";import{_ as zt}from"./upload-rounded-168dfb03.js";import{_ as Ft}from"./Breadcrumb-9fbc434f.js";import{u as Ht,a as Nt}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const Ut={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Gt=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Kt=[Gt];function Ot(c,v){return l(),a("svg",Ut,Kt)}const jt={name:"material-symbols-play-circle-outline-rounded",render:Ot},Wt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Jt=[xt];function Xt(c,v){return l(),a("svg",Wt,Jt)}const Yt={name:"material-symbols-pause-circle-outline-rounded",render:Xt},eo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},to=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),oo=[to];function so(c,v){return l(),a("svg",eo,oo)}const no={name:"material-symbols-playlist-add",render:so};function de(c,v,k=500){const i=c.cloneNode(!0),_=c.getBoundingClientRect(),C=v.getBoundingClientRect();i.style.position="absolute",i.style.top=_.top+"px",i.style.left=_.left+"px",i.style.opacity=1,document.body.appendChild(i);let $=0;function T(q){$||($=q);const u=q-$,w=Math.min(u/k,1);i.style.top=_.top+(C.top-_.top)*w+"px",i.style.left=_.left+(C.left-_.left)*w+"px",w<1?requestAnimationFrame(T):document.body.removeChild(i)}requestAnimationFrame(T)}const lo=(c,v)=>{const{mutate:k,loading:i,onDone:_}=ce({document:We,appApi:!0}),{t:C}=ue();return _(()=>{b.emit("refetch_app"),v()}),{loading:i,addItemsToPlaylist:($,T,q)=>{let u=q;if(!T){const Q=c.value.filter(I=>I.checked);if(Q.length===0){_e(C("select_first"),"error");return}u=`ids:${Q.map(I=>I.id).join(",")}`}const w=$.target,g=document.getElementById("quick-audio");de(w,g),k({query:u})},addToPlaylist:($,T)=>{const q=$.target,u=document.getElementById("quick-audio");de(q,u),k({query:`ids:${T.id}`})}}},ao=()=>{const c=D(""),{mutate:v,loading:k,onDone:i}=ce({document:xe,appApi:!0});return i(()=>{b.emit("play_audio")}),{loading:k,playPath:c,play:_=>{c.value=_.path,v({path:_.path})},pause:()=>{b.emit("pause_audio")}}},p=c=>(Tt("data-v-dd874a81"),c=c(),qt(),c),io={class:"v-toolbar"},co=p(()=>e("md-ripple",null,null,-1)),uo=p(()=>e("md-ripple",null,null,-1)),_o=p(()=>e("md-ripple",null,null,-1)),ro=p(()=>e("md-ripple",null,null,-1)),po=["onClick"],mo=p(()=>e("md-ripple",null,null,-1)),ho={class:"icon-button btn-sort"},fo=p(()=>e("md-ripple",null,null,-1)),vo={class:"menu-items"},go=["onClick","selected"],yo={slot:"headline"},bo={class:"filters"},ko=["label"],$o={class:"form-label"},To=["label","selected","onClick"],qo={class:"buttons"},Co=["onClick"],wo={class:"table-responsive"},Io={class:"table"},Ao=["checked","indeterminate"],So=p(()=>e("th",null,"ID",-1)),Bo=p(()=>e("th",null,null,-1)),Do={class:"artist"},Vo=["onClick"],Ro=["checked"],Mo={class:"title"},Po={class:"nowrap"},Zo={class:"action-btns"},Eo=["onClick"],Lo=p(()=>e("md-ripple",null,null,-1)),Qo=["onClick"],zo=p(()=>e("md-ripple",null,null,-1)),Fo=["onClick"],Ho=p(()=>e("md-ripple",null,null,-1)),No=["onClick"],Uo=p(()=>e("md-ripple",null,null,-1)),Go={key:0,indeterminate:"",class:"spinner-sm"},Ko=p(()=>e("md-ripple",null,null,-1)),Oo=["onClick"],jo=p(()=>e("md-ripple",null,null,-1)),Wo={class:"nowrap"},xo={class:"nowrap"},Jo={key:0},Xo={colspan:"8"},Yo={class:"no-data-placeholder"},Z=50,es=Je({__name:"AudiosView",setup(c){var Y,ee;const v=Xe(),{audioSortBy:k}=le(v),i=D([]),_=D(),{t:C}=ue(),{app:$,urlTokenKey:T,audioPlaying:q}=le(Ye()),u=et({text:"",tags:[]}),w=t=>{var n;return q.value&&((n=$.value)==null?void 0:n.audioCurrent)===t.path},g=tt.AUDIO,I=ot().query,E=D(parseInt(((Y=I.page)==null?void 0:Y.toString())??"1")),A=D(st(((ee=I.q)==null?void 0:ee.toString())??"")),S=D(""),{tags:L}=Ht(g,A,u,async t=>{S.value=pt(t),await mt(),Se()}),{addToTags:re}=Nt(g,i,L),{deleteItems:pe,deleteItem:me}=nt(),{allChecked:U,realAllChecked:V,selectRealAll:he,allCheckedAlertVisible:fe,clearSelection:R,toggleAllChecked:G,toggleRow:ve,toggleItemChecked:K,total:B,checked:O}=Ge(i),{downloadItems:ge}=lt(T,g,i,R,"audios.zip"),{downloadFile:ye}=Ct(T),{addItemsToPlaylist:be,addToPlaylist:ke}=lo(i,R),$e=wt(),Te=at(),{play:qe,playPath:Ce,loading:we,pause:Ie}=ao(),{loading:Ae,load:Se,refetch:z}=it({handle:(t,n)=>{n?_e(C(n),"error"):t&&(i.value=t.audios.map(M=>({...M,checked:!1})),B.value=t.audioCount)},document:ht,variables:()=>({offset:(E.value-1)*Z,limit:Z,query:S.value,sortBy:k.value}),appApi:!0});dt(E,t=>{ae(v,`/audios?page=${t}&q=${ie(A.value)}`)});function Be(){Te.push("/files"),It(At,{message:C("upload_audios")})}function De(t,n){k.value=n,t.close()}function Ve(t){u.tags.includes(t)?St(u.tags,n=>n.id===t.id):u.tags.push(t)}function Re(){A.value=Bt(u),j(),_.value.dismiss()}function j(){ae(v,`/audios?q=${ie(A.value)}`)}const W=t=>{t.type===g&&(R(),z())},x=t=>{t.type===g&&z()},J=t=>{t.type===g&&(R(),z())},X=()=>{B.value--};ct(()=>{b.on("item_tags_updated",x),b.on("items_tags_updated",W),b.on("media_item_deleted",X),b.on("media_items_deleted",J)}),ut(()=>{b.off("item_tags_updated",x),b.off("items_tags_updated",W),b.off("media_item_deleted",X),b.off("media_items_deleted",J)});function Me(t){Dt(Vt,{type:g,tags:L.value,item:{key:t.id,title:t.title,size:t.size},selected:L.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Ft,te=Rt,oe=Mt,se=no,ne=Pt,Pe=zt,Ze=Qt,Ee=ft,Le=Ke,Qe=Oe,ze=Zt,Fe=Yt,He=jt,Ne=Et,Ue=je,y=_t("tooltip");return l(),a(P,null,[e("div",io,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(B)})`},null,8,["current"]),o(O)?(l(),a(P,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=h(s=>o(pe)(o(g),i.value,o(V),S.value),["stop"]))},[co,d(te)])),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=h(s=>o(ge)(o(V),S.value),["stop"]))},[uo,d(oe)])),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=h(s=>o(be)(s,o(V),S.value),["stop"]))},[_o,d(se)])),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=h(s=>o(re)(o(V),S.value),["stop"]))},[ro,d(ne)])),[[y,t.$t("add_to_tags")]])],64)):F("",!0),m((l(),a("button",{class:"icon-button",onClick:h(Be,["stop"])},[mo,d(Pe)],8,po)),[[y,t.$t("upload")]]),d(Ee,null,{content:H(s=>[e("div",vo,[(l(!0),a(P,null,N(o($e),r=>(l(),a("md-menu-item",{onClick:ts=>De(s,r.value),selected:r.value===o(k)},[e("div",yo,f(t.$t(r.label)),1)],8,go))),256))])]),default:H(()=>[m((l(),a("button",ho,[fo,d(Ze)])),[[y,t.$t("sort")]])]),_:1}),d(Le,{ref_key:"searchInputRef",ref:_,modelValue:A.value,"onUpdate:modelValue":n[5]||(n[5]=s=>A.value=s),search:j},{filters:H(()=>[e("div",bo,[m(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>u.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ko),[[vt,u.text]]),e("label",$o,f(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(P,null,N(o(L),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:u.tags.includes(s),onClick:r=>Ve(s)},null,8,To))),128))]),e("div",qo,[e("md-filled-button",{onClick:h(Re,["stop"])},f(t.$t("search")),9,Co)])])]),_:1},8,["modelValue"])]),d(Qe,{limit:Z,total:o(B),"all-checked-alert-visible":o(fe),"real-all-checked":o(V),"select-real-all":o(he),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",wo,[e("table",Io,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(G)&&o(G)(...s)),checked:o(U),indeterminate:!o(U)&&o(O)},null,40,Ao)]),So,e("th",null,f(t.$t("name")),1),Bo,e("th",Do,f(t.$t("artist")),1),e("th",null,f(t.$t("tags")),1),e("th",null,f(t.$t("duration")),1),e("th",null,f(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(P,null,N(i.value,s=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:h(r=>o(ve)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...r)=>o(K)&&o(K)(...r)),checked:s.checked},null,40,Ro)]),e("td",null,[d(ze,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",Mo,f(s.title),1),e("td",Po,[e("div",Zo,[m((l(),a("button",{class:"icon-button",onClick:h(r=>o(me)(o(g),s),["stop"])},[Lo,d(te)],8,Eo)),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ye)(s.path,o(yt)(s.path).replace(" ","-")),["stop"])},[zo,d(oe)],8,Qo)),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ke)(r,s),["stop"])},[Ho,d(se)],8,Fo)),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>Me(s),["stop"])},[Uo,d(ne)],8,No)),[[y,t.$t("add_to_tags")]]),o(we)&&s.path===o(Ce)?(l(),a("md-circular-progress",Go)):w(s)?m((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=h(r=>o(Ie)(),["stop"]))},[Ko,d(Fe)])),[[y,t.$t("pause")]]):m((l(),a("button",{key:2,class:"icon-button",onClick:h(r=>o(qe)(s),["stop"])},[jo,d(He)],8,Oo)),[[y,t.$t("play")]])])]),e("td",null,f(s.artist),1),e("td",null,[d(Ne,{tags:s.tags,type:o(g)},null,8,["tags","type"])]),e("td",Wo,f(o(bt)(s.duration)),1),e("td",xo,f(o(kt)(s.size)),1)],10,Vo))),128))]),i.value.length?F("",!0):(l(),a("tfoot",Jo,[e("tr",null,[e("td",Xo,[e("div",Yo,f(t.$t(o($t)(o(Ae),o($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(B)>Z?(l(),rt(Ue,{key:0,modelValue:E.value,"onUpdate:modelValue":n[9]||(n[9]=s=>E.value=s),total:o(B),limit:Z},null,8,["modelValue","total"])):F("",!0)],64)}}});const cs=Lt(es,[["__scopeId","data-v-dd874a81"]]);export{cs as default}; +import{u as Ge,_ as Ke,a as Oe,b as je}from"./list-b6a3249f.js";import{o as l,c as a,a as e,i as ce,aL as We,u as ue,P as b,x as _e,r as D,aM as xe,d as Je,e as Xe,s as le,f as Ye,K as et,L as tt,D as ot,M as st,aB as nt,af as lt,aA as at,N as it,w as dt,O as ct,Q as ut,R as _t,p as d,j as o,F as P,m,l as h,k as F,H,t as f,J as N,S as rt,T as pt,U as mt,aN as ht,C as ae,W as ie,at as ft,v as vt,I as gt,aF as yt,a9 as bt,z as kt,$ as $t,A as Tt,B as qt,al as Ct,aG as wt,as as It,aH as At,a0 as St,a1 as Bt,a2 as Dt,a3 as Vt,ad as Rt,am as Mt,a4 as Pt,a5 as Zt,a6 as Et,_ as Lt}from"./index-40f25da6.js";import{_ as Qt}from"./sort-rounded-6ce111fd.js";import{_ as zt}from"./upload-rounded-b3049477.js";import{_ as Ft}from"./Breadcrumb-5456253f.js";import{u as Ht,a as Nt}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const Ut={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Gt=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Kt=[Gt];function Ot(c,v){return l(),a("svg",Ut,Kt)}const jt={name:"material-symbols-play-circle-outline-rounded",render:Ot},Wt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Jt=[xt];function Xt(c,v){return l(),a("svg",Wt,Jt)}const Yt={name:"material-symbols-pause-circle-outline-rounded",render:Xt},eo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},to=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),oo=[to];function so(c,v){return l(),a("svg",eo,oo)}const no={name:"material-symbols-playlist-add",render:so};function de(c,v,k=500){const i=c.cloneNode(!0),_=c.getBoundingClientRect(),C=v.getBoundingClientRect();i.style.position="absolute",i.style.top=_.top+"px",i.style.left=_.left+"px",i.style.opacity=1,document.body.appendChild(i);let $=0;function T(q){$||($=q);const u=q-$,w=Math.min(u/k,1);i.style.top=_.top+(C.top-_.top)*w+"px",i.style.left=_.left+(C.left-_.left)*w+"px",w<1?requestAnimationFrame(T):document.body.removeChild(i)}requestAnimationFrame(T)}const lo=(c,v)=>{const{mutate:k,loading:i,onDone:_}=ce({document:We,appApi:!0}),{t:C}=ue();return _(()=>{b.emit("refetch_app"),v()}),{loading:i,addItemsToPlaylist:($,T,q)=>{let u=q;if(!T){const Q=c.value.filter(I=>I.checked);if(Q.length===0){_e(C("select_first"),"error");return}u=`ids:${Q.map(I=>I.id).join(",")}`}const w=$.target,g=document.getElementById("quick-audio");de(w,g),k({query:u})},addToPlaylist:($,T)=>{const q=$.target,u=document.getElementById("quick-audio");de(q,u),k({query:`ids:${T.id}`})}}},ao=()=>{const c=D(""),{mutate:v,loading:k,onDone:i}=ce({document:xe,appApi:!0});return i(()=>{b.emit("play_audio")}),{loading:k,playPath:c,play:_=>{c.value=_.path,v({path:_.path})},pause:()=>{b.emit("pause_audio")}}},p=c=>(Tt("data-v-dd874a81"),c=c(),qt(),c),io={class:"v-toolbar"},co=p(()=>e("md-ripple",null,null,-1)),uo=p(()=>e("md-ripple",null,null,-1)),_o=p(()=>e("md-ripple",null,null,-1)),ro=p(()=>e("md-ripple",null,null,-1)),po=["onClick"],mo=p(()=>e("md-ripple",null,null,-1)),ho={class:"icon-button btn-sort"},fo=p(()=>e("md-ripple",null,null,-1)),vo={class:"menu-items"},go=["onClick","selected"],yo={slot:"headline"},bo={class:"filters"},ko=["label"],$o={class:"form-label"},To=["label","selected","onClick"],qo={class:"buttons"},Co=["onClick"],wo={class:"table-responsive"},Io={class:"table"},Ao=["checked","indeterminate"],So=p(()=>e("th",null,"ID",-1)),Bo=p(()=>e("th",null,null,-1)),Do={class:"artist"},Vo=["onClick"],Ro=["checked"],Mo={class:"title"},Po={class:"nowrap"},Zo={class:"action-btns"},Eo=["onClick"],Lo=p(()=>e("md-ripple",null,null,-1)),Qo=["onClick"],zo=p(()=>e("md-ripple",null,null,-1)),Fo=["onClick"],Ho=p(()=>e("md-ripple",null,null,-1)),No=["onClick"],Uo=p(()=>e("md-ripple",null,null,-1)),Go={key:0,indeterminate:"",class:"spinner-sm"},Ko=p(()=>e("md-ripple",null,null,-1)),Oo=["onClick"],jo=p(()=>e("md-ripple",null,null,-1)),Wo={class:"nowrap"},xo={class:"nowrap"},Jo={key:0},Xo={colspan:"8"},Yo={class:"no-data-placeholder"},Z=50,es=Je({__name:"AudiosView",setup(c){var Y,ee;const v=Xe(),{audioSortBy:k}=le(v),i=D([]),_=D(),{t:C}=ue(),{app:$,urlTokenKey:T,audioPlaying:q}=le(Ye()),u=et({text:"",tags:[]}),w=t=>{var n;return q.value&&((n=$.value)==null?void 0:n.audioCurrent)===t.path},g=tt.AUDIO,I=ot().query,E=D(parseInt(((Y=I.page)==null?void 0:Y.toString())??"1")),A=D(st(((ee=I.q)==null?void 0:ee.toString())??"")),S=D(""),{tags:L}=Ht(g,A,u,async t=>{S.value=pt(t),await mt(),Se()}),{addToTags:re}=Nt(g,i,L),{deleteItems:pe,deleteItem:me}=nt(),{allChecked:U,realAllChecked:V,selectRealAll:he,allCheckedAlertVisible:fe,clearSelection:R,toggleAllChecked:G,toggleRow:ve,toggleItemChecked:K,total:B,checked:O}=Ge(i),{downloadItems:ge}=lt(T,g,i,R,"audios.zip"),{downloadFile:ye}=Ct(T),{addItemsToPlaylist:be,addToPlaylist:ke}=lo(i,R),$e=wt(),Te=at(),{play:qe,playPath:Ce,loading:we,pause:Ie}=ao(),{loading:Ae,load:Se,refetch:z}=it({handle:(t,n)=>{n?_e(C(n),"error"):t&&(i.value=t.audios.map(M=>({...M,checked:!1})),B.value=t.audioCount)},document:ht,variables:()=>({offset:(E.value-1)*Z,limit:Z,query:S.value,sortBy:k.value}),appApi:!0});dt(E,t=>{ae(v,`/audios?page=${t}&q=${ie(A.value)}`)});function Be(){Te.push("/files"),It(At,{message:C("upload_audios")})}function De(t,n){k.value=n,t.close()}function Ve(t){u.tags.includes(t)?St(u.tags,n=>n.id===t.id):u.tags.push(t)}function Re(){A.value=Bt(u),j(),_.value.dismiss()}function j(){ae(v,`/audios?q=${ie(A.value)}`)}const W=t=>{t.type===g&&(R(),z())},x=t=>{t.type===g&&z()},J=t=>{t.type===g&&(R(),z())},X=()=>{B.value--};ct(()=>{b.on("item_tags_updated",x),b.on("items_tags_updated",W),b.on("media_item_deleted",X),b.on("media_items_deleted",J)}),ut(()=>{b.off("item_tags_updated",x),b.off("items_tags_updated",W),b.off("media_item_deleted",X),b.off("media_items_deleted",J)});function Me(t){Dt(Vt,{type:g,tags:L.value,item:{key:t.id,title:t.title,size:t.size},selected:L.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Ft,te=Rt,oe=Mt,se=no,ne=Pt,Pe=zt,Ze=Qt,Ee=ft,Le=Ke,Qe=Oe,ze=Zt,Fe=Yt,He=jt,Ne=Et,Ue=je,y=_t("tooltip");return l(),a(P,null,[e("div",io,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(B)})`},null,8,["current"]),o(O)?(l(),a(P,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=h(s=>o(pe)(o(g),i.value,o(V),S.value),["stop"]))},[co,d(te)])),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=h(s=>o(ge)(o(V),S.value),["stop"]))},[uo,d(oe)])),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=h(s=>o(be)(s,o(V),S.value),["stop"]))},[_o,d(se)])),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=h(s=>o(re)(o(V),S.value),["stop"]))},[ro,d(ne)])),[[y,t.$t("add_to_tags")]])],64)):F("",!0),m((l(),a("button",{class:"icon-button",onClick:h(Be,["stop"])},[mo,d(Pe)],8,po)),[[y,t.$t("upload")]]),d(Ee,null,{content:H(s=>[e("div",vo,[(l(!0),a(P,null,N(o($e),r=>(l(),a("md-menu-item",{onClick:ts=>De(s,r.value),selected:r.value===o(k)},[e("div",yo,f(t.$t(r.label)),1)],8,go))),256))])]),default:H(()=>[m((l(),a("button",ho,[fo,d(Ze)])),[[y,t.$t("sort")]])]),_:1}),d(Le,{ref_key:"searchInputRef",ref:_,modelValue:A.value,"onUpdate:modelValue":n[5]||(n[5]=s=>A.value=s),search:j},{filters:H(()=>[e("div",bo,[m(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>u.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ko),[[vt,u.text]]),e("label",$o,f(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(P,null,N(o(L),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:u.tags.includes(s),onClick:r=>Ve(s)},null,8,To))),128))]),e("div",qo,[e("md-filled-button",{onClick:h(Re,["stop"])},f(t.$t("search")),9,Co)])])]),_:1},8,["modelValue"])]),d(Qe,{limit:Z,total:o(B),"all-checked-alert-visible":o(fe),"real-all-checked":o(V),"select-real-all":o(he),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",wo,[e("table",Io,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(G)&&o(G)(...s)),checked:o(U),indeterminate:!o(U)&&o(O)},null,40,Ao)]),So,e("th",null,f(t.$t("name")),1),Bo,e("th",Do,f(t.$t("artist")),1),e("th",null,f(t.$t("tags")),1),e("th",null,f(t.$t("duration")),1),e("th",null,f(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(P,null,N(i.value,s=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:h(r=>o(ve)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...r)=>o(K)&&o(K)(...r)),checked:s.checked},null,40,Ro)]),e("td",null,[d(ze,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",Mo,f(s.title),1),e("td",Po,[e("div",Zo,[m((l(),a("button",{class:"icon-button",onClick:h(r=>o(me)(o(g),s),["stop"])},[Lo,d(te)],8,Eo)),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ye)(s.path,o(yt)(s.path).replace(" ","-")),["stop"])},[zo,d(oe)],8,Qo)),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ke)(r,s),["stop"])},[Ho,d(se)],8,Fo)),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>Me(s),["stop"])},[Uo,d(ne)],8,No)),[[y,t.$t("add_to_tags")]]),o(we)&&s.path===o(Ce)?(l(),a("md-circular-progress",Go)):w(s)?m((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=h(r=>o(Ie)(),["stop"]))},[Ko,d(Fe)])),[[y,t.$t("pause")]]):m((l(),a("button",{key:2,class:"icon-button",onClick:h(r=>o(qe)(s),["stop"])},[jo,d(He)],8,Oo)),[[y,t.$t("play")]])])]),e("td",null,f(s.artist),1),e("td",null,[d(Ne,{tags:s.tags,type:o(g)},null,8,["tags","type"])]),e("td",Wo,f(o(bt)(s.duration)),1),e("td",xo,f(o(kt)(s.size)),1)],10,Vo))),128))]),i.value.length?F("",!0):(l(),a("tfoot",Jo,[e("tr",null,[e("td",Xo,[e("div",Yo,f(t.$t(o($t)(o(Ae),o($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(B)>Z?(l(),rt(Ue,{key:0,modelValue:E.value,"onUpdate:modelValue":n[9]||(n[9]=s=>E.value=s),total:o(B),limit:Z},null,8,["modelValue","total"])):F("",!0)],64)}}});const cs=Lt(es,[["__scopeId","data-v-dd874a81"]]);export{cs as default}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-9fbc434f.js b/app/src/main/resources/web/assets/Breadcrumb-5456253f.js similarity index 81% rename from app/src/main/resources/web/assets/Breadcrumb-9fbc434f.js rename to app/src/main/resources/web/assets/Breadcrumb-5456253f.js index 22834080..dcf4f559 100644 --- a/app/src/main/resources/web/assets/Breadcrumb-9fbc434f.js +++ b/app/src/main/resources/web/assets/Breadcrumb-5456253f.js @@ -1 +1 @@ -import{d as _,e as l,o as s,c as r,F as d,J as p,a,t as o,j as f,bS as h,l as m,h as b,bH as g,C as y,_ as v}from"./index-4040ca75.js";const k={class:"breadcrumb"},B=["onClick"],S={class:"active"},C=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){y(u,t)}return(t,$)=>(s(),r("ol",k,[(s(!0),r(d,null,p(c.paths,n=>(s(),r("li",{key:n},[a("a",{href:"#",onClick:m(x=>i(n),["prevent"])},o(t.$t(`page_title.${f(h)(n)}`)),9,B)]))),128)),a("li",S,[b(o(typeof e.current=="function"?e.current():e.current),1),g(t.$slots,"current",{},void 0,!0)])]))}});const N=v(C,[["__scopeId","data-v-d292b348"]]);export{N as _}; +import{d as _,e as l,o as s,c as r,F as d,J as p,a,t as o,j as f,bS as h,l as m,h as b,bH as g,C as y,_ as v}from"./index-40f25da6.js";const k={class:"breadcrumb"},B=["onClick"],S={class:"active"},C=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){y(u,t)}return(t,$)=>(s(),r("ol",k,[(s(!0),r(d,null,p(c.paths,n=>(s(),r("li",{key:n},[a("a",{href:"#",onClick:m(x=>i(n),["prevent"])},o(t.$t(`page_title.${f(h)(n)}`)),9,B)]))),128)),a("li",S,[b(o(typeof e.current=="function"?e.current():e.current),1),g(t.$slots,"current",{},void 0,!0)])]))}});const N=v(C,[["__scopeId","data-v-d292b348"]]);export{N as _}; diff --git a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js similarity index 93% rename from app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js rename to app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js index b890c195..dbefc174 100644 --- a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js +++ b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js @@ -1 +1 @@ -import{d as _,u as k,e as v,r as I,g as B,x as g,aK as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-4040ca75.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; +import{d as _,u as k,e as v,r as I,g as B,x as g,aK as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-40f25da6.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; diff --git a/app/src/main/resources/web/assets/CallsRootView-d0307ed3.js b/app/src/main/resources/web/assets/CallsRootView-83600678.js similarity index 74% rename from app/src/main/resources/web/assets/CallsRootView-d0307ed3.js rename to app/src/main/resources/web/assets/CallsRootView-83600678.js index 65885340..ec9da6fb 100644 --- a/app/src/main/resources/web/assets/CallsRootView-d0307ed3.js +++ b/app/src/main/resources/web/assets/CallsRootView-83600678.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-4040ca75.js";import{g as h,M as T}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-40f25da6.js";import{g as h,M as T}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/CallsView-ea154f44.js b/app/src/main/resources/web/assets/CallsView-c5c9e223.js similarity index 94% rename from app/src/main/resources/web/assets/CallsView-ea154f44.js rename to app/src/main/resources/web/assets/CallsView-c5c9e223.js index ab9aadf1..7b2be022 100644 --- a/app/src/main/resources/web/assets/CallsView-ea154f44.js +++ b/app/src/main/resources/web/assets/CallsView-c5c9e223.js @@ -1,4 +1,4 @@ -import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-2b55c026.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Ie,K as Le,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as We,o,v as xe,I as Je,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-4040ca75.js";import{_ as rt}from"./call-outline-rounded-90d0aca0.js";import{_ as pt}from"./Breadcrumb-9fbc434f.js";import{u as _t,a as mt}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],It={class:"v-center"},Lt={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Ie(),c=Le({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{I(),L(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:I,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:L}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(I(),L())},j=e=>{e.type===u&&L()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:We,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` +import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-b6a3249f.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Ie,K as Le,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as We,o,v as xe,I as Je,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-40f25da6.js";import{_ as rt}from"./call-outline-rounded-027b1fc9.js";import{_ as pt}from"./Breadcrumb-5456253f.js";import{u as _t,a as mt}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],It={class:"v-center"},Lt={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Ie(),c=Le({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{I(),L(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:I,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:L}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(I(),L())},j=e=>{e.type===u&&L()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:We,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` mutation DeleteCall($query: String!) { deleteCalls(query: $query) } diff --git a/app/src/main/resources/web/assets/ContactsRootView-9b0848f1.js b/app/src/main/resources/web/assets/ContactsRootView-b98dc457.js similarity index 69% rename from app/src/main/resources/web/assets/ContactsRootView-9b0848f1.js rename to app/src/main/resources/web/assets/ContactsRootView-b98dc457.js index fbbe19b9..18ffab39 100644 --- a/app/src/main/resources/web/assets/ContactsRootView-9b0848f1.js +++ b/app/src/main/resources/web/assets/ContactsRootView-b98dc457.js @@ -1 +1 @@ -import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-4040ca75.js";import{g as l,M as y}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-40f25da6.js";import{g as l,M as y}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/ContactsView-4ee6f78f.js b/app/src/main/resources/web/assets/ContactsView-79362ad5.js similarity index 98% rename from app/src/main/resources/web/assets/ContactsView-4ee6f78f.js rename to app/src/main/resources/web/assets/ContactsView-79362ad5.js index d1a32eab..6c933eb8 100644 --- a/app/src/main/resources/web/assets/ContactsView-4ee6f78f.js +++ b/app/src/main/resources/web/assets/ContactsView-79362ad5.js @@ -1,4 +1,4 @@ -import{c as We,u as Je,_ as Pe,a as Ye,b as Xe}from"./list-2b55c026.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Te,K as Ve,u as Ue,i as se,aq as fe,ar as be,k as V,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Tt,B as Vt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Lt,am as Dt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-4040ca75.js";import{_ as Rt}from"./call-outline-rounded-90d0aca0.js";import{_ as Bt}from"./Breadcrumb-9fbc434f.js";import{u as Se,a as Ae}from"./vee-validate.esm-a8549f5b.js";import{u as Qt,a as Zt}from"./tags-5a94e769.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Wt=[Kt];function Jt(g,$){return o(),n("svg",Ht,Wt)}const Pt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Jt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const P={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Te(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Tl=["placeholder","onUpdate:modelValue"],Vl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Ll=["value"],Dl={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Wl=["value"],Jl={slot:"headline"},Pl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Ve({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` +import{c as We,u as Je,_ as Pe,a as Ye,b as Xe}from"./list-b6a3249f.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Te,K as Ve,u as Ue,i as se,aq as fe,ar as be,k as V,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Tt,B as Vt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Lt,am as Dt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-40f25da6.js";import{_ as Rt}from"./call-outline-rounded-027b1fc9.js";import{_ as Bt}from"./Breadcrumb-5456253f.js";import{u as Se,a as Ae}from"./vee-validate.esm-7088b7c0.js";import{u as Qt,a as Zt}from"./tags-15dfcb58.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Wt=[Kt];function Jt(g,$){return o(),n("svg",Ht,Wt)}const Pt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Jt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const P={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Te(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Tl=["placeholder","onUpdate:modelValue"],Vl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Ll=["value"],Dl={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Wl=["value"],Jl={slot:"headline"},Pl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Ve({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` mutation createContact($input: ContactInput!) { createContact(input: $input) { ...ContactFragment diff --git a/app/src/main/resources/web/assets/DeviceInfoView-c5fa5356.js b/app/src/main/resources/web/assets/DeviceInfoView-333cc003.js similarity index 96% rename from app/src/main/resources/web/assets/DeviceInfoView-c5fa5356.js rename to app/src/main/resources/web/assets/DeviceInfoView-333cc003.js index fd136f0e..0a6e96da 100644 --- a/app/src/main/resources/web/assets/DeviceInfoView-c5fa5356.js +++ b/app/src/main/resources/web/assets/DeviceInfoView-333cc003.js @@ -1 +1 @@ -import{_ as V}from"./Breadcrumb-9fbc434f.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,by as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-4040ca75.js";const F={class:"page-container"},x={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",F,[a("div",x,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; +import{_ as V}from"./Breadcrumb-5456253f.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,by as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-40f25da6.js";const F={class:"page-container"},x={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",F,[a("div",x,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-a73d5ee2.js b/app/src/main/resources/web/assets/DevicesView-3fb0718f.js similarity index 92% rename from app/src/main/resources/web/assets/DevicesView-a73d5ee2.js rename to app/src/main/resources/web/assets/DevicesView-3fb0718f.js index 5d7b5350..8de8115a 100644 --- a/app/src/main/resources/web/assets/DevicesView-a73d5ee2.js +++ b/app/src/main/resources/web/assets/DevicesView-3fb0718f.js @@ -1,4 +1,4 @@ -import{d as y,u as A,r as C,g as F,x as N,ab as r,c3 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-4040ca75.js";import{_ as S}from"./Breadcrumb-9fbc434f.js";import{E as j}from"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` +import{d as y,u as A,r as C,g as F,x as N,ab as r,c3 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-40f25da6.js";import{_ as S}from"./Breadcrumb-5456253f.js";import{E as j}from"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` query { devices { ...DeviceFragment diff --git a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js similarity index 92% rename from app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js rename to app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js index 6aa67d48..d157917e 100644 --- a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js +++ b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js @@ -1 +1 @@ -import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-4040ca75.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; +import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-40f25da6.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; diff --git a/app/src/main/resources/web/assets/EditValueModal-2509bdbc.js b/app/src/main/resources/web/assets/EditValueModal-068407b0.js similarity index 91% rename from app/src/main/resources/web/assets/EditValueModal-2509bdbc.js rename to app/src/main/resources/web/assets/EditValueModal-068407b0.js index d68fef21..293286e0 100644 --- a/app/src/main/resources/web/assets/EditValueModal-2509bdbc.js +++ b/app/src/main/resources/web/assets/EditValueModal-068407b0.js @@ -1 +1 @@ -import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as d,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-4040ca75.js";import{u as B,a as C}from"./vee-validate.esm-a8549f5b.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:f,loading:m,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:u}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{f(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,d(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(u),"error-text":t(u)?e.$t(t(u)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},d(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(m),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},d(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-78f7a9dc"]]);export{I as E}; +import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as d,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-40f25da6.js";import{u as B,a as C}from"./vee-validate.esm-7088b7c0.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:f,loading:m,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:u}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{f(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,d(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(u),"error-text":t(u)?e.$t(t(u)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},d(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(m),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},d(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-78f7a9dc"]]);export{I as E}; diff --git a/app/src/main/resources/web/assets/FeedEntryView-0a490c72.js b/app/src/main/resources/web/assets/FeedEntryView-34f4210f.js similarity index 95% rename from app/src/main/resources/web/assets/FeedEntryView-0a490c72.js rename to app/src/main/resources/web/assets/FeedEntryView-34f4210f.js index 4bf33073..d85a9ddb 100644 --- a/app/src/main/resources/web/assets/FeedEntryView-0a490c72.js +++ b/app/src/main/resources/web/assets/FeedEntryView-34f4210f.js @@ -1 +1 @@ -import{_ as P}from"./print-outline-rounded-5fc4afb9.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as S,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cm as de,aT as _e,cn as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as Te,a4 as ye,_ as fe}from"./index-4040ca75.js";import{u as qe}from"./markdown-7d435800.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},xe=["onClick"],Ae=h(()=>a("md-ripple",null,null,-1)),Se={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),T=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=S({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});S({handle:(e,t)=>{t?Q(c(t),"error"):e&&(T.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(Te,{type:m,tags:T.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=T.value)==null?void 0:t.filter(y=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===y.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,x;const y=ue,l=ye,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(y,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,A=>(s(),o("span",{key:A.id,class:"badge"},q(A.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[Ae,p(l)],8,xe)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Se)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(x=n.value)==null?void 0:x.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; +import{_ as P}from"./print-outline-rounded-f6e90fab.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as S,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cm as de,aT as _e,cn as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as Te,a4 as ye,_ as fe}from"./index-40f25da6.js";import{u as qe}from"./markdown-c78c3af8.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},xe=["onClick"],Ae=h(()=>a("md-ripple",null,null,-1)),Se={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),T=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=S({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});S({handle:(e,t)=>{t?Q(c(t),"error"):e&&(T.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(Te,{type:m,tags:T.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=T.value)==null?void 0:t.filter(y=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===y.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,x;const y=ue,l=ye,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(y,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,A=>(s(),o("span",{key:A.id,class:"badge"},q(A.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[Ae,p(l)],8,xe)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Se)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(x=n.value)==null?void 0:x.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; diff --git a/app/src/main/resources/web/assets/FeedsRootView-16561317.js b/app/src/main/resources/web/assets/FeedsRootView-3b90be68.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsRootView-16561317.js rename to app/src/main/resources/web/assets/FeedsRootView-3b90be68.js index cf9f7ecd..d5ddcdb2 100644 --- a/app/src/main/resources/web/assets/FeedsRootView-16561317.js +++ b/app/src/main/resources/web/assets/FeedsRootView-3b90be68.js @@ -1 +1 @@ -import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{d as I,r as y,i as D,ca as ie,an as P,U,ao as V,o as C,c as g,a as t,t as i,m as N,v as j,j as e,n as H,ap as J,h as q,_ as de,cb as ce,u as re,e as ue,D as pe,E as _e,cc as fe,g as me,cd as ve,x as T,G as he,R as $e,p as w,H as L,ce as be,cf as ke,cg as Ce,F as G,J as S,l as B,I as z,bC as K,a2 as R,T as ge,C as E,W as ye,aI as Fe,ch as xe,ac as we}from"./index-4040ca75.js";import{g as O,M as Me}from"./splitpanes.es-20249936.js";import{u as W,a as Y}from"./vee-validate.esm-a8549f5b.js";import"./EditValueModal-2509bdbc.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ie=["checked"],Ne={slot:"actions"},qe=["disabled"],Qe=I({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=$(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(C(),g("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ie),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",Ne,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,qe)])]))}});const Te=de(Qe,[["__scopeId","data-v-24d21569"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=I({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=$(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return C(),g("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ue),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=I({__name:"FeedsRootView",setup(M){const{t:d}=re(),$=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],b=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:be,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:Ce,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=ge([{name:"feed",op:"",value:K(s.name)}]);E($,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E($,"/feeds")}})}}]})}function te(){E($,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=$e("tooltip");return C(),g("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[q(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[N((C(),g("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>b.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:b.value,onClosed:a[1]||(a[1]=()=>b.value=!1)},[(C(),g(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(C(!0),g(G,null,S(f.value,h=>(C(),g("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; +import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{d as I,r as y,i as D,ca as ie,an as P,U,ao as V,o as C,c as g,a as t,t as i,m as N,v as j,j as e,n as H,ap as J,h as q,_ as de,cb as ce,u as re,e as ue,D as pe,E as _e,cc as fe,g as me,cd as ve,x as T,G as he,R as $e,p as w,H as L,ce as be,cf as ke,cg as Ce,F as G,J as S,l as B,I as z,bC as K,a2 as R,T as ge,C as E,W as ye,aI as Fe,ch as xe,ac as we}from"./index-40f25da6.js";import{g as O,M as Me}from"./splitpanes.es-a34c2504.js";import{u as W,a as Y}from"./vee-validate.esm-7088b7c0.js";import"./EditValueModal-068407b0.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ie=["checked"],Ne={slot:"actions"},qe=["disabled"],Qe=I({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=$(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(C(),g("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ie),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",Ne,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,qe)])]))}});const Te=de(Qe,[["__scopeId","data-v-24d21569"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=I({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=$(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return C(),g("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ue),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=I({__name:"FeedsRootView",setup(M){const{t:d}=re(),$=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],b=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:be,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:Ce,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=ge([{name:"feed",op:"",value:K(s.name)}]);E($,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E($,"/feeds")}})}}]})}function te(){E($,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=$e("tooltip");return C(),g("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[q(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[N((C(),g("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>b.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:b.value,onClosed:a[1]||(a[1]=()=>b.value=!1)},[(C(),g(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(C(!0),g(G,null,S(f.value,h=>(C(),g("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; diff --git a/app/src/main/resources/web/assets/FeedsView-b953d3d9.js b/app/src/main/resources/web/assets/FeedsView-c929e406.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsView-b953d3d9.js rename to app/src/main/resources/web/assets/FeedsView-c929e406.js index 0cc8b0a6..0e0de5cd 100644 --- a/app/src/main/resources/web/assets/FeedsView-b953d3d9.js +++ b/app/src/main/resources/web/assets/FeedsView-c929e406.js @@ -1,4 +1,4 @@ -import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-2b55c026.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ci as Be,x as N,cj as Ge,ag as He,bC as ee,T as ze,U as je,ck as Ke,C as te,W as se,cl as Pe,o,v as Ye,I as Ze,ax as xe,Y as Je,h as Oe,Z as We,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aZ as nt,ad as ot,a4 as dt,a6 as it}from"./index-4040ca75.js";import{_ as ct}from"./Breadcrumb-9fbc434f.js";import{a as ut}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var O,W;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((O=G.page)==null?void 0:O.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((W=G.q)==null?void 0:W.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:j,toggleRow:ce,total:k,checked:K}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` +import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-b6a3249f.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ci as Be,x as N,cj as Ge,ag as He,bC as ee,T as ze,U as je,ck as Ke,C as te,W as se,cl as Pe,o,v as Ye,I as Ze,ax as xe,Y as Je,h as Oe,Z as We,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aZ as nt,ad as ot,a4 as dt,a6 as it}from"./index-40f25da6.js";import{_ as ct}from"./Breadcrumb-5456253f.js";import{a as ut}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var O,W;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((O=G.page)==null?void 0:O.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((W=G.q)==null?void 0:W.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:j,toggleRow:ce,total:k,checked:K}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` mutation deleteFeedEntry($query: String!) { deleteFeedEntries(query: $query) } diff --git a/app/src/main/resources/web/assets/FilesRecentView-1a58103f.js b/app/src/main/resources/web/assets/FilesRecentView-3cb4bc25.js similarity index 98% rename from app/src/main/resources/web/assets/FilesRecentView-1a58103f.js rename to app/src/main/resources/web/assets/FilesRecentView-3cb4bc25.js index 4f29f0f4..ab21cbf7 100644 --- a/app/src/main/resources/web/assets/FilesRecentView-1a58103f.js +++ b/app/src/main/resources/web/assets/FilesRecentView-3cb4bc25.js @@ -1 +1 @@ -import{d as K,u as W,r as b,f as X,s as q,br as P,i as Q,aC as Z,R as H,c as a,a as c,p as V,m as Y,l as F,k as i,h as m,t as r,j as o,F as w,J as ee,al as te,bh as se,o as n,I as oe,bi as ae,bj as ne,ax as ce,Z as le,z as ie,$ as re,A as de,B as ue,bl as pe,bn as R,ah as S,bo as g,aI as _e,am as he,bq as me,_ as ke}from"./index-4040ca75.js";import{_ as ve}from"./Breadcrumb-9fbc434f.js";const be=p=>(de("data-v-88cef092"),p=p(),ue(),p),we={class:"v-toolbar"},ge={class:"right-actions"},fe=["onClick"],ye=be(()=>c("md-ripple",null,null,-1)),Ie={class:"form-check-label"},Ce=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=K({__name:"FilesRecentView",setup(p){const{t:k}=W(),E=b([]),u=b(!1),f=X(),{app:y,urlTokenKey:_}=q(f),{loading:x,files:d}=P(_),{downloadFile:I,downloadDir:$,downloadFiles:A}=te(_),{view:C}=me(E,(e,t)=>{f.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=Q({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),d.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return d.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:pe(),value:JSON.stringify(D())})},L=Z(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(_.value,e.path),"_blank"):g(e.name)?C(d.value,e):I(e.path)}function G(e,t){e.preventDefault();let l;t.isDir?l=[{label:k("download"),onClick:()=>{$(t.path)}}]:(l=[],(R(t.name)||g(t.name))&&l.push({label:k("open"),onClick:()=>{g(t.name)?C(d.value,t):window.open(S(_.value,t.path),"_blank")}}),l.push({label:k("download"),onClick:()=>{I(t.path)}})),_e({x:e.x,y:e.y,items:l})}return(e,t)=>{const l=ve,j=he,J=H("tooltip");return n(),a(w,null,[c("div",we,[V(l,{current:e.$t("recent_files")},null,8,["current"]),c("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[ye,V(j)],8,fe)),[[J,e.$t("download")]]):i("",!0),c("label",Ie,[c("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ce),m(r(e.$t("select_mode")),1)])])]),c("div",De,[o(y).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(d),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(ce)(s.fileId)+"&w=50&h=50",width:"50",height:"50",onerror:"this.src='/broken-image.png'"},null,8,Re)):i("",!0),c("div",Se,[m(r(s.name)+" ",1),c("div",Ee,[m(r(o(le)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+r(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(d).length===0?(n(),a("div",xe,r(e.$t(o(re)(o(x),o(y).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,r(e.$t("path"))+": "+r(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-88cef092"]]);export{ze as default}; +import{d as K,u as W,r as b,f as X,s as q,br as P,i as Q,aC as Z,R as H,c as a,a as c,p as V,m as Y,l as F,k as i,h as m,t as r,j as o,F as w,J as ee,al as te,bh as se,o as n,I as oe,bi as ae,bj as ne,ax as ce,Z as le,z as ie,$ as re,A as de,B as ue,bl as pe,bn as R,ah as S,bo as g,aI as _e,am as he,bq as me,_ as ke}from"./index-40f25da6.js";import{_ as ve}from"./Breadcrumb-5456253f.js";const be=p=>(de("data-v-88cef092"),p=p(),ue(),p),we={class:"v-toolbar"},ge={class:"right-actions"},fe=["onClick"],ye=be(()=>c("md-ripple",null,null,-1)),Ie={class:"form-check-label"},Ce=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=K({__name:"FilesRecentView",setup(p){const{t:k}=W(),E=b([]),u=b(!1),f=X(),{app:y,urlTokenKey:_}=q(f),{loading:x,files:d}=P(_),{downloadFile:I,downloadDir:$,downloadFiles:A}=te(_),{view:C}=me(E,(e,t)=>{f.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=Q({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),d.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return d.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:pe(),value:JSON.stringify(D())})},L=Z(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(_.value,e.path),"_blank"):g(e.name)?C(d.value,e):I(e.path)}function G(e,t){e.preventDefault();let l;t.isDir?l=[{label:k("download"),onClick:()=>{$(t.path)}}]:(l=[],(R(t.name)||g(t.name))&&l.push({label:k("open"),onClick:()=>{g(t.name)?C(d.value,t):window.open(S(_.value,t.path),"_blank")}}),l.push({label:k("download"),onClick:()=>{I(t.path)}})),_e({x:e.x,y:e.y,items:l})}return(e,t)=>{const l=ve,j=he,J=H("tooltip");return n(),a(w,null,[c("div",we,[V(l,{current:e.$t("recent_files")},null,8,["current"]),c("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[ye,V(j)],8,fe)),[[J,e.$t("download")]]):i("",!0),c("label",Ie,[c("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ce),m(r(e.$t("select_mode")),1)])])]),c("div",De,[o(y).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(d),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(ce)(s.fileId)+"&w=50&h=50",width:"50",height:"50",onerror:"this.src='/broken-image.png'"},null,8,Re)):i("",!0),c("div",Se,[m(r(s.name)+" ",1),c("div",Ee,[m(r(o(le)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+r(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(d).length===0?(n(),a("div",xe,r(e.$t(o(re)(o(x),o(y).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,r(e.$t("path"))+": "+r(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-88cef092"]]);export{ze as default}; diff --git a/app/src/main/resources/web/assets/FilesRootView-0cea3334.js b/app/src/main/resources/web/assets/FilesRootView-2c249124.js similarity index 91% rename from app/src/main/resources/web/assets/FilesRootView-0cea3334.js rename to app/src/main/resources/web/assets/FilesRootView-2c249124.js index 5bcd73d6..123c236d 100644 --- a/app/src/main/resources/web/assets/FilesRootView-0cea3334.js +++ b/app/src/main/resources/web/assets/FilesRootView-2c249124.js @@ -1 +1 @@ -import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-4040ca75.js";import{g as k,M}from"./splitpanes.es-20249936.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; +import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-40f25da6.js";import{g as k,M}from"./splitpanes.es-a34c2504.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/FilesView-47b82c11.js b/app/src/main/resources/web/assets/FilesView-69259bc9.js similarity index 96% rename from app/src/main/resources/web/assets/FilesView-47b82c11.js rename to app/src/main/resources/web/assets/FilesView-69259bc9.js index d6017fde..602b1363 100644 --- a/app/src/main/resources/web/assets/FilesView-47b82c11.js +++ b/app/src/main/resources/web/assets/FilesView-69259bc9.js @@ -1 +1 @@ -import{o as a,c,a as i,d as dt,u as _t,r as V,D as pt,M as mt,ag as ht,e as ft,s as ve,f as bt,bb as vt,bc as kt,bd as gt,be as yt,bf as Ct,bg as Tt,ae as ke,i as qt,aC as wt,w as Dt,O as $t,P as H,Q as It,R as St,p as m,F as v,m as C,l as F,k as h,h as T,t as p,j as n,H as M,al as Vt,bh as Ft,at as Mt,J,S as K,I as Bt,bi as xt,bj as Et,ax as Pt,Z as Zt,z as k,$ as Ht,A as Lt,B as Rt,aG as Ut,bk as Wt,bl as zt,a2 as L,bm as ge,bn as ye,ah as Ce,bo as X,aI as Te,ad as Nt,am as At,bp as Ot,bq as Gt,_ as Qt}from"./index-4040ca75.js";import{_ as jt}from"./sort-rounded-21b00447.js";import{_ as Jt}from"./refresh-rounded-ba092d85.js";import{_ as Kt}from"./Breadcrumb-9fbc434f.js";import{g as qe,M as Xt}from"./splitpanes.es-20249936.js";import{E as we}from"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eo=i("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),to=[eo];function oo(g,s){return a(),c("svg",Yt,to)}const so={name:"material-symbols-content-cut-rounded",render:oo},no={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lo=i("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),ao=[lo];function io(g,s){return a(),c("svg",no,ao)}const co={name:"material-symbols-content-copy-outline-rounded",render:io},q=g=>(Lt("data-v-6a8cd392"),g=g(),Rt(),g),ro={class:"v-toolbar"},uo={class:"right-actions"},_o=q(()=>i("md-ripple",null,null,-1)),po=q(()=>i("md-ripple",null,null,-1)),mo=["onClick"],ho=q(()=>i("md-ripple",null,null,-1)),fo=["onClick"],bo=q(()=>i("md-ripple",null,null,-1)),vo={class:"form-check"},ko={class:"form-check-label"},go=["checked"],yo={class:"form-check"},Co={class:"form-check-label"},To=["checked"],qo=q(()=>i("md-ripple",null,null,-1)),wo={class:"icon-button btn-sort"},Do=q(()=>i("md-ripple",null,null,-1)),$o={class:"menu-items"},Io=["onClick","selected"],So={slot:"headline"},Vo={class:"file-items"},Fo=["onClick","onDblclick","onContextmenu"],Mo=["checked"],Bo=["src"],xo={class:"title"},Eo={style:{"font-size":"0.75rem"}},Po=["onContextmenu"],Zo={key:0,class:"no-files"},Ho={key:0,class:"file-item-info"},Lo=dt({__name:"FilesView",setup(g){var me,he,fe,be;const{t:s}=_t(),De=V([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=V(mt(((me=$e.q)==null?void 0:me.toString())??"")),R=ht(ee.value),b=V(((he=R.find(e=>e.name==="path"))==null?void 0:he.value)??"");let B=((fe=R.find(e=>e.name==="dir"))==null?void 0:fe.value)??"";B||(((be=R.find(t=>t.name==="isDir"))==null?void 0:be.value)==="1"?B=b.value:B=b.value.substring(0,b.value.lastIndexOf("/")));const Ie=V(B),Se=Ut(),w=V(!1),te=ft(),{fileShowHidden:D,fileSortBy:U}=ve(te),oe=bt(),{app:$,urlTokenKey:I,selectedFiles:Ve}=ve(oe);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Fe,panels:_,currentDir:E,refetch:W}=vt(I,x,Ie.value,U),{createPath:Me,createVariables:Be,createMutation:xe}=kt(I,_),{renameValue:Ee,renamePath:Pe,renameDone:Ze,renameMutation:He,renameVariables:Le}=gt(_),{internal:se,sdcard:ne,usb:Re,refetch:z}=yt(),{onDeleted:N}=Wt(_,E,z),{downloadFile:le,downloadDir:Ue,downloadFiles:We}=Vt(I),{view:A}=Gt(De,(e,t)=>{oe.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:P,select:ze}=Ct(E,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:G}=Tt(Ve,W,z),{input:Ne,upload:ce,uploadChanged:re}=ke(),{input:Ae,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Ge}=qt({document:Ft,appApi:!0});Ge(e=>{We(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(o=>{o.checked=!1})})});const S=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(o=>{o.checked&&(o.panel=t,e.push(o))})}),e};function Qe(e){w.value=e.target.checked}function je(e){D.value=e.target.checked}const Je=()=>{Oe({key:zt(),value:JSON.stringify(S().map(e=>({path:e.path})))})},Ke=wt(()=>S().length>0),Xe=()=>{L(ge,{files:S(),onDone:N})};b.value&&Dt(()=>_.value.length,()=>{if(_.value.length>0&&b.value){const t=_.value[_.value.length-1].items.find(o=>o.path===b.value);t&&(P.value=t,b.value="")}});function Ye(){var e,t,o,r;if(d){if(d==="sdcard")return`${s("sdcard")} (${s("storage_free_total",{free:k(((e=ne.value)==null?void 0:e.freeBytes)??0),total:k(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return s("app_name");if(d.startsWith("usb")){const Z=parseInt(d.substring(3)),f=Re.value[Z-1];return`${s("usb_storage")} ${Z} (${s("storage_free_total",{free:k((f==null?void 0:f.freeBytes)??0),total:k((f==null?void 0:f.totalBytes)??0)})})`}}return`${s("page_title.files")} (${s("storage_free_total",{free:k(((o=se.value)==null?void 0:o.freeBytes)??0),total:k(((r=se.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(w.value){t.checked=!t.checked;return}ze(e,t)}function tt(e,t){U.value=t,e.close()}function ot(){W(E.value)}function st(e,t){t.isDir||(ye(t.name)?window.open(Ce(I.value,t.path),"_blank"):X(t.name)?A(D?e.items:e.items.filter(o=>!o.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const o=[{label:s("create_folder"),onClick:()=>{Me.value=t,L(we,{title:s("name"),placeholder:s("name"),mutation:xe,getVariables:Be})}},{label:s("upload_files"),onClick:()=>{ce(t)}},{label:s("upload_folder"),onClick:()=>{ue(t)}}];ae()&&o.push({label:s("paste"),onClick:()=>{G(t)}}),Te({x:e.x,y:e.y,items:o})}function lt(e,t,o){e.preventDefault();let r;o.isDir?r=[{label:s("upload_files"),onClick:()=>{ce(o.path)}},{label:s("upload_folder"),onClick:()=>{ue(o.path)}},{label:s("download"),onClick:()=>{Ue(o.path)}}]:(r=[],(ye(o.name)||X(o.name))&&r.push({label:s("open"),onClick:()=>{X(o.name)?A(t.items,o):window.open(Ce(I.value,o.path),"_blank")}}),r.push({label:s("download"),onClick:()=>{le(o.path)}})),r.push({label:s("duplicate"),onClick:()=>{O([o]),G(t.dir)}}),r.push({label:s("cut"),onClick:()=>{o.panel=t,ie([o])}}),r.push({label:s("copy"),onClick:()=>{O([o])}}),o.isDir&&ae()&&r.push({label:s("paste"),onClick:()=>{G(o.path)}}),r=[...r,{label:s("rename"),onClick:()=>{Ee.value=o.name,Pe.value=o.path,L(we,{title:s("rename"),placeholder:s("name"),value:o.name,mutation:He,getVariables:Le,done:Ze})}},{label:s("delete"),onClick:()=>{L(ge,{files:[o],onDone:N})}}],Te({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{W(e.dir),z()},1e3)},pe=e=>{N([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),It(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const o=Kt,r=co,Z=so,f=Nt,at=At,it=Jt,ct=jt,rt=Mt,ut=Ot,y=St("tooltip");return a(),c(v,null,[i("div",ro,[m(o,{current:Ye}),i("div",uo,[w.value&&Ke.value?(a(),c(v,{key:0},[C((a(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=F(()=>n(O)(S()),["stop"]))},[_o,m(r)])),[[y,e.$t("copy")]]),C((a(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=F(()=>n(ie)(S()),["stop"]))},[po,m(Z)])),[[y,e.$t("cut")]]),C((a(),c("button",{class:"icon-button",onClick:F(Xe,["stop"])},[ho,m(f)],8,mo)),[[y,e.$t("delete")]]),C((a(),c("button",{class:"icon-button",onClick:F(Je,["stop"])},[bo,m(at)],8,fo)),[[y,e.$t("download")]])],64)):h("",!0),i("div",vo,[i("label",ko,[i("md-checkbox",{"touch-target":"wrapper",onChange:Qe,checked:w.value},null,40,go),T(" "+p(e.$t("select_mode")),1)])]),i("div",yo,[i("label",Co,[i("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:n(D)},null,40,To),T(p(e.$t("show_hidden")),1)])]),C((a(),c("button",{class:"icon-button btn-refresh",onClick:ot},[qo,m(it)])),[[y,e.$t("refresh")]]),m(rt,null,{content:M(u=>[i("div",$o,[(a(!0),c(v,null,J(n(Se),l=>(a(),c("md-menu-item",{onClick:Q=>tt(u,l.value),selected:l.value===n(U)},[i("div",So,p(e.$t(l.label)),1)],8,Io))),256))])]),default:M(()=>[C((a(),c("button",wo,[Do,m(ct)])),[[y,e.$t("sort")]])]),_:1})])]),m(n(Xt),{class:"panel-container"},{default:M(()=>[(a(!0),c(v,null,J(n(_),u=>(a(),K(n(qe),{key:u.dir},{default:M(()=>[i("div",Vo,[(a(!0),c(v,null,J(u.items,l=>{var Q;return a(),c(v,{key:l.path},[!l.name.startsWith(".")||n(D)?(a(),c("div",{key:0,class:Bt(["file-item",{active:(n(E)+"/").startsWith(l.path+"/")||((Q=n(P))==null?void 0:Q.path)===l.path}]),onClick:j=>et(u,l),onDblclick:F(j=>st(u,l),["prevent"]),onContextmenu:j=>lt(j,u,l)},[w.value?(a(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:l.checked},null,8,Mo)):h("",!0),l.isDir?(a(),K(ut,{key:1})):h("",!0),n(xt)(l.name)||n(Et)(l.name)?(a(),c("img",{key:2,src:n(Pt)(l.fileId)+"&w=50&h=50",width:"50",height:"50",onerror:"this.src='/broken-image.png'"},null,8,Bo)):h("",!0),i("div",xo,[T(p(l.name)+" ",1),i("div",Eo,[T(p(n(Zt)(l.updatedAt)),1),l.isDir?h("",!0):(a(),c(v,{key:0},[T(", "+p(n(k)(l.size)),1)],64))])])],42,Fo)):h("",!0)],64)}),128)),i("div",{class:"empty",onContextmenu:l=>nt(l,u.dir)},[u.items.filter(l=>!l.name.startsWith(".")||n(D)).length===0?(a(),c("div",Zo,p(e.$t("no_files")),1)):h("",!0)],40,Po)])]),_:2},1024))),128)),n(_).length===0?(a(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:M(()=>[T(p(e.$t(n(Ht)(n(Fe),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(P)?(a(),c("div",Ho,p(e.$t("path"))+": "+p(n(P).path),1)):h("",!0),i("input",{ref_key:"fileInput",ref:Ne,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),i("input",{ref_key:"dirFileInput",ref:Ae,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const Go=Qt(Lo,[["__scopeId","data-v-6a8cd392"]]);export{Go as default}; +import{o as a,c,a as i,d as dt,u as _t,r as V,D as pt,M as mt,ag as ht,e as ft,s as ve,f as bt,bb as vt,bc as kt,bd as gt,be as yt,bf as Ct,bg as Tt,ae as ke,i as qt,aC as wt,w as Dt,O as $t,P as H,Q as It,R as St,p as m,F as v,m as C,l as F,k as h,h as T,t as p,j as n,H as M,al as Vt,bh as Ft,at as Mt,J,S as K,I as Bt,bi as xt,bj as Et,ax as Pt,Z as Zt,z as k,$ as Ht,A as Lt,B as Rt,aG as Ut,bk as Wt,bl as zt,a2 as L,bm as ge,bn as ye,ah as Ce,bo as X,aI as Te,ad as Nt,am as At,bp as Ot,bq as Gt,_ as Qt}from"./index-40f25da6.js";import{_ as jt}from"./sort-rounded-6ce111fd.js";import{_ as Jt}from"./refresh-rounded-4826b5dd.js";import{_ as Kt}from"./Breadcrumb-5456253f.js";import{g as qe,M as Xt}from"./splitpanes.es-a34c2504.js";import{E as we}from"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eo=i("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),to=[eo];function oo(g,s){return a(),c("svg",Yt,to)}const so={name:"material-symbols-content-cut-rounded",render:oo},no={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lo=i("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),ao=[lo];function io(g,s){return a(),c("svg",no,ao)}const co={name:"material-symbols-content-copy-outline-rounded",render:io},q=g=>(Lt("data-v-6a8cd392"),g=g(),Rt(),g),ro={class:"v-toolbar"},uo={class:"right-actions"},_o=q(()=>i("md-ripple",null,null,-1)),po=q(()=>i("md-ripple",null,null,-1)),mo=["onClick"],ho=q(()=>i("md-ripple",null,null,-1)),fo=["onClick"],bo=q(()=>i("md-ripple",null,null,-1)),vo={class:"form-check"},ko={class:"form-check-label"},go=["checked"],yo={class:"form-check"},Co={class:"form-check-label"},To=["checked"],qo=q(()=>i("md-ripple",null,null,-1)),wo={class:"icon-button btn-sort"},Do=q(()=>i("md-ripple",null,null,-1)),$o={class:"menu-items"},Io=["onClick","selected"],So={slot:"headline"},Vo={class:"file-items"},Fo=["onClick","onDblclick","onContextmenu"],Mo=["checked"],Bo=["src"],xo={class:"title"},Eo={style:{"font-size":"0.75rem"}},Po=["onContextmenu"],Zo={key:0,class:"no-files"},Ho={key:0,class:"file-item-info"},Lo=dt({__name:"FilesView",setup(g){var me,he,fe,be;const{t:s}=_t(),De=V([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=V(mt(((me=$e.q)==null?void 0:me.toString())??"")),R=ht(ee.value),b=V(((he=R.find(e=>e.name==="path"))==null?void 0:he.value)??"");let B=((fe=R.find(e=>e.name==="dir"))==null?void 0:fe.value)??"";B||(((be=R.find(t=>t.name==="isDir"))==null?void 0:be.value)==="1"?B=b.value:B=b.value.substring(0,b.value.lastIndexOf("/")));const Ie=V(B),Se=Ut(),w=V(!1),te=ft(),{fileShowHidden:D,fileSortBy:U}=ve(te),oe=bt(),{app:$,urlTokenKey:I,selectedFiles:Ve}=ve(oe);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Fe,panels:_,currentDir:E,refetch:W}=vt(I,x,Ie.value,U),{createPath:Me,createVariables:Be,createMutation:xe}=kt(I,_),{renameValue:Ee,renamePath:Pe,renameDone:Ze,renameMutation:He,renameVariables:Le}=gt(_),{internal:se,sdcard:ne,usb:Re,refetch:z}=yt(),{onDeleted:N}=Wt(_,E,z),{downloadFile:le,downloadDir:Ue,downloadFiles:We}=Vt(I),{view:A}=Gt(De,(e,t)=>{oe.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:P,select:ze}=Ct(E,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:G}=Tt(Ve,W,z),{input:Ne,upload:ce,uploadChanged:re}=ke(),{input:Ae,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Ge}=qt({document:Ft,appApi:!0});Ge(e=>{We(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(o=>{o.checked=!1})})});const S=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(o=>{o.checked&&(o.panel=t,e.push(o))})}),e};function Qe(e){w.value=e.target.checked}function je(e){D.value=e.target.checked}const Je=()=>{Oe({key:zt(),value:JSON.stringify(S().map(e=>({path:e.path})))})},Ke=wt(()=>S().length>0),Xe=()=>{L(ge,{files:S(),onDone:N})};b.value&&Dt(()=>_.value.length,()=>{if(_.value.length>0&&b.value){const t=_.value[_.value.length-1].items.find(o=>o.path===b.value);t&&(P.value=t,b.value="")}});function Ye(){var e,t,o,r;if(d){if(d==="sdcard")return`${s("sdcard")} (${s("storage_free_total",{free:k(((e=ne.value)==null?void 0:e.freeBytes)??0),total:k(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return s("app_name");if(d.startsWith("usb")){const Z=parseInt(d.substring(3)),f=Re.value[Z-1];return`${s("usb_storage")} ${Z} (${s("storage_free_total",{free:k((f==null?void 0:f.freeBytes)??0),total:k((f==null?void 0:f.totalBytes)??0)})})`}}return`${s("page_title.files")} (${s("storage_free_total",{free:k(((o=se.value)==null?void 0:o.freeBytes)??0),total:k(((r=se.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(w.value){t.checked=!t.checked;return}ze(e,t)}function tt(e,t){U.value=t,e.close()}function ot(){W(E.value)}function st(e,t){t.isDir||(ye(t.name)?window.open(Ce(I.value,t.path),"_blank"):X(t.name)?A(D?e.items:e.items.filter(o=>!o.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const o=[{label:s("create_folder"),onClick:()=>{Me.value=t,L(we,{title:s("name"),placeholder:s("name"),mutation:xe,getVariables:Be})}},{label:s("upload_files"),onClick:()=>{ce(t)}},{label:s("upload_folder"),onClick:()=>{ue(t)}}];ae()&&o.push({label:s("paste"),onClick:()=>{G(t)}}),Te({x:e.x,y:e.y,items:o})}function lt(e,t,o){e.preventDefault();let r;o.isDir?r=[{label:s("upload_files"),onClick:()=>{ce(o.path)}},{label:s("upload_folder"),onClick:()=>{ue(o.path)}},{label:s("download"),onClick:()=>{Ue(o.path)}}]:(r=[],(ye(o.name)||X(o.name))&&r.push({label:s("open"),onClick:()=>{X(o.name)?A(t.items,o):window.open(Ce(I.value,o.path),"_blank")}}),r.push({label:s("download"),onClick:()=>{le(o.path)}})),r.push({label:s("duplicate"),onClick:()=>{O([o]),G(t.dir)}}),r.push({label:s("cut"),onClick:()=>{o.panel=t,ie([o])}}),r.push({label:s("copy"),onClick:()=>{O([o])}}),o.isDir&&ae()&&r.push({label:s("paste"),onClick:()=>{G(o.path)}}),r=[...r,{label:s("rename"),onClick:()=>{Ee.value=o.name,Pe.value=o.path,L(we,{title:s("rename"),placeholder:s("name"),value:o.name,mutation:He,getVariables:Le,done:Ze})}},{label:s("delete"),onClick:()=>{L(ge,{files:[o],onDone:N})}}],Te({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{W(e.dir),z()},1e3)},pe=e=>{N([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),It(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const o=Kt,r=co,Z=so,f=Nt,at=At,it=Jt,ct=jt,rt=Mt,ut=Ot,y=St("tooltip");return a(),c(v,null,[i("div",ro,[m(o,{current:Ye}),i("div",uo,[w.value&&Ke.value?(a(),c(v,{key:0},[C((a(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=F(()=>n(O)(S()),["stop"]))},[_o,m(r)])),[[y,e.$t("copy")]]),C((a(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=F(()=>n(ie)(S()),["stop"]))},[po,m(Z)])),[[y,e.$t("cut")]]),C((a(),c("button",{class:"icon-button",onClick:F(Xe,["stop"])},[ho,m(f)],8,mo)),[[y,e.$t("delete")]]),C((a(),c("button",{class:"icon-button",onClick:F(Je,["stop"])},[bo,m(at)],8,fo)),[[y,e.$t("download")]])],64)):h("",!0),i("div",vo,[i("label",ko,[i("md-checkbox",{"touch-target":"wrapper",onChange:Qe,checked:w.value},null,40,go),T(" "+p(e.$t("select_mode")),1)])]),i("div",yo,[i("label",Co,[i("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:n(D)},null,40,To),T(p(e.$t("show_hidden")),1)])]),C((a(),c("button",{class:"icon-button btn-refresh",onClick:ot},[qo,m(it)])),[[y,e.$t("refresh")]]),m(rt,null,{content:M(u=>[i("div",$o,[(a(!0),c(v,null,J(n(Se),l=>(a(),c("md-menu-item",{onClick:Q=>tt(u,l.value),selected:l.value===n(U)},[i("div",So,p(e.$t(l.label)),1)],8,Io))),256))])]),default:M(()=>[C((a(),c("button",wo,[Do,m(ct)])),[[y,e.$t("sort")]])]),_:1})])]),m(n(Xt),{class:"panel-container"},{default:M(()=>[(a(!0),c(v,null,J(n(_),u=>(a(),K(n(qe),{key:u.dir},{default:M(()=>[i("div",Vo,[(a(!0),c(v,null,J(u.items,l=>{var Q;return a(),c(v,{key:l.path},[!l.name.startsWith(".")||n(D)?(a(),c("div",{key:0,class:Bt(["file-item",{active:(n(E)+"/").startsWith(l.path+"/")||((Q=n(P))==null?void 0:Q.path)===l.path}]),onClick:j=>et(u,l),onDblclick:F(j=>st(u,l),["prevent"]),onContextmenu:j=>lt(j,u,l)},[w.value?(a(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:l.checked},null,8,Mo)):h("",!0),l.isDir?(a(),K(ut,{key:1})):h("",!0),n(xt)(l.name)||n(Et)(l.name)?(a(),c("img",{key:2,src:n(Pt)(l.fileId)+"&w=50&h=50",width:"50",height:"50",onerror:"this.src='/broken-image.png'"},null,8,Bo)):h("",!0),i("div",xo,[T(p(l.name)+" ",1),i("div",Eo,[T(p(n(Zt)(l.updatedAt)),1),l.isDir?h("",!0):(a(),c(v,{key:0},[T(", "+p(n(k)(l.size)),1)],64))])])],42,Fo)):h("",!0)],64)}),128)),i("div",{class:"empty",onContextmenu:l=>nt(l,u.dir)},[u.items.filter(l=>!l.name.startsWith(".")||n(D)).length===0?(a(),c("div",Zo,p(e.$t("no_files")),1)):h("",!0)],40,Po)])]),_:2},1024))),128)),n(_).length===0?(a(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:M(()=>[T(p(e.$t(n(Ht)(n(Fe),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(P)?(a(),c("div",Ho,p(e.$t("path"))+": "+p(n(P).path),1)):h("",!0),i("input",{ref_key:"fileInput",ref:Ne,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),i("input",{ref_key:"dirFileInput",ref:Ae,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const Go=Qt(Lo,[["__scopeId","data-v-6a8cd392"]]);export{Go as default}; diff --git a/app/src/main/resources/web/assets/HomeView-2a622ad9.js b/app/src/main/resources/web/assets/HomeView-9fddd089.js similarity index 98% rename from app/src/main/resources/web/assets/HomeView-2a622ad9.js rename to app/src/main/resources/web/assets/HomeView-9fddd089.js index d1c5c759..a03ff198 100644 --- a/app/src/main/resources/web/assets/HomeView-2a622ad9.js +++ b/app/src/main/resources/web/assets/HomeView-9fddd089.js @@ -1 +1 @@ -import{b as L,o as d,c,a as e,d as M,u as O,e as E,s as B,r as h,f as j,i as A,w as F,g as P,h as p,t as o,j as f,k as m,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-4040ca75.js";function x(i,_){for(var u,r=-1,g=i.length;++r(K("data-v-2b7c24f3"),i=i(),W(),i),ae={class:"page-container"},ie={class:"main"},re={class:"grid"},de={class:"g-col-lg-6 g-col-md-12"},ce={class:"card"},ue={class:"card-body"},ve={class:"card-title"},pe={key:0,class:"total-bytes"},fe={class:"stats-items"},me={class:"g-col-lg-6 g-col-md-12"},_e={class:"card"},he={class:"card-body"},ge={class:"card-title"},$e={class:"stats-items"},be={class:"g-col-lg-6 g-col-md-12"},ke={class:"card"},Ce={class:"card-body"},ye={class:"card-title"},Te={class:"stats-items"},qe={class:"g-col-lg-6 g-col-md-12"},we={class:"card"},Be={class:"card-body"},Se={class:"card-title"},Ve={class:"stats-items"},Ge={class:"g-col-lg-6 g-col-md-12"},He={class:"card"},Ne={class:"card-body"},Ie={class:"card-title"},Le={class:"form-row"},Me=["label","error","error-text"],Oe=["onClick"],Ee=le(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=M({__name:"HomeView",setup(i){const{t:_}=O(),u=E(),{callNumber:r}=B(u),g=h(!1),{app:v}=B(j()),C=h(-1),y=h(-1),T=h(-1),$=h(-1),k=h(-1);function G(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:H,loading:N}=A({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}H({number:r.value})};F(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(_(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=ne;return d(),c("div",ae,[e("div",ie,[e("div",re,[e("div",de,[e("section",ce,[e("div",ue,[e("h5",ve,[p(o(t.$t("storage")),1),$.value>=0?(d(),c("span",pe,o(t.$t("storage_free_total",{free:f(S)(k.value),total:f(S)($.value)})),1)):m("",!0)]),e("p",fe,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)):m("",!0)])])])]),e("div",me,[e("section",_e,[e("div",he,[e("h5",ge,o(t.$t("work")),1),e("p",$e,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",be,[e("section",ke,[e("div",Ce,[e("h5",ye,o(t.$t("social")),1),e("p",Te,[f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[p(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[p("("+o(C.value)+")",1)],64)):m("",!0)])):m("",!0),f(v).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[9]||(s[9]=l(n=>a("/calls"),["prevent"]))},[p(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[p("("+o(T.value)+")",1)],64)):m("",!0)])):m("",!0),e("a",{href:"#",onClick:s[10]||(s[10]=l(n=>a("/contacts"),["prevent"]))},[p(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[p("("+o(y.value)+")",1)],64)):m("",!0)])])])])]),e("div",qe,[e("section",we,[e("div",Be,[e("h5",Se,o(t.$t("tools")),1),e("p",Ve,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1)])])])]),e("div",Ge,[e("section",He,[e("div",Ne,[e("h5",Ie,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(G,["prevent"])},[Ee,D(b)],8,Oe)],8,Me),[[Z,f(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:f(N)},o(t.$t("call")),9,je)])])])])])])])}}});const Pe=Y(Ae,[["__scopeId","data-v-2b7c24f3"]]);export{Pe as default}; +import{b as L,o as d,c,a as e,d as M,u as O,e as E,s as B,r as h,f as j,i as A,w as F,g as P,h as p,t as o,j as f,k as m,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-40f25da6.js";function x(i,_){for(var u,r=-1,g=i.length;++r(K("data-v-2b7c24f3"),i=i(),W(),i),ae={class:"page-container"},ie={class:"main"},re={class:"grid"},de={class:"g-col-lg-6 g-col-md-12"},ce={class:"card"},ue={class:"card-body"},ve={class:"card-title"},pe={key:0,class:"total-bytes"},fe={class:"stats-items"},me={class:"g-col-lg-6 g-col-md-12"},_e={class:"card"},he={class:"card-body"},ge={class:"card-title"},$e={class:"stats-items"},be={class:"g-col-lg-6 g-col-md-12"},ke={class:"card"},Ce={class:"card-body"},ye={class:"card-title"},Te={class:"stats-items"},qe={class:"g-col-lg-6 g-col-md-12"},we={class:"card"},Be={class:"card-body"},Se={class:"card-title"},Ve={class:"stats-items"},Ge={class:"g-col-lg-6 g-col-md-12"},He={class:"card"},Ne={class:"card-body"},Ie={class:"card-title"},Le={class:"form-row"},Me=["label","error","error-text"],Oe=["onClick"],Ee=le(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=M({__name:"HomeView",setup(i){const{t:_}=O(),u=E(),{callNumber:r}=B(u),g=h(!1),{app:v}=B(j()),C=h(-1),y=h(-1),T=h(-1),$=h(-1),k=h(-1);function G(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:H,loading:N}=A({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}H({number:r.value})};F(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(_(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=ne;return d(),c("div",ae,[e("div",ie,[e("div",re,[e("div",de,[e("section",ce,[e("div",ue,[e("h5",ve,[p(o(t.$t("storage")),1),$.value>=0?(d(),c("span",pe,o(t.$t("storage_free_total",{free:f(S)(k.value),total:f(S)($.value)})),1)):m("",!0)]),e("p",fe,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)):m("",!0)])])])]),e("div",me,[e("section",_e,[e("div",he,[e("h5",ge,o(t.$t("work")),1),e("p",$e,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",be,[e("section",ke,[e("div",Ce,[e("h5",ye,o(t.$t("social")),1),e("p",Te,[f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[p(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[p("("+o(C.value)+")",1)],64)):m("",!0)])):m("",!0),f(v).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[9]||(s[9]=l(n=>a("/calls"),["prevent"]))},[p(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[p("("+o(T.value)+")",1)],64)):m("",!0)])):m("",!0),e("a",{href:"#",onClick:s[10]||(s[10]=l(n=>a("/contacts"),["prevent"]))},[p(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[p("("+o(y.value)+")",1)],64)):m("",!0)])])])])]),e("div",qe,[e("section",we,[e("div",Be,[e("h5",Se,o(t.$t("tools")),1),e("p",Ve,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1)])])])]),e("div",Ge,[e("section",He,[e("div",Ne,[e("h5",Ie,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(G,["prevent"])},[Ee,D(b)],8,Oe)],8,Me),[[Z,f(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:f(N)},o(t.$t("call")),9,je)])])])])])])])}}});const Pe=Y(Ae,[["__scopeId","data-v-2b7c24f3"]]);export{Pe as default}; diff --git a/app/src/main/resources/web/assets/ImagesRootView-d085454e.js b/app/src/main/resources/web/assets/ImagesRootView-dbda6158.js similarity index 70% rename from app/src/main/resources/web/assets/ImagesRootView-d085454e.js rename to app/src/main/resources/web/assets/ImagesRootView-dbda6158.js index 0e5a507c..13b8dae5 100644 --- a/app/src/main/resources/web/assets/ImagesRootView-d085454e.js +++ b/app/src/main/resources/web/assets/ImagesRootView-dbda6158.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-4040ca75.js";import{g as d,M as G}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-40f25da6.js";import{g as d,M as G}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-f5772acc.js b/app/src/main/resources/web/assets/ImagesView-73d78fde.js similarity index 94% rename from app/src/main/resources/web/assets/ImagesView-f5772acc.js rename to app/src/main/resources/web/assets/ImagesView-73d78fde.js index 7d83b0a6..52ec4fa9 100644 --- a/app/src/main/resources/web/assets/ImagesView-f5772acc.js +++ b/app/src/main/resources/web/assets/ImagesView-73d78fde.js @@ -1 +1 @@ -import{u as Ge,_ as xe,a as Ke,b as Oe}from"./list-2b55c026.js";import{d as We,aA as Pe,e as Xe,s as _e,r as D,u as je,f as Je,K as Ye,L as Ze,D as et,M as tt,aB as st,af as ot,aC as lt,N as nt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as s,p as i,j as t,F as C,m,l as _,k as y,S as L,H as Q,J as F,t as r,T as ut,U as _t,x as rt,aD as pt,aE as mt,C as re,W as pe,at as ht,o as n,v as gt,z as me,I as vt,ax as he,aF as M,$ as ge,A as ft,B as kt,al as yt,aG as bt,a2 as $t,a3 as wt,a0 as Ct,a1 as Tt,as as It,aH as Vt,aI as St,ad as Dt,am as At,a4 as Rt,a5 as zt,a6 as Et,_ as Bt}from"./index-4040ca75.js";import{_ as Ft}from"./sort-rounded-21b00447.js";import{_ as Mt}from"./upload-rounded-168dfb03.js";import{_ as Ut,a as qt}from"./grid-view-outline-rounded-388859d3.js";import{_ as Nt}from"./Breadcrumb-9fbc434f.js";import{u as Ht,a as Lt}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const u=R=>(ft("data-v-d2032d39"),R=R(),kt(),R),Qt={class:"v-toolbar"},Gt=u(()=>s("md-ripple",null,null,-1)),xt=u(()=>s("md-ripple",null,null,-1)),Kt=u(()=>s("md-ripple",null,null,-1)),Ot=["onClick"],Wt=u(()=>s("md-ripple",null,null,-1)),Pt=["onClick"],Xt=u(()=>s("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Jt=u(()=>s("md-ripple",null,null,-1)),Yt={class:"menu-items"},Zt=["onClick","selected"],es={slot:"headline"},ts={class:"filters"},ss=["label"],os={class:"form-label"},ls=["label","selected","onClick"],ns={class:"buttons"},as=["onClick"],is={key:0,class:"image-container",style:{"margin-bottom":"24px"}},ds=["onClick","onContextmenu"],cs=["src"],us={class:"duration"},_s={key:1,class:"table-responsive"},rs={class:"table"},ps=["checked","indeterminate"],ms=u(()=>s("th",null,"ID",-1)),hs=u(()=>s("th",null,null,-1)),gs=u(()=>s("th",null,null,-1)),vs=["onClick"],fs=["checked"],ks=["src","onClick"],ys={class:"nowrap"},bs={class:"action-btns"},$s=["onClick"],ws=u(()=>s("md-ripple",null,null,-1)),Cs=["onClick"],Ts=u(()=>s("md-ripple",null,null,-1)),Is=["onClick"],Vs=u(()=>s("md-ripple",null,null,-1)),Ss={class:"nowrap"},Ds={key:0},As={colspan:"7"},Rs={class:"no-data-placeholder"},zs={key:2,class:"no-data-placeholder"},A=48,Es=We({__name:"ImagesView",setup(R){var ie,de;const ve=Pe(),d=Xe(),{imageSortBy:U}=_e(d),g=D([]),G=D(),{t:T}=je(),x=Je(),{app:K,urlTokenKey:q}=_e(x),v=Ye({text:"",tags:[]}),c=Ze.IMAGE,O=et().query,I=D(parseInt(((ie=O.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=O.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Ht(c,b,v,async e=>{V.value=ut(e),await _t(),Ie()}),{addToTags:fe}=Lt(c,g,z),{deleteItems:ke,deleteItem:W}=st(),{allChecked:P,realAllChecked:E,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:B,toggleAllChecked:X,toggleItemChecked:j,toggleRow:$e,total:$,checked:J}=Ge(g),{downloadItems:we}=ot(q,c,g,B,"images.zip"),{downloadFile:Y}=yt(q),Ce=bt(),N=lt(()=>g.value.map(e=>({src:he(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:c,data:e})));function Z(e){x.lightbox={sources:N.value,index:e,visible:!0}}function ee(e){$t(wt,{type:c,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function Te(e,l){U.value=l,e.close()}const{loading:te,load:Ie,refetch:H}=nt({handle:async(e,l)=>{if(l)rt(T(l),"error");else if(e){const w=[];for(const S of e.images)w.push({...S,checked:!1,fileId:pt(q.value,S.path)});g.value=w,$.value=e.imageCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ve(){re(d,`/images?page=${I.value}&q=${pe(b.value)}`)}at(I,()=>{Ve()});function Se(e){v.tags.includes(e)?Ct(v.tags,l=>l.id===e.id):v.tags.push(e)}function De(){b.value=Tt(v),se(),G.value.dismiss()}function se(){re(d,`/images?q=${pe(b.value)}`)}function Ae(){d.imageViewType==="grid"?d.imageViewType="list":d.imageViewType="grid"}function Re(){ve.push("/files"),It(Vt,{message:T("upload_images")})}function ze(e,l){e.preventDefault(),St({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{ee(l)}},{label:T("download"),onClick:()=>{Y(l.path,M(l.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(c,l)}}]})}const oe=e=>{e.type===c&&(B(),H())},le=e=>{e.type===c&&H()},ne=e=>{e.type===c&&(B(),H())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",le),k.on("items_tags_updated",oe),k.on("media_item_deleted",ae),k.on("media_items_deleted",ne)}),dt(()=>{k.off("item_tags_updated",le),k.off("items_tags_updated",oe),k.off("media_item_deleted",ae),k.off("media_items_deleted",ne)}),(e,l)=>{const w=Nt,S=Dt,ce=At,ue=Rt,Ee=Ut,Be=qt,Fe=Mt,Me=Ft,Ue=ht,qe=xe,Ne=Ke,He=zt,Le=Et,Qe=Oe,h=ct("tooltip");return n(),a(C,null,[s("div",Qt,[i(w,{current:()=>`${e.$t("page_title.images")} (${t($)})`},null,8,["current"]),t(J)&&t(d).imageViewType==="list"?(n(),a(C,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(o=>t(ke)(t(c),g.value,t(E),V.value),["stop"]))},[Gt,i(S)])),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(o=>t(we)(t(E),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(o=>t(fe)(t(E),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Ae,["stop"])},[Wt,t(d).imageViewType==="list"?(n(),L(Ee,{key:0})):y("",!0),t(d).imageViewType==="grid"?(n(),L(Be,{key:1})):y("",!0)],8,Ot)),[[h,e.$t(t(d).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Ue,null,{content:Q(o=>[s("div",Yt,[(n(!0),a(C,null,F(t(Ce),f=>(n(),a("md-menu-item",{onClick:p=>Te(o,f.value),selected:f.value===t(U)},[s("div",es,r(e.$t(f.label)),1)],8,Zt))),256))])]),default:Q(()=>[m((n(),a("button",jt,[Jt,i(Me)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":l[4]||(l[4]=o=>b.value=o),search:se},{filters:Q(()=>[s("div",ts,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>v.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ss),[[gt,v.text]]),s("label",os,r(e.$t("tags")),1),s("md-chip-set",null,[(n(!0),a(C,null,F(t(z),o=>(n(),a("md-filter-chip",{key:o.id,label:o.name,selected:v.tags.includes(o),onClick:f=>Se(o)},null,8,ls))),128))]),s("div",ns,[s("md-filled-button",{onClick:_(De,["stop"])},r(e.$t("search")),9,as)])])]),_:1},8,["modelValue"])]),t(d).imageViewType==="grid"?(n(),a("div",is,[(n(!0),a(C,null,F(N.value,(o,f)=>(n(),a("div",{class:"item",onClick:p=>Z(f),onContextmenu:p=>ze(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,cs),s("span",us,r(t(me)(o.size)),1)],40,ds))),256))])):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(E),"select-real-all":t(ye),"clear-selection":t(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).imageViewType==="list"?(n(),a("div",_s,[s("table",rs,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(X)&&t(X)(...o)),checked:t(P),indeterminate:!t(P)&&t(J)},null,40,ps)]),ms,hs,s("th",null,r(e.$t("name")),1),gs,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(n(!0),a(C,null,F(g.value,(o,f)=>(n(),a("tr",{key:o.id,class:vt({selected:o.checked}),onClick:_(p=>t($e)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(j)&&t(j)(...p)),checked:o.checked},null,40,fs)]),s("td",null,[i(He,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(he)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:_(p=>Z(f),["stop"]),style:{cursor:"pointer"}},null,8,ks)]),s("td",null,r(t(M)(o.path)),1),s("td",ys,[s("div",bs,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(W)(t(c),o),["stop"])},[ws,i(S)],8,$s)),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(Y)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[Ts,i(ce)],8,Cs)),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>ee(o),["stop"])},[Vs,i(ue)],8,Is)),[[h,e.$t("add_to_tags")]])])]),s("td",null,[i(Le,{tags:o.tags,type:t(c)},null,8,["tags","type"])]),s("td",Ss,r(t(me)(o.size)),1)],10,vs))),128))]),g.value.length?y("",!0):(n(),a("tfoot",Ds,[s("tr",null,[s("td",As,[s("div",Rs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t(d).imageViewType==="grid"&&N.value.length===0?(n(),a("div",zs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),t($)>A?(n(),L(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":l[7]||(l[7]=o=>I.value=o),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Gs=Bt(Es,[["__scopeId","data-v-d2032d39"]]);export{Gs as default}; +import{u as Ge,_ as xe,a as Ke,b as Oe}from"./list-b6a3249f.js";import{d as We,aA as Pe,e as Xe,s as _e,r as D,u as je,f as Je,K as Ye,L as Ze,D as et,M as tt,aB as st,af as ot,aC as lt,N as nt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as s,p as i,j as t,F as C,m,l as _,k as y,S as L,H as Q,J as F,t as r,T as ut,U as _t,x as rt,aD as pt,aE as mt,C as re,W as pe,at as ht,o as n,v as gt,z as me,I as vt,ax as he,aF as M,$ as ge,A as ft,B as kt,al as yt,aG as bt,a2 as $t,a3 as wt,a0 as Ct,a1 as Tt,as as It,aH as Vt,aI as St,ad as Dt,am as At,a4 as Rt,a5 as zt,a6 as Et,_ as Bt}from"./index-40f25da6.js";import{_ as Ft}from"./sort-rounded-6ce111fd.js";import{_ as Mt}from"./upload-rounded-b3049477.js";import{_ as Ut,a as qt}from"./grid-view-outline-rounded-c791dd48.js";import{_ as Nt}from"./Breadcrumb-5456253f.js";import{u as Ht,a as Lt}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const u=R=>(ft("data-v-d2032d39"),R=R(),kt(),R),Qt={class:"v-toolbar"},Gt=u(()=>s("md-ripple",null,null,-1)),xt=u(()=>s("md-ripple",null,null,-1)),Kt=u(()=>s("md-ripple",null,null,-1)),Ot=["onClick"],Wt=u(()=>s("md-ripple",null,null,-1)),Pt=["onClick"],Xt=u(()=>s("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Jt=u(()=>s("md-ripple",null,null,-1)),Yt={class:"menu-items"},Zt=["onClick","selected"],es={slot:"headline"},ts={class:"filters"},ss=["label"],os={class:"form-label"},ls=["label","selected","onClick"],ns={class:"buttons"},as=["onClick"],is={key:0,class:"image-container",style:{"margin-bottom":"24px"}},ds=["onClick","onContextmenu"],cs=["src"],us={class:"duration"},_s={key:1,class:"table-responsive"},rs={class:"table"},ps=["checked","indeterminate"],ms=u(()=>s("th",null,"ID",-1)),hs=u(()=>s("th",null,null,-1)),gs=u(()=>s("th",null,null,-1)),vs=["onClick"],fs=["checked"],ks=["src","onClick"],ys={class:"nowrap"},bs={class:"action-btns"},$s=["onClick"],ws=u(()=>s("md-ripple",null,null,-1)),Cs=["onClick"],Ts=u(()=>s("md-ripple",null,null,-1)),Is=["onClick"],Vs=u(()=>s("md-ripple",null,null,-1)),Ss={class:"nowrap"},Ds={key:0},As={colspan:"7"},Rs={class:"no-data-placeholder"},zs={key:2,class:"no-data-placeholder"},A=48,Es=We({__name:"ImagesView",setup(R){var ie,de;const ve=Pe(),d=Xe(),{imageSortBy:U}=_e(d),g=D([]),G=D(),{t:T}=je(),x=Je(),{app:K,urlTokenKey:q}=_e(x),v=Ye({text:"",tags:[]}),c=Ze.IMAGE,O=et().query,I=D(parseInt(((ie=O.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=O.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Ht(c,b,v,async e=>{V.value=ut(e),await _t(),Ie()}),{addToTags:fe}=Lt(c,g,z),{deleteItems:ke,deleteItem:W}=st(),{allChecked:P,realAllChecked:E,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:B,toggleAllChecked:X,toggleItemChecked:j,toggleRow:$e,total:$,checked:J}=Ge(g),{downloadItems:we}=ot(q,c,g,B,"images.zip"),{downloadFile:Y}=yt(q),Ce=bt(),N=lt(()=>g.value.map(e=>({src:he(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:c,data:e})));function Z(e){x.lightbox={sources:N.value,index:e,visible:!0}}function ee(e){$t(wt,{type:c,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function Te(e,l){U.value=l,e.close()}const{loading:te,load:Ie,refetch:H}=nt({handle:async(e,l)=>{if(l)rt(T(l),"error");else if(e){const w=[];for(const S of e.images)w.push({...S,checked:!1,fileId:pt(q.value,S.path)});g.value=w,$.value=e.imageCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ve(){re(d,`/images?page=${I.value}&q=${pe(b.value)}`)}at(I,()=>{Ve()});function Se(e){v.tags.includes(e)?Ct(v.tags,l=>l.id===e.id):v.tags.push(e)}function De(){b.value=Tt(v),se(),G.value.dismiss()}function se(){re(d,`/images?q=${pe(b.value)}`)}function Ae(){d.imageViewType==="grid"?d.imageViewType="list":d.imageViewType="grid"}function Re(){ve.push("/files"),It(Vt,{message:T("upload_images")})}function ze(e,l){e.preventDefault(),St({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{ee(l)}},{label:T("download"),onClick:()=>{Y(l.path,M(l.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(c,l)}}]})}const oe=e=>{e.type===c&&(B(),H())},le=e=>{e.type===c&&H()},ne=e=>{e.type===c&&(B(),H())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",le),k.on("items_tags_updated",oe),k.on("media_item_deleted",ae),k.on("media_items_deleted",ne)}),dt(()=>{k.off("item_tags_updated",le),k.off("items_tags_updated",oe),k.off("media_item_deleted",ae),k.off("media_items_deleted",ne)}),(e,l)=>{const w=Nt,S=Dt,ce=At,ue=Rt,Ee=Ut,Be=qt,Fe=Mt,Me=Ft,Ue=ht,qe=xe,Ne=Ke,He=zt,Le=Et,Qe=Oe,h=ct("tooltip");return n(),a(C,null,[s("div",Qt,[i(w,{current:()=>`${e.$t("page_title.images")} (${t($)})`},null,8,["current"]),t(J)&&t(d).imageViewType==="list"?(n(),a(C,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(o=>t(ke)(t(c),g.value,t(E),V.value),["stop"]))},[Gt,i(S)])),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(o=>t(we)(t(E),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(o=>t(fe)(t(E),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Ae,["stop"])},[Wt,t(d).imageViewType==="list"?(n(),L(Ee,{key:0})):y("",!0),t(d).imageViewType==="grid"?(n(),L(Be,{key:1})):y("",!0)],8,Ot)),[[h,e.$t(t(d).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Ue,null,{content:Q(o=>[s("div",Yt,[(n(!0),a(C,null,F(t(Ce),f=>(n(),a("md-menu-item",{onClick:p=>Te(o,f.value),selected:f.value===t(U)},[s("div",es,r(e.$t(f.label)),1)],8,Zt))),256))])]),default:Q(()=>[m((n(),a("button",jt,[Jt,i(Me)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":l[4]||(l[4]=o=>b.value=o),search:se},{filters:Q(()=>[s("div",ts,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>v.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ss),[[gt,v.text]]),s("label",os,r(e.$t("tags")),1),s("md-chip-set",null,[(n(!0),a(C,null,F(t(z),o=>(n(),a("md-filter-chip",{key:o.id,label:o.name,selected:v.tags.includes(o),onClick:f=>Se(o)},null,8,ls))),128))]),s("div",ns,[s("md-filled-button",{onClick:_(De,["stop"])},r(e.$t("search")),9,as)])])]),_:1},8,["modelValue"])]),t(d).imageViewType==="grid"?(n(),a("div",is,[(n(!0),a(C,null,F(N.value,(o,f)=>(n(),a("div",{class:"item",onClick:p=>Z(f),onContextmenu:p=>ze(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,cs),s("span",us,r(t(me)(o.size)),1)],40,ds))),256))])):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(E),"select-real-all":t(ye),"clear-selection":t(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).imageViewType==="list"?(n(),a("div",_s,[s("table",rs,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(X)&&t(X)(...o)),checked:t(P),indeterminate:!t(P)&&t(J)},null,40,ps)]),ms,hs,s("th",null,r(e.$t("name")),1),gs,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(n(!0),a(C,null,F(g.value,(o,f)=>(n(),a("tr",{key:o.id,class:vt({selected:o.checked}),onClick:_(p=>t($e)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(j)&&t(j)(...p)),checked:o.checked},null,40,fs)]),s("td",null,[i(He,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(he)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:_(p=>Z(f),["stop"]),style:{cursor:"pointer"}},null,8,ks)]),s("td",null,r(t(M)(o.path)),1),s("td",ys,[s("div",bs,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(W)(t(c),o),["stop"])},[ws,i(S)],8,$s)),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(Y)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[Ts,i(ce)],8,Cs)),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>ee(o),["stop"])},[Vs,i(ue)],8,Is)),[[h,e.$t("add_to_tags")]])])]),s("td",null,[i(Le,{tags:o.tags,type:t(c)},null,8,["tags","type"])]),s("td",Ss,r(t(me)(o.size)),1)],10,vs))),128))]),g.value.length?y("",!0):(n(),a("tfoot",Ds,[s("tr",null,[s("td",As,[s("div",Rs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t(d).imageViewType==="grid"&&N.value.length===0?(n(),a("div",zs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),t($)>A?(n(),L(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":l[7]||(l[7]=o=>I.value=o),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Gs=Bt(Es,[["__scopeId","data-v-d2032d39"]]);export{Gs as default}; diff --git a/app/src/main/resources/web/assets/JsonViewerView-7a955368.js b/app/src/main/resources/web/assets/JsonViewerView-2490e1ea.js similarity index 96% rename from app/src/main/resources/web/assets/JsonViewerView-7a955368.js rename to app/src/main/resources/web/assets/JsonViewerView-2490e1ea.js index 12783abc..20b2f0c5 100644 --- a/app/src/main/resources/web/assets/JsonViewerView-7a955368.js +++ b/app/src/main/resources/web/assets/JsonViewerView-2490e1ea.js @@ -1 +1 @@ -import{bs as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-4040ca75.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import{_ as J}from"./Breadcrumb-9fbc434f.js";import{g as y,M as q}from"./splitpanes.es-20249936.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; +import{bs as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-40f25da6.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import{_ as J}from"./Breadcrumb-5456253f.js";import{g as y,M as q}from"./splitpanes.es-a34c2504.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; diff --git a/app/src/main/resources/web/assets/LoginView-189a754f.css b/app/src/main/resources/web/assets/LoginView-189a754f.css new file mode 100644 index 00000000..6a6d5231 --- /dev/null +++ b/app/src/main/resources/web/assets/LoginView-189a754f.css @@ -0,0 +1 @@ +.header[data-v-b396c263]{display:flex;justify-content:end;margin-top:6px;padding-right:16px}md-filled-button[data-v-b396c263],md-outlined-button[data-v-b396c263]{display:block;margin-top:24px}h1[data-v-b396c263]{margin-top:100px;text-align:center}.login-block[data-v-b396c263]{width:280px;margin:0 auto;background-color:var(--md-sys-color-surface-variant);border-radius:var(--plain-shape-xl);padding-block:var(--plain-spacing-xl);padding:40px}.login-block[data-v-b396c263] .tap-phone[data-v-b396c263]{text-align:center;padding-block-end:1rem}.login-block[data-v-b396c263] .tap-phone[data-v-b396c263] *[data-v-b396c263]:is(svg){width:120px;margin-inline-start:24px;fill:var(--md-sys-color-primary)}.tips[data-v-b396c263]{text-align:center;padding:16px;width:320px;margin:0 auto}.alert-danger[data-v-b396c263]{margin-block-end:32px} diff --git a/app/src/main/resources/web/assets/LoginView-9a2b7ffd.js b/app/src/main/resources/web/assets/LoginView-a75f2c43.js similarity index 73% rename from app/src/main/resources/web/assets/LoginView-9a2b7ffd.js rename to app/src/main/resources/web/assets/LoginView-a75f2c43.js index eabc8ef4..1db36b67 100644 --- a/app/src/main/resources/web/assets/LoginView-9a2b7ffd.js +++ b/app/src/main/resources/web/assets/LoginView-a75f2c43.js @@ -1 +1 @@ -import{d as G,r as h,u as Z,an as Q,co as X,cp as Y,cq as ee,cr as se,cs as ne,ct as te,cu as oe,aZ as re,cv as N,c as A,a as b,p as M,t as g,m as E,aW as x,l as ie,j as c,n as ae,ap as le,v as ue,k as P,h as ce,F as de,cw as fe,o as T,cx as me,cy as we,_ as ve}from"./index-4040ca75.js";import{u as be,a as pe}from"./vee-validate.esm-a8549f5b.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function D(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function $(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=$(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=F(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function F(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const I=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],O=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],U=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],H=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!V(U,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:w}=V(I,t),{preset:s,version:l}=V(H,t),p=V(O,t);if(e.chromium=!!p.preset,e.chromiumVersion=p.version,!e.chromium){const f=V(R,t);e.webkit=!!f.preset,e.webkitVersion=f.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=w,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],w=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(U,o).brand||K(W())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>F(o,i));const p=_(O,o);if(s.chromium=!!p.brand,s.chromiumVersion=p.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const f=H.find(i=>new RegExp(`${i.test}`,"g").exec(w));if(l.name=f?f.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(I,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(I,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=$(l.version),s.version=$(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function _e(){if(D()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return typeof n>"u"&&D()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se=["label","error","error-text"],Ae=["disabled"],Ee={class:"tap-phone"},Te={key:0,class:"tips"},Be=G({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=h(!1),r=h(!0),a=h(!1),w=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:p}=Z(),{value:f,errorMessage:i}=pe("password",Q().required()),B=h(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:fe()});if(d.status===403){e.value=!0,r.value=!0,w.value="web_access_disabled";return}r.value=!1;const m=await d.text();m?(f.value=m,B.value=!1):B.value=!0}z();const y=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${X()}?cid=${d}&auth=1`);const m=f.value??"",k=Y(m),v=ee(k);w.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await _e(),S=se(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(ne(S))},s.onmessage=async u=>{var C;const S=te(v,oe(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=re.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){w.value="failed_connect_ws";return}w.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,m)=>{const k=we;return T(),A(de,null,[b("header",ye,[M(k,{"logged-in":!1})]),b("h1",null,g(d.$t("app_name")),1),b("div",ke,[E(b("form",{onSubmit:m[2]||(m[2]=ie((...v)=>c(y)&&c(y)(...v),["prevent"]))},[E(b("div",{class:"alert alert-danger",role:"alert"},g(w.value?d.$t(w.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(p)("password"),"onUpdate:modelValue":m[0]||(m[0]=v=>ae(f)?f.value=v:null),onKeydown:m[1]||(m[1]=le((...v)=>c(y)&&c(y)(...v),["enter"])),type:"password",class:"form-control",error:c(i),"error-text":c(i)?d.$t(c(i)):""},null,40,Se)),[[ue,c(f)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},g(d.$t(c(o)?"logging_in":"log_in")),9,Ae))],544),[[x,!a.value]]),E(b("div",null,[b("div",Ee,[M(c(me))]),ce(" "+g(d.$t("login.to_continue"))+" ",1),b("md-outlined-button",{onClick:J},g(d.$t("cancel")),1)],512),[[x,a.value]])]),c(l)?(T(),A("div",Te,g(d.$t("browser_warning")),1)):P("",!0)],64)}}});const $e=ve(Be,[["__scopeId","data-v-9b768f98"]]);export{$e as default}; +import{d as G,r as h,u as Z,an as Q,co as X,cp as Y,cq as ee,cr as se,cs as ne,ct as te,cu as oe,aZ as re,cv as N,c as A,a as b,p as M,t as g,m as E,aW as x,l as ie,j as c,n as ae,ap as le,v as ue,k as P,h as ce,F as de,cw as me,o as T,cx as we,cy as fe,_ as ve}from"./index-40f25da6.js";import{u as be,a as pe}from"./vee-validate.esm-7088b7c0.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function D(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function $(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=$(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=F(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function F(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const I=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],O=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],U=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],H=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!V(U,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:f}=V(I,t),{preset:s,version:l}=V(H,t),p=V(O,t);if(e.chromium=!!p.preset,e.chromiumVersion=p.version,!e.chromium){const m=V(R,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=f,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],f=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(U,o).brand||K(W())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>F(o,i));const p=_(O,o);if(s.chromium=!!p.brand,s.chromiumVersion=p.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const m=H.find(i=>new RegExp(`${i.test}`,"g").exec(f));if(l.name=m?m.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(I,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(I,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=$(l.version),s.version=$(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function _e(){if(D()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return typeof n>"u"&&D()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se=["label","error","error-text"],Ae=["disabled"],Ee={class:"tap-phone"},Te={key:0,class:"tips"},Be=G({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=h(!1),r=h(!0),a=h(!1),f=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:p}=Z(),{value:m,errorMessage:i}=pe("password",Q().required()),B=h(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:me()});if(d.status===403){e.value=!0,r.value=!0,f.value="web_access_disabled";return}r.value=!1;const w=await d.text();w?(m.value=w,B.value=!1):B.value=!0}z();const y=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${X()}?cid=${d}&auth=1`);const w=m.value??"",k=Y(w),v=ee(k);f.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await _e(),S=se(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(ne(S))},s.onmessage=async u=>{var C;const S=te(v,oe(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=re.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){f.value="failed_connect_ws";return}f.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,w)=>{const k=fe;return T(),A(de,null,[b("header",ye,[M(k,{"logged-in":!1})]),b("h1",null,g(d.$t("app_name")),1),b("div",ke,[E(b("form",{onSubmit:w[2]||(w[2]=ie((...v)=>c(y)&&c(y)(...v),["prevent"]))},[E(b("div",{class:"alert alert-danger",role:"alert"},g(f.value?d.$t(f.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(p)("password"),"onUpdate:modelValue":w[0]||(w[0]=v=>ae(m)?m.value=v:null),onKeydown:w[1]||(w[1]=le((...v)=>c(y)&&c(y)(...v),["enter"])),type:"password",class:"form-control",error:c(i),autocomplete:"current-password","error-text":c(i)?d.$t(c(i)):""},null,40,Se)),[[ue,c(m)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},g(d.$t(c(o)?"logging_in":"log_in")),9,Ae))],544),[[x,!a.value]]),E(b("div",null,[b("div",Ee,[M(c(we))]),ce(" "+g(d.$t("login.to_continue"))+" ",1),b("md-outlined-button",{onClick:J},g(d.$t("cancel")),1)],512),[[x,a.value]])]),c(l)?(T(),A("div",Te,g(d.$t("browser_warning")),1)):P("",!0)],64)}}});const $e=ve(Be,[["__scopeId","data-v-b396c263"]]);export{$e as default}; diff --git a/app/src/main/resources/web/assets/LoginView-c32a18d9.css b/app/src/main/resources/web/assets/LoginView-c32a18d9.css deleted file mode 100644 index 29c1a9cd..00000000 --- a/app/src/main/resources/web/assets/LoginView-c32a18d9.css +++ /dev/null @@ -1 +0,0 @@ -.header[data-v-9b768f98]{display:flex;justify-content:end;margin-top:6px;padding-right:16px}md-filled-button[data-v-9b768f98],md-outlined-button[data-v-9b768f98]{display:block;margin-top:24px}h1[data-v-9b768f98]{margin-top:100px;text-align:center}.login-block[data-v-9b768f98]{width:280px;margin:0 auto;background-color:var(--md-sys-color-surface-variant);border-radius:var(--plain-shape-xl);padding-block:var(--plain-spacing-xl);padding:40px}.login-block[data-v-9b768f98] .tap-phone[data-v-9b768f98]{text-align:center;padding-block-end:1rem}.login-block[data-v-9b768f98] .tap-phone[data-v-9b768f98] *[data-v-9b768f98]:is(svg){width:120px;margin-inline-start:24px;fill:var(--md-sys-color-primary)}.tips[data-v-9b768f98]{text-align:center;padding:16px;width:320px;margin:0 auto}.alert-danger[data-v-9b768f98]{margin-block-end:32px} diff --git a/app/src/main/resources/web/assets/MessagesRootView-327bdb7a.js b/app/src/main/resources/web/assets/MessagesRootView-1f3665f1.js similarity index 75% rename from app/src/main/resources/web/assets/MessagesRootView-327bdb7a.js rename to app/src/main/resources/web/assets/MessagesRootView-1f3665f1.js index 0e666af4..bda53d3a 100644 --- a/app/src/main/resources/web/assets/MessagesRootView-327bdb7a.js +++ b/app/src/main/resources/web/assets/MessagesRootView-1f3665f1.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-4040ca75.js";import{g,M as V}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-40f25da6.js";import{g,M as V}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/MessagesView-ed17a017.js b/app/src/main/resources/web/assets/MessagesView-9ca1b035.js similarity index 95% rename from app/src/main/resources/web/assets/MessagesView-ed17a017.js rename to app/src/main/resources/web/assets/MessagesView-9ca1b035.js index d342448a..34099175 100644 --- a/app/src/main/resources/web/assets/MessagesView-ed17a017.js +++ b/app/src/main/resources/web/assets/MessagesView-9ca1b035.js @@ -1 +1 @@ -import{u as ue,_ as _e,a as pe,b as me}from"./list-2b55c026.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-4040ca75.js";import{_ as Oe}from"./Breadcrumb-9fbc434f.js";import{u as We,a as Xe}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; +import{u as ue,_ as _e,a as pe,b as me}from"./list-b6a3249f.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-40f25da6.js";import{_ as Oe}from"./Breadcrumb-5456253f.js";import{u as We,a as Xe}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; diff --git a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js similarity index 99% rename from app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js rename to app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js index eeca712d..b30e97af 100644 --- a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js +++ b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js @@ -1,4 +1,4 @@ -var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bW as me,d as h6,bX as u6,aC as g6,bK as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bI as v6}from"./index-4040ca75.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. +var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bW as me,d as h6,bX as u6,aC as g6,bK as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bI as v6}from"./index-40f25da6.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class gW extends Jt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(69,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),f("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),autohide:Le(t.autohide,this.defaultValue.autohide),size:Di(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Di(t.side,this.defaultValue.side,["right","left"]),showSlider:Di(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Le(t.renderCharacters,this.defaultValue.renderCharacters),scale:Lt.clampedInt(t.scale,1,1,3),maxColumn:Lt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function fW(o){return o==="ctrlCmd"?Ke?"metaKey":"ctrlKey":"altKey"}class pW extends Jt{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Lt.clampedInt(t.top,0,0,1e3),bottom:Lt.clampedInt(t.bottom,0,0,1e3)}}}class mW extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(81,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),cycle:Le(t.cycle,this.defaultValue.cycle)}}}class _W extends _f{constructor(){super(136)}compute(e,t,i){return e.pixelRatio}}class bW extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f("on","Quick suggestions show inside the suggest widget"),f("inline","Quick suggestions show as ghost text"),f("off","Quick suggestions are disabled")]}];super(84,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:f("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:f("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:f("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Di(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Di(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Di(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class vW extends Jt{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f("lineNumbers.off","Line numbers are not rendered."),f("lineNumbers.on","Line numbers are rendered as absolute number."),f("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),f("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:f("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Nv(o){const e=o.get(92);return e==="editable"?o.get(86):e!=="on"}class CW extends Jt{constructor(){const e=[],t={type:"number",description:f("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(96,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:f("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Lt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Lt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function R2(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let wW=class extends Jt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(97,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),f("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),f("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),f("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),f("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Lt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Lt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Lt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R2(t.vertical,this.defaultValue.vertical),horizontal:R2(t.horizontal,this.defaultValue.horizontal),useShadows:Le(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Le(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Le(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Le(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Le(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Lt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Lt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:Le(t.scrollByPage,this.defaultValue.scrollByPage)}}};const xs="inUntrustedWorkspace",Zn={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class SW extends Jt{constructor(){const e={nonBasicASCII:xs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:xs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(119,"unicodeHighlight",e,{[Zn.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.nonBasicASCII,description:f("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Zn.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Zn.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Zn.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeComments,description:f("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Zn.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeStrings,description:f("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Zn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Zn.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(so(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(so(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new Hp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:lg(t.nonBasicASCII,xs,[!0,!1,xs]),invisibleCharacters:Le(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Le(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:lg(t.includeComments,xs,[!0,!1,xs]),includeStrings:lg(t.includeStrings,xs,[!0,!1,xs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class yW extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[f("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),f("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:f("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),mode:Di(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"])}}}class LW extends Jt{constructor(){const e={enabled:_n.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_n.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:f("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Le(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class DW extends Jt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairs.true","Enables bracket pair guides."),f("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),f("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:f("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),f("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),f("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),f("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),f("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:lg(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:lg(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Le(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Le(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:lg(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function lg(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class xW extends Jt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(112,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),f("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),f("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Di(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Le(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Le(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Le(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Le(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Di(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Le(t.showIcons,this.defaultValue.showIcons),showStatusBar:Le(t.showStatusBar,this.defaultValue.showStatusBar),preview:Le(t.preview,this.defaultValue.preview),previewMode:Di(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Le(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Le(t.showMethods,this.defaultValue.showMethods),showFunctions:Le(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Le(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Le(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Le(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Le(t.showFields,this.defaultValue.showFields),showVariables:Le(t.showVariables,this.defaultValue.showVariables),showClasses:Le(t.showClasses,this.defaultValue.showClasses),showStructs:Le(t.showStructs,this.defaultValue.showStructs),showInterfaces:Le(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Le(t.showModules,this.defaultValue.showModules),showProperties:Le(t.showProperties,this.defaultValue.showProperties),showEvents:Le(t.showEvents,this.defaultValue.showEvents),showOperators:Le(t.showOperators,this.defaultValue.showOperators),showUnits:Le(t.showUnits,this.defaultValue.showUnits),showValues:Le(t.showValues,this.defaultValue.showValues),showConstants:Le(t.showConstants,this.defaultValue.showConstants),showEnums:Le(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Le(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Le(t.showKeywords,this.defaultValue.showKeywords),showWords:Le(t.showWords,this.defaultValue.showWords),showColors:Le(t.showColors,this.defaultValue.showColors),showFiles:Le(t.showFiles,this.defaultValue.showFiles),showReferences:Le(t.showReferences,this.defaultValue.showReferences),showFolders:Le(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Le(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Le(t.showSnippets,this.defaultValue.showSnippets),showUsers:Le(t.showUsers,this.defaultValue.showUsers),showIssues:Le(t.showIssues,this.defaultValue.showIssues)}}}class kW extends Jt{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Le(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class IW extends _f{constructor(){super(137)}compute(e,t,i){return t.get(86)?!0:e.tabFocusMode}}class EW extends Jt{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),f("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),f("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),f("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:f("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class TW extends _f{constructor(){super(139)}compute(e,t,i){const n=t.get(138);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class NW extends Jt{constructor(){const e={enabled:!0};super(33,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}const MW="Consolas, 'Courier New', monospace",AW="Menlo, Monaco, 'Courier New', monospace",RW="'Droid Sans Mono', 'monospace', monospace",ps={fontFamily:Ke?AW:hn?RW:MW,fontWeight:"normal",fontSize:Ke?12:14,lineHeight:0,letterSpacing:0},Bu=[];function ee(o){return Bu[o.id]=o,o}const Dr={acceptSuggestionOnCommitCharacter:ee(new ct(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new ai(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new Y6),accessibilityPageSize:ee(new Lt(3,"accessibilityPageSize",10,1,1073741824,{description:f("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ee(new ds(4,"ariaLabel",f("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new ai(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),f("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ee(new ai(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ee(new ai(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new ai(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),f("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new Tb(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Z6,{enumDescriptions:[f("editor.autoIndent.none","The editor will not insert indentation automatically."),f("editor.autoIndent.keep","The editor will keep the current line's indentation."),f("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),f("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new ct(10,"automaticLayout",!1)),autoSurround:ee(new ai(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),f("editor.autoSurround.quotes","Surround with quotes but not brackets."),f("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:f("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new LW),bracketPairGuides:ee(new DW),stickyTabStops:ee(new ct(110,"stickyTabStops",!1,{description:f("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new ct(14,"codeLens",!0,{description:f("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new ds(15,"codeLensFontFamily","",{description:f("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new Lt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new ct(17,"colorDecorators",!0,{description:f("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:ee(new Lt(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ee(new ct(19,"columnSelection",!1,{description:f("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new Q6),contextmenu:ee(new ct(21,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new ct(22,"copyWithSyntaxHighlighting",!0,{description:f("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new Tb(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],X6,{description:f("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new ai(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),f("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:f("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new Tb(25,"cursorStyle",Gi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],J6,{description:f("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new Lt(26,"cursorSurroundingLines",0,0,1073741824,{description:f("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ee(new ai(27,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:f("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new Lt(28,"cursorWidth",0,0,1073741824,{markdownDescription:f("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new ct(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new ct(30,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new ct(31,"domReadOnly",!1)),dragAndDrop:ee(new ct(32,"dragAndDrop",!0,{description:f("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new tW),dropIntoEditor:ee(new NW),stickyScroll:ee(new cW),experimentalWhitespaceRendering:ee(new ai(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),f("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),f("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:f("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ee(new ds(36,"extraEditorClassName","")),fastScrollSensitivity:ee(new Xr(37,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:f("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new iW),fixedOverflowWidgets:ee(new ct(39,"fixedOverflowWidgets",!1)),folding:ee(new ct(40,"folding",!0,{description:f("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new ai(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),f("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:f("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new ct(42,"foldingHighlight",!0,{description:f("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new ct(43,"foldingImportsByDefault",!1,{description:f("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ee(new Lt(44,"foldingMaximumRegions",5e3,10,65e3,{description:f("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ee(new ct(45,"unfoldOnClickAfterEndOfLine",!1,{description:f("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new ds(46,"fontFamily",ps.fontFamily,{description:f("fontFamily","Controls the font family.")})),fontInfo:ee(new nW),fontLigatures2:ee(new As),fontSize:ee(new sW),fontWeight:ee(new Ur),fontVariations:ee(new or),formatOnPaste:ee(new ct(52,"formatOnPaste",!1,{description:f("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new ct(53,"formatOnType",!1,{description:f("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new ct(54,"glyphMargin",!0,{description:f("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new oW),hideCursorInOverviewRuler:ee(new ct(56,"hideCursorInOverviewRuler",!1,{description:f("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ee(new rW),inDiffEditor:ee(new ct(58,"inDiffEditor",!1)),letterSpacing:ee(new Xr(60,"letterSpacing",ps.letterSpacing,o=>Xr.clamp(o,-5,20),{description:f("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new lW),lineDecorationsWidth:ee(new hW),lineHeight:ee(new uW),lineNumbers:ee(new vW),lineNumbersMinChars:ee(new Lt(65,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new ct(66,"linkedEditing",!1,{description:f("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ee(new ct(67,"links",!0,{description:f("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new ai(68,"matchBrackets","always",["always","near","never"],{description:f("matchBrackets","Highlight matching brackets.")})),minimap:ee(new gW),mouseStyle:ee(new ai(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new Xr(71,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:f("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new ct(72,"mouseWheelZoom",!1,{markdownDescription:f("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new ct(73,"multiCursorMergeOverlapping",!0,{description:f("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new Tb(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],fW,{markdownEnumDescriptions:[f("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),f("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new ai(75,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f("multiCursorPaste.spread","Each cursor pastes a single line of the text."),f("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:f("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ee(new Lt(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ee(new ct(77,"occurrencesHighlight",!0,{description:f("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new ct(78,"overviewRulerBorder",!0,{description:f("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new Lt(79,"overviewRulerLanes",3,0,3)),padding:ee(new pW),parameterHints:ee(new mW),peekWidgetDefaultFocus:ee(new ai(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),f("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:f("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new ct(83,"definitionLinkOpensInPeek",!1,{description:f("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new bW),quickSuggestionsDelay:ee(new Lt(85,"quickSuggestionsDelay",10,0,1073741824,{description:f("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new ct(86,"readOnly",!1)),renameOnType:ee(new ct(87,"renameOnType",!1,{description:f("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:f("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new ct(88,"renderControlCharacters",!0,{description:f("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ee(new ai(89,"renderFinalNewline",hn?"dimmed":"on",["off","on","dimmed"],{description:f("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new ai(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:f("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new ct(91,"renderLineHighlightOnlyWhenFocus",!1,{description:f("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ee(new ai(92,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new ai(93,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),f("renderWhitespace.selection","Render whitespace characters only on selected text."),f("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:f("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new Lt(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ee(new ct(95,"roundedSelection",!0,{description:f("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new CW),scrollbar:ee(new wW),scrollBeyondLastColumn:ee(new Lt(98,"scrollBeyondLastColumn",4,0,1073741824,{description:f("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new ct(99,"scrollBeyondLastLine",!0,{description:f("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new ct(100,"scrollPredominantAxis",!0,{description:f("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ee(new ct(101,"selectionClipboard",!0,{description:f("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:hn})),selectionHighlight:ee(new ct(102,"selectionHighlight",!0,{description:f("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new ct(103,"selectOnLineNumbers",!0)),showFoldingControls:ee(new ai(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f("showFoldingControls.always","Always show the folding controls."),f("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),f("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:f("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new ct(105,"showUnused",!0,{description:f("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new ct(133,"showDeprecated",!0,{description:f("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new dW),snippetSuggestions:ee(new ai(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),f("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),f("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),f("snippetSuggestions.none","Do not show snippet suggestions.")],description:f("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new kW),smoothScrolling:ee(new ct(108,"smoothScrolling",!1,{description:f("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new Lt(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new xW),inlineSuggest:ee(new yW),suggestFontSize:ee(new Lt(113,"suggestFontSize",0,0,1e3,{markdownDescription:f("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ee(new Lt(114,"suggestLineHeight",0,0,1e3,{markdownDescription:f("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ee(new ct(115,"suggestOnTriggerCharacters",!0,{description:f("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new ai(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f("suggestSelection.first","Always select the first suggestion."),f("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new ai(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),f("tabCompletion.off","Disable tab completions."),f("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f("tabCompletion","Enables tab completions.")})),tabIndex:ee(new Lt(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:ee(new SW),unusualLineTerminators:ee(new ai(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),f("unusualLineTerminators.off","Unusual line terminators are ignored."),f("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:f("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new ct(121,"useShadowDOM",!0)),useTabStops:ee(new ct(122,"useTabStops",!0,{description:f("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ee(new ai(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f("wordBreak.normal","Use the default line break rule."),f("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ee(new ds(124,"wordSeparators",p4,{description:f("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new ai(125,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f("wordWrap.off","Lines will never wrap."),f("wordWrap.on","Lines will wrap at the viewport width."),f({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),f({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new ds(126,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new ds(127,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new Lt(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:f({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ee(new ai(129,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ee(new ai(130,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ee(new eW),pixelRatio:ee(new _W),tabFocusMode:ee(new IW),layoutInfo:ee(new ag),wrappingInfo:ee(new TW),wrappingIndent:ee(new EW),wrappingStrategy:ee(new aW)};class PW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tg.isErrorNoTelemetry(e)?new Tg(e.message+` @@ -629,7 +629,7 @@ ${e.toString()}`}}class XC{constructor(e=new gw,t=!1,i,n=Wie){var s;this._servic `:`\r `}};Bk=td([Zi(0,at)],Bk);class Yie{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class h_{constructor(){const e=Ce.from({scheme:h_.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new EJ({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===h_.SCHEME?this.workspace.folders[0]:null}}h_.SCHEME="inmemory";function JC(o,e,t){if(!e||!(o instanceof B7))return;const i=[];Object.keys(e).forEach(n=>{lJ(n)&&i.push([`editor.${n}`,e[n]]),t&&cJ(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Wk=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return EN(this,void 0,void 0,function*(){const i=Array.isArray(e)?e:JT.convert(e),n=new Map;for(const a of i){if(!(a instanceof fl))throw new Error("bad edit - only text edits are supported");const l=this._modelService.getModel(a.resource);if(!l)throw new Error("bad edit - model not found");if(typeof a.versionId=="number"&&l.getVersionId()!==a.versionId)throw new Error("bad state - model changed in the meantime");let c=n.get(l);c||(c=[],n.set(l,c)),c.push(Wt.replaceMove(y.lift(a.textEdit.range),a.textEdit.text))}let s=0,r=0;for(const[a,l]of n)a.pushStackElement(),a.pushEditOperations([],l,()=>[]),a.pushStackElement(),r+=1,s+=l.length;return{ariaSummary:to(ek.bulkEditServiceSummary,s,r),isApplied:s>0}})}};Wk=td([Zi(0,jt)],Wk);class Qie{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return uo(e)}}let Vk=class extends tk{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Vk=td([Zi(0,kf),Zi(1,ut)],Vk);class Xie{constructor(){this._neverEmitter=new O,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Jie extends t_{constructor(){super()}}class ene extends jie{constructor(){super(new Wz)}}let Hk=class extends rk{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r),this.configure({blockMouse:!1})}};Hk=td([Zi(0,mo),Zi(1,_i),Zi(2,xl),Zi(3,ei),Zi(4,Ea),Zi(5,Ee)],Hk);class tne{playAudioCue(e,t){return EN(this,void 0,void 0,function*(){})}}ot(at,B7,0);ot(ZE,Fk,0);ot(SF,Bk,0);ot(Xm,h_,0);ot(Yg,Qie,0);ot(mo,Yie,0);ot(tb,Gie,0);ot(_i,d_,0);ot(Na,Kl,0);ot(Ut,Jie,0);ot(Ks,Die,0);ot(po,ene,0);ot(jt,jC,0);ot(iT,hk,0);ot(Ee,Rk,0);ot(QT,qie,0);ot(ed,Aw,0);ot(jo,oee,0);ot($o,tx,0);ot(ib,Wk,0);ot(K3,Xie,0);ot(os,Pk,0);ot(xa,Ek,0);ot(wo,Qte,0);ot(ri,Ok,0);ot(ei,tf,0);ot(Ma,kk,0);ot(xl,Vk,0);ot(vo,dk,0);ot(Dl,Ak,0);ot(xr,Hk,0);ot(Ea,Tk,0);ot(HE,tne,0);var ke;(function(o){const e=new gw;for(const[r,a]of Z2())e.set(r,a);const t=new XC(e,!0);e.set(Me,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof Hr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of Z2())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Je(a);e.get(l)instanceof Hr&&e.set(l,r[a])}return t}o.initialize=s})(ke||(ke={}));var TN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bt=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ine=0,IP=!1;function nne(o){if(!o){if(IP)return;IP=!0}f$(o||document.body)}let e1=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||PC.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+PC.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof tf?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,nne(g.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++ine,s=oe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None;const t=e.id,i=e.label,n=oe.and(oe.equals("editorId",this.getId()),oe.deserialize(e.precondition)),s=e.keybindings,r=oe.and(n,oe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...p)=>Promise.resolve(e.run(this,...p)),d=new Z,h=this.getId()+":"+t;if(d.add(st.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(Jn.appendMenuItem(T.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new P5(h,i,i,n,c,this._contextKeyService);return this._actions.set(t,u),d.add(Pe(()=>{this._actions.delete(t)})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof EC)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};e1=TN([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Hi),Bt(8,_i),Bt(9,xa),Bt(10,ui),Bt(11,ge)],e1);let zk=class extends e1{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,p,m){const _=Object.assign({},t);JC(d,_,!1);const v=l.registerEditorContainer(e);typeof _.theme=="string"&&l.setTheme(_.theme),typeof _.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(!!_.autoDetectHighContrast);const b=_.model;delete _.model,super(e,_,i,n,s,r,a,l,c,h,p,m),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let C;if(typeof b>"u"){const S=g.getLanguageIdByMimeType(_.language)||_.language||Vs;C=W7(u,g,_.value||"",S,void 0),this._ownsModel=!0}else C=b,this._ownsModel=!1;if(this._attachModel(C),C){const S={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){JC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};zk=TN([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Ks),Bt(8,_i),Bt(9,at),Bt(10,xa),Bt(11,jt),Bt(12,Ut),Bt(13,ui),Bt(14,ge)],zk);let Uk=class extends Oc{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=Object.assign({},t);JC(l,u,!0);const g=r.registerEditorContainer(e);typeof u.theme=="string"&&r.setTheme(u.theme),typeof u.autoDetectHighContrast<"u"&&r.setAutoDetectHighContrast(!!u.autoDetectHighContrast),super(e,u,{},h,n,i,s,r,a,c,d),this._configurationService=l,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){JC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(e1,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};Uk=TN([Bt(2,Me),Bt(3,Ee),Bt(4,ut),Bt(5,Ks),Bt(6,_i),Bt(7,at),Bt(8,xr),Bt(9,ed),Bt(10,Dl)],Uk);function W7(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),EP(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return EP(o,t,e.createById(i),n)}function EP(o,e,t,i){return o.createModel(e,t,i)}function sne(o,e,t){return ke.initialize(t||{}).createInstance(zk,o,e)}function one(o){return ke.get(ut).onCodeEditorAdd(t=>{o(t)})}function rne(o){return ke.get(ut).onDiffEditorAdd(t=>{o(t)})}function ane(){return ke.get(ut).listCodeEditors()}function lne(){return ke.get(ut).listDiffEditors()}function cne(o,e,t){return ke.initialize(t||{}).createInstance(Uk,o,e)}function dne(o,e){return ke.initialize({}).createInstance($D,o,e)}function hne(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return st.registerCommand(o.id,o.run)}function une(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=oe.deserialize(o.precondition),t=(n,...s)=>Ji.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new Z;if(i.add(st.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(Jn.appendMenuItem(T.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=ke.get(ei);if(!(n instanceof tf))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=oe.and(e,oe.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function gne(o){return V7([o])}function V7(o){const e=ke.get(ei);return e instanceof tf?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:oe.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None)}function fne(o,e,t){const i=ke.get(Ut),n=i.getLanguageIdByMimeType(e)||e;return W7(ke.get(jt),i,o,n,t)}function pne(o,e){const t=ke.get(Ut),i=ke.get(jt),n=t.getLanguageIdByMimeType(e)||e||Vs;i.setMode(o,t.createById(n))}function mne(o,e,t){o&&ke.get(Na).changeOne(e,o.uri,t)}function _ne(o){ke.get(Na).changeAll(o,[])}function bne(o){return ke.get(Na).read(o)}function vne(o){return ke.get(Na).onMarkerChanged(o)}function Cne(o){return ke.get(jt).getModel(o)}function wne(){return ke.get(jt).getModels()}function Sne(o){return ke.get(jt).onModelAdded(o)}function yne(o){return ke.get(jt).onModelRemoved(o)}function Lne(o){return ke.get(jt).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function Dne(o){return jz(ke.get(jt),ke.get(ui),o)}function xne(o,e){const t=ke.get(Ut),i=ke.get(Ks);return i.registerEditorContainer(o),JE.colorizeElement(i,t,o,e)}function kne(o,e,t){const i=ke.get(Ut);return ke.get(Ks).registerEditorContainer(document.body),JE.colorize(i,o,e,t)}function Ine(o,e,t=4){return ke.get(Ks).registerEditorContainer(document.body),JE.colorizeModelLine(o,e,t)}function Ene(o){const e=Kt.get(o);return e||{getInitialState:()=>Bg,tokenize:(t,i,n)=>$E(o,n)}}function Tne(o,e){Kt.getOrCreate(e);const t=Ene(e),i=ma(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Rt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Rt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!dU(o,Gl(o,n,"",[],""))))throw Rt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=$k(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=jk(e,this.name,t)}}function H7(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=_0(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=_0(e.ignoreCase,!1),t.unicode=_0(e.unicode,!1),t.tokenPostfix=TP(e.tokenPostfix,"."+t.languageId),t.defaultToken=TP(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw Rt(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw Rt(t,"include target '"+d+"' is not defined at: "+r);n(r+"."+d,a,e.tokenizer[d])}else{const h=new Vne(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(h.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")h.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],h.setAction(i,u)}else throw Rt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else h.setAction(i,c[1]);else{if(!c.regex)throw Rt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(h.name=c.name),c.matchOnlyAtStart&&(h.matchOnlyAtLineStart=_0(c.matchOnlyAtLineStart,!1)),h.setRegex(i,c.regex),h.setAction(i,c.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Rt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Rt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Rt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pc(t,a.open),close:pc(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Hne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function zne(o){Fg.registerLanguage(o)}function Une(){let o=[];return o=o.concat(Fg.getLanguages()),o}function $ne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function jne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Kne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class qne{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new x1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gHne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Gne(i)?U7(o,i):new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function Qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return z7(e)?NN(o,{create:()=>e}):Kt.register(o,U7(o,e))}function Xne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at));return z7(e)?NN(o,{create:()=>e}):Kt.register(o,t(e))}function Jne(o,e){return ke.get(ge).referenceProvider.register(o,e)}function ese(o,e){return ke.get(ge).renameProvider.register(o,e)}function tse(o,e){return ke.get(ge).signatureHelpProvider.register(o,e)}function ise(o,e){return ke.get(ge).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function nse(o,e){return ke.get(ge).documentSymbolProvider.register(o,e)}function sse(o,e){return ke.get(ge).documentHighlightProvider.register(o,e)}function ose(o,e){return ke.get(ge).linkedEditingRangeProvider.register(o,e)}function rse(o,e){return ke.get(ge).definitionProvider.register(o,e)}function ase(o,e){return ke.get(ge).implementationProvider.register(o,e)}function lse(o,e){return ke.get(ge).typeDefinitionProvider.register(o,e)}function cse(o,e){return ke.get(ge).codeLensProvider.register(o,e)}function dse(o,e,t){return ke.get(ge).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=ke.get(Na).read({resource:n.uri}).filter(d=>y.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function hse(o,e){return ke.get(ge).documentFormattingEditProvider.register(o,e)}function use(o,e){return ke.get(ge).documentRangeFormattingEditProvider.register(o,e)}function gse(o,e){return ke.get(ge).onTypeFormattingEditProvider.register(o,e)}function fse(o,e){return ke.get(ge).linkProvider.register(o,e)}function pse(o,e){return ke.get(ge).completionProvider.register(o,e)}function mse(o,e){return ke.get(ge).colorProvider.register(o,e)}function _se(o,e){return ke.get(ge).foldingRangeProvider.register(o,e)}function bse(o,e){return ke.get(ge).declarationProvider.register(o,e)}function vse(o,e){return ke.get(ge).selectionRangeProvider.register(o,e)}function Cse(o,e){return ke.get(ge).documentSemanticTokensProvider.register(o,e)}function wse(o,e){return ke.get(ge).documentRangeSemanticTokensProvider.register(o,e)}function Sse(o,e){return ke.get(ge).inlineCompletionsProvider.register(o,e)}function yse(o,e){return ke.get(ge).inlayHintsProvider.register(o,e)}function Lse(){return{register:zne,getLanguages:Une,onLanguage:jne,getEncodedLanguageId:$ne,setLanguageConfiguration:Kne,setColorMap:Yne,registerTokensProviderFactory:NN,setTokensProvider:Qne,setMonarchTokensProvider:Xne,registerReferenceProvider:Jne,registerRenameProvider:ese,registerCompletionItemProvider:pse,registerSignatureHelpProvider:tse,registerHoverProvider:ise,registerDocumentSymbolProvider:nse,registerDocumentHighlightProvider:sse,registerLinkedEditingRangeProvider:ose,registerDefinitionProvider:rse,registerImplementationProvider:ase,registerTypeDefinitionProvider:lse,registerCodeLensProvider:cse,registerCodeActionProvider:dse,registerDocumentFormattingEditProvider:hse,registerDocumentRangeFormattingEditProvider:use,registerOnTypeFormattingEditProvider:gse,registerLinkProvider:fse,registerColorProvider:mse,registerFoldingRangeProvider:_se,registerDeclarationProvider:bse,registerSelectionRangeProvider:vse,registerDocumentSemanticTokensProvider:Cse,registerDocumentRangeSemanticTokensProvider:wse,registerInlineCompletionsProvider:Sse,registerInlayHintsProvider:yse,DocumentHighlightKind:dD,CompletionItemKind:sD,CompletionItemTag:oD,CompletionItemInsertTextRule:Fv,SymbolKind:AD,SymbolTag:RD,IndentAction:pD,CompletionTriggerKind:rD,SignatureHelpTriggerKind:MD,InlayHintKind:_D,InlineCompletionTriggerKind:bD,CodeActionTriggerType:nD,FoldingRangeKind:vr}}const MN=Je("IEditorCancelService"),$7=new ce("cancellableOperation",!1,f("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(MN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=$7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class Dse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(MN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:$7})}runEditorCommand(o,e){o.get(MN).cancel(e)}});let j7=class Kk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Kk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Kk(e,this.flags))}};class Sh extends Dse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class AN extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function K7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function xse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function q7(o){return La(o)?o:K7(o)?o.getModifiedEditor():xse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class nf{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=nf._handleEolEdits(e,t);s.length===1&&nf._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Wt.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Wt.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class eL{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function RN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(c[d-1],m)?c[d-1]=y.fromPositions(c[d-1].getStartPosition(),m.getEndPosition()):d=c.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,v;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const b=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(v=e.extensionId)===null||v===void 0?void 0:v.value,b),b}),u=(m,_)=>{if(!m.length||!_.length)return!1;const v=m.reduce((b,C)=>y.plusRange(b,C.range),m[0].range);if(!_.some(b=>y.intersectRanges(v,b.range)))return!1;for(const b of m)for(const C of _)if(y.intersectRanges(b.range,C.range))return!0;return!1},g=[],p=[];try{for(const m of c){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:v.text,range:y.lift(v.range),forceMoveMarkers:!0})),v=>{for(const{range:b}of v)if(y.areIntersectingOrTouching(b,_))return[new he(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)];return null})}return!0})}function Ise(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(ge),a=La(e)?e.getModel():e,l=G7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield yh.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Ese,c,e,t,n))})}function Ese(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new AN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))nf.execute(t,l,i!==2),i!==2&&(RN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new he(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,d))return[new he(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function Tse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Nse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=G7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function Y7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(ge),l=yield s.createModelReference(t);try{return Tse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(ge),a=yield n.createModelReference(t);try{return Nse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(ge),c=yield r.createModelReference(t);try{return Y7(a,l,c.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{c.dispose()}})});var tL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=U4();zn.editor=Pne();zn.languages=Lse();const Q7=zn.CancellationTokenSource,X7=zn.Emitter,J7=zn.KeyCode,e8=zn.KeyMod,t8=zn.Position,i8=zn.Range,n8=zn.Selection,s8=zn.SelectionDirection,o8=zn.MarkerSeverity,r8=zn.MarkerTag,a8=zn.Uri,l8=zn.Token,ja=zn.editor,PN=zn.languages;(!((tL=di.MonacoEnvironment)===null||tL===void 0)&&tL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const lb=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Q7,Emitter:X7,KeyCode:J7,KeyMod:e8,MarkerSeverity:o8,MarkerTag:r8,Position:t8,Range:i8,Selection:n8,SelectionDirection:s8,Token:l8,Uri:a8,editor:ja,languages:PN},Symbol.toStringTag,{value:"Module"}));var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-ffbe9c82.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-38989e74.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-714c239b.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-7eb152e5.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-80731f71.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-91a865e0.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-7e0f8eaa.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-af1c6ca9.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-d087d64c.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-13ea92a6.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-1949305a.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-e148524e.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-0a096fe0.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-af4eb422.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-8f5b983c.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4b853ea7.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-47a350b0.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-de5183ae.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-f57a57cd.js"),["assets/freemarker2-f57a57cd.js","assets/index-4040ca75.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-a9169306.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-e84c0b6e.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-74e74baf.js"),["assets/handlebars-74e74baf.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-3a006f6b.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-60c9e445.js"),["assets/html-60c9e445.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-53b87513.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-58c1a618.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-26decd57.js"),["assets/javascript-26decd57.js","assets/typescript-37df992a.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-5f2fc018.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-2e32535a.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-4cb00c13.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-22a22ba3.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-04a273a9.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-28efbe21.js"),["assets/liquid-28efbe21.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-b6e0b0fd.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-a4831c3f.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-daa25bd4.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-c6fa6f2f.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-753a9662.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-9e968999.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-e017ea4d.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-bf7e3de8.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-2762c71f.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-1566d400.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-df365951.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-6c133053.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-b245e70f.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-6b7a9cc4.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-50bb8773.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-c49b6d53.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-409e523c.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-b4217ff7.js"),["assets/python-b4217ff7.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-8d792318.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-c34a576e.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-48ef3acc.js"),["assets/razor-48ef3acc.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-1a5ba628.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-39be2a89.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-4a10ef1d.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-944f56a1.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-b0440aa9.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-f3b34295.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-7c17b334.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-f75b8a9a.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-0b143c7e.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-fe999acd.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-62f35cba.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-94cd0024.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-23f0115e.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-9ac813b8.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-4d0d15a1.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-bc5aaa52.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-838585b9.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-1b470482.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-37df992a.js"),["assets/typescript-37df992a.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-2f676a0c.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-b5d59370.js"),["assets/xml-b5d59370.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-6b245353.js"),["assets/yaml-6b245353.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])});var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-f8a12b8f.js"),["assets/cssMode-f8a12b8f.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-ba2f4a4d.js"),["assets/htmlMode-ba2f4a4d.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-aac536f7.js"),["assets/jsonMode-aac536f7.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-9d1f3fbb.js"),["assets/tsMode-9d1f3fbb.js","assets/index-4040ca75.js","assets/index-fb69acce.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pc(t,a.open),close:pc(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Hne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function zne(o){Fg.registerLanguage(o)}function Une(){let o=[];return o=o.concat(Fg.getLanguages()),o}function $ne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function jne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Kne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class qne{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new x1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gHne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Gne(i)?U7(o,i):new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function Qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return z7(e)?NN(o,{create:()=>e}):Kt.register(o,U7(o,e))}function Xne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at));return z7(e)?NN(o,{create:()=>e}):Kt.register(o,t(e))}function Jne(o,e){return ke.get(ge).referenceProvider.register(o,e)}function ese(o,e){return ke.get(ge).renameProvider.register(o,e)}function tse(o,e){return ke.get(ge).signatureHelpProvider.register(o,e)}function ise(o,e){return ke.get(ge).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function nse(o,e){return ke.get(ge).documentSymbolProvider.register(o,e)}function sse(o,e){return ke.get(ge).documentHighlightProvider.register(o,e)}function ose(o,e){return ke.get(ge).linkedEditingRangeProvider.register(o,e)}function rse(o,e){return ke.get(ge).definitionProvider.register(o,e)}function ase(o,e){return ke.get(ge).implementationProvider.register(o,e)}function lse(o,e){return ke.get(ge).typeDefinitionProvider.register(o,e)}function cse(o,e){return ke.get(ge).codeLensProvider.register(o,e)}function dse(o,e,t){return ke.get(ge).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=ke.get(Na).read({resource:n.uri}).filter(d=>y.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function hse(o,e){return ke.get(ge).documentFormattingEditProvider.register(o,e)}function use(o,e){return ke.get(ge).documentRangeFormattingEditProvider.register(o,e)}function gse(o,e){return ke.get(ge).onTypeFormattingEditProvider.register(o,e)}function fse(o,e){return ke.get(ge).linkProvider.register(o,e)}function pse(o,e){return ke.get(ge).completionProvider.register(o,e)}function mse(o,e){return ke.get(ge).colorProvider.register(o,e)}function _se(o,e){return ke.get(ge).foldingRangeProvider.register(o,e)}function bse(o,e){return ke.get(ge).declarationProvider.register(o,e)}function vse(o,e){return ke.get(ge).selectionRangeProvider.register(o,e)}function Cse(o,e){return ke.get(ge).documentSemanticTokensProvider.register(o,e)}function wse(o,e){return ke.get(ge).documentRangeSemanticTokensProvider.register(o,e)}function Sse(o,e){return ke.get(ge).inlineCompletionsProvider.register(o,e)}function yse(o,e){return ke.get(ge).inlayHintsProvider.register(o,e)}function Lse(){return{register:zne,getLanguages:Une,onLanguage:jne,getEncodedLanguageId:$ne,setLanguageConfiguration:Kne,setColorMap:Yne,registerTokensProviderFactory:NN,setTokensProvider:Qne,setMonarchTokensProvider:Xne,registerReferenceProvider:Jne,registerRenameProvider:ese,registerCompletionItemProvider:pse,registerSignatureHelpProvider:tse,registerHoverProvider:ise,registerDocumentSymbolProvider:nse,registerDocumentHighlightProvider:sse,registerLinkedEditingRangeProvider:ose,registerDefinitionProvider:rse,registerImplementationProvider:ase,registerTypeDefinitionProvider:lse,registerCodeLensProvider:cse,registerCodeActionProvider:dse,registerDocumentFormattingEditProvider:hse,registerDocumentRangeFormattingEditProvider:use,registerOnTypeFormattingEditProvider:gse,registerLinkProvider:fse,registerColorProvider:mse,registerFoldingRangeProvider:_se,registerDeclarationProvider:bse,registerSelectionRangeProvider:vse,registerDocumentSemanticTokensProvider:Cse,registerDocumentRangeSemanticTokensProvider:wse,registerInlineCompletionsProvider:Sse,registerInlayHintsProvider:yse,DocumentHighlightKind:dD,CompletionItemKind:sD,CompletionItemTag:oD,CompletionItemInsertTextRule:Fv,SymbolKind:AD,SymbolTag:RD,IndentAction:pD,CompletionTriggerKind:rD,SignatureHelpTriggerKind:MD,InlayHintKind:_D,InlineCompletionTriggerKind:bD,CodeActionTriggerType:nD,FoldingRangeKind:vr}}const MN=Je("IEditorCancelService"),$7=new ce("cancellableOperation",!1,f("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(MN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=$7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class Dse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(MN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:$7})}runEditorCommand(o,e){o.get(MN).cancel(e)}});let j7=class Kk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Kk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Kk(e,this.flags))}};class Sh extends Dse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class AN extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function K7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function xse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function q7(o){return La(o)?o:K7(o)?o.getModifiedEditor():xse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class nf{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=nf._handleEolEdits(e,t);s.length===1&&nf._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Wt.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Wt.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class eL{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function RN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(c[d-1],m)?c[d-1]=y.fromPositions(c[d-1].getStartPosition(),m.getEndPosition()):d=c.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,v;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const b=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(v=e.extensionId)===null||v===void 0?void 0:v.value,b),b}),u=(m,_)=>{if(!m.length||!_.length)return!1;const v=m.reduce((b,C)=>y.plusRange(b,C.range),m[0].range);if(!_.some(b=>y.intersectRanges(v,b.range)))return!1;for(const b of m)for(const C of _)if(y.intersectRanges(b.range,C.range))return!0;return!1},g=[],p=[];try{for(const m of c){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:v.text,range:y.lift(v.range),forceMoveMarkers:!0})),v=>{for(const{range:b}of v)if(y.areIntersectingOrTouching(b,_))return[new he(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)];return null})}return!0})}function Ise(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(ge),a=La(e)?e.getModel():e,l=G7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield yh.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Ese,c,e,t,n))})}function Ese(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new AN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))nf.execute(t,l,i!==2),i!==2&&(RN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new he(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,d))return[new he(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function Tse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Nse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=G7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function Y7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(ge),l=yield s.createModelReference(t);try{return Tse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(ge),a=yield n.createModelReference(t);try{return Nse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(ge),c=yield r.createModelReference(t);try{return Y7(a,l,c.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{c.dispose()}})});var tL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=U4();zn.editor=Pne();zn.languages=Lse();const Q7=zn.CancellationTokenSource,X7=zn.Emitter,J7=zn.KeyCode,e8=zn.KeyMod,t8=zn.Position,i8=zn.Range,n8=zn.Selection,s8=zn.SelectionDirection,o8=zn.MarkerSeverity,r8=zn.MarkerTag,a8=zn.Uri,l8=zn.Token,ja=zn.editor,PN=zn.languages;(!((tL=di.MonacoEnvironment)===null||tL===void 0)&&tL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const lb=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Q7,Emitter:X7,KeyCode:J7,KeyMod:e8,MarkerSeverity:o8,MarkerTag:r8,Position:t8,Range:i8,Selection:n8,SelectionDirection:s8,Token:l8,Uri:a8,editor:ja,languages:PN},Symbol.toStringTag,{value:"Module"}));var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-ffbe9c82.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-38989e74.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-714c239b.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-7eb152e5.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-80731f71.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-91a865e0.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-7e0f8eaa.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-af1c6ca9.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-d087d64c.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-13ea92a6.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-1949305a.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-e148524e.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-0a096fe0.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-af4eb422.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-8f5b983c.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4b853ea7.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-47a350b0.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-de5183ae.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-02bfb3b4.js"),["assets/freemarker2-02bfb3b4.js","assets/index-40f25da6.js","assets/index-fb69acce.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-a9169306.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-e84c0b6e.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-071155a3.js"),["assets/handlebars-071155a3.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-3a006f6b.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-0a927e79.js"),["assets/html-0a927e79.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-53b87513.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-58c1a618.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-6be51775.js"),["assets/javascript-6be51775.js","assets/typescript-07248291.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-5f2fc018.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-2e32535a.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-4cb00c13.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-22a22ba3.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-04a273a9.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-b7e49653.js"),["assets/liquid-b7e49653.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-b6e0b0fd.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-a4831c3f.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-daa25bd4.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-c6fa6f2f.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-753a9662.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-9e968999.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-e017ea4d.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-bf7e3de8.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-2762c71f.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-1566d400.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-df365951.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-6c133053.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-b245e70f.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-6b7a9cc4.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-50bb8773.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-c49b6d53.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-409e523c.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-42dab718.js"),["assets/python-42dab718.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-8d792318.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-c34a576e.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-5bcbaab2.js"),["assets/razor-5bcbaab2.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-1a5ba628.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-39be2a89.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-4a10ef1d.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-944f56a1.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-b0440aa9.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-f3b34295.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-7c17b334.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-f75b8a9a.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-0b143c7e.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-fe999acd.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-62f35cba.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-94cd0024.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-23f0115e.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-9ac813b8.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-4d0d15a1.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-bc5aaa52.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-838585b9.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-1b470482.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-07248291.js"),["assets/typescript-07248291.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-2f676a0c.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-40f65ec6.js"),["assets/xml-40f65ec6.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-2af7b3bd.js"),["assets/yaml-2af7b3bd.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])});var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-d0ed9f18.js"),["assets/cssMode-d0ed9f18.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-39850671.js"),["assets/htmlMode-39850671.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-a748f807.js"),["assets/jsonMode-a748f807.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-da7e0c92.js"),["assets/tsMode-da7e0c92.js","assets/index-40f25da6.js","assets/index-fb69acce.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>eS.split(o).filter(e=>!e.startsWith("#"))}),h1={EDITORS:"CodeEditors",FILES:"CodeFiles"};function ile(o){var e;const t=[];if(o.dataTransfer&&o.dataTransfer.types.length>0){const s=o.dataTransfer.getData(h1.EDITORS);if(s)try{t.push(...LC(s))}catch{}else try{const l=o.dataTransfer.getData(J_.RESOURCES);t.push(...nle(l))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let l=0;l0){const{selection:n,uri:s}=$3(Ce.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class sle{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const H9={DragAndDropContribution:"workbench.contributions.dragAndDrop"};$t.add(H9.DragAndDropContribution,new sle);var ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function xI(o){const e=new V9;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,e2(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,rle(n))}}return e}function rle(o){const e=o.path?Ce.parse(o.path):void 0;return tle(o.name,e,()=>ole(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ale=Object.freeze([h1.EDITORS,h1.FILES,J_.RESOURCES]);function lle(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Qn.uriList))){const n=ile(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?Ce.file(r.path).toString():r.name)}n.length&&o.replace(Qn.uriList,e2(eS.create(n)))}for(const n of ale)o.delete(n)}var cle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ap=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},D0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const SL="application/vnd.code.copyMetadata";let v_=class extends U{constructor(e,t,i,n,s,r){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._progressService=r,this._editor=e;const a=e.getContainerDomNode();this._register(K(a,"copy",l=>this.handleCopy(l))),this._register(K(a,"cut",l=>this.handleCopy(l))),this._register(K(a,"paste",l=>this.handlePaste(l),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})?!0:e.uri.scheme===We.vscodeNotebookCell}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(34))return;s[0]=new y(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const c=xI(e.clipboardData),d=Jw();this.setCopyMetadata(e.clipboardData,{id:d,wasFromEmptySelection:a});const h=Wi(u=>D0(this,void 0,void 0,function*(){const g=yield Promise.all(l.map(p=>p.prepareDocumentPaste(i,s,c,u)));for(const p of g)p==null||p.forEach((m,_)=>{c.replace(_,m)});return c}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:d,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(SL,JSON.stringify(t))}handlePaste(e){var t,i,n,s;return D0(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const r=this._editor.getSelections();if(!(r!=null&&r.length)||!this._editor.hasModel())return;const a=this._editor.getModel();if(!this.arePasteActionsEnabled(a))return;let l;const c=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(SL);c&&typeof c=="string"&&(l=JSON.parse(c));const d=this._languageFeaturesService.documentPasteEditProvider.ordered(a);if(!d.length)return;e.preventDefault(),e.stopImmediatePropagation();const h=new Sh(this._editor,3);try{const u=xI(e.clipboardData);if(l!=null&&l.id&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===l.id){const p=yield this._currentClipboardItem.dataTransferPromise;if(h.token.isCancellationRequested)return;p.forEach((m,_)=>{u.replace(_,m)})}if(!u.has(Qn.uriList)){const p=yield this._clipboardService.readResources();if(h.token.isCancellationRequested)return;p.length&&u.append(Qn.uriList,e2(eS.create(p)))}u.delete(SL);const g=yield this._progressService.withProgress({location:15,delay:750,title:f("pasteProgressTitle","Running paste handlers..."),cancellable:!0},()=>this.getProviderPasteEdit(d,u,a,r,h.token),()=>h.cancel());if(h.token.isCancellationRequested)return;if(g){const p=typeof g.insertText=="string"?Hc.escape(g.insertText):g.insertText.snippet,m={edits:[new fl(a.uri,{range:he.liftSelection(this._editor.getSelection()),text:p,insertAsSnippet:!0}),...(s=(n=g.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(m,{editor:this._editor});return}yield this.applyDefaultPasteHandler(u,l,h.token)}finally{h.dispose()}})}getProviderPasteEdit(e,t,i,n,s){return U1((()=>D0(this,void 0,void 0,function*(){for(const r of e){if(s.isCancellationRequested)return;if(!dle(r,t))continue;const a=yield r.provideDocumentPasteEdits(i,n,t,s);if(a)return a}}))(),s)}applyDefaultPasteHandler(e,t,i){var n;return D0(this,void 0,void 0,function*(){const s=(n=e.get(Qn.text))!==null&&n!==void 0?n:e.get("text");if(!s)return;const r=yield s.asString();i.isCancellationRequested||this._editor.trigger("keyboard","paste",{text:r,pasteOnNewLine:t==null?void 0:t.wasFromEmptySelection,multicursorText:null})})}};v_.ID="editor.contrib.copyPasteActionController";v_=cle([ap(1,ib),ap(2,Dl),ap(3,at),ap(4,ge),ap(5,QT)],v_);function dle(o,e){return o.pasteMimeTypes.some(t=>t.toLowerCase()===J_.FILES.toLowerCase()?[...e.values()].some(i=>i.asFile()):e.has(t))}lt(v_.ID,v_,0);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:f("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class cc{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(c);let g=h.lastIndexOf(t,l-1+t.length),p=u.indexOf(i,d-1-i.length);if(g!==-1&&p!==-1)if(a===c)h.substring(g+t.length,p).indexOf(i)>=0&&(g=-1,p=-1);else{const _=h.substring(g+t.length),v=u.substring(0,p);(_.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,p=-1)}let m;g!==-1&&p!==-1?(n&&g+t.length0&&u.charCodeAt(p-1)===32&&(i=" "+i,p-=1),m=cc._createRemoveBlockCommentOperations(new y(a,g+t.length+1,c,p+1),t,i)):(m=cc._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=m.length===1?i:null);for(const _ of m)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return y.isEmpty(e)?n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Wt.delete(new y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return y.isEmpty(e)?s.push(Wt.replace(new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Wt.insert(new W(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Wt.insert(new W(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new he(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new he(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class Ka{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,d=i-t+1;cs?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class t2 extends de{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(ui);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(20),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>y.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let lf=class z9{static get(e){return e.getContribution(z9.ID)}constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Z,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&uh(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{this._editor.getOption(21)&&l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(21)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(21)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?T.SimpleEditorContext:T.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof Tm){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Hg(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new Bi)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(57);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=Fi(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new Zm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new Zm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(69);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run}),s=(c,d)=>new Hg(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const p=_=>()=>{this._configurationService.updateValue(h,_)},m=[];for(const _ of g)m.push(n({label:_.label,checked:u===_.value,run:p(_.value)}));return s(c,m)},a=[];a.push(n({label:f("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Bi),a.push(n({label:f("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(f("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:f("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:f("context.minimap.size.fill","Fill"),value:"fill"},{label:f("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(f("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:f("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:f("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};lf.ID="editor.contrib.contextmenu";lf=ple([Lu(1,xr),Lu(2,xl),Lu(3,Ee),Lu(4,ei),Lu(5,Ea),Lu(6,at)],lf);class mle extends de{constructor(){super({id:"editor.action.showContextMenu",label:f("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=lf.get(t))===null||i===void 0||i.showContextMenu()}}lt(lf.ID,lf,2);J(mle);class yL{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new yL(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new LL(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Nh.ID="editor.contrib.cursorUndoRedoController";class _le extends de{constructor(){super({id:"cursorUndo",label:f("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorUndo()}}class ble extends de{constructor(){super({id:"cursorRedo",label:f("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorRedo()}}lt(Nh.ID,Nh,0);J(_le);J(ble);class vle{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new he(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new he(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!0),this._mouseDown&&Du(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_l.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}Du(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new W(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new he(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new he(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(Du(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_l.ID,new vle(this._dragSelection,t,Du(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new y(e.lineNumber,e.column,e.lineNumber,e.column),options:_l._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_l.ID="editor.contrib.dragAndDrop";_l.TRIGGER_KEY_VALUE=Ke?6:5;_l._DECORATION_OPTIONS=Re.register({description:"dnd-target",className:"dnd-target"});lt(_l.ID,_l,2);var U9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},vv=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let C_=class extends U{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new kI(s))}onDropIntoEditor(e,t,i){var n,s;return vv(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const r=e.getModel(),a=r.getVersionId(),l=yield this.extractDataTransferData(i);if(l.size===0||e.getModel().getVersionId()!==a)return;const c=new Sh(e,1);try{const d=this._languageFeaturesService.documentOnDropEditProvider.ordered(r),h=yield this._progressService.withProgress({location:15,delay:750,title:f("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>U1((()=>vv(this,void 0,void 0,function*(){for(const u of d){const g=yield u.provideDocumentOnDropEdits(r,t,l,c.token);if(c.token.isCancellationRequested)return;if(g)return g}}))(),c.token),()=>{c.cancel()});if(c.token.isCancellationRequested||e.getModel().getVersionId()!==a)return;if(h){const u=typeof h.insertText=="string"?Hc.escape(h.insertText):h.insertText.snippet,g={edits:[new fl(r.uri,{range:new y(t.lineNumber,t.column,t.lineNumber,t.column),text:u,insertAsSnippet:!0}),...(s=(n=h.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(g,{editor:e});return}}finally{c.dispose()}})}extractDataTransferData(e){return vv(this,void 0,void 0,function*(){if(!e.dataTransfer)return new V9;const t=xI(e.dataTransfer);return lle(t,e),t})}};C_.ID="editor.contrib.dropIntoEditorController";C_=U9([Fp(1,ib),Fp(2,ge),Fp(3,QT),Fp(4,Xm)],C_);let kI=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return vv(this,void 0,void 0,function*(){const r=i.get(Qn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Qn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of eS.parse(e))try{t.push(Ce.parse(i))}catch{}if(t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=gZ(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};kI=U9([Fp(0,Xm)],kI);lt(C_.ID,C_,2);class xn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,xn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,xn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new y(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,xn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=xn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=xn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,p=e.length;g=m.startLineNumber?m.endLineNumber>u&&(u=m.endLineNumber):(s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,u=m.endLineNumber)}s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,xn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;ry.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function hO(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function uO(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=$9([n[a]],r)+t}),s.slice(0,-1)}class gO{constructor(e){this.staticValue=e,this.kind=0}}class wle{constructor(e){this.pieces=e,this.kind=1}}class cf{static fromStaticValue(e){return new cf([sh.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new gO(""):e.length===1&&e[0].staticValue!==null?this._state=new gO(e[0].staticValue):this._state=new wle(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?$9(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` diff --git a/app/src/main/resources/web/assets/NetworkView-1bbc5b0e.js b/app/src/main/resources/web/assets/NetworkView-cd23fd42.js similarity index 88% rename from app/src/main/resources/web/assets/NetworkView-1bbc5b0e.js rename to app/src/main/resources/web/assets/NetworkView-cd23fd42.js index efdbcf33..cde71dba 100644 --- a/app/src/main/resources/web/assets/NetworkView-1bbc5b0e.js +++ b/app/src/main/resources/web/assets/NetworkView-cd23fd42.js @@ -1,4 +1,4 @@ -import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js";import{_ as b}from"./Breadcrumb-9fbc434f.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,bz as c,i as h,c as B,a as F,p as i,j as S,m as d,aW as g,o as U}from"./index-4040ca75.js";const q={class:"page-container"},D={class:"main"},M=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` +import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js";import{_ as b}from"./Breadcrumb-5456253f.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,bz as c,i as h,c as B,a as F,p as i,j as S,m as d,aW as g,o as U}from"./index-40f25da6.js";const q={class:"page-container"},D={class:"main"},M=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` query { networkConfig { ...NetworkConfigFragment diff --git a/app/src/main/resources/web/assets/NoteEditView-a7e56dfc.js b/app/src/main/resources/web/assets/NoteEditView-14cf96a0.js similarity index 93% rename from app/src/main/resources/web/assets/NoteEditView-a7e56dfc.js rename to app/src/main/resources/web/assets/NoteEditView-14cf96a0.js index 9eaa95c5..b486afad 100644 --- a/app/src/main/resources/web/assets/NoteEditView-a7e56dfc.js +++ b/app/src/main/resources/web/assets/NoteEditView-14cf96a0.js @@ -1 +1 @@ -import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import{_ as ne}from"./print-outline-rounded-5fc4afb9.js";import{aO as ae,aP as j,aQ as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aR as me,O as pe,P as D,Q as fe,R as ve,c as L,a as E,p as y,H as R,F as ge,J as he,m as H,l as J,k as O,j as A,aS as Te,w as ye,x as K,aT as ke,aU as be,aV as we,o as S,h as Ce,t as X,aW as xe,S as Se,A as Ee,B as Me,Z as Ne,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-4040ca75.js";import{_ as De}from"./Breadcrumb-9fbc434f.js";import{g as Z,M as Re}from"./splitpanes.es-20249936.js";import{u as Qe}from"./markdown-7d435800.js";var Ue=function(){return ae.Date.now()};const F=Ue;var We="Expected a function",Be=Math.max,He=Math.min;function Oe(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(We);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?Be(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?He(V,n-p):V}function M(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(M(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function N(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function W(){return a===void 0?o:C(F())}function I(){var t=F(),c=M(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=N,I.flush=W,I}const q=f=>(Ee("data-v-1574eff6"),f=f(),Me(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>E("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>E("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=Oe(()=>{u.value=!1,W({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),M=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let N=()=>{};if(m())M();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,M()}},document:be,variables:()=>({id:r.value}),appApi:!0});N=e}const{mutate:W,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Ne(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(B=>B.id===d.id)})})}const p=e=>{e.type===Q&&N()},V=e=>{e.type===Q&&N()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,B=Ae,Y=ne,ee=te,G=ve("tooltip");return S(),L("div",Fe,[E("div",Ge,[E("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),H(E("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(S(),Se(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):O("",!0)]}),_:1},8,["paths"]),(S(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(S(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?O("",!0):H((S(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(B)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?O("",!0):H((S(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[E("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; +import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import{_ as ne}from"./print-outline-rounded-f6e90fab.js";import{aO as ae,aP as j,aQ as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aR as me,O as pe,P as D,Q as fe,R as ve,c as L,a as E,p as y,H as R,F as ge,J as he,m as H,l as J,k as O,j as A,aS as Te,w as ye,x as K,aT as ke,aU as be,aV as we,o as S,h as Ce,t as X,aW as xe,S as Se,A as Ee,B as Me,Z as Ne,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-40f25da6.js";import{_ as De}from"./Breadcrumb-5456253f.js";import{g as Z,M as Re}from"./splitpanes.es-a34c2504.js";import{u as Qe}from"./markdown-c78c3af8.js";var Ue=function(){return ae.Date.now()};const F=Ue;var We="Expected a function",Be=Math.max,He=Math.min;function Oe(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(We);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?Be(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?He(V,n-p):V}function M(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(M(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function N(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function W(){return a===void 0?o:C(F())}function I(){var t=F(),c=M(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=N,I.flush=W,I}const q=f=>(Ee("data-v-1574eff6"),f=f(),Me(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>E("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>E("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=Oe(()=>{u.value=!1,W({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),M=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let N=()=>{};if(m())M();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,M()}},document:be,variables:()=>({id:r.value}),appApi:!0});N=e}const{mutate:W,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Ne(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(B=>B.id===d.id)})})}const p=e=>{e.type===Q&&N()},V=e=>{e.type===Q&&N()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,B=Ae,Y=ne,ee=te,G=ve("tooltip");return S(),L("div",Fe,[E("div",Ge,[E("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),H(E("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(S(),Se(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):O("",!0)]}),_:1},8,["paths"]),(S(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(S(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?O("",!0):H((S(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(B)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?O("",!0):H((S(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[E("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; diff --git a/app/src/main/resources/web/assets/NotesRootView-978e456f.js b/app/src/main/resources/web/assets/NotesRootView-9c77db22.js similarity index 72% rename from app/src/main/resources/web/assets/NotesRootView-978e456f.js rename to app/src/main/resources/web/assets/NotesRootView-9c77db22.js index 36d9e7aa..b1636ed9 100644 --- a/app/src/main/resources/web/assets/NotesRootView-978e456f.js +++ b/app/src/main/resources/web/assets/NotesRootView-9c77db22.js @@ -1 +1 @@ -import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-4040ca75.js";import{g as d,M as z}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; +import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-40f25da6.js";import{g as d,M as z}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; diff --git a/app/src/main/resources/web/assets/NotesTrashView-4f8c9b81.js b/app/src/main/resources/web/assets/NotesTrashView-9ffe18fd.js similarity index 94% rename from app/src/main/resources/web/assets/NotesTrashView-4f8c9b81.js rename to app/src/main/resources/web/assets/NotesTrashView-9ffe18fd.js index 126a3bde..79bd3e58 100644 --- a/app/src/main/resources/web/assets/NotesTrashView-4f8c9b81.js +++ b/app/src/main/resources/web/assets/NotesTrashView-9ffe18fd.js @@ -1,4 +1,4 @@ -import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-2b55c026.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,a_ as Ae,x as H,aX as Ie,C as j,W as z,a$ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aZ as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-4040ca75.js";import{_ as Ee}from"./Breadcrumb-9fbc434f.js";import{u as Ke}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Je=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Oe=[Je];function Pe(K,y){return n(),a("svg",xe,Oe)}const We={name:"material-symbols-restore-from-trash-outline-rounded",render:Pe},Xe={class:"v-toolbar"},Ye=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),x=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:J}=Ke(x,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:O}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:P,allCheckedAlertVisible:W,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:X,total:p,checked:M}=_e(u),{loading:Y,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` +import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-b6a3249f.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,a_ as Ae,x as H,aX as Ie,C as j,W as z,a$ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aZ as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-40f25da6.js";import{_ as Ee}from"./Breadcrumb-5456253f.js";import{u as Ke}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Je=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Oe=[Je];function Pe(K,y){return n(),a("svg",xe,Oe)}const We={name:"material-symbols-restore-from-trash-outline-rounded",render:Pe},Xe={class:"v-toolbar"},Ye=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),x=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:J}=Ke(x,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:O}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:P,allCheckedAlertVisible:W,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:X,total:p,checked:M}=_e(u),{loading:Y,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` mutation DeleteNote($query: String!) { deleteNotes(query: $query) } diff --git a/app/src/main/resources/web/assets/NotesView-adfdc1fd.js b/app/src/main/resources/web/assets/NotesView-2825dc60.js similarity index 95% rename from app/src/main/resources/web/assets/NotesView-adfdc1fd.js rename to app/src/main/resources/web/assets/NotesView-2825dc60.js index e02a5471..ed8ec0dc 100644 --- a/app/src/main/resources/web/assets/NotesView-adfdc1fd.js +++ b/app/src/main/resources/web/assets/NotesView-2825dc60.js @@ -1,2 +1,2 @@ -import{u as ve,_ as fe,a as ge,b as ke}from"./list-2b55c026.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aX as Ze,aY as Re,C as P,W as x,v as He,I as Le,Z as J,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aZ as W,a4 as Ke,a6 as Oe}from"./index-4040ca75.js";import{_ as Pe}from"./Breadcrumb-9fbc434f.js";import{u as xe,a as Je}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",We,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Rt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=xe(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=Je(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:Z}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Ze,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${x(p.value)}`)});const{mutate:R,onDone:ae}=Ae({document:Re,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}R({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${x(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){W.push(`/notes/${e.id}`)}function ue(){W.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(Z)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(Z)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` +import{u as ve,_ as fe,a as ge,b as ke}from"./list-b6a3249f.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aX as Ze,aY as Re,C as P,W as x,v as He,I as Le,Z as J,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aZ as W,a4 as Ke,a6 as Oe}from"./index-40f25da6.js";import{_ as Pe}from"./Breadcrumb-5456253f.js";import{u as xe,a as Je}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",We,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Rt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=xe(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=Je(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:Z}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Ze,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${x(p.value)}`)});const{mutate:R,onDone:ae}=Ae({document:Re,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}R({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${x(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){W.push(`/notes/${e.id}`)}function ue(){W.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(Z)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(Z)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` `)[0].trimStart()||e.$t("meta_no_title")),9,bt)]),t("td",$t,[t("div",yt,[k((l(),a("button",{class:"icon-button",onClick:r(h=>s(R)({query:`ids:${o.id}`}),["stop"])},[Ct,d(E)],8,Tt)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:r(h=>le(o),["stop"])},[wt,d(G)],8,qt)),[[T,e.$t("add_to_tags")]])])]),t("td",null,[d(he,{tags:o.tags,type:s(_)},null,8,["tags","type"])]),t("td",Vt,i(s(J)(o.updatedAt)),1),t("td",St,i(s(J)(o.createdAt)),1)],10,ft))),128))]),u.value.length?A("",!0):(l(),a("tfoot",At,[t("tr",null,[t("td",Dt,[t("div",Mt,i(e.$t(s(ze)(s(oe)))),1)])])]))])]),s(m)>b?(l(),Be(me,{key:0,modelValue:$.value,"onUpdate:modelValue":n[5]||(n[5]=o=>$.value=o),total:s(m),limit:b},null,8,["modelValue","total"])):A("",!0)],64)}}});export{Rt as default}; diff --git a/app/src/main/resources/web/assets/QrCodeGeneratorView-72764576.js b/app/src/main/resources/web/assets/QrCodeGeneratorView-ea803af3.js similarity index 99% rename from app/src/main/resources/web/assets/QrCodeGeneratorView-72764576.js rename to app/src/main/resources/web/assets/QrCodeGeneratorView-ea803af3.js index 51adcc06..85af752d 100644 --- a/app/src/main/resources/web/assets/QrCodeGeneratorView-72764576.js +++ b/app/src/main/resources/web/assets/QrCodeGeneratorView-ea803af3.js @@ -1 +1 @@ -import{_ as J}from"./Breadcrumb-9fbc434f.js";import{bt as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-4040ca75.js";import{g as H,M as st}from"./splitpanes.es-20249936.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var K=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function ot(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var ft=function(r){I(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=ot(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return B[r]}var A=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var N=L(U);function wt(r){for(var t=r<<12;L(t)-N>=0;)t^=U<=0;)t^=Q<5&&i++):(a=u,s=1)}return i}function yt(r){return G(r,!0)+G(r,!1)}function Bt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var Z=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(Z);function kt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var Ct=function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),At=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new E;this.write(t);var e=St(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var It=236,Rt=17,Tt=Object.prototype.toString;function Mt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function F(r,t,e,i){for(var n=new W,a=bt.getRSBlocks(r,t),s=0,f=i;s=0?T.getAt(M):0}}r=new W;for(var h=0;h=e||(r.put(It,8),r.getLengthInBits()>=e));)r.put(Rt,8);return zt(r,t)}var Ht=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?y.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case y.L:case y.M:case y.Q:case y.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof K)e.push(t);else{var i=Tt.call(t);if(i==="[object String]")e.push(new ft(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=pt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=wt(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=Et(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=F(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],m=Pt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(m,g),l.push(this.matrix);var _=_t(this);_>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new At(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Ot={class:"page-container"},Nt={class:"main"},Vt={class:"v-toolbar"},Gt=["src"],Ft=Y({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=$(j()),e=q(""),i=()=>{try{const n=new Ht;n.setEncodingHint(!0),n.setErrorCorrectionLevel(y.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return tt(t,()=>{i()}),i(),(n,a)=>{const s=J;return P(),z("div",Ot,[S("div",Nt,[S("div",Vt,[b(s,{current:()=>n.$t("qrcode_generator")},null,8,["current"])]),b(k(st),{class:"panel-container"},{default:D(()=>[b(k(H),null,{default:D(()=>[rt(S("md-outlined-text-field",{type:"textarea",rows:"3","onUpdate:modelValue":a[0]||(a[0]=f=>nt(t)?t.value=f:null)},null,512),[[et,k(t)]])]),_:1}),b(k(H),{class:"qrcode-panel"},{default:D(()=>[e.value?(P(),z("img",{key:0,src:e.value},null,8,Gt)):it("",!0)]),_:1})]),_:1})])])}}});const Wt=at(Ft,[["__scopeId","data-v-42e6751a"]]);export{Wt as default}; +import{_ as J}from"./Breadcrumb-5456253f.js";import{bt as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-40f25da6.js";import{g as H,M as st}from"./splitpanes.es-a34c2504.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var K=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function ot(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var ft=function(r){I(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=ot(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return B[r]}var A=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var N=L(U);function wt(r){for(var t=r<<12;L(t)-N>=0;)t^=U<=0;)t^=Q<5&&i++):(a=u,s=1)}return i}function yt(r){return G(r,!0)+G(r,!1)}function Bt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var Z=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(Z);function kt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var Ct=function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),At=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new E;this.write(t);var e=St(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var It=236,Rt=17,Tt=Object.prototype.toString;function Mt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function F(r,t,e,i){for(var n=new W,a=bt.getRSBlocks(r,t),s=0,f=i;s=0?T.getAt(M):0}}r=new W;for(var h=0;h=e||(r.put(It,8),r.getLengthInBits()>=e));)r.put(Rt,8);return zt(r,t)}var Ht=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?y.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case y.L:case y.M:case y.Q:case y.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof K)e.push(t);else{var i=Tt.call(t);if(i==="[object String]")e.push(new ft(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=pt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=wt(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=Et(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=F(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],m=Pt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(m,g),l.push(this.matrix);var _=_t(this);_>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new At(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Ot={class:"page-container"},Nt={class:"main"},Vt={class:"v-toolbar"},Gt=["src"],Ft=Y({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=$(j()),e=q(""),i=()=>{try{const n=new Ht;n.setEncodingHint(!0),n.setErrorCorrectionLevel(y.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return tt(t,()=>{i()}),i(),(n,a)=>{const s=J;return P(),z("div",Ot,[S("div",Nt,[S("div",Vt,[b(s,{current:()=>n.$t("qrcode_generator")},null,8,["current"])]),b(k(st),{class:"panel-container"},{default:D(()=>[b(k(H),null,{default:D(()=>[rt(S("md-outlined-text-field",{type:"textarea",rows:"3","onUpdate:modelValue":a[0]||(a[0]=f=>nt(t)?t.value=f:null)},null,512),[[et,k(t)]])]),_:1}),b(k(H),{class:"qrcode-panel"},{default:D(()=>[e.value?(P(),z("img",{key:0,src:e.value},null,8,Gt)):it("",!0)]),_:1})]),_:1})])])}}});const Wt=at(Ft,[["__scopeId","data-v-42e6751a"]]);export{Wt as default}; diff --git a/app/src/main/resources/web/assets/RoutesView-005bcd48.js b/app/src/main/resources/web/assets/RoutesView-51f5ef71.js similarity index 97% rename from app/src/main/resources/web/assets/RoutesView-005bcd48.js rename to app/src/main/resources/web/assets/RoutesView-51f5ef71.js index 569ecb38..bb8420ec 100644 --- a/app/src/main/resources/web/assets/RoutesView-005bcd48.js +++ b/app/src/main/resources/web/assets/RoutesView-51f5ef71.js @@ -1,4 +1,4 @@ -import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b$ as F,c0 as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c2 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c3 as $e,c4 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-4040ca75.js";import{_ as we}from"./Breadcrumb-9fbc434f.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-72e52d2c.js";import{u as Ne,a as Fe}from"./vee-validate.esm-a8549f5b.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` +import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b$ as F,c0 as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c2 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c3 as $e,c4 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-40f25da6.js";import{_ as we}from"./Breadcrumb-5456253f.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-50577cc8.js";import{u as Ne,a as Fe}from"./vee-validate.esm-7088b7c0.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/RulesView-58977238.js b/app/src/main/resources/web/assets/RulesView-7e630970.js similarity index 97% rename from app/src/main/resources/web/assets/RulesView-58977238.js rename to app/src/main/resources/web/assets/RulesView-7e630970.js index 1a28b98d..fc4bf307 100644 --- a/app/src/main/resources/web/assets/RulesView-58977238.js +++ b/app/src/main/resources/web/assets/RulesView-7e630970.js @@ -1,4 +1,4 @@ -import{d as le,K as ce,r as N,u as se,i as B,aq as R,b$ as F,c0 as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c1 as V,c2 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c3 as fe,c4 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-4040ca75.js";import{_ as ke}from"./Breadcrumb-9fbc434f.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-72e52d2c.js";import{u as Ce,a as Fe}from"./vee-validate.esm-a8549f5b.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` +import{d as le,K as ce,r as N,u as se,i as B,aq as R,b$ as F,c0 as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c1 as V,c2 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c3 as fe,c4 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-40f25da6.js";import{_ as ke}from"./Breadcrumb-5456253f.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-50577cc8.js";import{u as Ce,a as Fe}from"./vee-validate.esm-7088b7c0.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/ScreenMirrorView-ae9ae5ba.js b/app/src/main/resources/web/assets/ScreenMirrorView-358fa446.js similarity index 97% rename from app/src/main/resources/web/assets/ScreenMirrorView-ae9ae5ba.js rename to app/src/main/resources/web/assets/ScreenMirrorView-358fa446.js index 940b540d..c9395812 100644 --- a/app/src/main/resources/web/assets/ScreenMirrorView-ae9ae5ba.js +++ b/app/src/main/resources/web/assets/ScreenMirrorView-358fa446.js @@ -1 +1 @@ -import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bu as X,bv as Y,bw as ee,bx as te,A as ne,B as oe,_ as se}from"./index-4040ca75.js";import{_ as re}from"./refresh-rounded-ba092d85.js";import{_ as ae}from"./Breadcrumb-9fbc434f.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-48b1a391"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-48b1a391"]]);export{Ne as default}; +import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bu as X,bv as Y,bw as ee,bx as te,A as ne,B as oe,_ as se}from"./index-40f25da6.js";import{_ as re}from"./refresh-rounded-4826b5dd.js";import{_ as ae}from"./Breadcrumb-5456253f.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-48b1a391"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-48b1a391"]]);export{Ne as default}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js similarity index 94% rename from app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js rename to app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js index e914fe3e..52faf8c9 100644 --- a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js +++ b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js @@ -1 +1 @@ -import{o as l,c as r,a as c,d as Q,u as V,e as w,r as B,g as G,x as I,aT as L,O as S,P as o,Q as A,R as E,h as F,t as m,m as H,l as v,p as N,F as b,J as P,I as j,j as z,bC as T,a2 as p,i as C,bD as J,T as O,C as R,bE as U,W,aI as Z,bF as K,bG as X,ac as Y}from"./index-4040ca75.js";import{E as q}from"./EditValueModal-2509bdbc.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=Q({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=V(),k=w(),_=B([]),{refetch:i}=G({handle:(e,t)=>{t?I(n(t),"error"):e&&(_.value=e.tags)},document:L,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:J,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function $(e){const t=O([{name:"tag",op:"",value:T(e.name)}]);R(k,`/${U[a.type]}?q=${W(t)}`)}function M(e,t){e.preventDefault(),Z({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:K,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return S(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,D=E("tooltip");return l(),r(b,null,[c("h2",oe,[F(m(e.$t("tags"))+" ",1),H((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,N(u)],8,ie)),[[D,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,P(_.value,s=>(l(),r("li",{onClick:v(y=>$(s),["prevent"]),key:s.id,onContextmenu:y=>M(y,s),class:j({active:d.selected&&z(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+")",43,de))),128))])],64)}}});export{me as _,se as a}; +import{o as l,c as r,a as c,d as Q,u as V,e as w,r as B,g as G,x as I,aT as L,O as S,P as o,Q as A,R as E,h as F,t as m,m as H,l as v,p as N,F as b,J as P,I as j,j as z,bC as T,a2 as p,i as C,bD as J,T as O,C as R,bE as U,W,aI as Z,bF as K,bG as X,ac as Y}from"./index-40f25da6.js";import{E as q}from"./EditValueModal-068407b0.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=Q({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=V(),k=w(),_=B([]),{refetch:i}=G({handle:(e,t)=>{t?I(n(t),"error"):e&&(_.value=e.tags)},document:L,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:J,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function $(e){const t=O([{name:"tag",op:"",value:T(e.name)}]);R(k,`/${U[a.type]}?q=${W(t)}`)}function M(e,t){e.preventDefault(),Z({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:K,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return S(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,D=E("tooltip");return l(),r(b,null,[c("h2",oe,[F(m(e.$t("tags"))+" ",1),H((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,N(u)],8,ie)),[[D,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,P(_.value,s=>(l(),r("li",{onClick:v(y=>$(s),["prevent"]),key:s.id,onContextmenu:y=>M(y,s),class:j({active:d.selected&&z(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+")",43,de))),128))])],64)}}});export{me as _,se as a}; diff --git a/app/src/main/resources/web/assets/VideosRootView-5a79ba17.js b/app/src/main/resources/web/assets/VideosRootView-05227378.js similarity index 70% rename from app/src/main/resources/web/assets/VideosRootView-5a79ba17.js rename to app/src/main/resources/web/assets/VideosRootView-05227378.js index 5b7a2f2b..d17acb33 100644 --- a/app/src/main/resources/web/assets/VideosRootView-5a79ba17.js +++ b/app/src/main/resources/web/assets/VideosRootView-05227378.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-4040ca75.js";import{g as m,M as E}from"./splitpanes.es-20249936.js";import"./EditValueModal-2509bdbc.js";import"./vee-validate.esm-a8549f5b.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-40f25da6.js";import{g as m,M as E}from"./splitpanes.es-a34c2504.js";import"./EditValueModal-068407b0.js";import"./vee-validate.esm-7088b7c0.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/VideosView-b11c2f7a.js b/app/src/main/resources/web/assets/VideosView-75127da9.js similarity index 95% rename from app/src/main/resources/web/assets/VideosView-b11c2f7a.js rename to app/src/main/resources/web/assets/VideosView-75127da9.js index 41074370..ae6b80e8 100644 --- a/app/src/main/resources/web/assets/VideosView-b11c2f7a.js +++ b/app/src/main/resources/web/assets/VideosView-75127da9.js @@ -1 +1 @@ -import{u as Ge,_ as Oe,a as xe,b as Ke}from"./list-2b55c026.js";import{d as We,aA as Je,e as Pe,s as _e,r as D,u as Xe,f as je,K as Ye,L as Ze,D as et,M as tt,aB as ot,af as st,aC as nt,N as lt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as o,p as i,j as t,F as C,m,l as r,k as b,S as H,H as L,J as F,t as c,T as ut,U as _t,x as rt,aD as pt,aJ as mt,C as re,W as pe,at as ht,o as l,v as vt,a9 as me,$ as he,I as gt,ax as ve,aF as Q,z as ft,A as kt,B as bt,al as yt,aG as $t,a0 as wt,a2 as Ct,a3 as Tt,a1 as It,as as Vt,aH as St,aI as Dt,ad as At,am as Rt,a4 as zt,a5 as Bt,a6 as Et,_ as Ft}from"./index-4040ca75.js";import{_ as Ut}from"./sort-rounded-21b00447.js";import{_ as Mt}from"./upload-rounded-168dfb03.js";import{_ as qt,a as Nt}from"./grid-view-outline-rounded-388859d3.js";import{_ as Ht}from"./Breadcrumb-9fbc434f.js";import{u as Lt,a as Qt}from"./tags-5a94e769.js";import"./vee-validate.esm-a8549f5b.js";const _=R=>(kt("data-v-174a03bd"),R=R(),bt(),R),Gt={class:"v-toolbar"},Ot=_(()=>o("md-ripple",null,null,-1)),xt=_(()=>o("md-ripple",null,null,-1)),Kt=_(()=>o("md-ripple",null,null,-1)),Wt=["onClick"],Jt=_(()=>o("md-ripple",null,null,-1)),Pt=["onClick"],Xt=_(()=>o("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Yt=_(()=>o("md-ripple",null,null,-1)),Zt={class:"menu-items"},eo=["onClick","selected"],to={slot:"headline"},oo={class:"filters"},so=["label"],no={class:"form-label"},lo=["label","selected","onClick"],ao={class:"buttons"},io=["onClick"],co={key:0,class:"image-container",style:{"margin-bottom":"24px"}},uo=["onClick","onContextmenu"],_o=["src"],ro={class:"duration"},po={key:1,class:"no-data-placeholder"},mo={key:2,class:"table-responsive"},ho={class:"table"},vo=["checked","indeterminate"],go=_(()=>o("th",null,"ID",-1)),fo=_(()=>o("th",null,null,-1)),ko=_(()=>o("th",null,null,-1)),bo=["onClick"],yo=["checked"],$o=["src","onClick"],wo={class:"nowrap"},Co={class:"action-btns"},To=["onClick"],Io=_(()=>o("md-ripple",null,null,-1)),Vo=["onClick"],So=_(()=>o("md-ripple",null,null,-1)),Do=["onClick"],Ao=_(()=>o("md-ripple",null,null,-1)),Ro={class:"nowrap"},zo={class:"nowrap"},Bo={key:0},Eo={colspan:"8"},Fo={class:"no-data-placeholder"},A=48,Uo=We({__name:"VideosView",setup(R){var ie,de;const ge=Je(),d=Pe(),{videoSortBy:U}=_e(d),v=D([]),G=D(),{t:T}=Xe(),O=je(),{app:x,urlTokenKey:M}=_e(O),g=Ye({text:"",tags:[]}),u=Ze.VIDEO,K=et().query,I=D(parseInt(((ie=K.page)==null?void 0:ie.toString())??"1")),y=D(tt(((de=K.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Lt(u,y,g,async e=>{V.value=ut(e),await _t(),Te()}),{addToTags:fe}=Qt(u,v,z),{deleteItems:ke,deleteItem:W}=ot(),{allChecked:J,realAllChecked:B,selectRealAll:be,allCheckedAlertVisible:ye,clearSelection:E,toggleAllChecked:P,toggleItemChecked:X,toggleRow:$e,total:$,checked:j}=Ge(v),{downloadItems:we}=st(M,u,v,E,"videos.zip"),{downloadFile:Y}=yt(M),Ce=$t(),q=nt(()=>v.value.map(e=>({src:ve(e.fileId),name:Q(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:u}))),{loading:Z,load:Te,refetch:N}=lt({handle:async(e,n)=>{if(n)rt(T(n),"error");else if(e){const w=[];for(const S of e.videos)w.push({...S,checked:!1,fileId:pt(M.value,S.path)});v.value=w,$.value=e.videoCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ie(){re(d,`/videos?page=${I.value}&q=${pe(y.value)}`)}function ee(e){O.lightbox={sources:q.value,index:e,visible:!0}}function Ve(e,n){U.value=n,e.close()}at(I,()=>{Ie()});function Se(e){g.tags.includes(e)?wt(g.tags,n=>n.id===e.id):g.tags.push(e)}function te(e){Ct(Tt,{type:u,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(n=>e.tags.some(w=>w.id===n.id))})}function De(){y.value=It(g),oe(),G.value.dismiss()}function oe(){re(d,`/videos?q=${pe(y.value)}`)}function Ae(){d.videoViewType==="grid"?d.videoViewType="list":d.videoViewType="grid"}function Re(){ge.push("/files"),Vt(St,{message:T("upload_videos")})}function ze(e,n){e.preventDefault(),Dt({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{te(n)}},{label:T("download"),onClick:()=>{Y(n.path,Q(n.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(u,n)}}]})}const se=e=>{e.type===u&&(E(),N())},ne=e=>{e.type===u&&N()},le=e=>{e.type===u&&(E(),N())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",ne),k.on("items_tags_updated",se),k.on("media_item_deleted",ae),k.on("media_items_deleted",le)}),dt(()=>{k.off("item_tags_updated",ne),k.off("items_tags_updated",se),k.off("media_item_deleted",ae),k.off("media_items_deleted",le)}),(e,n)=>{const w=Ht,S=At,ce=Rt,ue=zt,Be=qt,Ee=Nt,Fe=Mt,Ue=Ut,Me=ht,qe=Oe,Ne=xe,He=Bt,Le=Et,Qe=Ke,h=ct("tooltip");return l(),a(C,null,[o("div",Gt,[i(w,{current:()=>`${e.$t("page_title.videos")} (${t($)})`},null,8,["current"]),t(j)&&t(d).videoViewType==="list"?(l(),a(C,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(s=>t(ke)(t(u),v.value,t(B),V.value),["stop"]))},[Ot,i(S)])),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=r(s=>t(we)(t(B),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=r(s=>t(fe)(t(B),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):b("",!0),m((l(),a("button",{class:"icon-button",onClick:r(Ae,["prevent"])},[Jt,t(d).videoViewType==="list"?(l(),H(Be,{key:0})):b("",!0),t(d).videoViewType==="grid"?(l(),H(Ee,{key:1})):b("",!0)],8,Wt)),[[h,e.$t(t(d).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((l(),a("button",{class:"icon-button",onClick:r(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Me,null,{content:L(s=>[o("div",Zt,[(l(!0),a(C,null,F(t(Ce),f=>(l(),a("md-menu-item",{onClick:p=>Ve(s,f.value),selected:f.value===t(U)},[o("div",to,c(e.$t(f.label)),1)],8,eo))),256))])]),default:L(()=>[m((l(),a("button",jt,[Yt,i(Ue)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:y.value,"onUpdate:modelValue":n[4]||(n[4]=s=>y.value=s),search:oe},{filters:L(()=>[o("div",oo,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[3]||(n[3]=s=>g.text=s),"keyup.enter":"applyAndDoSearch"},null,8,so),[[vt,g.text]]),o("label",no,c(e.$t("tags")),1),o("md-chip-set",null,[(l(!0),a(C,null,F(t(z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:g.tags.includes(s),onClick:f=>Se(s)},null,8,lo))),128))]),o("div",ao,[o("md-filled-button",{onClick:r(De,["stop"])},c(e.$t("search")),9,io)])])]),_:1},8,["modelValue"])]),t(d).videoViewType==="grid"?(l(),a("div",co,[(l(!0),a(C,null,F(q.value,(s,f)=>(l(),a("div",{class:"item",onClick:p=>ee(f),onContextmenu:p=>ze(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300",onerror:"this.src='/broken-image.png'"},null,8,_o),o("span",ro,c(t(me)(s.duration)),1)],40,uo))),256))])):b("",!0),t(d).videoViewType==="grid"&&q.value.length===0?(l(),a("div",po,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):b("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(ye),"real-all-checked":t(B),"select-real-all":t(be),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).videoViewType==="list"?(l(),a("div",mo,[o("table",ho,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[5]||(n[5]=(...s)=>t(P)&&t(P)(...s)),checked:t(J),indeterminate:!t(J)&&t(j)},null,40,vo)]),go,fo,o("th",null,c(e.$t("name")),1),ko,o("th",null,c(e.$t("tags")),1),o("th",null,c(e.$t("duration")),1),o("th",null,c(e.$t("file_size")),1)])]),o("tbody",null,[(l(!0),a(C,null,F(v.value,(s,f)=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:r(p=>t($e)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...p)=>t(X)&&t(X)(...p)),checked:s.checked},null,40,yo)]),o("td",null,[i(He,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(ve)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:r(p=>ee(f),["stop"]),onerror:"this.src='/broken-image.png'"},null,8,$o)]),o("td",null,c(s.title),1),o("td",wo,[o("div",Co,[m((l(),a("button",{class:"icon-button",onClick:r(p=>t(W)(t(u),s),["stop"])},[Io,i(S)],8,To)),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>t(Y)(s.path,t(Q)(s.path).replace(" ","-")),["stop"])},[So,i(ce)],8,Vo)),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>te(s),["stop"])},[Ao,i(ue)],8,Do)),[[h,e.$t("add_to_tags")]])])]),o("td",null,[i(Le,{tags:s.tags,type:t(u)},null,8,["tags","type"])]),o("td",Ro,c(t(me)(s.duration)),1),o("td",zo,c(t(ft)(s.size)),1)],10,bo))),128))]),v.value.length?b("",!0):(l(),a("tfoot",Bo,[o("tr",null,[o("td",Eo,[o("div",Fo,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):b("",!0),t($)>A?(l(),H(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":n[7]||(n[7]=s=>I.value=s),total:t($),limit:A},null,8,["modelValue","total"])):b("",!0)],64)}}});const Ko=Ft(Uo,[["__scopeId","data-v-174a03bd"]]);export{Ko as default}; +import{u as Ge,_ as Oe,a as xe,b as Ke}from"./list-b6a3249f.js";import{d as We,aA as Je,e as Pe,s as _e,r as D,u as Xe,f as je,K as Ye,L as Ze,D as et,M as tt,aB as ot,af as st,aC as nt,N as lt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as o,p as i,j as t,F as C,m,l as r,k as b,S as H,H as L,J as F,t as c,T as ut,U as _t,x as rt,aD as pt,aJ as mt,C as re,W as pe,at as ht,o as l,v as vt,a9 as me,$ as he,I as gt,ax as ve,aF as Q,z as ft,A as kt,B as bt,al as yt,aG as $t,a0 as wt,a2 as Ct,a3 as Tt,a1 as It,as as Vt,aH as St,aI as Dt,ad as At,am as Rt,a4 as zt,a5 as Bt,a6 as Et,_ as Ft}from"./index-40f25da6.js";import{_ as Ut}from"./sort-rounded-6ce111fd.js";import{_ as Mt}from"./upload-rounded-b3049477.js";import{_ as qt,a as Nt}from"./grid-view-outline-rounded-c791dd48.js";import{_ as Ht}from"./Breadcrumb-5456253f.js";import{u as Lt,a as Qt}from"./tags-15dfcb58.js";import"./vee-validate.esm-7088b7c0.js";const _=R=>(kt("data-v-174a03bd"),R=R(),bt(),R),Gt={class:"v-toolbar"},Ot=_(()=>o("md-ripple",null,null,-1)),xt=_(()=>o("md-ripple",null,null,-1)),Kt=_(()=>o("md-ripple",null,null,-1)),Wt=["onClick"],Jt=_(()=>o("md-ripple",null,null,-1)),Pt=["onClick"],Xt=_(()=>o("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Yt=_(()=>o("md-ripple",null,null,-1)),Zt={class:"menu-items"},eo=["onClick","selected"],to={slot:"headline"},oo={class:"filters"},so=["label"],no={class:"form-label"},lo=["label","selected","onClick"],ao={class:"buttons"},io=["onClick"],co={key:0,class:"image-container",style:{"margin-bottom":"24px"}},uo=["onClick","onContextmenu"],_o=["src"],ro={class:"duration"},po={key:1,class:"no-data-placeholder"},mo={key:2,class:"table-responsive"},ho={class:"table"},vo=["checked","indeterminate"],go=_(()=>o("th",null,"ID",-1)),fo=_(()=>o("th",null,null,-1)),ko=_(()=>o("th",null,null,-1)),bo=["onClick"],yo=["checked"],$o=["src","onClick"],wo={class:"nowrap"},Co={class:"action-btns"},To=["onClick"],Io=_(()=>o("md-ripple",null,null,-1)),Vo=["onClick"],So=_(()=>o("md-ripple",null,null,-1)),Do=["onClick"],Ao=_(()=>o("md-ripple",null,null,-1)),Ro={class:"nowrap"},zo={class:"nowrap"},Bo={key:0},Eo={colspan:"8"},Fo={class:"no-data-placeholder"},A=48,Uo=We({__name:"VideosView",setup(R){var ie,de;const ge=Je(),d=Pe(),{videoSortBy:U}=_e(d),v=D([]),G=D(),{t:T}=Xe(),O=je(),{app:x,urlTokenKey:M}=_e(O),g=Ye({text:"",tags:[]}),u=Ze.VIDEO,K=et().query,I=D(parseInt(((ie=K.page)==null?void 0:ie.toString())??"1")),y=D(tt(((de=K.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Lt(u,y,g,async e=>{V.value=ut(e),await _t(),Te()}),{addToTags:fe}=Qt(u,v,z),{deleteItems:ke,deleteItem:W}=ot(),{allChecked:J,realAllChecked:B,selectRealAll:be,allCheckedAlertVisible:ye,clearSelection:E,toggleAllChecked:P,toggleItemChecked:X,toggleRow:$e,total:$,checked:j}=Ge(v),{downloadItems:we}=st(M,u,v,E,"videos.zip"),{downloadFile:Y}=yt(M),Ce=$t(),q=nt(()=>v.value.map(e=>({src:ve(e.fileId),name:Q(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:u}))),{loading:Z,load:Te,refetch:N}=lt({handle:async(e,n)=>{if(n)rt(T(n),"error");else if(e){const w=[];for(const S of e.videos)w.push({...S,checked:!1,fileId:pt(M.value,S.path)});v.value=w,$.value=e.videoCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ie(){re(d,`/videos?page=${I.value}&q=${pe(y.value)}`)}function ee(e){O.lightbox={sources:q.value,index:e,visible:!0}}function Ve(e,n){U.value=n,e.close()}at(I,()=>{Ie()});function Se(e){g.tags.includes(e)?wt(g.tags,n=>n.id===e.id):g.tags.push(e)}function te(e){Ct(Tt,{type:u,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(n=>e.tags.some(w=>w.id===n.id))})}function De(){y.value=It(g),oe(),G.value.dismiss()}function oe(){re(d,`/videos?q=${pe(y.value)}`)}function Ae(){d.videoViewType==="grid"?d.videoViewType="list":d.videoViewType="grid"}function Re(){ge.push("/files"),Vt(St,{message:T("upload_videos")})}function ze(e,n){e.preventDefault(),Dt({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{te(n)}},{label:T("download"),onClick:()=>{Y(n.path,Q(n.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(u,n)}}]})}const se=e=>{e.type===u&&(E(),N())},ne=e=>{e.type===u&&N()},le=e=>{e.type===u&&(E(),N())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",ne),k.on("items_tags_updated",se),k.on("media_item_deleted",ae),k.on("media_items_deleted",le)}),dt(()=>{k.off("item_tags_updated",ne),k.off("items_tags_updated",se),k.off("media_item_deleted",ae),k.off("media_items_deleted",le)}),(e,n)=>{const w=Ht,S=At,ce=Rt,ue=zt,Be=qt,Ee=Nt,Fe=Mt,Ue=Ut,Me=ht,qe=Oe,Ne=xe,He=Bt,Le=Et,Qe=Ke,h=ct("tooltip");return l(),a(C,null,[o("div",Gt,[i(w,{current:()=>`${e.$t("page_title.videos")} (${t($)})`},null,8,["current"]),t(j)&&t(d).videoViewType==="list"?(l(),a(C,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(s=>t(ke)(t(u),v.value,t(B),V.value),["stop"]))},[Ot,i(S)])),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=r(s=>t(we)(t(B),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=r(s=>t(fe)(t(B),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):b("",!0),m((l(),a("button",{class:"icon-button",onClick:r(Ae,["prevent"])},[Jt,t(d).videoViewType==="list"?(l(),H(Be,{key:0})):b("",!0),t(d).videoViewType==="grid"?(l(),H(Ee,{key:1})):b("",!0)],8,Wt)),[[h,e.$t(t(d).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((l(),a("button",{class:"icon-button",onClick:r(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Me,null,{content:L(s=>[o("div",Zt,[(l(!0),a(C,null,F(t(Ce),f=>(l(),a("md-menu-item",{onClick:p=>Ve(s,f.value),selected:f.value===t(U)},[o("div",to,c(e.$t(f.label)),1)],8,eo))),256))])]),default:L(()=>[m((l(),a("button",jt,[Yt,i(Ue)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:y.value,"onUpdate:modelValue":n[4]||(n[4]=s=>y.value=s),search:oe},{filters:L(()=>[o("div",oo,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[3]||(n[3]=s=>g.text=s),"keyup.enter":"applyAndDoSearch"},null,8,so),[[vt,g.text]]),o("label",no,c(e.$t("tags")),1),o("md-chip-set",null,[(l(!0),a(C,null,F(t(z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:g.tags.includes(s),onClick:f=>Se(s)},null,8,lo))),128))]),o("div",ao,[o("md-filled-button",{onClick:r(De,["stop"])},c(e.$t("search")),9,io)])])]),_:1},8,["modelValue"])]),t(d).videoViewType==="grid"?(l(),a("div",co,[(l(!0),a(C,null,F(q.value,(s,f)=>(l(),a("div",{class:"item",onClick:p=>ee(f),onContextmenu:p=>ze(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300",onerror:"this.src='/broken-image.png'"},null,8,_o),o("span",ro,c(t(me)(s.duration)),1)],40,uo))),256))])):b("",!0),t(d).videoViewType==="grid"&&q.value.length===0?(l(),a("div",po,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):b("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(ye),"real-all-checked":t(B),"select-real-all":t(be),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).videoViewType==="list"?(l(),a("div",mo,[o("table",ho,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[5]||(n[5]=(...s)=>t(P)&&t(P)(...s)),checked:t(J),indeterminate:!t(J)&&t(j)},null,40,vo)]),go,fo,o("th",null,c(e.$t("name")),1),ko,o("th",null,c(e.$t("tags")),1),o("th",null,c(e.$t("duration")),1),o("th",null,c(e.$t("file_size")),1)])]),o("tbody",null,[(l(!0),a(C,null,F(v.value,(s,f)=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:r(p=>t($e)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...p)=>t(X)&&t(X)(...p)),checked:s.checked},null,40,yo)]),o("td",null,[i(He,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(ve)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:r(p=>ee(f),["stop"]),onerror:"this.src='/broken-image.png'"},null,8,$o)]),o("td",null,c(s.title),1),o("td",wo,[o("div",Co,[m((l(),a("button",{class:"icon-button",onClick:r(p=>t(W)(t(u),s),["stop"])},[Io,i(S)],8,To)),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>t(Y)(s.path,t(Q)(s.path).replace(" ","-")),["stop"])},[So,i(ce)],8,Vo)),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>te(s),["stop"])},[Ao,i(ue)],8,Do)),[[h,e.$t("add_to_tags")]])])]),o("td",null,[i(Le,{tags:s.tags,type:t(u)},null,8,["tags","type"])]),o("td",Ro,c(t(me)(s.duration)),1),o("td",zo,c(t(ft)(s.size)),1)],10,bo))),128))]),v.value.length?b("",!0):(l(),a("tfoot",Bo,[o("tr",null,[o("td",Eo,[o("div",Fo,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):b("",!0),t($)>A?(l(),H(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":n[7]||(n[7]=s=>I.value=s),total:t($),limit:A},null,8,["modelValue","total"])):b("",!0)],64)}}});const Ko=Ft(Uo,[["__scopeId","data-v-174a03bd"]]);export{Ko as default}; diff --git a/app/src/main/resources/web/assets/WiFiView-62b31998.js b/app/src/main/resources/web/assets/WiFiView-1d609bca.js similarity index 95% rename from app/src/main/resources/web/assets/WiFiView-62b31998.js rename to app/src/main/resources/web/assets/WiFiView-1d609bca.js index 8bd47f15..9900e613 100644 --- a/app/src/main/resources/web/assets/WiFiView-62b31998.js +++ b/app/src/main/resources/web/assets/WiFiView-1d609bca.js @@ -1,4 +1,4 @@ -var W=Object.defineProperty;var A=(i,o,s)=>o in i?W(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import{o as Z,c as M,a as e,d as z,u as G,r as f,an as S,g as J,x as K,ab as B,bA as F,i as O,p as q,j as l,m as r,aW as _,t as p,n as L,v as X,bB as Y,l as ee}from"./index-4040ca75.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js";import{_ as oe}from"./Breadcrumb-9fbc434f.js";import{u as te,a as D}from"./vee-validate.esm-a8549f5b.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` +var W=Object.defineProperty;var A=(i,o,s)=>o in i?W(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import{o as Z,c as M,a as e,d as z,u as G,r as f,an as S,g as J,x as K,ab as B,bA as F,i as O,p as q,j as l,m as r,aW as _,t as p,n as L,v as X,bB as Y,l as ee}from"./index-40f25da6.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js";import{_ as oe}from"./Breadcrumb-5456253f.js";import{u as te,a as D}from"./vee-validate.esm-7088b7c0.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` `);for(const t of s){const n=t.split("="),d=new w;d.line=t,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),o.push(d)}return o}function V(i,o,s){let t=i.find(n=>n.key==o);t?t.update(o,s):(t=w.create(o,s),i.push(t))}const pe={class:"page-container"},he={class:"main"},ve={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},qe={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],Te={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},ye={class:"col-sm-4"},$e={class:"row mb-3"},ke={for:"password",class:"col-sm-3 col-md-2 col-form-label"},xe={class:"col-sm-4"},Ce={class:"input-group"},Ve=["type"],Ze=["onClick"],Me={class:"inner"},Ee={class:"row mb-3"},Se={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Be={class:"col-sm-4"},Fe={class:"form-check"},Le=["checked"],Ne=z({__name:"WiFiView",setup(i){const{handleSubmit:o}=te(),{t:s}=G(),t=f(0),n=f(""),{value:d,errorMessage:y}=D("password",S().required().min(8)),{value:h,errorMessage:$}=D("ssid",S().required()),v=f(!1),k=f(!1),x=f(!1);function Q(){v.value=!v.value}J({handle:(c,a)=>{a?K(s(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,E())},document:B` query { hostapd { diff --git a/app/src/main/resources/web/assets/WireGuardEditView-a2d73302.js b/app/src/main/resources/web/assets/WireGuardEditView-18959341.js similarity index 95% rename from app/src/main/resources/web/assets/WireGuardEditView-a2d73302.js rename to app/src/main/resources/web/assets/WireGuardEditView-18959341.js index f16d43b7..66eca206 100644 --- a/app/src/main/resources/web/assets/WireGuardEditView-a2d73302.js +++ b/app/src/main/resources/web/assets/WireGuardEditView-18959341.js @@ -1,4 +1,4 @@ -import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js";import{_ as P}from"./Breadcrumb-9fbc434f.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,b_ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-4040ca75.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function H(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return H(n,n),u(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:k(t),privateKey:k(a)}},Z={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` +import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js";import{_ as P}from"./Breadcrumb-5456253f.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,b_ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-40f25da6.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function H(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return H(n,n),u(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:k(t),privateKey:k(a)}},Z={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/WireGuardView-5e83229d.js b/app/src/main/resources/web/assets/WireGuardView-038544fc.js similarity index 94% rename from app/src/main/resources/web/assets/WireGuardView-5e83229d.js rename to app/src/main/resources/web/assets/WireGuardView-038544fc.js index efc18ed0..ec7f133e 100644 --- a/app/src/main/resources/web/assets/WireGuardView-5e83229d.js +++ b/app/src/main/resources/web/assets/WireGuardView-038544fc.js @@ -1,4 +1,4 @@ -import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,b_ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-4040ca75.js";import{_ as L}from"./Breadcrumb-9fbc434f.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},z={class:"table-responsive"},H={class:"table"},K=e("th",null,"ID",-1),O={class:"actions two"},R={class:"form-check"},T=["disabled","onChange","checked"],U={class:"actions two"},X=["onClick"],Y=["onClick"],ae=I({__name:"WireGuardView",setup(Z){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` +import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,b_ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-40f25da6.js";import{_ as L}from"./Breadcrumb-5456253f.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},z={class:"table-responsive"},H={class:"table"},K=e("th",null,"ID",-1),O={class:"actions two"},R={class:"form-check"},T=["disabled","onChange","checked"],U={class:"actions two"},X=["onClick"],Y=["onClick"],ae=I({__name:"WireGuardView",setup(Z){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/call-outline-rounded-90d0aca0.js b/app/src/main/resources/web/assets/call-outline-rounded-027b1fc9.js similarity index 91% rename from app/src/main/resources/web/assets/call-outline-rounded-90d0aca0.js rename to app/src/main/resources/web/assets/call-outline-rounded-027b1fc9.js index 14017b4a..4a355ce4 100644 --- a/app/src/main/resources/web/assets/call-outline-rounded-90d0aca0.js +++ b/app/src/main/resources/web/assets/call-outline-rounded-027b1fc9.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-4040ca75.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; +import{o as e,c as t,a as o}from"./index-40f25da6.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; diff --git a/app/src/main/resources/web/assets/cssMode-f8a12b8f.js b/app/src/main/resources/web/assets/cssMode-d0ed9f18.js similarity index 99% rename from app/src/main/resources/web/assets/cssMode-f8a12b8f.js rename to app/src/main/resources/web/assets/cssMode-d0ed9f18.js index 9695a334..83ce6b96 100644 --- a/app/src/main/resources/web/assets/cssMode-f8a12b8f.js +++ b/app/src/main/resources/web/assets/cssMode-d0ed9f18.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var We=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oe(n))!Ve.call(e,t)&&t!==i&&We(e,t,{get:()=>n[t],enumerable:!(r=Ue(n,t))||r.enumerable});return e},He=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};He(c,Ne);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var re;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;vn in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var We=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oe(n))!Ve.call(e,t)&&t!==i&&We(e,t,{get:()=>n[t],enumerable:!(r=Ue(n,t))||r.enumerable});return e},He=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};He(c,Ne);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var re;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Pe(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(e)return Array.isArray(e)?e.map(Pe):[Pe(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,A as fromPosition,Me as fromRange,kt as setupMode,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/freemarker2-f57a57cd.js b/app/src/main/resources/web/assets/freemarker2-02bfb3b4.js similarity index 99% rename from app/src/main/resources/web/assets/freemarker2-f57a57cd.js rename to app/src/main/resources/web/assets/freemarker2-02bfb3b4.js index 060c6790..5daf974d 100644 --- a/app/src/main/resources/web/assets/freemarker2-f57a57cd.js +++ b/app/src/main/resources/web/assets/freemarker2-02bfb3b4.js @@ -1,3 +1,3 @@ -import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},T={conf:l(u),language:i(u,k)},h={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},P={conf:A(),language:m(k)},y={conf:A(),language:m(p)};export{h as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,y as TagAutoInterpolationBracket,P as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,T as TagBracketInterpolationDollar}; diff --git a/app/src/main/resources/web/assets/grid-view-outline-rounded-388859d3.js b/app/src/main/resources/web/assets/grid-view-outline-rounded-c791dd48.js similarity index 95% rename from app/src/main/resources/web/assets/grid-view-outline-rounded-388859d3.js rename to app/src/main/resources/web/assets/grid-view-outline-rounded-c791dd48.js index adfdd547..1f030a88 100644 --- a/app/src/main/resources/web/assets/grid-view-outline-rounded-388859d3.js +++ b/app/src/main/resources/web/assets/grid-view-outline-rounded-c791dd48.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-4040ca75.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; +import{o as e,c as t,a as o}from"./index-40f25da6.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; diff --git a/app/src/main/resources/web/assets/handlebars-74e74baf.js b/app/src/main/resources/web/assets/handlebars-071155a3.js similarity index 99% rename from app/src/main/resources/web/assets/handlebars-74e74baf.js rename to app/src/main/resources/web/assets/handlebars-071155a3.js index 5fa420dc..9bf9d2ad 100644 --- a/app/src/main/resources/web/assets/handlebars-74e74baf.js +++ b/app/src/main/resources/web/assets/handlebars-071155a3.js @@ -1 +1 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/html-60c9e445.js b/app/src/main/resources/web/assets/html-0a927e79.js similarity index 98% rename from app/src/main/resources/web/assets/html-60c9e445.js rename to app/src/main/resources/web/assets/html-0a927e79.js index a9e86d6b..dfaa401e 100644 --- a/app/src/main/resources/web/assets/html-60c9e445.js +++ b/app/src/main/resources/web/assets/html-0a927e79.js @@ -1 +1 @@ -import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; +import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/htmlMode-ba2f4a4d.js b/app/src/main/resources/web/assets/htmlMode-39850671.js similarity index 99% rename from app/src/main/resources/web/assets/htmlMode-ba2f4a4d.js rename to app/src/main/resources/web/assets/htmlMode-39850671.js index 2a3b50fd..7878ccd9 100644 --- a/app/src/main/resources/web/assets/htmlMode-ba2f4a4d.js +++ b/app/src/main/resources/web/assets/htmlMode-39850671.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ye(n))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>n[t],enumerable:!(r=Je(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};Ke(c,Qe);var et=2*60*1e3,Me=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var re;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var ge;(function(e){e.asIs=1,e.adjustIndentation=2})(ge||(ge={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;vn in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ye(n))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>n[t],enumerable:!(r=Je(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};Ke(c,Qe);var et=2*60*1e3,Me=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var re;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var ge;(function(e){e.asIs=1,e.adjustIndentation=2})(ge||(ge={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(g){return g===!0||g===!1}e.boolean=t;function a(g){return n.call(g)==="[object String]"}e.string=a;function o(g){return n.call(g)==="[object Number]"}e.number=o;function u(g,y,N){return n.call(g)==="[object Number]"&&y<=g&&g<=N}e.numberRange=u;function f(g){return n.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=f;function d(g){return n.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function v(g){return n.call(g)==="[object Function]"}e.func=v;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function b(g,y){return Array.isArray(g)&&g.every(y)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),f=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:f}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>gt(a))}};function gt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ft(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ft(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function Et(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,wt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,A as fromPosition,Se as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/index-4040ca75.js b/app/src/main/resources/web/assets/index-40f25da6.js similarity index 99% rename from app/src/main/resources/web/assets/index-4040ca75.js rename to app/src/main/resources/web/assets/index-40f25da6.js index babfd92d..fd2e7a8e 100644 --- a/app/src/main/resources/web/assets/index-4040ca75.js +++ b/app/src/main/resources/web/assets/index-40f25da6.js @@ -1034,7 +1034,7 @@ function print() { __p += __j.call(arguments, '') } ${this.label} `}renderTouchTarget(){return _e``}}Qr(Ao);P([Q({type:Boolean})],Ao.prototype,"disabled",void 0);P([Q({type:Boolean})],Ao.prototype,"selected",void 0);P([Q()],Ao.prototype,"label",void 0);P([Q({type:Boolean,attribute:"no-checkmark"})],Ao.prototype,"noCheckmark",void 0);P([Q({type:Boolean,attribute:"has-icon"})],Ao.prototype,"hasIcon",void 0);P([$t()],Ao.prototype,"animState",void 0);P([Wr({slot:"icon",flatten:!0})],Ao.prototype,"iconElement",void 0);class Ane extends Ao{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return _e``}}const Sne=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute}/*# sourceMappingURL=outlined-styles.css.map */ `;const Ine=Ve`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing)}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards}/*# sourceMappingURL=shared-styles.css.map */ -`;let y_=class extends Ane{};y_.styles=[Ine,Sne];y_=P([rt("md-outlined-segmented-button")],y_);const $ne=t=>(yo("data-v-2b618255"),t=t(),bo(),t),One={class:"theme-changer"},Pne={id:"hex"},Rne={class:"label"},Lne={class:"input-wrapper"},Mne={class:"overflow"},Dne=["value"],Fne=$ne(()=>V("md-focus-ring",{for:"color-input"},null,-1)),Nne=["selected"],zne=["selected"],qne=["selected"],Bne=Bt({__name:"ThemeChanger",setup(t){const e=Se(Rb()),r=Se(td());function n(o){const{button:a}=o.detail,c=a.dataset.value;r.value=c,Zk(c)}function i(o){e.value=o.target.value,Yk(e.value)}return(o,a)=>{const c=cne,d=ine,u=Jre;return te(),oe("div",One,[V("div",null,[V("label",Pne,[V("span",Rne,De(o.$t("color")),1),V("span",Lne,[V("div",Mne,[V("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Dne)]),Fne])])]),V("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:n},[V("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark"},[qe(c,{slot:"icon"})],8,Nne),V("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto"},[qe(d,{slot:"icon"})],8,zne),V("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light"},[qe(u,{slot:"icon"})],8,qne)],32)])}}});const Une=gn(Bne,[["__scopeId","data-v-2b618255"]]),Vne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jne=V("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175Q6.4 3.575 8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9q1.337 1.212 2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.313.125t-.087.275q0 .3.375.863t.375 1.287q0 1.25-.688 1.85T12 22Zm0-10Zm-5.5 1q.65 0 1.075-.425T8 11.5q0-.65-.425-1.075T6.5 10q-.65 0-1.075.425T5 11.5q0 .65.425 1.075T6.5 13Zm3-4q.65 0 1.075-.425T11 7.5q0-.65-.425-1.075T9.5 6q-.65 0-1.075.425T8 7.5q0 .65.425 1.075T9.5 9Zm5 0q.65 0 1.075-.425T16 7.5q0-.65-.425-1.075T14.5 6q-.65 0-1.075.425T13 7.5q0 .65.425 1.075T14.5 9Zm3 4q.65 0 1.075-.425T19 11.5q0-.65-.425-1.075T17.5 10q-.65 0-1.075.425T16 11.5q0 .65.425 1.075T17.5 13ZM12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.963T20 11.05q0-3.025-2.313-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Hne=[jne];function Gne(t,e){return te(),oe("svg",Vne,Hne)}const Wne={name:"material-symbols-palette-outline",render:Gne},Qne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kne=V("path",{fill:"currentColor",d:"M13.35 22q-.6 0-.862-.388t-.063-.962l3.65-9.675q.15-.4.563-.687T17.5 10q.425 0 .85.288t.575.687l3.65 9.675q.2.575-.062.963t-.888.387q-.275 0-.5-.175T20.8 21.4l-.85-2.45H15.1l-.875 2.45q-.1.25-.35.425T13.35 22Zm2.35-4.8h3.6l-1.75-4.95h-.1L15.7 17.2ZM7.15 8.55q.4.725.85 1.338t1.05 1.262q1.1-1.2 1.825-2.462T12.1 6H2q-.425 0-.713-.288T1 5q0-.425.288-.713T2 4h6V3q0-.425.288-.713T9 2q.425 0 .713.288T10 3v1h6q.425 0 .713.288T17 5q0 .425-.288.713T16 6h-1.9q-.525 1.775-1.425 3.45T10.45 12.6l2.4 2.45l-.75 2.05L9 14l-4.3 4.3q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.675-.775-1.25-1.563T5.375 9.326Q5.1 8.8 5.35 8.4t.875-.4q.25 0 .525.163t.4.387Z"},null,-1),Yne=[Kne];function Zne(t,e){return te(),oe("svg",Qne,Yne)}const Xne={name:"material-symbols-translate-rounded",render:Zne},_0=t=>(yo("data-v-ac6560d3"),t=t(),bo(),t),Jne={class:"h-action",style:{position:"relative"}},eie=_0(()=>V("md-ripple",null,null,-1)),tie=["open"],rie=["onClick"],nie={slot:"headline"},iie={class:"h-action",style:{position:"relative"}},oie=_0(()=>V("md-ripple",null,null,-1)),aie=["open"],sie=_0(()=>V("md-ripple",null,null,-1)),lie=Bt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Se(!1),n=Se(!1),{locale:i,t:o}=On(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"}];function c(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const _=Xne,y=Wne,b=Une,p=Qre,m=Ea("tooltip");return te(),oe(St,null,[V("div",Jne,[vt((te(),oe("button",{class:"icon-button",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[eie,qe(_)])),[[m,fe(o)("header_actions.language")]]),V("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(te(),oe(St,null,Ei(a,g=>V("md-menu-item",{onClick:v=>c(g.value)},[V("div",nie,De(g.name),1)],8,rie)),64))],40,tie)]),V("div",iie,[vt((te(),oe("button",{class:"icon-button",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[oie,qe(y)])),[[m,fe(o)("header_actions.theme")]]),V("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[qe(b)],40,aie)]),e.loggedIn?vt((te(),oe("button",{key:0,class:"icon-button h-action",style:{"margin-inline-end":"8px"},onClick:d},[sie,qe(p)])),[[m,u.$t("header_actions.logout")]]):yt("",!0)],64)}}});const cie=gn(lie,[["__scopeId","data-v-ac6560d3"]]),MA=t=>(yo("data-v-06bccd9a"),t=t(),bo(),t),die=MA(()=>V("span",{class:"right-arrow"},null,-1)),uie=[die],fie=MA(()=>V("span",{class:"right-arrow"},null,-1)),pie=[fie],hie=["disabled","onMouseenter","onFocus","onClick"],mie={slot:"headline"},vie=Bt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,{globalData:n,position:i,options:o,parentItem:a}=Vp(r),c=Se(),d=Se(),u=Se(!1),f=Se(!1);let _=null;const y=Se(0),b=Se(null),p=Se({parentPosition:{x:0,y:0},screenSize:n.value.screenSize}),m=Se({x:0,y:0});function g(H,U){if(U.disabled||!U.children||U.children.length==0||b.value===U)return;b.value=U,p.value.parentPosition.x=n.value.parentPosition.x+i.value.x,p.value.parentPosition.y=n.value.parentPosition.y+i.value.y,c.value&&(m.value.x=c.value.offsetWidth+(o.value.xOffset||0));const ce=H.target;ce&&(m.value.y=ce.offsetTop+(o.value.yOffset||0))}function v(){_=b.value,setTimeout(()=>{_===b.value&&(b.value=null)})}Vt(b,(H,U)=>{H&&U&&setTimeout(()=>{d.value&&d.value.doCheckPos()},50)});function x(H){v(),H&&e("close",!0)}function E(H){_===H&&(_=null),e("keepOpen",a.value)}function T(H){m.value.x=H.x,m.value.y=H.y}function C(H){H.disabled||(typeof H.onClick=="function"?(H.onClick(),e("close",!0)):(!H.children||H.children.length===0)&&e("close",!0))}function A(){e("keepOpen",a.value)}function L(H){H.relatedTarget!=null&&e("close",!1)}function R(H){c.value&&(c.value.scrollTop+=H?30:-30)}let D=0;function q(){const H=c.value,U=n.value;if(H){const ce={x:i.value.x,y:i.value.y},Ae=U.parentPosition.x+i.value.x+H.offsetWidth;if(Ae>U.screenSize.w&&(ce.x-=Ae-U.screenSize.w),H.offsetHeight>U.screenSize.h-30)y.value=U.screenSize.h-30,ce.y=-U.parentPosition.y,f.value=!0;else{f.value=!1,y.value=0;const Le=U.parentPosition.y+i.value.y+H.offsetHeight;Le>U.screenSize.h&&(ce.y-=Le-U.screenSize.h+30)}e("preUpdatePos",ce),u.value=!0}}return mn(()=>{D=window.setTimeout(()=>q(),100)}),Hi(()=>{D>0&&(clearTimeout(D),D=0)}),(H,U)=>{const ce=Uy("ContextSubMenu",!0);return t.items?(te(),oe("div",{key:0,class:jn("context-menu "+(fe(o).customClass?fe(o).customClass:"")+(u.value?" ready":"")),style:bl({maxWidth:fe(a)&&fe(a).maxWidth?`${fe(a).maxWidth}px`:"600px",minWidth:fe(a)&&fe(a).minWidth?`${fe(a).minWidth}px`:"100px",zIndex:t.zIndex,left:`${fe(i).x}px`,top:`${fe(i).y}px`}),onMouseenter:A,onMouseleave:U[4]||(U[4]=Ae=>L(Ae))},[vt(V("div",{class:"context-menu-updown up",onClick:U[0]||(U[0]=Ae=>R(!1))},uie,512),[[fi,f.value]]),vt(V("div",{class:"context-menu-updown down",onClick:U[1]||(U[1]=Ae=>R(!0))},pie,512),[[fi,f.value]]),V("div",{class:"context-menu-items",ref_key:"menu",ref:c,style:bl({maxHeight:y.value>0?`${y.value}px`:""})},[(te(!0),oe(St,null,Ei(t.items,(Ae,Le)=>(te(),oe("md-menu-item",{key:Le,disabled:Ae.disabled,onMouseenter:Te=>g(Te,Ae),onMouseleave:U[2]||(U[2]=Te=>v()),onFocus:Te=>g(Te,Ae),onBlur:U[3]||(U[3]=Te=>v()),onClick:Te=>C(Ae)},[V("div",mie,De(Ae.label),1)],40,hie))),128))],4),b.value&&b.value.children?(te(),Hr(ce,{key:0,ref_key:"childMenu",ref:d,zIndex:t.zIndex+1,items:b.value.children,parentItem:b.value,options:fe(o),globalData:p.value,position:m.value,onClose:x,onKeepOpen:E,onPreUpdatePos:T},null,8,["zIndex","items","parentItem","options","globalData","position"])):yt("",!0)],38)):yt("",!0)}}});const gie=gn(vie,[["__scopeId","data-v-06bccd9a"]]),zv={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},_ie=Bt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=t,n=Se({x:0,y:0}),i={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function o(){n.value.x=r.options.x,n.value.y=r.options.y}function a(){e("update:show",!1),e("close")}function c(f){f&&a()}function d(f){n.value.x=f.x,n.value.y=f.y}const u=f=>{f.key==="Escape"&&a()};return mn(()=>{document.addEventListener("keydown",u),o(),setTimeout(()=>{document.addEventListener("click",a),document.addEventListener("contextmenu",a)},100)}),Hi(()=>{document.removeEventListener("keydown",u),document.removeEventListener("click",a)}),Vt(()=>r.show,f=>{f&&o()}),(f,_)=>{const y=gie;return t.show?(te(),Hr(y,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||fe(zv).defaultMaxWidth,minWidth:t.options.minWidth||fe(zv).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||fe(zv).defaultStartZindex,globalData:i,position:n.value,"on-close":c,onPreUpdatePos:d},null,8,["items","parentItem","options","z-index","position"])):yt("",!0)}}}),yie=t=>{const e=document.createElement("div"),r=Ni(_ie,{options:t,show:!0,onClose:()=>{sg(null,e)}});return sg(r,e),document.body.appendChild(e.firstElementChild),r.component},ec=t=>(yo("data-v-38cc53e3"),t=t(),bo(),t),bie={key:0,class:"loading"},xie=ec(()=>V("md-circular-progress",{indeterminate:""},null,-1)),wie=[xie],Eie={key:1,class:"alert alert-danger"},Tie={key:2,class:"layout"},kie={class:"default-content"},Cie={class:"start"},Aie={class:"tab-items"},Sie=["onClick","onContextmenu"],Iie=["onClick"],$ie=ec(()=>V("md-ripple",null,null,-1)),Oie={class:"end"},Pie={class:"page-content"},Rie={class:"quick"},Lie=ec(()=>V("md-ripple",null,null,-1)),Mie=ec(()=>V("md-ripple",null,null,-1)),Die=ec(()=>V("md-ripple",null,null,-1)),Fie=ec(()=>V("md-ripple",null,null,-1)),Nie={class:"quick-content"},zie=Bt({__name:"MainView",setup(t){const e=Gd(),r=hU(),n=Co(),{app:i,urlTokenKey:o}=ba(n),{t:a}=On(),c=Se(!0),d=Se(""),u=Se([]),f=new Map;let _=!1;const y=It(()=>n.uploads.length>0);function b(q){e.quick===q?e.quick="":e.quick=q}const{refetch:p}=ys({handle:(q,H)=>{var U;if(c.value=!1,H)d.value=H;else if(q){const ce=(U=i.value)==null?void 0:U.urlToken,Ae=q.app.urlToken;o.value=Db(Ae),ce!==Ae&&(window.fileIdMap=new Map),i.value=q.app,_&&(_=!1,pt.emit("do_play_audio"))}},document:QZ,appApi:!0});function m(q,H){q.preventDefault();const U=[];H!=="/"&&U.push({label:a("close"),onClick:()=>{L(H)}}),U.push({label:a("close_other_tabs"),onClick:()=>{gs(e.pages,ce=>ce!==H),g.value!==H&&g.value!=="/"&&A(H),u.value=e.pages}}),U.push({label:a("close_tabs_to_the_right"),onClick:()=>{const ce=e.pages.indexOf(H);gs(e.pages,Ae=>e.pages.indexOf(Ae)>ce),g.value!==H&&g.value!=="/"&&A(H),u.value=e.pages}}),yie({x:q.x,y:q.y,items:U})}const g=Se(r.currentRoute.value.fullPath);Vt(()=>r.currentRoute.value.fullPath,q=>{g.value=q});const v=()=>{p()},x=()=>{_=!0,p()},E=q=>{q.type==="AUDIO"&&p()},T=q=>{q.type==="AUDIO"&&p()};mn(()=>{pt.on("refetch_app",v),pt.on("play_audio",x),pt.on("media_items_deleted",E),pt.on("media_item_deleted",T),u.value=e.pages}),Wl(()=>{pt.off("refetch_app",v),pt.off("play_audio",x),pt.off("media_items_deleted",E),pt.off("media_item_deleted",T)});const C=(q,H)=>{let U;const ce=q;return f.has(ce)?U=f.get(ce):(U=H,f.set(ce,U)),U};function A(q){r.push(q)}function L(q){const H=e.pages.indexOf(q);H!==-1&&(e.pages.splice(H,1),g.value===q&&(e.pages.length?H{localStorage.setItem("main_state",JSON.stringify(q)),g.value=r.currentRoute.value.fullPath},{deep:!0});const R=localStorage.getItem("main_state");R&&(e.$state={...e.$state,...JSON.parse(R)});const D=q=>{["/","/login"].includes(q.path)||e.pages.includes(q.fullPath)||(e.pages.push(q.fullPath),u.value=e.pages)};return D(r.currentRoute.value),r.afterEach((q,H,U)=>{D(q)}),(q,H)=>{const U=Xd,ce=cie,Ae=Uy("router-view"),Le=Vre,Te=Nre,Ie=Rre,Pe=Sre,Ce=Ere,de=Tte,we=Pee,ke=tee,Re=AJ,He=Ea("tooltip");return c.value?(te(),oe("div",bie,wie)):d.value?(te(),oe("div",Eie,De(q.$t(d.value)),1)):(te(),oe("div",Tie,[V("header",null,[V("div",kie,[V("section",Cie,[V("div",Aie,[V("div",{class:jn(["tab-item",{active:g.value==="/"}]),onClick:H[0]||(H[0]=ze=>A("/")),key:"/",onContextmenu:H[1]||(H[1]=ze=>m(ze,"/"))},[V("span",null,De(q.$t("page_title.home")),1)],34),(te(!0),oe(St,null,Ei(fe(e).pages,ze=>(te(),oe("div",{key:ze,onClick:Ge=>A(ze),class:jn(["tab-item",{active:g.value===ze}]),onContextmenu:Ge=>m(Ge,ze)},[V("span",null,De(q.$t(`page_title.${fe(Vie)(ze)}`)),1),V("button",{class:"icon-button tab-icon",onClick:Pt(Ge=>L(ze),["stop"])},[$ie,qe(U)],8,Iie)],42,Sie))),128))])]),V("section",Oie,[qe(ce,{"logged-in":!0})])])]),V("div",Pie,[qe(Ae,null,{default:_i(({Component:ze,route:Ge})=>[(te(),Hr(Vy(C(Ge.fullPath,ze)),{key:q.$route.fullPath}))]),_:1})]),V("div",Rie,[fe(i).channel!=="GOOGLE"?vt((te(),oe("button",{key:0,class:jn(["icon-button q-action",{selected:fe(e).quick==="notification"}]),onClick:H[2]||(H[2]=ze=>b("notification")),toggle:""},[Lie,qe(Le)],2)),[[He,q.$t("header_actions.notifications")]]):yt("",!0),y.value?vt((te(),oe("button",{key:1,class:jn(["icon-button q-action",{selected:fe(e).quick==="task"}]),onClick:H[3]||(H[3]=ze=>b("task")),toggle:""},[Mie,qe(Te)],2)),[[He,q.$t("header_actions.tasks")]]):yt("",!0),vt((te(),oe("button",{id:"quick-audio",class:jn(["icon-button q-action",{selected:fe(e).quick==="audio"}]),onClick:H[4]||(H[4]=ze=>b("audio")),toggle:""},[Die,qe(Ie)],2)),[[He,q.$t("playlist")]]),vt((te(),oe("button",{class:jn(["icon-button q-action",{selected:fe(e).quick==="chat"}]),onClick:H[5]||(H[5]=ze=>b("chat")),toggle:""},[Fie,qe(Pe)],2)),[[He,q.$t("my_phone")]])]),V("div",Nie,[vt(qe(Ce,null,null,512),[[fi,fe(e).quick==="chat"]]),vt(qe(de,null,null,512),[[fi,fe(e).quick==="audio"]]),vt(qe(we,null,null,512),[[fi,fe(e).quick==="task"]]),vt(qe(ke,null,null,512),[[fi,fe(e).quick==="notification"]])]),qe(Re)]))}}});const qie=gn(zie,[["__scopeId","data-v-38cc53e3"]]),Di=fU({strict:!0,history:SB(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:qie,meta:{requiresAuth:!0},children:[{name:"home",path:"",component:()=>ot(()=>import("./HomeView-2a622ad9.js"),["assets/HomeView-2a622ad9.js","assets/HomeView-4261dfd7.css"]),meta:{group:"home"}},{path:"messages",component:()=>ot(()=>import("./MessagesRootView-327bdb7a.js"),["assets/MessagesRootView-327bdb7a.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js"]),meta:{group:"messages"},children:[{path:"",component:()=>ot(()=>import("./MessagesView-ed17a017.js"),["assets/MessagesView-ed17a017.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}},{path:":type",component:()=>ot(()=>import("./MessagesView-ed17a017.js"),["assets/MessagesView-ed17a017.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}}]},{path:"calls",component:()=>ot(()=>import("./CallsRootView-d0307ed3.js"),["assets/CallsRootView-d0307ed3.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js"]),meta:{group:"calls"},children:[{path:"",component:()=>ot(()=>import("./CallsView-ea154f44.js"),["assets/CallsView-ea154f44.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-90d0aca0.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}},{path:":type",component:()=>ot(()=>import("./CallsView-ea154f44.js"),["assets/CallsView-ea154f44.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-90d0aca0.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}}]},{path:"apps",component:()=>ot(()=>import("./AppsRootView-c4cfe0c5.js"),["assets/AppsRootView-c4cfe0c5.js","assets/splitpanes.es-20249936.js"]),meta:{group:"apps"},children:[{path:"",component:()=>ot(()=>import("./AppsView-25dd4b0d.js"),["assets/AppsView-25dd4b0d.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"apps"}},{path:":type",component:()=>ot(()=>import("./AppsView-25dd4b0d.js"),["assets/AppsView-25dd4b0d.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"apps"}}]},{path:"contacts",component:()=>ot(()=>import("./ContactsRootView-9b0848f1.js"),["assets/ContactsRootView-9b0848f1.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js"]),meta:{group:"contacts"},children:[{path:"",component:()=>ot(()=>import("./ContactsView-4ee6f78f.js"),["assets/ContactsView-4ee6f78f.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-90d0aca0.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/vee-validate.esm-a8549f5b.js","assets/tags-5a94e769.js","assets/tags-1a6de70c.css","assets/ContactsView-db53c1d2.css"]),meta:{group:"contacts"}}]},{path:"images",component:()=>ot(()=>import("./ImagesRootView-d085454e.js"),["assets/ImagesRootView-d085454e.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js","assets/splitpanes.es-20249936.js"]),meta:{group:"images"},children:[{path:"",component:()=>ot(()=>import("./ImagesView-f5772acc.js"),["assets/ImagesView-f5772acc.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/sort-rounded-21b00447.js","assets/upload-rounded-168dfb03.js","assets/grid-view-outline-rounded-388859d3.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css","assets/ImagesView-7b1f7983.css"]),meta:{group:"images"}}]},{path:"videos",component:()=>ot(()=>import("./VideosRootView-5a79ba17.js"),["assets/VideosRootView-5a79ba17.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js","assets/splitpanes.es-20249936.js"]),meta:{group:"videos"},children:[{path:"",component:()=>ot(()=>import("./VideosView-b11c2f7a.js"),["assets/VideosView-b11c2f7a.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/sort-rounded-21b00447.js","assets/upload-rounded-168dfb03.js","assets/grid-view-outline-rounded-388859d3.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css","assets/VideosView-c65d41f2.css"]),meta:{group:"videos"}}]},{path:"audios",component:()=>ot(()=>import("./AudiosRootView-e8169982.js"),["assets/AudiosRootView-e8169982.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-c40d638b.js","assets/splitpanes.es-20249936.js"]),meta:{group:"audios"},children:[{path:"",component:()=>ot(()=>import("./AudiosView-e2f521fa.js"),["assets/AudiosView-e2f521fa.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/sort-rounded-21b00447.js","assets/upload-rounded-168dfb03.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css","assets/AudiosView-0976cf23.css"]),meta:{group:"audios"}}]},{path:"notes/:id",component:()=>ot(()=>import("./NoteEditView-a7e56dfc.js"),["assets/NoteEditView-a7e56dfc.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js","assets/MonacoEditor-eb205dcf.css","assets/print-outline-rounded-5fc4afb9.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-20249936.js","assets/markdown-7d435800.js","assets/NoteEditView-9c575aea.css"]),meta:{group:"notes"}},{path:"notes",component:()=>ot(()=>import("./NotesRootView-978e456f.js"),["assets/NotesRootView-978e456f.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js"]),meta:{group:"notes"},children:[{path:"",component:()=>ot(()=>import("./NotesView-adfdc1fd.js"),["assets/NotesView-adfdc1fd.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"notes"}},{path:"trash",component:()=>ot(()=>import("./NotesTrashView-4f8c9b81.js"),["assets/NotesTrashView-4f8c9b81.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"trash"}}]},{path:"aichats/:id",component:()=>ot(()=>import("./AIChatView-d4a94ef9.js"),["assets/AIChatView-d4a94ef9.js","assets/splitpanes.es-20249936.js","assets/markdown-7d435800.js","assets/AIChatView-e251387c.css"]),meta:{group:"aichats"}},{path:"aichats",component:()=>ot(()=>import("./AIChatsRootView-d2e5ee91.js"),["assets/AIChatsRootView-d2e5ee91.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js"]),meta:{group:"aichats"},children:[{path:"",component:()=>ot(()=>import("./AIChatsView-18cbb2e2.js"),["assets/AIChatsView-18cbb2e2.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"aichats"}}]},{path:"files",component:()=>ot(()=>import("./FilesRootView-0cea3334.js"),["assets/FilesRootView-0cea3334.js","assets/splitpanes.es-20249936.js"]),meta:{group:"files"},children:[{path:"",component:()=>ot(()=>import("./FilesView-47b82c11.js"),["assets/FilesView-47b82c11.js","assets/sort-rounded-21b00447.js","assets/refresh-rounded-ba092d85.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-20249936.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/FilesView-3ce5a0ae.css"]),meta:{group:"files"}},{path:"recent",component:()=>ot(()=>import("./FilesRecentView-1a58103f.js"),["assets/FilesRecentView-1a58103f.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/FilesRecentView-502451da.css"]),meta:{group:"files"}},{path:":type",component:()=>ot(()=>import("./FilesView-47b82c11.js"),["assets/FilesView-47b82c11.js","assets/sort-rounded-21b00447.js","assets/refresh-rounded-ba092d85.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-20249936.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/FilesView-3ce5a0ae.css"]),meta:{group:"files"}}]},{path:"json-viewer",component:()=>ot(()=>import("./JsonViewerView-7a955368.js"),["assets/JsonViewerView-7a955368.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js","assets/MonacoEditor-eb205dcf.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-20249936.js","assets/JsonViewerView-50d35b39.css"]),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>ot(()=>import("./QrCodeGeneratorView-72764576.js"),["assets/QrCodeGeneratorView-72764576.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-20249936.js","assets/QrCodeGeneratorView-45d4ebea.css"]),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>ot(()=>import("./ScreenMirrorView-ae9ae5ba.js"),["assets/ScreenMirrorView-ae9ae5ba.js","assets/refresh-rounded-ba092d85.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/ScreenMirrorView-73562204.css"]),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>ot(()=>import("./DeviceInfoView-c5fa5356.js"),["assets/DeviceInfoView-c5fa5356.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/DeviceInfoView-31c16428.css"]),meta:{group:"device_info"}},{path:"network",component:()=>ot(()=>import("./NetworkView-1bbc5b0e.js"),["assets/NetworkView-1bbc5b0e.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"network"}},{path:"wifi",component:()=>ot(()=>import("./WiFiView-62b31998.js"),["assets/WiFiView-62b31998.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/vee-validate.esm-a8549f5b.js"]),meta:{group:"wifi"}},{path:"wireguard",component:()=>ot(()=>import("./WireGuardView-5e83229d.js"),["assets/WireGuardView-5e83229d.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>ot(()=>import("./WireGuardEditView-a2d73302.js"),["assets/WireGuardEditView-a2d73302.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-3fe2f89c.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"rules",component:()=>ot(()=>import("./RulesView-58977238.js"),["assets/RulesView-58977238.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/question-mark-rounded-72e52d2c.js","assets/vee-validate.esm-a8549f5b.js"]),meta:{group:"rules"}},{path:"routes",component:()=>ot(()=>import("./RoutesView-005bcd48.js"),["assets/RoutesView-005bcd48.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/question-mark-rounded-72e52d2c.js","assets/vee-validate.esm-a8549f5b.js"]),meta:{group:"routes"}},{path:"devices",component:()=>ot(()=>import("./DevicesView-a73d5ee2.js"),["assets/DevicesView-a73d5ee2.js","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css"]),meta:{group:"devices"}},{path:"feeds",component:()=>ot(()=>import("./FeedsRootView-16561317.js"),["assets/FeedsRootView-16561317.js","assets/TagFilter.vuevuetypescriptsetuptruelang-bf7f977c.js","assets/EditValueModal-2509bdbc.js","assets/vee-validate.esm-a8549f5b.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-20249936.js","assets/FeedsRootView-f85934c4.css"]),meta:{group:"feeds"},children:[{path:"",component:()=>ot(()=>import("./FeedsView-b953d3d9.js"),["assets/FeedsView-b953d3d9.js","assets/list-2b55c026.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-9fbc434f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-5a94e769.js","assets/vee-validate.esm-a8549f5b.js","assets/tags-1a6de70c.css"]),meta:{group:"feeds"}},{path:":feedId/entries/:id",component:()=>ot(()=>import("./FeedEntryView-0a490c72.js"),["assets/FeedEntryView-0a490c72.js","assets/print-outline-rounded-5fc4afb9.js","assets/markdown-7d435800.js","assets/FeedEntryView-1da67e15.css"]),meta:{group:"feeds"}}]}]},{name:"login",path:"/login",component:()=>ot(()=>import("./LoginView-9a2b7ffd.js"),["assets/LoginView-9a2b7ffd.js","assets/vee-validate.esm-a8549f5b.js","assets/LoginView-c32a18d9.css"]),meta:{requiresAuth:!1}}]}),DA=new Map;Di.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&DA.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}}});Di.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=DA.get(t.fullPath);n&&(r.scrollTop=n)}},0)});const Bie=(t,e)=>{const r=Di.currentRoute.value.fullPath;Di.currentRoute.value.fullPath=e,t.pages.includes(e)?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},Uie=(t,e)=>{t.pages.includes(e)?Di.push(e):(Di.replace(e),t.replaceRoute(Di.currentRoute.value.fullPath,e))},h_e=t=>{setTimeout(()=>{Di.push(t)},0)},Vie=t=>Di.resolve(t).meta.group;class jie extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return _e``}}const Hie=Ve`:host{--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000));display:flex;pointer-events:none}:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}/*# sourceMappingURL=elevation-styles.css.map */ +`;let y_=class extends Ane{};y_.styles=[Ine,Sne];y_=P([rt("md-outlined-segmented-button")],y_);const $ne=t=>(yo("data-v-2b618255"),t=t(),bo(),t),One={class:"theme-changer"},Pne={id:"hex"},Rne={class:"label"},Lne={class:"input-wrapper"},Mne={class:"overflow"},Dne=["value"],Fne=$ne(()=>V("md-focus-ring",{for:"color-input"},null,-1)),Nne=["selected"],zne=["selected"],qne=["selected"],Bne=Bt({__name:"ThemeChanger",setup(t){const e=Se(Rb()),r=Se(td());function n(o){const{button:a}=o.detail,c=a.dataset.value;r.value=c,Zk(c)}function i(o){e.value=o.target.value,Yk(e.value)}return(o,a)=>{const c=cne,d=ine,u=Jre;return te(),oe("div",One,[V("div",null,[V("label",Pne,[V("span",Rne,De(o.$t("color")),1),V("span",Lne,[V("div",Mne,[V("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Dne)]),Fne])])]),V("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:n},[V("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark"},[qe(c,{slot:"icon"})],8,Nne),V("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto"},[qe(d,{slot:"icon"})],8,zne),V("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light"},[qe(u,{slot:"icon"})],8,qne)],32)])}}});const Une=gn(Bne,[["__scopeId","data-v-2b618255"]]),Vne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jne=V("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175Q6.4 3.575 8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9q1.337 1.212 2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.313.125t-.087.275q0 .3.375.863t.375 1.287q0 1.25-.688 1.85T12 22Zm0-10Zm-5.5 1q.65 0 1.075-.425T8 11.5q0-.65-.425-1.075T6.5 10q-.65 0-1.075.425T5 11.5q0 .65.425 1.075T6.5 13Zm3-4q.65 0 1.075-.425T11 7.5q0-.65-.425-1.075T9.5 6q-.65 0-1.075.425T8 7.5q0 .65.425 1.075T9.5 9Zm5 0q.65 0 1.075-.425T16 7.5q0-.65-.425-1.075T14.5 6q-.65 0-1.075.425T13 7.5q0 .65.425 1.075T14.5 9Zm3 4q.65 0 1.075-.425T19 11.5q0-.65-.425-1.075T17.5 10q-.65 0-1.075.425T16 11.5q0 .65.425 1.075T17.5 13ZM12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.963T20 11.05q0-3.025-2.313-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Hne=[jne];function Gne(t,e){return te(),oe("svg",Vne,Hne)}const Wne={name:"material-symbols-palette-outline",render:Gne},Qne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kne=V("path",{fill:"currentColor",d:"M13.35 22q-.6 0-.862-.388t-.063-.962l3.65-9.675q.15-.4.563-.687T17.5 10q.425 0 .85.288t.575.687l3.65 9.675q.2.575-.062.963t-.888.387q-.275 0-.5-.175T20.8 21.4l-.85-2.45H15.1l-.875 2.45q-.1.25-.35.425T13.35 22Zm2.35-4.8h3.6l-1.75-4.95h-.1L15.7 17.2ZM7.15 8.55q.4.725.85 1.338t1.05 1.262q1.1-1.2 1.825-2.462T12.1 6H2q-.425 0-.713-.288T1 5q0-.425.288-.713T2 4h6V3q0-.425.288-.713T9 2q.425 0 .713.288T10 3v1h6q.425 0 .713.288T17 5q0 .425-.288.713T16 6h-1.9q-.525 1.775-1.425 3.45T10.45 12.6l2.4 2.45l-.75 2.05L9 14l-4.3 4.3q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.675-.775-1.25-1.563T5.375 9.326Q5.1 8.8 5.35 8.4t.875-.4q.25 0 .525.163t.4.387Z"},null,-1),Yne=[Kne];function Zne(t,e){return te(),oe("svg",Qne,Yne)}const Xne={name:"material-symbols-translate-rounded",render:Zne},_0=t=>(yo("data-v-ac6560d3"),t=t(),bo(),t),Jne={class:"h-action",style:{position:"relative"}},eie=_0(()=>V("md-ripple",null,null,-1)),tie=["open"],rie=["onClick"],nie={slot:"headline"},iie={class:"h-action",style:{position:"relative"}},oie=_0(()=>V("md-ripple",null,null,-1)),aie=["open"],sie=_0(()=>V("md-ripple",null,null,-1)),lie=Bt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Se(!1),n=Se(!1),{locale:i,t:o}=On(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"}];function c(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const _=Xne,y=Wne,b=Une,p=Qre,m=Ea("tooltip");return te(),oe(St,null,[V("div",Jne,[vt((te(),oe("button",{class:"icon-button",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[eie,qe(_)])),[[m,fe(o)("header_actions.language")]]),V("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(te(),oe(St,null,Ei(a,g=>V("md-menu-item",{onClick:v=>c(g.value)},[V("div",nie,De(g.name),1)],8,rie)),64))],40,tie)]),V("div",iie,[vt((te(),oe("button",{class:"icon-button",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[oie,qe(y)])),[[m,fe(o)("header_actions.theme")]]),V("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[qe(b)],40,aie)]),e.loggedIn?vt((te(),oe("button",{key:0,class:"icon-button h-action",style:{"margin-inline-end":"8px"},onClick:d},[sie,qe(p)])),[[m,u.$t("header_actions.logout")]]):yt("",!0)],64)}}});const cie=gn(lie,[["__scopeId","data-v-ac6560d3"]]),MA=t=>(yo("data-v-06bccd9a"),t=t(),bo(),t),die=MA(()=>V("span",{class:"right-arrow"},null,-1)),uie=[die],fie=MA(()=>V("span",{class:"right-arrow"},null,-1)),pie=[fie],hie=["disabled","onMouseenter","onFocus","onClick"],mie={slot:"headline"},vie=Bt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,{globalData:n,position:i,options:o,parentItem:a}=Vp(r),c=Se(),d=Se(),u=Se(!1),f=Se(!1);let _=null;const y=Se(0),b=Se(null),p=Se({parentPosition:{x:0,y:0},screenSize:n.value.screenSize}),m=Se({x:0,y:0});function g(H,U){if(U.disabled||!U.children||U.children.length==0||b.value===U)return;b.value=U,p.value.parentPosition.x=n.value.parentPosition.x+i.value.x,p.value.parentPosition.y=n.value.parentPosition.y+i.value.y,c.value&&(m.value.x=c.value.offsetWidth+(o.value.xOffset||0));const ce=H.target;ce&&(m.value.y=ce.offsetTop+(o.value.yOffset||0))}function v(){_=b.value,setTimeout(()=>{_===b.value&&(b.value=null)})}Vt(b,(H,U)=>{H&&U&&setTimeout(()=>{d.value&&d.value.doCheckPos()},50)});function x(H){v(),H&&e("close",!0)}function E(H){_===H&&(_=null),e("keepOpen",a.value)}function T(H){m.value.x=H.x,m.value.y=H.y}function C(H){H.disabled||(typeof H.onClick=="function"?(H.onClick(),e("close",!0)):(!H.children||H.children.length===0)&&e("close",!0))}function A(){e("keepOpen",a.value)}function L(H){H.relatedTarget!=null&&e("close",!1)}function R(H){c.value&&(c.value.scrollTop+=H?30:-30)}let D=0;function q(){const H=c.value,U=n.value;if(H){const ce={x:i.value.x,y:i.value.y},Ae=U.parentPosition.x+i.value.x+H.offsetWidth;if(Ae>U.screenSize.w&&(ce.x-=Ae-U.screenSize.w),H.offsetHeight>U.screenSize.h-30)y.value=U.screenSize.h-30,ce.y=-U.parentPosition.y,f.value=!0;else{f.value=!1,y.value=0;const Le=U.parentPosition.y+i.value.y+H.offsetHeight;Le>U.screenSize.h&&(ce.y-=Le-U.screenSize.h+30)}e("preUpdatePos",ce),u.value=!0}}return mn(()=>{D=window.setTimeout(()=>q(),100)}),Hi(()=>{D>0&&(clearTimeout(D),D=0)}),(H,U)=>{const ce=Uy("ContextSubMenu",!0);return t.items?(te(),oe("div",{key:0,class:jn("context-menu "+(fe(o).customClass?fe(o).customClass:"")+(u.value?" ready":"")),style:bl({maxWidth:fe(a)&&fe(a).maxWidth?`${fe(a).maxWidth}px`:"600px",minWidth:fe(a)&&fe(a).minWidth?`${fe(a).minWidth}px`:"100px",zIndex:t.zIndex,left:`${fe(i).x}px`,top:`${fe(i).y}px`}),onMouseenter:A,onMouseleave:U[4]||(U[4]=Ae=>L(Ae))},[vt(V("div",{class:"context-menu-updown up",onClick:U[0]||(U[0]=Ae=>R(!1))},uie,512),[[fi,f.value]]),vt(V("div",{class:"context-menu-updown down",onClick:U[1]||(U[1]=Ae=>R(!0))},pie,512),[[fi,f.value]]),V("div",{class:"context-menu-items",ref_key:"menu",ref:c,style:bl({maxHeight:y.value>0?`${y.value}px`:""})},[(te(!0),oe(St,null,Ei(t.items,(Ae,Le)=>(te(),oe("md-menu-item",{key:Le,disabled:Ae.disabled,onMouseenter:Te=>g(Te,Ae),onMouseleave:U[2]||(U[2]=Te=>v()),onFocus:Te=>g(Te,Ae),onBlur:U[3]||(U[3]=Te=>v()),onClick:Te=>C(Ae)},[V("div",mie,De(Ae.label),1)],40,hie))),128))],4),b.value&&b.value.children?(te(),Hr(ce,{key:0,ref_key:"childMenu",ref:d,zIndex:t.zIndex+1,items:b.value.children,parentItem:b.value,options:fe(o),globalData:p.value,position:m.value,onClose:x,onKeepOpen:E,onPreUpdatePos:T},null,8,["zIndex","items","parentItem","options","globalData","position"])):yt("",!0)],38)):yt("",!0)}}});const gie=gn(vie,[["__scopeId","data-v-06bccd9a"]]),zv={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},_ie=Bt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=t,n=Se({x:0,y:0}),i={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function o(){n.value.x=r.options.x,n.value.y=r.options.y}function a(){e("update:show",!1),e("close")}function c(f){f&&a()}function d(f){n.value.x=f.x,n.value.y=f.y}const u=f=>{f.key==="Escape"&&a()};return mn(()=>{document.addEventListener("keydown",u),o(),setTimeout(()=>{document.addEventListener("click",a),document.addEventListener("contextmenu",a)},100)}),Hi(()=>{document.removeEventListener("keydown",u),document.removeEventListener("click",a)}),Vt(()=>r.show,f=>{f&&o()}),(f,_)=>{const y=gie;return t.show?(te(),Hr(y,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||fe(zv).defaultMaxWidth,minWidth:t.options.minWidth||fe(zv).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||fe(zv).defaultStartZindex,globalData:i,position:n.value,"on-close":c,onPreUpdatePos:d},null,8,["items","parentItem","options","z-index","position"])):yt("",!0)}}}),yie=t=>{const e=document.createElement("div"),r=Ni(_ie,{options:t,show:!0,onClose:()=>{sg(null,e)}});return sg(r,e),document.body.appendChild(e.firstElementChild),r.component},ec=t=>(yo("data-v-38cc53e3"),t=t(),bo(),t),bie={key:0,class:"loading"},xie=ec(()=>V("md-circular-progress",{indeterminate:""},null,-1)),wie=[xie],Eie={key:1,class:"alert alert-danger"},Tie={key:2,class:"layout"},kie={class:"default-content"},Cie={class:"start"},Aie={class:"tab-items"},Sie=["onClick","onContextmenu"],Iie=["onClick"],$ie=ec(()=>V("md-ripple",null,null,-1)),Oie={class:"end"},Pie={class:"page-content"},Rie={class:"quick"},Lie=ec(()=>V("md-ripple",null,null,-1)),Mie=ec(()=>V("md-ripple",null,null,-1)),Die=ec(()=>V("md-ripple",null,null,-1)),Fie=ec(()=>V("md-ripple",null,null,-1)),Nie={class:"quick-content"},zie=Bt({__name:"MainView",setup(t){const e=Gd(),r=hU(),n=Co(),{app:i,urlTokenKey:o}=ba(n),{t:a}=On(),c=Se(!0),d=Se(""),u=Se([]),f=new Map;let _=!1;const y=It(()=>n.uploads.length>0);function b(q){e.quick===q?e.quick="":e.quick=q}const{refetch:p}=ys({handle:(q,H)=>{var U;if(c.value=!1,H)d.value=H;else if(q){const ce=(U=i.value)==null?void 0:U.urlToken,Ae=q.app.urlToken;o.value=Db(Ae),ce!==Ae&&(window.fileIdMap=new Map),i.value=q.app,_&&(_=!1,pt.emit("do_play_audio"))}},document:QZ,appApi:!0});function m(q,H){q.preventDefault();const U=[];H!=="/"&&U.push({label:a("close"),onClick:()=>{L(H)}}),U.push({label:a("close_other_tabs"),onClick:()=>{gs(e.pages,ce=>ce!==H),g.value!==H&&g.value!=="/"&&A(H),u.value=e.pages}}),U.push({label:a("close_tabs_to_the_right"),onClick:()=>{const ce=e.pages.indexOf(H);gs(e.pages,Ae=>e.pages.indexOf(Ae)>ce),g.value!==H&&g.value!=="/"&&A(H),u.value=e.pages}}),yie({x:q.x,y:q.y,items:U})}const g=Se(r.currentRoute.value.fullPath);Vt(()=>r.currentRoute.value.fullPath,q=>{g.value=q});const v=()=>{p()},x=()=>{_=!0,p()},E=q=>{q.type==="AUDIO"&&p()},T=q=>{q.type==="AUDIO"&&p()};mn(()=>{pt.on("refetch_app",v),pt.on("play_audio",x),pt.on("media_items_deleted",E),pt.on("media_item_deleted",T),u.value=e.pages}),Wl(()=>{pt.off("refetch_app",v),pt.off("play_audio",x),pt.off("media_items_deleted",E),pt.off("media_item_deleted",T)});const C=(q,H)=>{let U;const ce=q;return f.has(ce)?U=f.get(ce):(U=H,f.set(ce,U)),U};function A(q){r.push(q)}function L(q){const H=e.pages.indexOf(q);H!==-1&&(e.pages.splice(H,1),g.value===q&&(e.pages.length?H{localStorage.setItem("main_state",JSON.stringify(q)),g.value=r.currentRoute.value.fullPath},{deep:!0});const R=localStorage.getItem("main_state");R&&(e.$state={...e.$state,...JSON.parse(R)});const D=q=>{["/","/login"].includes(q.path)||e.pages.includes(q.fullPath)||(e.pages.push(q.fullPath),u.value=e.pages)};return D(r.currentRoute.value),r.afterEach((q,H,U)=>{D(q)}),(q,H)=>{const U=Xd,ce=cie,Ae=Uy("router-view"),Le=Vre,Te=Nre,Ie=Rre,Pe=Sre,Ce=Ere,de=Tte,we=Pee,ke=tee,Re=AJ,He=Ea("tooltip");return c.value?(te(),oe("div",bie,wie)):d.value?(te(),oe("div",Eie,De(q.$t(d.value)),1)):(te(),oe("div",Tie,[V("header",null,[V("div",kie,[V("section",Cie,[V("div",Aie,[V("div",{class:jn(["tab-item",{active:g.value==="/"}]),onClick:H[0]||(H[0]=ze=>A("/")),key:"/",onContextmenu:H[1]||(H[1]=ze=>m(ze,"/"))},[V("span",null,De(q.$t("page_title.home")),1)],34),(te(!0),oe(St,null,Ei(fe(e).pages,ze=>(te(),oe("div",{key:ze,onClick:Ge=>A(ze),class:jn(["tab-item",{active:g.value===ze}]),onContextmenu:Ge=>m(Ge,ze)},[V("span",null,De(q.$t(`page_title.${fe(Vie)(ze)}`)),1),V("button",{class:"icon-button tab-icon",onClick:Pt(Ge=>L(ze),["stop"])},[$ie,qe(U)],8,Iie)],42,Sie))),128))])]),V("section",Oie,[qe(ce,{"logged-in":!0})])])]),V("div",Pie,[qe(Ae,null,{default:_i(({Component:ze,route:Ge})=>[(te(),Hr(Vy(C(Ge.fullPath,ze)),{key:q.$route.fullPath}))]),_:1})]),V("div",Rie,[fe(i).channel!=="GOOGLE"?vt((te(),oe("button",{key:0,class:jn(["icon-button q-action",{selected:fe(e).quick==="notification"}]),onClick:H[2]||(H[2]=ze=>b("notification")),toggle:""},[Lie,qe(Le)],2)),[[He,q.$t("header_actions.notifications")]]):yt("",!0),y.value?vt((te(),oe("button",{key:1,class:jn(["icon-button q-action",{selected:fe(e).quick==="task"}]),onClick:H[3]||(H[3]=ze=>b("task")),toggle:""},[Mie,qe(Te)],2)),[[He,q.$t("header_actions.tasks")]]):yt("",!0),vt((te(),oe("button",{id:"quick-audio",class:jn(["icon-button q-action",{selected:fe(e).quick==="audio"}]),onClick:H[4]||(H[4]=ze=>b("audio")),toggle:""},[Die,qe(Ie)],2)),[[He,q.$t("playlist")]]),vt((te(),oe("button",{class:jn(["icon-button q-action",{selected:fe(e).quick==="chat"}]),onClick:H[5]||(H[5]=ze=>b("chat")),toggle:""},[Fie,qe(Pe)],2)),[[He,q.$t("my_phone")]])]),V("div",Nie,[vt(qe(Ce,null,null,512),[[fi,fe(e).quick==="chat"]]),vt(qe(de,null,null,512),[[fi,fe(e).quick==="audio"]]),vt(qe(we,null,null,512),[[fi,fe(e).quick==="task"]]),vt(qe(ke,null,null,512),[[fi,fe(e).quick==="notification"]])]),qe(Re)]))}}});const qie=gn(zie,[["__scopeId","data-v-38cc53e3"]]),Di=fU({strict:!0,history:SB(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:qie,meta:{requiresAuth:!0},children:[{name:"home",path:"",component:()=>ot(()=>import("./HomeView-9fddd089.js"),["assets/HomeView-9fddd089.js","assets/HomeView-4261dfd7.css"]),meta:{group:"home"}},{path:"messages",component:()=>ot(()=>import("./MessagesRootView-1f3665f1.js"),["assets/MessagesRootView-1f3665f1.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js"]),meta:{group:"messages"},children:[{path:"",component:()=>ot(()=>import("./MessagesView-9ca1b035.js"),["assets/MessagesView-9ca1b035.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}},{path:":type",component:()=>ot(()=>import("./MessagesView-9ca1b035.js"),["assets/MessagesView-9ca1b035.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}}]},{path:"calls",component:()=>ot(()=>import("./CallsRootView-83600678.js"),["assets/CallsRootView-83600678.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js"]),meta:{group:"calls"},children:[{path:"",component:()=>ot(()=>import("./CallsView-c5c9e223.js"),["assets/CallsView-c5c9e223.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-027b1fc9.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}},{path:":type",component:()=>ot(()=>import("./CallsView-c5c9e223.js"),["assets/CallsView-c5c9e223.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-027b1fc9.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}}]},{path:"apps",component:()=>ot(()=>import("./AppsRootView-b01648a0.js"),["assets/AppsRootView-b01648a0.js","assets/splitpanes.es-a34c2504.js"]),meta:{group:"apps"},children:[{path:"",component:()=>ot(()=>import("./AppsView-0a306bf4.js"),["assets/AppsView-0a306bf4.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"apps"}},{path:":type",component:()=>ot(()=>import("./AppsView-0a306bf4.js"),["assets/AppsView-0a306bf4.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"apps"}}]},{path:"contacts",component:()=>ot(()=>import("./ContactsRootView-b98dc457.js"),["assets/ContactsRootView-b98dc457.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js"]),meta:{group:"contacts"},children:[{path:"",component:()=>ot(()=>import("./ContactsView-79362ad5.js"),["assets/ContactsView-79362ad5.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/call-outline-rounded-027b1fc9.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/vee-validate.esm-7088b7c0.js","assets/tags-15dfcb58.js","assets/tags-1a6de70c.css","assets/ContactsView-db53c1d2.css"]),meta:{group:"contacts"}}]},{path:"images",component:()=>ot(()=>import("./ImagesRootView-dbda6158.js"),["assets/ImagesRootView-dbda6158.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js","assets/splitpanes.es-a34c2504.js"]),meta:{group:"images"},children:[{path:"",component:()=>ot(()=>import("./ImagesView-73d78fde.js"),["assets/ImagesView-73d78fde.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/sort-rounded-6ce111fd.js","assets/upload-rounded-b3049477.js","assets/grid-view-outline-rounded-c791dd48.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css","assets/ImagesView-7b1f7983.css"]),meta:{group:"images"}}]},{path:"videos",component:()=>ot(()=>import("./VideosRootView-05227378.js"),["assets/VideosRootView-05227378.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js","assets/splitpanes.es-a34c2504.js"]),meta:{group:"videos"},children:[{path:"",component:()=>ot(()=>import("./VideosView-75127da9.js"),["assets/VideosView-75127da9.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/sort-rounded-6ce111fd.js","assets/upload-rounded-b3049477.js","assets/grid-view-outline-rounded-c791dd48.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css","assets/VideosView-c65d41f2.css"]),meta:{group:"videos"}}]},{path:"audios",component:()=>ot(()=>import("./AudiosRootView-c3d93ee1.js"),["assets/AudiosRootView-c3d93ee1.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-69d6a3ac.js","assets/splitpanes.es-a34c2504.js"]),meta:{group:"audios"},children:[{path:"",component:()=>ot(()=>import("./AudiosView-fd00afb0.js"),["assets/AudiosView-fd00afb0.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/sort-rounded-6ce111fd.js","assets/upload-rounded-b3049477.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css","assets/AudiosView-0976cf23.css"]),meta:{group:"audios"}}]},{path:"notes/:id",component:()=>ot(()=>import("./NoteEditView-14cf96a0.js"),["assets/NoteEditView-14cf96a0.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js","assets/MonacoEditor-eb205dcf.css","assets/print-outline-rounded-f6e90fab.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-a34c2504.js","assets/markdown-c78c3af8.js","assets/NoteEditView-9c575aea.css"]),meta:{group:"notes"}},{path:"notes",component:()=>ot(()=>import("./NotesRootView-9c77db22.js"),["assets/NotesRootView-9c77db22.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js"]),meta:{group:"notes"},children:[{path:"",component:()=>ot(()=>import("./NotesView-2825dc60.js"),["assets/NotesView-2825dc60.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"notes"}},{path:"trash",component:()=>ot(()=>import("./NotesTrashView-9ffe18fd.js"),["assets/NotesTrashView-9ffe18fd.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"trash"}}]},{path:"aichats/:id",component:()=>ot(()=>import("./AIChatView-e729c9cb.js"),["assets/AIChatView-e729c9cb.js","assets/splitpanes.es-a34c2504.js","assets/markdown-c78c3af8.js","assets/AIChatView-e251387c.css"]),meta:{group:"aichats"}},{path:"aichats",component:()=>ot(()=>import("./AIChatsRootView-6784f91e.js"),["assets/AIChatsRootView-6784f91e.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js"]),meta:{group:"aichats"},children:[{path:"",component:()=>ot(()=>import("./AIChatsView-6971920d.js"),["assets/AIChatsView-6971920d.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"aichats"}}]},{path:"files",component:()=>ot(()=>import("./FilesRootView-2c249124.js"),["assets/FilesRootView-2c249124.js","assets/splitpanes.es-a34c2504.js"]),meta:{group:"files"},children:[{path:"",component:()=>ot(()=>import("./FilesView-69259bc9.js"),["assets/FilesView-69259bc9.js","assets/sort-rounded-6ce111fd.js","assets/refresh-rounded-4826b5dd.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-a34c2504.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/FilesView-3ce5a0ae.css"]),meta:{group:"files"}},{path:"recent",component:()=>ot(()=>import("./FilesRecentView-3cb4bc25.js"),["assets/FilesRecentView-3cb4bc25.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/FilesRecentView-502451da.css"]),meta:{group:"files"}},{path:":type",component:()=>ot(()=>import("./FilesView-69259bc9.js"),["assets/FilesView-69259bc9.js","assets/sort-rounded-6ce111fd.js","assets/refresh-rounded-4826b5dd.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-a34c2504.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/FilesView-3ce5a0ae.css"]),meta:{group:"files"}}]},{path:"json-viewer",component:()=>ot(()=>import("./JsonViewerView-2490e1ea.js"),["assets/JsonViewerView-2490e1ea.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js","assets/MonacoEditor-eb205dcf.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-a34c2504.js","assets/JsonViewerView-50d35b39.css"]),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>ot(()=>import("./QrCodeGeneratorView-ea803af3.js"),["assets/QrCodeGeneratorView-ea803af3.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/splitpanes.es-a34c2504.js","assets/QrCodeGeneratorView-45d4ebea.css"]),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>ot(()=>import("./ScreenMirrorView-358fa446.js"),["assets/ScreenMirrorView-358fa446.js","assets/refresh-rounded-4826b5dd.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/ScreenMirrorView-73562204.css"]),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>ot(()=>import("./DeviceInfoView-333cc003.js"),["assets/DeviceInfoView-333cc003.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/DeviceInfoView-31c16428.css"]),meta:{group:"device_info"}},{path:"network",component:()=>ot(()=>import("./NetworkView-cd23fd42.js"),["assets/NetworkView-cd23fd42.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css"]),meta:{group:"network"}},{path:"wifi",component:()=>ot(()=>import("./WiFiView-1d609bca.js"),["assets/WiFiView-1d609bca.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/vee-validate.esm-7088b7c0.js"]),meta:{group:"wifi"}},{path:"wireguard",component:()=>ot(()=>import("./WireGuardView-038544fc.js"),["assets/WireGuardView-038544fc.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>ot(()=>import("./WireGuardEditView-18959341.js"),["assets/WireGuardEditView-18959341.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-03168f0d.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"rules",component:()=>ot(()=>import("./RulesView-7e630970.js"),["assets/RulesView-7e630970.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/question-mark-rounded-50577cc8.js","assets/vee-validate.esm-7088b7c0.js"]),meta:{group:"rules"}},{path:"routes",component:()=>ot(()=>import("./RoutesView-51f5ef71.js"),["assets/RoutesView-51f5ef71.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/question-mark-rounded-50577cc8.js","assets/vee-validate.esm-7088b7c0.js"]),meta:{group:"routes"}},{path:"devices",component:()=>ot(()=>import("./DevicesView-3fb0718f.js"),["assets/DevicesView-3fb0718f.js","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css"]),meta:{group:"devices"}},{path:"feeds",component:()=>ot(()=>import("./FeedsRootView-3b90be68.js"),["assets/FeedsRootView-3b90be68.js","assets/TagFilter.vuevuetypescriptsetuptruelang-fbd6ba30.js","assets/EditValueModal-068407b0.js","assets/vee-validate.esm-7088b7c0.js","assets/EditValueModal-7fcebbd0.css","assets/splitpanes.es-a34c2504.js","assets/FeedsRootView-f85934c4.css"]),meta:{group:"feeds"},children:[{path:"",component:()=>ot(()=>import("./FeedsView-c929e406.js"),["assets/FeedsView-c929e406.js","assets/list-b6a3249f.js","assets/list-4d9b6b3e.css","assets/Breadcrumb-5456253f.js","assets/Breadcrumb-cd4e000b.css","assets/tags-15dfcb58.js","assets/vee-validate.esm-7088b7c0.js","assets/tags-1a6de70c.css"]),meta:{group:"feeds"}},{path:":feedId/entries/:id",component:()=>ot(()=>import("./FeedEntryView-34f4210f.js"),["assets/FeedEntryView-34f4210f.js","assets/print-outline-rounded-f6e90fab.js","assets/markdown-c78c3af8.js","assets/FeedEntryView-1da67e15.css"]),meta:{group:"feeds"}}]}]},{name:"login",path:"/login",component:()=>ot(()=>import("./LoginView-a75f2c43.js"),["assets/LoginView-a75f2c43.js","assets/vee-validate.esm-7088b7c0.js","assets/LoginView-189a754f.css"]),meta:{requiresAuth:!1}}]}),DA=new Map;Di.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&DA.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}}});Di.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=DA.get(t.fullPath);n&&(r.scrollTop=n)}},0)});const Bie=(t,e)=>{const r=Di.currentRoute.value.fullPath;Di.currentRoute.value.fullPath=e,t.pages.includes(e)?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},Uie=(t,e)=>{t.pages.includes(e)?Di.push(e):(Di.replace(e),t.replaceRoute(Di.currentRoute.value.fullPath,e))},h_e=t=>{setTimeout(()=>{Di.push(t)},0)},Vie=t=>Di.resolve(t).meta.group;class jie extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return _e``}}const Hie=Ve`:host{--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000));display:flex;pointer-events:none}:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}/*# sourceMappingURL=elevation-styles.css.map */ `;let b_=class extends jie{};b_.styles=[Hie];b_=P([rt("md-elevation")],b_);const FA=Symbol.for(""),Gie=t=>{if((t==null?void 0:t.r)===FA)return t==null?void 0:t._$litStatic$},Gr=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but take care to ensure page security.`)})(n)+t[i+1],t[0]),r:FA}),iE=new Map,Wie=t=>(e,...r)=>{const n=r.length;let i,o;const a=[],c=[];let d,u=0,f=!1;for(;u{const r=e;r.addEventListener("click",async n=>{const{type:i,[Bl]:o}=r,{form:a}=o;if(!(!a||i==="button")&&(await new Promise(c=>{c()}),!n.defaultPrevented)){if(i==="reset"){a.reset();return}a.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),o.setFormValue(r.value),a.requestSubmit()}})})}var zA;class Or extends lt{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Bl].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this[zA]=this.attachInternals(),this.handleActivationClick=e=>{!iu(e)||!this.buttonElement||(this.focus(),Ih(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){const e=this.disabled&&!this.href,r=this.href?Gr`a`:Gr`button`,{ariaLabel:n,ariaHasPopup:i,ariaExpanded:o}=this;return tc` <${r} diff --git a/app/src/main/resources/web/assets/javascript-26decd57.js b/app/src/main/resources/web/assets/javascript-6be51775.js similarity index 77% rename from app/src/main/resources/web/assets/javascript-26decd57.js rename to app/src/main/resources/web/assets/javascript-6be51775.js index 6846ab5a..b3171041 100644 --- a/app/src/main/resources/web/assets/javascript-26decd57.js +++ b/app/src/main/resources/web/assets/javascript-6be51775.js @@ -1 +1 @@ -import{conf as t,language as e}from"./typescript-37df992a.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var r=t,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,a as language}; +import{conf as t,language as e}from"./typescript-07248291.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var r=t,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,a as language}; diff --git a/app/src/main/resources/web/assets/jsonMode-aac536f7.js b/app/src/main/resources/web/assets/jsonMode-a748f807.js similarity index 99% rename from app/src/main/resources/web/assets/jsonMode-aac536f7.js rename to app/src/main/resources/web/assets/jsonMode-a748f807.js index c2df14ac..179ae175 100644 --- a/app/src/main/resources/web/assets/jsonMode-aac536f7.js +++ b/app/src/main/resources/web/assets/jsonMode-a748f807.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var Ke=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyNames,rt=Object.prototype.hasOwnProperty,oe=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of tt(n))!rt.call(e,t)&&t!==i&&Ke(e,t,{get:()=>n[t],enumerable:!(r=et(n,t))||r.enumerable});return e},nt=(e,n,i)=>(oe(e,n,"default"),i&&oe(i,n,"default")),l={};nt(l,Ze);var it=2*60*1e3,at=class{constructor(e){A(this,"_defaults");A(this,"_idleCheckInterval");A(this,"_lastUsedTime");A(this,"_configChangeListener");A(this,"_worker");A(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>it&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},ue;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ue||(ue={}));var Y;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Y||(Y={}));var T;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=Y.MAX_VALUE),t===Number.MAX_VALUE&&(t=Y.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(T||(T={}));var _;(function(e){function n(r,t,a,s){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(s))return{start:T.create(r,t),end:T.create(a,s)};if(T.is(r)&&T.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+s+"]")}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&T.is(t.start)&&T.is(t.end)}e.is=i})(_||(_={}));var te;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(te||(te={}));var ce;(function(e){function n(r,t,a,s){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.targetRange)&&o.string(t.targetUri)&&(_.is(t.targetSelectionRange)||o.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ce||(ce={}));var re;(function(e){function n(r,t,a,s){return{red:r,green:t,blue:a,alpha:s}}e.create=n;function i(r){var t=r;return o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(re||(re={}));var de;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return _.is(t.range)&&re.is(t.color)}e.is=i})(de||(de={}));var fe;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(fe||(fe={}));var W;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(W||(W={}));var le;(function(e){function n(r,t,a,s,u){var c={startLine:r,endLine:t};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(r){var t=r;return o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(le||(le={}));var ne;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&te.is(t.location)&&o.string(t.message)}e.is=i})(ne||(ne={}));var N;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(N||(N={}));var ge;(function(e){e.Unnecessary=1,e.Deprecated=2})(ge||(ge={}));var he;(function(e){function n(i){var r=i;return r!=null&&o.string(r.href)}e.is=n})(he||(he={}));var $;(function(e){function n(r,t,a,s,u,c){var d={range:r,message:t};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(r){var t,a=r;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,ne.is))}e.is=i})($||($={}));var V;(function(e){function n(r,t){for(var a=[],s=2;s0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(V||(V={}));var L;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=t})(L||(L={}));var x;(function(e){function n(r,t,a){var s={label:r};return t!==void 0&&(s.needsConfirmation=t),a!==void 0&&(s.description=a),s}e.create=n;function i(r){var t=r;return t!==void 0&&o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(x||(x={}));var w;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(w||(w={}));var P;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function r(a,s){return{range:a,newText:"",annotationId:s}}e.del=r;function t(a){var s=a;return L.is(s)&&(x.is(s.annotationId)||w.is(s.annotationId))}e.is=t})(P||(P={}));var G;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(G||(G={}));var H;(function(e){function n(r,t,a){var s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(r,t,a,s){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){var s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(B||(B={}));var ie;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return o.string(t.kind)?H.is(t)||z.is(t)||B.is(t):G.is(t)}))}e.is=n})(ie||(ie={}));var J=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=L.insert(n,i):w.is(r)?(a=r,t=P.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=L.replace(n,i):w.is(r)?(a=r,t=P.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=L.del(n):w.is(i)?(t=i,r=P.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=P.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ve=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(w.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ve(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(G.is(r)){var t=new J(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new J(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new J(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new J(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ve,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=H.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=H.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;x.is(r)||w.is(r)?a=r:t=r;var s,u;if(a===void 0?s=z.create(n,i,t):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=z.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=B.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=B.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var pe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(pe||(pe={}));var me;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(me||(me={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var _e;(function(e){function n(r,t,a,s){return{uri:r,languageId:t,version:a,text:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(_e||(_e={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(q||(q={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var ae;(function(e){function n(i){var r=i;return o.objectLiteral(i)&&q.is(r.kind)&&o.string(r.value)}e.is=n})(ae||(ae={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var se;(function(e){e.PlainText=1,e.Snippet=2})(se||(se={}));var ke;(function(e){e.Deprecated=1})(ke||(ke={}));var we;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&o.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)}e.is=i})(we||(we={}));var be;(function(e){e.asIs=1,e.adjustIndentation=2})(be||(be={}));var Ce;(function(e){function n(i){return{label:i}}e.create=n})(Ce||(Ce={}));var Ee;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(Ee||(Ee={}));var Z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(Z||(Z={}));var Ae;(function(e){function n(i){var r=i;return!!r&&o.objectLiteral(r)&&(ae.is(r.contents)||Z.is(r.contents)||o.typedArray(r.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ae||(Ae={}));var ye;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ye||(ye={}));var Se;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);t(c,s),t(d,s);for(var v=0,g=0,b=0;vn in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var Ke=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyNames,rt=Object.prototype.hasOwnProperty,oe=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of tt(n))!rt.call(e,t)&&t!==i&&Ke(e,t,{get:()=>n[t],enumerable:!(r=et(n,t))||r.enumerable});return e},nt=(e,n,i)=>(oe(e,n,"default"),i&&oe(i,n,"default")),l={};nt(l,Ze);var it=2*60*1e3,at=class{constructor(e){A(this,"_defaults");A(this,"_idleCheckInterval");A(this,"_lastUsedTime");A(this,"_configChangeListener");A(this,"_worker");A(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>it&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},ue;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ue||(ue={}));var Y;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Y||(Y={}));var T;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=Y.MAX_VALUE),t===Number.MAX_VALUE&&(t=Y.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(T||(T={}));var _;(function(e){function n(r,t,a,s){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(s))return{start:T.create(r,t),end:T.create(a,s)};if(T.is(r)&&T.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+s+"]")}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&T.is(t.start)&&T.is(t.end)}e.is=i})(_||(_={}));var te;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(te||(te={}));var ce;(function(e){function n(r,t,a,s){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.targetRange)&&o.string(t.targetUri)&&(_.is(t.targetSelectionRange)||o.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ce||(ce={}));var re;(function(e){function n(r,t,a,s){return{red:r,green:t,blue:a,alpha:s}}e.create=n;function i(r){var t=r;return o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(re||(re={}));var de;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return _.is(t.range)&&re.is(t.color)}e.is=i})(de||(de={}));var fe;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(fe||(fe={}));var W;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(W||(W={}));var le;(function(e){function n(r,t,a,s,u){var c={startLine:r,endLine:t};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(r){var t=r;return o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(le||(le={}));var ne;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&te.is(t.location)&&o.string(t.message)}e.is=i})(ne||(ne={}));var N;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(N||(N={}));var ge;(function(e){e.Unnecessary=1,e.Deprecated=2})(ge||(ge={}));var he;(function(e){function n(i){var r=i;return r!=null&&o.string(r.href)}e.is=n})(he||(he={}));var $;(function(e){function n(r,t,a,s,u,c){var d={range:r,message:t};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(r){var t,a=r;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,ne.is))}e.is=i})($||($={}));var V;(function(e){function n(r,t){for(var a=[],s=2;s0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(V||(V={}));var L;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=t})(L||(L={}));var x;(function(e){function n(r,t,a){var s={label:r};return t!==void 0&&(s.needsConfirmation=t),a!==void 0&&(s.description=a),s}e.create=n;function i(r){var t=r;return t!==void 0&&o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(x||(x={}));var w;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(w||(w={}));var P;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function r(a,s){return{range:a,newText:"",annotationId:s}}e.del=r;function t(a){var s=a;return L.is(s)&&(x.is(s.annotationId)||w.is(s.annotationId))}e.is=t})(P||(P={}));var G;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(G||(G={}));var H;(function(e){function n(r,t,a){var s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(r,t,a,s){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){var s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(B||(B={}));var ie;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return o.string(t.kind)?H.is(t)||z.is(t)||B.is(t):G.is(t)}))}e.is=n})(ie||(ie={}));var J=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=L.insert(n,i):w.is(r)?(a=r,t=P.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=L.replace(n,i):w.is(r)?(a=r,t=P.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=L.del(n):w.is(i)?(t=i,r=P.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=P.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ve=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(w.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ve(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(G.is(r)){var t=new J(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new J(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new J(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new J(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ve,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=H.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=H.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;x.is(r)||w.is(r)?a=r:t=r;var s,u;if(a===void 0?s=z.create(n,i,t):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=z.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=B.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=B.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var pe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(pe||(pe={}));var me;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(me||(me={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var _e;(function(e){function n(r,t,a,s){return{uri:r,languageId:t,version:a,text:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(_e||(_e={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(q||(q={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var ae;(function(e){function n(i){var r=i;return o.objectLiteral(i)&&q.is(r.kind)&&o.string(r.value)}e.is=n})(ae||(ae={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var se;(function(e){e.PlainText=1,e.Snippet=2})(se||(se={}));var ke;(function(e){e.Deprecated=1})(ke||(ke={}));var we;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&o.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)}e.is=i})(we||(we={}));var be;(function(e){e.asIs=1,e.adjustIndentation=2})(be||(be={}));var Ce;(function(e){function n(i){return{label:i}}e.create=n})(Ce||(Ce={}));var Ee;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(Ee||(Ee={}));var Z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(Z||(Z={}));var Ae;(function(e){function n(i){var r=i;return!!r&&o.objectLiteral(r)&&(ae.is(r.contents)||Z.is(r.contents)||o.typedArray(r.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ae||(Ae={}));var ye;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ye||(ye={}));var Se;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);t(c,s),t(d,s);for(var v=0,g=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return T.create(0,n);for(;rn?t=a:r=a+1}var s=r-1;return T.create(s,n-i[s])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(h){return h===!0||h===!1}e.boolean=t;function a(h){return n.call(h)==="[object String]"}e.string=a;function s(h){return n.call(h)==="[object Number]"}e.number=s;function u(h,I,R){return n.call(h)==="[object Number]"&&I<=h&&h<=R}e.numberRange=u;function c(h){return n.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function d(h){return n.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=d;function v(h){return n.call(h)==="[object Function]"}e.func=v;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,I){return Array.isArray(h)&&h.every(I)}e.typedArray=b})(o||(o={}));var ot=class{constructor(e,n,i){A(this,"_disposables",[]);A(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let s=a.getLanguageId();if(s!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,s),500)}),this._doValidate(a.uri,s)},t=a=>{l.editor.setModelMarkers(a,this._languageId,[]);let s=a.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(t)),this._disposables.push(l.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{l.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>ct(e,a));let t=l.editor.getModel(e);t&&t.getLanguageId()===n&&l.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function ut(e){switch(e){case N.Error:return l.MarkerSeverity.Error;case N.Warning:return l.MarkerSeverity.Warning;case N.Information:return l.MarkerSeverity.Info;case N.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}function ct(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:ut(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var dt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),M(n))).then(a=>{if(!a)return;const s=e.getWordUntilPosition(n),u=new l.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),c=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:gt(d.command),range:u,kind:lt(d.kind)};return d.textEdit&&(ft(d.textEdit)?v.range={insert:y(d.textEdit.insert),replace:y(d.textEdit.replace)}:v.range=y(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(X)),d.insertTextFormat===se.Snippet&&(v.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:c}})}};function M(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Be(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function y(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ft(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function lt(e){const n=l.languages.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function X(e){if(e)return{range:y(e.range),text:e.newText}}function gt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var ht=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),M(n))).then(t=>{if(t)return{range:y(t.range),contents:pt(t.contents)}})}};function vt(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function We(e){return typeof e=="string"?{value:e}:vt(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function pt(e){if(e)return Array.isArray(e)?e.map(We):[We(e)]}var qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),M(n))).then(t=>{if(t)return t.map(a=>({range:y(a.range),kind:mt(a.kind)}))})}};function mt(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),M(n))).then(t=>{if(t)return[qe(t)]})}};function qe(e){return{uri:l.Uri.parse(e.uri),range:y(e.range)}}var Jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),M(n))).then(a=>{if(a)return a.map(qe)})}},Yt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),M(n),i)).then(a=>_t(a))}};function _t(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=l.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:y(t.range),text:t.newText}})}return{edits:n}}var kt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:wt(t.kind),range:y(t.location.range),selectionRange:y(t.location.range),tags:[]}))})}};function wt(e){let n=l.languages.SymbolKind;switch(e){case m.File:return n.Array;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}var $t=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:y(t.range),url:t.target}))}})}},bt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Xe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},Ct=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Be(n),Xe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function Xe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:y(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Be(n.range))).then(t=>{if(t)return t.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},At=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=yt(a.kind)),s})})}};function yt(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var St=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(M))).then(t=>{if(t)return t.map(a=>{const s=[];for(;a;)s.push({range:y(a.range)}),a=a.parent;return s})})}};function It(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var S=0,E=0;S=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;r++,S++}return S=i){f+=e.substring(C,r),g=2;break}var S=e.charCodeAt(r);if(S===34){f+=e.substring(C,r),r++;break}if(S===92){if(f+=e.substring(C,r),r++,r>=i){g=2;break}var E=e.charCodeAt(r++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` diff --git a/app/src/main/resources/web/assets/liquid-28efbe21.js b/app/src/main/resources/web/assets/liquid-b7e49653.js similarity index 98% rename from app/src/main/resources/web/assets/liquid-28efbe21.js rename to app/src/main/resources/web/assets/liquid-b7e49653.js index 3faa3917..3335221f 100644 --- a/app/src/main/resources/web/assets/liquid-28efbe21.js +++ b/app/src/main/resources/web/assets/liquid-b7e49653.js @@ -1 +1 @@ -import{m as d}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of u(e))!m.call(t,i)&&i!==r&&s(t,i,{get:()=>e[i],enumerable:!(n=c(e,i))||n.enumerable});return t},p=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),o={};p(o,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],_={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{_ as conf,b as language}; +import{m as d}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of u(e))!m.call(t,i)&&i!==r&&s(t,i,{get:()=>e[i],enumerable:!(n=c(e,i))||n.enumerable});return t},p=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),o={};p(o,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],_={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{_ as conf,b as language}; diff --git a/app/src/main/resources/web/assets/list-2b55c026.js b/app/src/main/resources/web/assets/list-b6a3249f.js similarity index 97% rename from app/src/main/resources/web/assets/list-2b55c026.js rename to app/src/main/resources/web/assets/list-b6a3249f.js index 7017375d..b6cad2ea 100644 --- a/app/src/main/resources/web/assets/list-2b55c026.js +++ b/app/src/main/resources/web/assets/list-b6a3249f.js @@ -1 +1 @@ -import{d as C,aC as q,o as i,c as d,a as r,l as k,I as b,F as A,J as I,t as T,h as V,k as $,r as y,p as S,ap as N,bH as x,A as w,B as R,_ as Z,u as E,x as F,a2 as M,bR as z}from"./index-4040ca75.js";const H={class:"pagination"},P=["onClick"],D={key:0,class:"page-link"},K=["onClick"],j=["onClick"],ie=C({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:a}){const l=e;function u(o){a("update:modelValue",o)}const t=q(()=>Math.ceil(l.total/l.limit)),s=q(()=>{const o=[],p=5+l.rangeSize*2;let n=t.value<=p?1:l.modelValue-l.rangeSize,m=t.value<=p?t.value:l.modelValue+l.rangeSize;if(m=m>t.value?t.value:m,n=n<1?1:n,t.value>p){const g=n-1<3,B=t.value-m<3;if(g){m=p-2;for(let c=1;cl.modelValue>1),_=q(()=>l.modelValue(i(),d("ul",H,[r("li",{class:b(["page-item",{disabled:!f.value}])},[r("a",{class:"page-link",href:"#",onClick:k(h,["prevent"])},"«",8,P)],2),(i(!0),d(A,null,I(s.value,n=>(i(),d("li",{class:b(["page-item",{disabled:n===null,active:n===e.modelValue}])},[n===null?(i(),d("span",D,"···")):(i(),d("a",{key:1,class:"page-link",href:"#",onClick:k(m=>u(n),["prevent"])},T(n),9,K))],2))),256)),r("li",{class:b(["page-item",{disabled:!_.value}])},[r("a",{class:"page-link",href:"#",onClick:k(v,["prevent"])},"»",8,j)],2)]))}}),J={key:0,class:"alert-info alert-all-checked"},L={key:1,class:"alert-info alert-all-checked"},de=C({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(e){return(a,l)=>(i(),d(A,null,[e.allCheckedAlertVisible?(i(),d("div",J,[V(T(a.$t("all_items_on_this_page_are_selected",{count:e.limit}))+" ",1),r("a",{href:"#",onClick:l[0]||(l[0]=k((...u)=>e.selectRealAll&&e.selectRealAll(...u),["prevent"]))},T(a.$t("select_all_items",{count:e.total})),1)])):$("",!0),e.realAllChecked?(i(),d("div",L,[V(T(a.$t("all_items_are_selected",{count:e.total}))+" ",1),r("a",{href:"#",onClick:l[1]||(l[1]=k((...u)=>e.clearSelection&&e.clearSelection(...u),["prevent"]))},T(a.$t("clear_selection")),1)])):$("",!0)],64))}}),Q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},G=r("path",{fill:"currentColor",d:"M4 19q-.425 0-.713-.288T3 18q0-.425.288-.713T4 17h4q.425 0 .713.288T9 18q0 .425-.288.713T8 19H4ZM4 7q-.425 0-.713-.288T3 6q0-.425.288-.713T4 5h8q.425 0 .713.288T13 6q0 .425-.288.713T12 7H4Zm8 14q-.425 0-.713-.288T11 20v-4q0-.425.288-.713T12 15q.425 0 .713.288T13 16v1h7q.425 0 .713.288T21 18q0 .425-.288.713T20 19h-7v1q0 .425-.288.713T12 21Zm-4-6q-.425 0-.713-.288T7 14v-1H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h3v-1q0-.425.288-.713T8 9q.425 0 .713.288T9 10v4q0 .425-.288.713T8 15Zm4-2q-.425 0-.713-.288T11 12q0-.425.288-.713T12 11h8q.425 0 .713.288T21 12q0 .425-.288.713T20 13h-8Zm4-4q-.425 0-.713-.288T15 8V4q0-.425.288-.713T16 3q.425 0 .713.288T17 4v1h3q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-3v1q0 .425-.288.713T16 9Z"},null,-1),O=[G];function U(e,a){return i(),d("svg",Q,O)}const W={name:"material-symbols-tune-rounded",render:U},X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=r("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.275.675t-.3.7q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"},null,-1),ee=[Y];function le(e,a){return i(),d("svg",X,ee)}const te={name:"material-symbols-search-rounded",render:le},ae=e=>(w("data-v-9ba69c3e"),e=e(),R(),e),ne={class:"search-input"},se=["value","placeholder"],oe=ae(()=>r("md-ripple",null,null,-1)),ue=["open"],re=C({__name:"SearchInput",props:{modelValue:{type:String,default:""},search:{type:Function,required:!0}},emits:["update:modelValue"],setup(e,{expose:a,emit:l}){const u=e,t=y(!1),s=y(!1),f=h=>{l("update:modelValue",h.target.value)};function _(){t.value=!0}return a({dismiss:()=>s.value=!1}),(h,v)=>{const o=te,p=W;return i(),d("div",ne,[r("md-outlined-text-field",{id:"input-ref",type:"search","data-search-input":"true",value:e.modelValue,onInput:f,onFocus:_,onBlur:v[1]||(v[1]=n=>t.value=!1),onKeyup:v[2]||(v[2]=N((...n)=>u.search&&u.search(...n),["enter"])),placeholder:h.$t("search_hint")},[S(o,{slot:"leading-icon"}),r("button",{class:"icon-button",ref:"moreButton",slot:"trailing-icon",onClick:v[0]||(v[0]=k(()=>s.value=!0,["prevent"]))},[oe,S(p)],512)],40,se),r("md-menu",{anchor:"input-ref","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:s.value,onClosed:v[3]||(v[3]=()=>s.value=!1)},[x(h.$slots,"filters",{},void 0,!0)],40,ue)])}}});const he=Z(re,[["__scopeId","data-v-9ba69c3e"]]),ve=e=>{const a=y(!1),l=y(!1),u=y(0);return{realAllChecked:l,allChecked:a,toggleAllChecked:t=>{t.target.checked?(a.value=!0,e.value.forEach(s=>{s.checked=!0})):(a.value=!1,l.value=!1,e.value.forEach(s=>{s.checked=!1}))},toggleItemChecked:t=>{t.target.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},toggleRow:t=>{t.checked=!t.checked,t.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},allCheckedAlertVisible:q(()=>a.value&&!l.value&&e.value.length{l.value=!0},clearSelection:()=>{a.value=!1,l.value=!1,e.value.forEach(t=>{t.checked=!1})},total:u,checked:q(()=>e.value.some(t=>t.checked))}},pe=(e,a,l)=>{const{t:u}=E();return{deleteItems:(t,s)=>{let f=s;if(!t){const _=l.value.filter(h=>h.checked);if(_.length===0){F(u("select_first"),"error");return}f=`ids:${_.map(h=>h.id).join(",")}`}M(z,{gql:e,variables:()=>({query:f}),done:a})}}};export{he as _,de as a,ie as b,pe as c,ve as u}; +import{d as C,aC as q,o as i,c as d,a as r,l as k,I as b,F as A,J as I,t as T,h as V,k as $,r as y,p as S,ap as N,bH as x,A as w,B as R,_ as Z,u as E,x as F,a2 as M,bR as z}from"./index-40f25da6.js";const H={class:"pagination"},P=["onClick"],D={key:0,class:"page-link"},K=["onClick"],j=["onClick"],ie=C({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:a}){const l=e;function u(o){a("update:modelValue",o)}const t=q(()=>Math.ceil(l.total/l.limit)),s=q(()=>{const o=[],p=5+l.rangeSize*2;let n=t.value<=p?1:l.modelValue-l.rangeSize,m=t.value<=p?t.value:l.modelValue+l.rangeSize;if(m=m>t.value?t.value:m,n=n<1?1:n,t.value>p){const g=n-1<3,B=t.value-m<3;if(g){m=p-2;for(let c=1;cl.modelValue>1),_=q(()=>l.modelValue(i(),d("ul",H,[r("li",{class:b(["page-item",{disabled:!f.value}])},[r("a",{class:"page-link",href:"#",onClick:k(h,["prevent"])},"«",8,P)],2),(i(!0),d(A,null,I(s.value,n=>(i(),d("li",{class:b(["page-item",{disabled:n===null,active:n===e.modelValue}])},[n===null?(i(),d("span",D,"···")):(i(),d("a",{key:1,class:"page-link",href:"#",onClick:k(m=>u(n),["prevent"])},T(n),9,K))],2))),256)),r("li",{class:b(["page-item",{disabled:!_.value}])},[r("a",{class:"page-link",href:"#",onClick:k(v,["prevent"])},"»",8,j)],2)]))}}),J={key:0,class:"alert-info alert-all-checked"},L={key:1,class:"alert-info alert-all-checked"},de=C({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(e){return(a,l)=>(i(),d(A,null,[e.allCheckedAlertVisible?(i(),d("div",J,[V(T(a.$t("all_items_on_this_page_are_selected",{count:e.limit}))+" ",1),r("a",{href:"#",onClick:l[0]||(l[0]=k((...u)=>e.selectRealAll&&e.selectRealAll(...u),["prevent"]))},T(a.$t("select_all_items",{count:e.total})),1)])):$("",!0),e.realAllChecked?(i(),d("div",L,[V(T(a.$t("all_items_are_selected",{count:e.total}))+" ",1),r("a",{href:"#",onClick:l[1]||(l[1]=k((...u)=>e.clearSelection&&e.clearSelection(...u),["prevent"]))},T(a.$t("clear_selection")),1)])):$("",!0)],64))}}),Q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},G=r("path",{fill:"currentColor",d:"M4 19q-.425 0-.713-.288T3 18q0-.425.288-.713T4 17h4q.425 0 .713.288T9 18q0 .425-.288.713T8 19H4ZM4 7q-.425 0-.713-.288T3 6q0-.425.288-.713T4 5h8q.425 0 .713.288T13 6q0 .425-.288.713T12 7H4Zm8 14q-.425 0-.713-.288T11 20v-4q0-.425.288-.713T12 15q.425 0 .713.288T13 16v1h7q.425 0 .713.288T21 18q0 .425-.288.713T20 19h-7v1q0 .425-.288.713T12 21Zm-4-6q-.425 0-.713-.288T7 14v-1H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h3v-1q0-.425.288-.713T8 9q.425 0 .713.288T9 10v4q0 .425-.288.713T8 15Zm4-2q-.425 0-.713-.288T11 12q0-.425.288-.713T12 11h8q.425 0 .713.288T21 12q0 .425-.288.713T20 13h-8Zm4-4q-.425 0-.713-.288T15 8V4q0-.425.288-.713T16 3q.425 0 .713.288T17 4v1h3q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-3v1q0 .425-.288.713T16 9Z"},null,-1),O=[G];function U(e,a){return i(),d("svg",Q,O)}const W={name:"material-symbols-tune-rounded",render:U},X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=r("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.275.675t-.3.7q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"},null,-1),ee=[Y];function le(e,a){return i(),d("svg",X,ee)}const te={name:"material-symbols-search-rounded",render:le},ae=e=>(w("data-v-9ba69c3e"),e=e(),R(),e),ne={class:"search-input"},se=["value","placeholder"],oe=ae(()=>r("md-ripple",null,null,-1)),ue=["open"],re=C({__name:"SearchInput",props:{modelValue:{type:String,default:""},search:{type:Function,required:!0}},emits:["update:modelValue"],setup(e,{expose:a,emit:l}){const u=e,t=y(!1),s=y(!1),f=h=>{l("update:modelValue",h.target.value)};function _(){t.value=!0}return a({dismiss:()=>s.value=!1}),(h,v)=>{const o=te,p=W;return i(),d("div",ne,[r("md-outlined-text-field",{id:"input-ref",type:"search","data-search-input":"true",value:e.modelValue,onInput:f,onFocus:_,onBlur:v[1]||(v[1]=n=>t.value=!1),onKeyup:v[2]||(v[2]=N((...n)=>u.search&&u.search(...n),["enter"])),placeholder:h.$t("search_hint")},[S(o,{slot:"leading-icon"}),r("button",{class:"icon-button",ref:"moreButton",slot:"trailing-icon",onClick:v[0]||(v[0]=k(()=>s.value=!0,["prevent"]))},[oe,S(p)],512)],40,se),r("md-menu",{anchor:"input-ref","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:s.value,onClosed:v[3]||(v[3]=()=>s.value=!1)},[x(h.$slots,"filters",{},void 0,!0)],40,ue)])}}});const he=Z(re,[["__scopeId","data-v-9ba69c3e"]]),ve=e=>{const a=y(!1),l=y(!1),u=y(0);return{realAllChecked:l,allChecked:a,toggleAllChecked:t=>{t.target.checked?(a.value=!0,e.value.forEach(s=>{s.checked=!0})):(a.value=!1,l.value=!1,e.value.forEach(s=>{s.checked=!1}))},toggleItemChecked:t=>{t.target.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},toggleRow:t=>{t.checked=!t.checked,t.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},allCheckedAlertVisible:q(()=>a.value&&!l.value&&e.value.length{l.value=!0},clearSelection:()=>{a.value=!1,l.value=!1,e.value.forEach(t=>{t.checked=!1})},total:u,checked:q(()=>e.value.some(t=>t.checked))}},pe=(e,a,l)=>{const{t:u}=E();return{deleteItems:(t,s)=>{let f=s;if(!t){const _=l.value.filter(h=>h.checked);if(_.length===0){F(u("select_first"),"error");return}f=`ids:${_.map(h=>h.id).join(",")}`}M(z,{gql:e,variables:()=>({query:f}),done:a})}}};export{he as _,de as a,ie as b,pe as c,ve as u}; diff --git a/app/src/main/resources/web/assets/markdown-7d435800.js b/app/src/main/resources/web/assets/markdown-c78c3af8.js similarity index 99% rename from app/src/main/resources/web/assets/markdown-7d435800.js rename to app/src/main/resources/web/assets/markdown-c78c3af8.js index 5689ab44..ef31a925 100644 --- a/app/src/main/resources/web/assets/markdown-7d435800.js +++ b/app/src/main/resources/web/assets/markdown-c78c3af8.js @@ -1,4 +1,4 @@ -import{bY as Pr,bZ as le,ah as Or}from"./index-4040ca75.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` +import{bY as Pr,bZ as le,ah as Or}from"./index-40f25da6.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` `,v9="∄",x9="∄",y9="𝔑",k9="𝔫",w9="≧̸",_9="≱",A9="≱",S9="≧̸",E9="⩾̸",q9="⩾̸",C9="⋙̸",T9="≵",D9="≫⃒",I9="≯",N9="≯",z9="≫̸",R9="↮",L9="⇎",M9="⫲",F9="∋",B9="⋼",P9="⋺",O9="∋",V9="Њ",$9="њ",U9="↚",G9="⇍",H9="‥",j9="≦̸",Z9="≰",W9="↚",X9="⇍",J9="↮",Q9="⇎",Y9="≰",K9="≦̸",eg="⩽̸",tg="⩽̸",ug="≮",rg="⋘̸",ng="≴",sg="≪⃒",ig="≮",og="⋪",ag="⋬",cg="≪̸",lg="∤",fg="⁠",dg=" ",hg="𝕟",pg="ℕ",bg="⫬",mg="¬",gg="≢",vg="≭",xg="∦",yg="∉",kg="≠",wg="≂̸",_g="∄",Ag="≯",Sg="≱",Eg="≧̸",qg="≫̸",Cg="≹",Tg="⩾̸",Dg="≵",Ig="≎̸",Ng="≏̸",zg="∉",Rg="⋵̸",Lg="⋹̸",Mg="∉",Fg="⋷",Bg="⋶",Pg="⧏̸",Og="⋪",Vg="⋬",$g="≮",Ug="≰",Gg="≸",Hg="≪̸",jg="⩽̸",Zg="≴",Wg="⪢̸",Xg="⪡̸",Jg="∌",Qg="∌",Yg="⋾",Kg="⋽",e7="⊀",t7="⪯̸",u7="⋠",r7="∌",n7="⧐̸",s7="⋫",i7="⋭",o7="⊏̸",a7="⋢",c7="⊐̸",l7="⋣",f7="⊂⃒",d7="⊈",h7="⊁",p7="⪰̸",b7="⋡",m7="≿̸",g7="⊃⃒",v7="⊉",x7="≁",y7="≄",k7="≇",w7="≉",_7="∤",A7="∦",S7="∦",E7="⫽⃥",q7="∂̸",C7="⨔",T7="⊀",D7="⋠",I7="⊀",N7="⪯̸",z7="⪯̸",R7="⤳̸",L7="↛",M7="⇏",F7="↝̸",B7="↛",P7="⇏",O7="⋫",V7="⋭",$7="⊁",U7="⋡",G7="⪰̸",H7="𝒩",j7="𝓃",Z7="∤",W7="∦",X7="≁",J7="≄",Q7="≄",Y7="∤",K7="∦",ev="⋢",tv="⋣",uv="⊄",rv="⫅̸",nv="⊈",sv="⊂⃒",iv="⊈",ov="⫅̸",av="⊁",cv="⪰̸",lv="⊅",fv="⫆̸",dv="⊉",hv="⊃⃒",pv="⊉",bv="⫆̸",mv="≹",gv="Ñ",vv="ñ",xv="≸",yv="⋪",kv="⋬",wv="⋫",_v="⋭",Av="Ν",Sv="ν",Ev="#",qv="№",Cv=" ",Tv="≍⃒",Dv="⊬",Iv="⊭",Nv="⊮",zv="⊯",Rv="≥⃒",Lv=">⃒",Mv="⤄",Fv="⧞",Bv="⤂",Pv="≤⃒",Ov="<⃒",Vv="⊴⃒",$v="⤃",Uv="⊵⃒",Gv="∼⃒",Hv="⤣",jv="↖",Zv="⇖",Wv="↖",Xv="⤧",Jv="Ó",Qv="ó",Yv="⊛",Kv="Ô",ex="ô",tx="⊚",ux="О",rx="о",nx="⊝",sx="Ő",ix="ő",ox="⨸",ax="⊙",cx="⦼",lx="Œ",fx="œ",dx="⦿",hx="𝔒",px="𝔬",bx="˛",mx="Ò",gx="ò",vx="⧁",xx="⦵",yx="Ω",kx="∮",wx="↺",_x="⦾",Ax="⦻",Sx="‾",Ex="⧀",qx="Ō",Cx="ō",Tx="Ω",Dx="ω",Ix="Ο",Nx="ο",zx="⦶",Rx="⊖",Lx="𝕆",Mx="𝕠",Fx="⦷",Bx="“",Px="‘",Ox="⦹",Vx="⊕",$x="↻",Ux="⩔",Gx="∨",Hx="⩝",jx="ℴ",Zx="ℴ",Wx="ª",Xx="º",Jx="⊶",Qx="⩖",Yx="⩗",Kx="⩛",ey="Ⓢ",ty="𝒪",uy="ℴ",ry="Ø",ny="ø",sy="⊘",iy="Õ",oy="õ",ay="⨶",cy="⨷",ly="⊗",fy="Ö",dy="ö",hy="⌽",py="‾",by="⏞",my="⎴",gy="⏜",vy="¶",xy="∥",yy="∥",ky="⫳",wy="⫽",_y="∂",Ay="∂",Sy="П",Ey="п",qy="%",Cy=".",Ty="‰",Dy="⊥",Iy="‱",Ny="𝔓",zy="𝔭",Ry="Φ",Ly="φ",My="ϕ",Fy="ℳ",By="☎",Py="Π",Oy="π",Vy="⋔",$y="ϖ",Uy="ℏ",Gy="ℎ",Hy="ℏ",jy="⨣",Zy="⊞",Wy="⨢",Xy="+",Jy="∔",Qy="⨥",Yy="⩲",Ky="±",ek="±",tk="⨦",uk="⨧",rk="±",nk="ℌ",sk="⨕",ik="𝕡",ok="ℙ",ak="£",ck="⪷",lk="⪻",fk="≺",dk="≼",hk="⪷",pk="≺",bk="≼",mk="≺",gk="⪯",vk="≼",xk="≾",yk="⪯",kk="⪹",wk="⪵",_k="⋨",Ak="⪯",Sk="⪳",Ek="≾",qk="′",Ck="″",Tk="ℙ",Dk="⪹",Ik="⪵",Nk="⋨",zk="∏",Rk="∏",Lk="⌮",Mk="⌒",Fk="⌓",Bk="∝",Pk="∝",Ok="∷",Vk="∝",$k="≾",Uk="⊰",Gk="𝒫",Hk="𝓅",jk="Ψ",Zk="ψ",Wk=" ",Xk="𝔔",Jk="𝔮",Qk="⨌",Yk="𝕢",Kk="ℚ",ew="⁗",tw="𝒬",uw="𝓆",rw="ℍ",nw="⨖",sw="?",iw="≟",ow='"',aw='"',cw="⇛",lw="∽̱",fw="Ŕ",dw="ŕ",hw="√",pw="⦳",bw="⟩",mw="⟫",gw="⦒",vw="⦥",xw="⟩",yw="»",kw="⥵",ww="⇥",_w="⤠",Aw="⤳",Sw="→",Ew="↠",qw="⇒",Cw="⤞",Tw="↪",Dw="↬",Iw="⥅",Nw="⥴",zw="⤖",Rw="↣",Lw="↝",Mw="⤚",Fw="⤜",Bw="∶",Pw="ℚ",Ow="⤍",Vw="⤏",$w="⤐",Uw="❳",Gw="}",Hw="]",jw="⦌",Zw="⦎",Ww="⦐",Xw="Ř",Jw="ř",Qw="Ŗ",Yw="ŗ",Kw="⌉",e_="}",t_="Р",u_="р",r_="⤷",n_="⥩",s_="”",i_="”",o_="↳",a_="ℜ",c_="ℛ",l_="ℜ",f_="ℝ",d_="ℜ",h_="▭",p_="®",b_="®",m_="∋",g_="⇋",v_="⥯",x_="⥽",y_="⌋",k_="𝔯",w_="ℜ",__="⥤",A_="⇁",S_="⇀",E_="⥬",q_="Ρ",C_="ρ",T_="ϱ",D_="⟩",I_="⇥",N_="→",z_="→",R_="⇒",L_="⇄",M_="↣",F_="⌉",B_="⟧",P_="⥝",O_="⥕",V_="⇂",$_="⌋",U_="⇁",G_="⇀",H_="⇄",j_="⇌",Z_="⇉",W_="↝",X_="↦",J_="⊢",Q_="⥛",Y_="⋌",K_="⧐",eA="⊳",tA="⊵",uA="⥏",rA="⥜",nA="⥔",sA="↾",iA="⥓",oA="⇀",aA="˚",cA="≓",lA="⇄",fA="⇌",dA="‏",hA="⎱",pA="⎱",bA="⫮",mA="⟭",gA="⇾",vA="⟧",xA="⦆",yA="𝕣",kA="ℝ",wA="⨮",_A="⨵",AA="⥰",SA=")",EA="⦔",qA="⨒",CA="⇉",TA="⇛",DA="›",IA="𝓇",NA="ℛ",zA="↱",RA="↱",LA="]",MA="’",FA="’",BA="⋌",PA="⋊",OA="▹",VA="⊵",$A="▸",UA="⧎",GA="⧴",HA="⥨",jA="℞",ZA="Ś",WA="ś",XA="‚",JA="⪸",QA="Š",YA="š",KA="⪼",eS="≻",tS="≽",uS="⪰",rS="⪴",nS="Ş",sS="ş",iS="Ŝ",oS="ŝ",aS="⪺",cS="⪶",lS="⋩",fS="⨓",dS="≿",hS="С",pS="с",bS="⊡",mS="⋅",gS="⩦",vS="⤥",xS="↘",yS="⇘",kS="↘",wS="§",_S=";",AS="⤩",SS="∖",ES="∖",qS="✶",CS="𝔖",TS="𝔰",DS="⌢",IS="♯",NS="Щ",zS="щ",RS="Ш",LS="ш",MS="↓",FS="←",BS="∣",PS="∥",OS="→",VS="↑",$S="­",US="Σ",GS="σ",HS="ς",jS="ς",ZS="∼",WS="⩪",XS="≃",JS="≃",QS="⪞",YS="⪠",KS="⪝",eE="⪟",tE="≆",uE="⨤",rE="⥲",nE="←",sE="∘",iE="∖",oE="⨳",aE="⧤",cE="∣",lE="⌣",fE="⪪",dE="⪬",hE="⪬︀",pE="Ь",bE="ь",mE="⌿",gE="⧄",vE="/",xE="𝕊",yE="𝕤",kE="♠",wE="♠",_E="∥",AE="⊓",SE="⊓︀",EE="⊔",qE="⊔︀",CE="√",TE="⊏",DE="⊑",IE="⊏",NE="⊑",zE="⊐",RE="⊒",LE="⊐",ME="⊒",FE="□",BE="□",PE="⊓",OE="⊏",VE="⊑",$E="⊐",UE="⊒",GE="⊔",HE="▪",jE="□",ZE="▪",WE="→",XE="𝒮",JE="𝓈",QE="∖",YE="⌣",KE="⋆",eq="⋆",tq="☆",uq="★",rq="ϵ",nq="ϕ",sq="¯",iq="⊂",oq="⋐",aq="⪽",cq="⫅",lq="⊆",fq="⫃",dq="⫁",hq="⫋",pq="⊊",bq="⪿",mq="⥹",gq="⊂",vq="⋐",xq="⊆",yq="⫅",kq="⊆",wq="⊊",_q="⫋",Aq="⫇",Sq="⫕",Eq="⫓",qq="⪸",Cq="≻",Tq="≽",Dq="≻",Iq="⪰",Nq="≽",zq="≿",Rq="⪰",Lq="⪺",Mq="⪶",Fq="⋩",Bq="≿",Pq="∋",Oq="∑",Vq="∑",$q="♪",Uq="¹",Gq="²",Hq="³",jq="⊃",Zq="⋑",Wq="⪾",Xq="⫘",Jq="⫆",Qq="⊇",Yq="⫄",Kq="⊃",eC="⊇",tC="⟉",uC="⫗",rC="⥻",nC="⫂",sC="⫌",iC="⊋",oC="⫀",aC="⊃",cC="⋑",lC="⊇",fC="⫆",dC="⊋",hC="⫌",pC="⫈",bC="⫔",mC="⫖",gC="⤦",vC="↙",xC="⇙",yC="↙",kC="⤪",wC="ß",_C=" ",AC="⌖",SC="Τ",EC="τ",qC="⎴",CC="Ť",TC="ť",DC="Ţ",IC="ţ",NC="Т",zC="т",RC="⃛",LC="⌕",MC="𝔗",FC="𝔱",BC="∴",PC="∴",OC="∴",VC="Θ",$C="θ",UC="ϑ",GC="ϑ",HC="≈",jC="∼",ZC="  ",WC=" ",XC=" ",JC="≈",QC="∼",YC="Þ",KC="þ",eT="˜",tT="∼",uT="≃",rT="≅",nT="≈",sT="⨱",iT="⊠",oT="×",aT="⨰",cT="∭",lT="⤨",fT="⌶",dT="⫱",hT="⊤",pT="𝕋",bT="𝕥",mT="⫚",gT="⤩",vT="‴",xT="™",yT="™",kT="▵",wT="▿",_T="◃",AT="⊴",ST="≜",ET="▹",qT="⊵",CT="◬",TT="≜",DT="⨺",IT="⃛",NT="⨹",zT="⧍",RT="⨻",LT="⏢",MT="𝒯",FT="𝓉",BT="Ц",PT="ц",OT="Ћ",VT="ћ",$T="Ŧ",UT="ŧ",GT="≬",HT="↞",jT="↠",ZT="Ú",WT="ú",XT="↑",JT="↟",QT="⇑",YT="⥉",KT="Ў",eD="ў",tD="Ŭ",uD="ŭ",rD="Û",nD="û",sD="У",iD="у",oD="⇅",aD="Ű",cD="ű",lD="⥮",fD="⥾",dD="𝔘",hD="𝔲",pD="Ù",bD="ù",mD="⥣",gD="↿",vD="↾",xD="▀",yD="⌜",kD="⌜",wD="⌏",_D="◸",AD="Ū",SD="ū",ED="¨",qD="_",CD="⏟",TD="⎵",DD="⏝",ID="⋃",ND="⊎",zD="Ų",RD="ų",LD="𝕌",MD="𝕦",FD="⤒",BD="↑",PD="↑",OD="⇑",VD="⇅",$D="↕",UD="↕",GD="⇕",HD="⥮",jD="↿",ZD="↾",WD="⊎",XD="↖",JD="↗",QD="υ",YD="ϒ",KD="ϒ",eI="Υ",tI="υ",uI="↥",rI="⊥",nI="⇈",sI="⌝",iI="⌝",oI="⌎",aI="Ů",cI="ů",lI="◹",fI="𝒰",dI="𝓊",hI="⋰",pI="Ũ",bI="ũ",mI="▵",gI="▴",vI="⇈",xI="Ü",yI="ü",kI="⦧",wI="⦜",_I="ϵ",AI="ϰ",SI="∅",EI="ϕ",qI="ϖ",CI="∝",TI="↕",DI="⇕",II="ϱ",NI="ς",zI="⊊︀",RI="⫋︀",LI="⊋︀",MI="⫌︀",FI="ϑ",BI="⊲",PI="⊳",OI="⫨",VI="⫫",$I="⫩",UI="В",GI="в",HI="⊢",jI="⊨",ZI="⊩",WI="⊫",XI="⫦",JI="⊻",QI="∨",YI="⋁",KI="≚",eN="⋮",tN="|",uN="‖",rN="|",nN="‖",sN="∣",iN="|",oN="❘",aN="≀",cN=" ",lN="𝔙",fN="𝔳",dN="⊲",hN="⊂⃒",pN="⊃⃒",bN="𝕍",mN="𝕧",gN="∝",vN="⊳",xN="𝒱",yN="𝓋",kN="⫋︀",wN="⊊︀",_N="⫌︀",AN="⊋︀",SN="⊪",EN="⦚",qN="Ŵ",CN="ŵ",TN="⩟",DN="∧",IN="⋀",NN="≙",zN="℘",RN="𝔚",LN="𝔴",MN="𝕎",FN="𝕨",BN="℘",PN="≀",ON="≀",VN="𝒲",$N="𝓌",UN="⋂",GN="◯",HN="⋃",jN="▽",ZN="𝔛",WN="𝔵",XN="⟷",JN="⟺",QN="Ξ",YN="ξ",KN="⟵",ez="⟸",tz="⟼",uz="⋻",rz="⨀",nz="𝕏",sz="𝕩",iz="⨁",oz="⨂",az="⟶",cz="⟹",lz="𝒳",fz="𝓍",dz="⨆",hz="⨄",pz="△",bz="⋁",mz="⋀",gz="Ý",vz="ý",xz="Я",yz="я",kz="Ŷ",wz="ŷ",_z="Ы",Az="ы",Sz="¥",Ez="𝔜",qz="𝔶",Cz="Ї",Tz="ї",Dz="𝕐",Iz="𝕪",Nz="𝒴",zz="𝓎",Rz="Ю",Lz="ю",Mz="ÿ",Fz="Ÿ",Bz="Ź",Pz="ź",Oz="Ž",Vz="ž",$z="З",Uz="з",Gz="Ż",Hz="ż",jz="ℨ",Zz="​",Wz="Ζ",Xz="ζ",Jz="𝔷",Qz="ℨ",Yz="Ж",Kz="ж",eR="⇝",tR="𝕫",uR="ℤ",rR="𝒵",nR="𝓏",sR="‍",iR="‌",oR={Aacute:Vr,aacute:$r,Abreve:Ur,abreve:Gr,ac:Hr,acd:jr,acE:Zr,Acirc:Wr,acirc:Xr,acute:Jr,Acy:Qr,acy:Yr,AElig:Kr,aelig:en,af:tn,Afr:un,afr:rn,Agrave:nn,agrave:sn,alefsym:on,aleph:an,Alpha:cn,alpha:ln,Amacr:fn,amacr:dn,amalg:hn,amp:pn,AMP:bn,andand:mn,And:gn,and:vn,andd:xn,andslope:yn,andv:kn,ang:wn,ange:_n,angle:An,angmsdaa:Sn,angmsdab:En,angmsdac:qn,angmsdad:Cn,angmsdae:Tn,angmsdaf:Dn,angmsdag:In,angmsdah:Nn,angmsd:zn,angrt:Rn,angrtvb:Ln,angrtvbd:Mn,angsph:Fn,angst:Bn,angzarr:Pn,Aogon:On,aogon:Vn,Aopf:$n,aopf:Un,apacir:Gn,ap:Hn,apE:jn,ape:Zn,apid:Wn,apos:Xn,ApplyFunction:Jn,approx:Qn,approxeq:Yn,Aring:Kn,aring:es,Ascr:ts,ascr:us,Assign:rs,ast:ns,asymp:ss,asympeq:is,Atilde:os,atilde:as,Auml:cs,auml:ls,awconint:fs,awint:ds,backcong:hs,backepsilon:ps,backprime:bs,backsim:ms,backsimeq:gs,Backslash:vs,Barv:xs,barvee:ys,barwed:ks,Barwed:ws,barwedge:_s,bbrk:As,bbrktbrk:Ss,bcong:Es,Bcy:qs,bcy:Cs,bdquo:Ts,becaus:Ds,because:Is,Because:Ns,bemptyv:zs,bepsi:Rs,bernou:Ls,Bernoullis:Ms,Beta:Fs,beta:Bs,beth:Ps,between:Os,Bfr:Vs,bfr:$s,bigcap:Us,bigcirc:Gs,bigcup:Hs,bigodot:js,bigoplus:Zs,bigotimes:Ws,bigsqcup:Xs,bigstar:Js,bigtriangledown:Qs,bigtriangleup:Ys,biguplus:Ks,bigvee:ei,bigwedge:ti,bkarow:ui,blacklozenge:ri,blacksquare:ni,blacktriangle:si,blacktriangledown:ii,blacktriangleleft:oi,blacktriangleright:ai,blank:ci,blk12:li,blk14:fi,blk34:di,block:hi,bne:pi,bnequiv:bi,bNot:mi,bnot:gi,Bopf:vi,bopf:xi,bot:yi,bottom:ki,bowtie:wi,boxbox:_i,boxdl:Ai,boxdL:Si,boxDl:Ei,boxDL:qi,boxdr:Ci,boxdR:Ti,boxDr:Di,boxDR:Ii,boxh:Ni,boxH:zi,boxhd:Ri,boxHd:Li,boxhD:Mi,boxHD:Fi,boxhu:Bi,boxHu:Pi,boxhU:Oi,boxHU:Vi,boxminus:$i,boxplus:Ui,boxtimes:Gi,boxul:Hi,boxuL:ji,boxUl:Zi,boxUL:Wi,boxur:Xi,boxuR:Ji,boxUr:Qi,boxUR:Yi,boxv:Ki,boxV:eo,boxvh:to,boxvH:uo,boxVh:ro,boxVH:no,boxvl:so,boxvL:io,boxVl:oo,boxVL:ao,boxvr:co,boxvR:lo,boxVr:fo,boxVR:ho,bprime:po,breve:bo,Breve:mo,brvbar:go,bscr:vo,Bscr:xo,bsemi:yo,bsim:ko,bsime:wo,bsolb:_o,bsol:Ao,bsolhsub:So,bull:Eo,bullet:qo,bump:Co,bumpE:To,bumpe:Do,Bumpeq:Io,bumpeq:No,Cacute:zo,cacute:Ro,capand:Lo,capbrcup:Mo,capcap:Fo,cap:Bo,Cap:Po,capcup:Oo,capdot:Vo,CapitalDifferentialD:$o,caps:Uo,caret:Go,caron:Ho,Cayleys:jo,ccaps:Zo,Ccaron:Wo,ccaron:Xo,Ccedil:Jo,ccedil:Qo,Ccirc:Yo,ccirc:Ko,Cconint:ea,ccups:ta,ccupssm:ua,Cdot:ra,cdot:na,cedil:sa,Cedilla:ia,cemptyv:oa,cent:aa,centerdot:ca,CenterDot:la,cfr:fa,Cfr:da,CHcy:ha,chcy:pa,check:ba,checkmark:ma,Chi:ga,chi:va,circ:xa,circeq:ya,circlearrowleft:ka,circlearrowright:wa,circledast:_a,circledcirc:Aa,circleddash:Sa,CircleDot:Ea,circledR:qa,circledS:Ca,CircleMinus:Ta,CirclePlus:Da,CircleTimes:Ia,cir:Na,cirE:za,cire:Ra,cirfnint:La,cirmid:Ma,cirscir:Fa,ClockwiseContourIntegral:Ba,CloseCurlyDoubleQuote:Pa,CloseCurlyQuote:Oa,clubs:Va,clubsuit:$a,colon:Ua,Colon:Ga,Colone:Ha,colone:ja,coloneq:Za,comma:Wa,commat:Xa,comp:Ja,compfn:Qa,complement:Ya,complexes:Ka,cong:ec,congdot:tc,Congruent:uc,conint:rc,Conint:nc,ContourIntegral:sc,copf:ic,Copf:oc,coprod:ac,Coproduct:cc,copy:lc,COPY:fc,copysr:dc,CounterClockwiseContourIntegral:hc,crarr:pc,cross:bc,Cross:mc,Cscr:gc,cscr:vc,csub:xc,csube:yc,csup:kc,csupe:wc,ctdot:_c,cudarrl:Ac,cudarrr:Sc,cuepr:Ec,cuesc:qc,cularr:Cc,cularrp:Tc,cupbrcap:Dc,cupcap:Ic,CupCap:Nc,cup:zc,Cup:Rc,cupcup:Lc,cupdot:Mc,cupor:Fc,cups:Bc,curarr:Pc,curarrm:Oc,curlyeqprec:Vc,curlyeqsucc:$c,curlyvee:Uc,curlywedge:Gc,curren:Hc,curvearrowleft:jc,curvearrowright:Zc,cuvee:Wc,cuwed:Xc,cwconint:Jc,cwint:Qc,cylcty:Yc,dagger:Kc,Dagger:el,daleth:tl,darr:ul,Darr:rl,dArr:nl,dash:sl,Dashv:il,dashv:ol,dbkarow:al,dblac:cl,Dcaron:ll,dcaron:fl,Dcy:dl,dcy:hl,ddagger:pl,ddarr:bl,DD:ml,dd:gl,DDotrahd:vl,ddotseq:xl,deg:yl,Del:kl,Delta:wl,delta:_l,demptyv:Al,dfisht:Sl,Dfr:El,dfr:ql,dHar:Cl,dharl:Tl,dharr:Dl,DiacriticalAcute:Il,DiacriticalDot:Nl,DiacriticalDoubleAcute:zl,DiacriticalGrave:Rl,DiacriticalTilde:Ll,diam:Ml,diamond:Fl,Diamond:Bl,diamondsuit:Pl,diams:Ol,die:Vl,DifferentialD:$l,digamma:Ul,disin:Gl,div:Hl,divide:jl,divideontimes:Zl,divonx:Wl,DJcy:Xl,djcy:Jl,dlcorn:Ql,dlcrop:Yl,dollar:Kl,Dopf:e1,dopf:t1,Dot:u1,dot:r1,DotDot:n1,doteq:s1,doteqdot:i1,DotEqual:o1,dotminus:a1,dotplus:c1,dotsquare:l1,doublebarwedge:f1,DoubleContourIntegral:d1,DoubleDot:h1,DoubleDownArrow:p1,DoubleLeftArrow:b1,DoubleLeftRightArrow:m1,DoubleLeftTee:g1,DoubleLongLeftArrow:v1,DoubleLongLeftRightArrow:x1,DoubleLongRightArrow:y1,DoubleRightArrow:k1,DoubleRightTee:w1,DoubleUpArrow:_1,DoubleUpDownArrow:A1,DoubleVerticalBar:S1,DownArrowBar:E1,downarrow:q1,DownArrow:C1,Downarrow:T1,DownArrowUpArrow:D1,DownBreve:I1,downdownarrows:N1,downharpoonleft:z1,downharpoonright:R1,DownLeftRightVector:L1,DownLeftTeeVector:M1,DownLeftVectorBar:F1,DownLeftVector:B1,DownRightTeeVector:P1,DownRightVectorBar:O1,DownRightVector:V1,DownTeeArrow:$1,DownTee:U1,drbkarow:G1,drcorn:H1,drcrop:j1,Dscr:Z1,dscr:W1,DScy:X1,dscy:J1,dsol:Q1,Dstrok:Y1,dstrok:K1,dtdot:ef,dtri:tf,dtrif:uf,duarr:rf,duhar:nf,dwangle:sf,DZcy:of,dzcy:af,dzigrarr:cf,Eacute:lf,eacute:ff,easter:df,Ecaron:hf,ecaron:pf,Ecirc:bf,ecirc:mf,ecir:gf,ecolon:vf,Ecy:xf,ecy:yf,eDDot:kf,Edot:wf,edot:_f,eDot:Af,ee:Sf,efDot:Ef,Efr:qf,efr:Cf,eg:Tf,Egrave:Df,egrave:If,egs:Nf,egsdot:zf,el:Rf,Element:Lf,elinters:Mf,ell:Ff,els:Bf,elsdot:Pf,Emacr:Of,emacr:Vf,empty:$f,emptyset:Uf,EmptySmallSquare:Gf,emptyv:Hf,EmptyVerySmallSquare:jf,emsp13:Zf,emsp14:Wf,emsp:Xf,ENG:Jf,eng:Qf,ensp:Yf,Eogon:Kf,eogon:e2,Eopf:t2,eopf:u2,epar:r2,eparsl:n2,eplus:s2,epsi:i2,Epsilon:o2,epsilon:a2,epsiv:c2,eqcirc:l2,eqcolon:f2,eqsim:d2,eqslantgtr:h2,eqslantless:p2,Equal:b2,equals:m2,EqualTilde:g2,equest:v2,Equilibrium:x2,equiv:y2,equivDD:k2,eqvparsl:w2,erarr:_2,erDot:A2,escr:S2,Escr:E2,esdot:q2,Esim:C2,esim:T2,Eta:D2,eta:I2,ETH:N2,eth:z2,Euml:R2,euml:L2,euro:M2,excl:F2,exist:B2,Exists:P2,expectation:O2,exponentiale:V2,ExponentialE:$2,fallingdotseq:U2,Fcy:G2,fcy:H2,female:j2,ffilig:Z2,fflig:W2,ffllig:X2,Ffr:J2,ffr:Q2,filig:Y2,FilledSmallSquare:K2,FilledVerySmallSquare:e4,fjlig:t4,flat:u4,fllig:r4,fltns:n4,fnof:s4,Fopf:i4,fopf:o4,forall:a4,ForAll:c4,fork:l4,forkv:f4,Fouriertrf:d4,fpartint:h4,frac12:p4,frac13:b4,frac14:m4,frac15:g4,frac16:v4,frac18:x4,frac23:y4,frac25:k4,frac34:w4,frac35:_4,frac38:A4,frac45:S4,frac56:E4,frac58:q4,frac78:C4,frasl:T4,frown:D4,fscr:I4,Fscr:N4,gacute:z4,Gamma:R4,gamma:L4,Gammad:M4,gammad:F4,gap:B4,Gbreve:P4,gbreve:O4,Gcedil:V4,Gcirc:$4,gcirc:U4,Gcy:G4,gcy:H4,Gdot:j4,gdot:Z4,ge:W4,gE:X4,gEl:J4,gel:Q4,geq:Y4,geqq:K4,geqslant:ed,gescc:td,ges:ud,gesdot:rd,gesdoto:nd,gesdotol:sd,gesl:id,gesles:od,Gfr:ad,gfr:cd,gg:ld,Gg:fd,ggg:dd,gimel:hd,GJcy:pd,gjcy:bd,gla:md,gl:gd,glE:vd,glj:xd,gnap:yd,gnapprox:kd,gne:wd,gnE:_d,gneq:Ad,gneqq:Sd,gnsim:Ed,Gopf:qd,gopf:Cd,grave:Td,GreaterEqual:Dd,GreaterEqualLess:Id,GreaterFullEqual:Nd,GreaterGreater:zd,GreaterLess:Rd,GreaterSlantEqual:Ld,GreaterTilde:Md,Gscr:Fd,gscr:Bd,gsim:Pd,gsime:Od,gsiml:Vd,gtcc:$d,gtcir:Ud,gt:Gd,GT:Hd,Gt:jd,gtdot:Zd,gtlPar:Wd,gtquest:Xd,gtrapprox:Jd,gtrarr:Qd,gtrdot:Yd,gtreqless:Kd,gtreqqless:eh,gtrless:th,gtrsim:uh,gvertneqq:rh,gvnE:nh,Hacek:sh,hairsp:ih,half:oh,hamilt:ah,HARDcy:ch,hardcy:lh,harrcir:fh,harr:dh,hArr:hh,harrw:ph,Hat:bh,hbar:mh,Hcirc:gh,hcirc:vh,hearts:xh,heartsuit:yh,hellip:kh,hercon:wh,hfr:_h,Hfr:Ah,HilbertSpace:Sh,hksearow:Eh,hkswarow:qh,hoarr:Ch,homtht:Th,hookleftarrow:Dh,hookrightarrow:Ih,hopf:Nh,Hopf:zh,horbar:Rh,HorizontalLine:Lh,hscr:Mh,Hscr:Fh,hslash:Bh,Hstrok:Ph,hstrok:Oh,HumpDownHump:Vh,HumpEqual:$h,hybull:Uh,hyphen:Gh,Iacute:Hh,iacute:jh,ic:Zh,Icirc:Wh,icirc:Xh,Icy:Jh,icy:Qh,Idot:Yh,IEcy:Kh,iecy:e3,iexcl:t3,iff:u3,ifr:r3,Ifr:n3,Igrave:s3,igrave:i3,ii:o3,iiiint:a3,iiint:c3,iinfin:l3,iiota:f3,IJlig:d3,ijlig:h3,Imacr:p3,imacr:b3,image:m3,ImaginaryI:g3,imagline:v3,imagpart:x3,imath:y3,Im:k3,imof:w3,imped:_3,Implies:A3,incare:S3,in:"∈",infin:E3,infintie:q3,inodot:C3,intcal:T3,int:D3,Int:I3,integers:N3,Integral:z3,intercal:R3,Intersection:L3,intlarhk:M3,intprod:F3,InvisibleComma:B3,InvisibleTimes:P3,IOcy:O3,iocy:V3,Iogon:$3,iogon:U3,Iopf:G3,iopf:H3,Iota:j3,iota:Z3,iprod:W3,iquest:X3,iscr:J3,Iscr:Q3,isin:Y3,isindot:K3,isinE:e6,isins:t6,isinsv:u6,isinv:r6,it:n6,Itilde:s6,itilde:i6,Iukcy:o6,iukcy:a6,Iuml:c6,iuml:l6,Jcirc:f6,jcirc:d6,Jcy:h6,jcy:p6,Jfr:b6,jfr:m6,jmath:g6,Jopf:v6,jopf:x6,Jscr:y6,jscr:k6,Jsercy:w6,jsercy:_6,Jukcy:A6,jukcy:S6,Kappa:E6,kappa:q6,kappav:C6,Kcedil:T6,kcedil:D6,Kcy:I6,kcy:N6,Kfr:z6,kfr:R6,kgreen:L6,KHcy:M6,khcy:F6,KJcy:B6,kjcy:P6,Kopf:O6,kopf:V6,Kscr:$6,kscr:U6,lAarr:G6,Lacute:H6,lacute:j6,laemptyv:Z6,lagran:W6,Lambda:X6,lambda:J6,lang:Q6,Lang:Y6,langd:K6,langle:ep,lap:tp,Laplacetrf:up,laquo:rp,larrb:np,larrbfs:sp,larr:ip,Larr:op,lArr:ap,larrfs:cp,larrhk:lp,larrlp:fp,larrpl:dp,larrsim:hp,larrtl:pp,latail:bp,lAtail:mp,lat:gp,late:vp,lates:xp,lbarr:yp,lBarr:kp,lbbrk:wp,lbrace:_p,lbrack:Ap,lbrke:Sp,lbrksld:Ep,lbrkslu:qp,Lcaron:Cp,lcaron:Tp,Lcedil:Dp,lcedil:Ip,lceil:Np,lcub:zp,Lcy:Rp,lcy:Lp,ldca:Mp,ldquo:Fp,ldquor:Bp,ldrdhar:Pp,ldrushar:Op,ldsh:Vp,le:$p,lE:Up,LeftAngleBracket:Gp,LeftArrowBar:Hp,leftarrow:jp,LeftArrow:Zp,Leftarrow:Wp,LeftArrowRightArrow:Xp,leftarrowtail:Jp,LeftCeiling:Qp,LeftDoubleBracket:Yp,LeftDownTeeVector:Kp,LeftDownVectorBar:e8,LeftDownVector:t8,LeftFloor:u8,leftharpoondown:r8,leftharpoonup:n8,leftleftarrows:s8,leftrightarrow:i8,LeftRightArrow:o8,Leftrightarrow:a8,leftrightarrows:c8,leftrightharpoons:l8,leftrightsquigarrow:f8,LeftRightVector:d8,LeftTeeArrow:h8,LeftTee:p8,LeftTeeVector:b8,leftthreetimes:m8,LeftTriangleBar:g8,LeftTriangle:v8,LeftTriangleEqual:x8,LeftUpDownVector:y8,LeftUpTeeVector:k8,LeftUpVectorBar:w8,LeftUpVector:_8,LeftVectorBar:A8,LeftVector:S8,lEg:E8,leg:q8,leq:C8,leqq:T8,leqslant:D8,lescc:I8,les:N8,lesdot:z8,lesdoto:R8,lesdotor:L8,lesg:M8,lesges:F8,lessapprox:B8,lessdot:P8,lesseqgtr:O8,lesseqqgtr:V8,LessEqualGreater:$8,LessFullEqual:U8,LessGreater:G8,lessgtr:H8,LessLess:j8,lesssim:Z8,LessSlantEqual:W8,LessTilde:X8,lfisht:J8,lfloor:Q8,Lfr:Y8,lfr:K8,lg:e5,lgE:t5,lHar:u5,lhard:r5,lharu:n5,lharul:s5,lhblk:i5,LJcy:o5,ljcy:a5,llarr:c5,ll:l5,Ll:f5,llcorner:d5,Lleftarrow:h5,llhard:p5,lltri:b5,Lmidot:m5,lmidot:g5,lmoustache:v5,lmoust:x5,lnap:y5,lnapprox:k5,lne:w5,lnE:_5,lneq:A5,lneqq:S5,lnsim:E5,loang:q5,loarr:C5,lobrk:T5,longleftarrow:D5,LongLeftArrow:I5,Longleftarrow:N5,longleftrightarrow:z5,LongLeftRightArrow:R5,Longleftrightarrow:L5,longmapsto:M5,longrightarrow:F5,LongRightArrow:B5,Longrightarrow:P5,looparrowleft:O5,looparrowright:V5,lopar:$5,Lopf:U5,lopf:G5,loplus:H5,lotimes:j5,lowast:Z5,lowbar:W5,LowerLeftArrow:X5,LowerRightArrow:J5,loz:Q5,lozenge:Y5,lozf:K5,lpar:eb,lparlt:tb,lrarr:ub,lrcorner:rb,lrhar:nb,lrhard:sb,lrm:ib,lrtri:ob,lsaquo:ab,lscr:cb,Lscr:lb,lsh:fb,Lsh:db,lsim:hb,lsime:pb,lsimg:bb,lsqb:mb,lsquo:gb,lsquor:vb,Lstrok:xb,lstrok:yb,ltcc:kb,ltcir:wb,lt:_b,LT:Ab,Lt:Sb,ltdot:Eb,lthree:qb,ltimes:Cb,ltlarr:Tb,ltquest:Db,ltri:Ib,ltrie:Nb,ltrif:zb,ltrPar:Rb,lurdshar:Lb,luruhar:Mb,lvertneqq:Fb,lvnE:Bb,macr:Pb,male:Ob,malt:Vb,maltese:$b,Map:"⤅",map:Ub,mapsto:Gb,mapstodown:Hb,mapstoleft:jb,mapstoup:Zb,marker:Wb,mcomma:Xb,Mcy:Jb,mcy:Qb,mdash:Yb,mDDot:Kb,measuredangle:em,MediumSpace:tm,Mellintrf:um,Mfr:rm,mfr:nm,mho:sm,micro:im,midast:om,midcir:am,mid:cm,middot:lm,minusb:fm,minus:dm,minusd:hm,minusdu:pm,MinusPlus:bm,mlcp:mm,mldr:gm,mnplus:vm,models:xm,Mopf:ym,mopf:km,mp:wm,mscr:_m,Mscr:Am,mstpos:Sm,Mu:Em,mu:qm,multimap:Cm,mumap:Tm,nabla:Dm,Nacute:Im,nacute:Nm,nang:zm,nap:Rm,napE:Lm,napid:Mm,napos:Fm,napprox:Bm,natural:Pm,naturals:Om,natur:Vm,nbsp:$m,nbump:Um,nbumpe:Gm,ncap:Hm,Ncaron:jm,ncaron:Zm,Ncedil:Wm,ncedil:Xm,ncong:Jm,ncongdot:Qm,ncup:Ym,Ncy:Km,ncy:e9,ndash:t9,nearhk:u9,nearr:r9,neArr:n9,nearrow:s9,ne:i9,nedot:o9,NegativeMediumSpace:a9,NegativeThickSpace:c9,NegativeThinSpace:l9,NegativeVeryThinSpace:f9,nequiv:d9,nesear:h9,nesim:p9,NestedGreaterGreater:b9,NestedLessLess:m9,NewLine:g9,nexist:v9,nexists:x9,Nfr:y9,nfr:k9,ngE:w9,nge:_9,ngeq:A9,ngeqq:S9,ngeqslant:E9,nges:q9,nGg:C9,ngsim:T9,nGt:D9,ngt:I9,ngtr:N9,nGtv:z9,nharr:R9,nhArr:L9,nhpar:M9,ni:F9,nis:B9,nisd:P9,niv:O9,NJcy:V9,njcy:$9,nlarr:U9,nlArr:G9,nldr:H9,nlE:j9,nle:Z9,nleftarrow:W9,nLeftarrow:X9,nleftrightarrow:J9,nLeftrightarrow:Q9,nleq:Y9,nleqq:K9,nleqslant:eg,nles:tg,nless:ug,nLl:rg,nlsim:ng,nLt:sg,nlt:ig,nltri:og,nltrie:ag,nLtv:cg,nmid:lg,NoBreak:fg,NonBreakingSpace:dg,nopf:hg,Nopf:pg,Not:bg,not:mg,NotCongruent:gg,NotCupCap:vg,NotDoubleVerticalBar:xg,NotElement:yg,NotEqual:kg,NotEqualTilde:wg,NotExists:_g,NotGreater:Ag,NotGreaterEqual:Sg,NotGreaterFullEqual:Eg,NotGreaterGreater:qg,NotGreaterLess:Cg,NotGreaterSlantEqual:Tg,NotGreaterTilde:Dg,NotHumpDownHump:Ig,NotHumpEqual:Ng,notin:zg,notindot:Rg,notinE:Lg,notinva:Mg,notinvb:Fg,notinvc:Bg,NotLeftTriangleBar:Pg,NotLeftTriangle:Og,NotLeftTriangleEqual:Vg,NotLess:$g,NotLessEqual:Ug,NotLessGreater:Gg,NotLessLess:Hg,NotLessSlantEqual:jg,NotLessTilde:Zg,NotNestedGreaterGreater:Wg,NotNestedLessLess:Xg,notni:Jg,notniva:Qg,notnivb:Yg,notnivc:Kg,NotPrecedes:e7,NotPrecedesEqual:t7,NotPrecedesSlantEqual:u7,NotReverseElement:r7,NotRightTriangleBar:n7,NotRightTriangle:s7,NotRightTriangleEqual:i7,NotSquareSubset:o7,NotSquareSubsetEqual:a7,NotSquareSuperset:c7,NotSquareSupersetEqual:l7,NotSubset:f7,NotSubsetEqual:d7,NotSucceeds:h7,NotSucceedsEqual:p7,NotSucceedsSlantEqual:b7,NotSucceedsTilde:m7,NotSuperset:g7,NotSupersetEqual:v7,NotTilde:x7,NotTildeEqual:y7,NotTildeFullEqual:k7,NotTildeTilde:w7,NotVerticalBar:_7,nparallel:A7,npar:S7,nparsl:E7,npart:q7,npolint:C7,npr:T7,nprcue:D7,nprec:I7,npreceq:N7,npre:z7,nrarrc:R7,nrarr:L7,nrArr:M7,nrarrw:F7,nrightarrow:B7,nRightarrow:P7,nrtri:O7,nrtrie:V7,nsc:$7,nsccue:U7,nsce:G7,Nscr:H7,nscr:j7,nshortmid:Z7,nshortparallel:W7,nsim:X7,nsime:J7,nsimeq:Q7,nsmid:Y7,nspar:K7,nsqsube:ev,nsqsupe:tv,nsub:uv,nsubE:rv,nsube:nv,nsubset:sv,nsubseteq:iv,nsubseteqq:ov,nsucc:av,nsucceq:cv,nsup:lv,nsupE:fv,nsupe:dv,nsupset:hv,nsupseteq:pv,nsupseteqq:bv,ntgl:mv,Ntilde:gv,ntilde:vv,ntlg:xv,ntriangleleft:yv,ntrianglelefteq:kv,ntriangleright:wv,ntrianglerighteq:_v,Nu:Av,nu:Sv,num:Ev,numero:qv,numsp:Cv,nvap:Tv,nvdash:Dv,nvDash:Iv,nVdash:Nv,nVDash:zv,nvge:Rv,nvgt:Lv,nvHarr:Mv,nvinfin:Fv,nvlArr:Bv,nvle:Pv,nvlt:Ov,nvltrie:Vv,nvrArr:$v,nvrtrie:Uv,nvsim:Gv,nwarhk:Hv,nwarr:jv,nwArr:Zv,nwarrow:Wv,nwnear:Xv,Oacute:Jv,oacute:Qv,oast:Yv,Ocirc:Kv,ocirc:ex,ocir:tx,Ocy:ux,ocy:rx,odash:nx,Odblac:sx,odblac:ix,odiv:ox,odot:ax,odsold:cx,OElig:lx,oelig:fx,ofcir:dx,Ofr:hx,ofr:px,ogon:bx,Ograve:mx,ograve:gx,ogt:vx,ohbar:xx,ohm:yx,oint:kx,olarr:wx,olcir:_x,olcross:Ax,oline:Sx,olt:Ex,Omacr:qx,omacr:Cx,Omega:Tx,omega:Dx,Omicron:Ix,omicron:Nx,omid:zx,ominus:Rx,Oopf:Lx,oopf:Mx,opar:Fx,OpenCurlyDoubleQuote:Bx,OpenCurlyQuote:Px,operp:Ox,oplus:Vx,orarr:$x,Or:Ux,or:Gx,ord:Hx,order:jx,orderof:Zx,ordf:Wx,ordm:Xx,origof:Jx,oror:Qx,orslope:Yx,orv:Kx,oS:ey,Oscr:ty,oscr:uy,Oslash:ry,oslash:ny,osol:sy,Otilde:iy,otilde:oy,otimesas:ay,Otimes:cy,otimes:ly,Ouml:fy,ouml:dy,ovbar:hy,OverBar:py,OverBrace:by,OverBracket:my,OverParenthesis:gy,para:vy,parallel:xy,par:yy,parsim:ky,parsl:wy,part:_y,PartialD:Ay,Pcy:Sy,pcy:Ey,percnt:qy,period:Cy,permil:Ty,perp:Dy,pertenk:Iy,Pfr:Ny,pfr:zy,Phi:Ry,phi:Ly,phiv:My,phmmat:Fy,phone:By,Pi:Py,pi:Oy,pitchfork:Vy,piv:$y,planck:Uy,planckh:Gy,plankv:Hy,plusacir:jy,plusb:Zy,pluscir:Wy,plus:Xy,plusdo:Jy,plusdu:Qy,pluse:Yy,PlusMinus:Ky,plusmn:ek,plussim:tk,plustwo:uk,pm:rk,Poincareplane:nk,pointint:sk,popf:ik,Popf:ok,pound:ak,prap:ck,Pr:lk,pr:fk,prcue:dk,precapprox:hk,prec:pk,preccurlyeq:bk,Precedes:mk,PrecedesEqual:gk,PrecedesSlantEqual:vk,PrecedesTilde:xk,preceq:yk,precnapprox:kk,precneqq:wk,precnsim:_k,pre:Ak,prE:Sk,precsim:Ek,prime:qk,Prime:Ck,primes:Tk,prnap:Dk,prnE:Ik,prnsim:Nk,prod:zk,Product:Rk,profalar:Lk,profline:Mk,profsurf:Fk,prop:Bk,Proportional:Pk,Proportion:Ok,propto:Vk,prsim:$k,prurel:Uk,Pscr:Gk,pscr:Hk,Psi:jk,psi:Zk,puncsp:Wk,Qfr:Xk,qfr:Jk,qint:Qk,qopf:Yk,Qopf:Kk,qprime:ew,Qscr:tw,qscr:uw,quaternions:rw,quatint:nw,quest:sw,questeq:iw,quot:ow,QUOT:aw,rAarr:cw,race:lw,Racute:fw,racute:dw,radic:hw,raemptyv:pw,rang:bw,Rang:mw,rangd:gw,range:vw,rangle:xw,raquo:yw,rarrap:kw,rarrb:ww,rarrbfs:_w,rarrc:Aw,rarr:Sw,Rarr:Ew,rArr:qw,rarrfs:Cw,rarrhk:Tw,rarrlp:Dw,rarrpl:Iw,rarrsim:Nw,Rarrtl:zw,rarrtl:Rw,rarrw:Lw,ratail:Mw,rAtail:Fw,ratio:Bw,rationals:Pw,rbarr:Ow,rBarr:Vw,RBarr:$w,rbbrk:Uw,rbrace:Gw,rbrack:Hw,rbrke:jw,rbrksld:Zw,rbrkslu:Ww,Rcaron:Xw,rcaron:Jw,Rcedil:Qw,rcedil:Yw,rceil:Kw,rcub:e_,Rcy:t_,rcy:u_,rdca:r_,rdldhar:n_,rdquo:s_,rdquor:i_,rdsh:o_,real:a_,realine:c_,realpart:l_,reals:f_,Re:d_,rect:h_,reg:p_,REG:b_,ReverseElement:m_,ReverseEquilibrium:g_,ReverseUpEquilibrium:v_,rfisht:x_,rfloor:y_,rfr:k_,Rfr:w_,rHar:__,rhard:A_,rharu:S_,rharul:E_,Rho:q_,rho:C_,rhov:T_,RightAngleBracket:D_,RightArrowBar:I_,rightarrow:N_,RightArrow:z_,Rightarrow:R_,RightArrowLeftArrow:L_,rightarrowtail:M_,RightCeiling:F_,RightDoubleBracket:B_,RightDownTeeVector:P_,RightDownVectorBar:O_,RightDownVector:V_,RightFloor:$_,rightharpoondown:U_,rightharpoonup:G_,rightleftarrows:H_,rightleftharpoons:j_,rightrightarrows:Z_,rightsquigarrow:W_,RightTeeArrow:X_,RightTee:J_,RightTeeVector:Q_,rightthreetimes:Y_,RightTriangleBar:K_,RightTriangle:eA,RightTriangleEqual:tA,RightUpDownVector:uA,RightUpTeeVector:rA,RightUpVectorBar:nA,RightUpVector:sA,RightVectorBar:iA,RightVector:oA,ring:aA,risingdotseq:cA,rlarr:lA,rlhar:fA,rlm:dA,rmoustache:hA,rmoust:pA,rnmid:bA,roang:mA,roarr:gA,robrk:vA,ropar:xA,ropf:yA,Ropf:kA,roplus:wA,rotimes:_A,RoundImplies:AA,rpar:SA,rpargt:EA,rppolint:qA,rrarr:CA,Rrightarrow:TA,rsaquo:DA,rscr:IA,Rscr:NA,rsh:zA,Rsh:RA,rsqb:LA,rsquo:MA,rsquor:FA,rthree:BA,rtimes:PA,rtri:OA,rtrie:VA,rtrif:$A,rtriltri:UA,RuleDelayed:GA,ruluhar:HA,rx:jA,Sacute:ZA,sacute:WA,sbquo:XA,scap:JA,Scaron:QA,scaron:YA,Sc:KA,sc:eS,sccue:tS,sce:uS,scE:rS,Scedil:nS,scedil:sS,Scirc:iS,scirc:oS,scnap:aS,scnE:cS,scnsim:lS,scpolint:fS,scsim:dS,Scy:hS,scy:pS,sdotb:bS,sdot:mS,sdote:gS,searhk:vS,searr:xS,seArr:yS,searrow:kS,sect:wS,semi:_S,seswar:AS,setminus:SS,setmn:ES,sext:qS,Sfr:CS,sfr:TS,sfrown:DS,sharp:IS,SHCHcy:NS,shchcy:zS,SHcy:RS,shcy:LS,ShortDownArrow:MS,ShortLeftArrow:FS,shortmid:BS,shortparallel:PS,ShortRightArrow:OS,ShortUpArrow:VS,shy:$S,Sigma:US,sigma:GS,sigmaf:HS,sigmav:jS,sim:ZS,simdot:WS,sime:XS,simeq:JS,simg:QS,simgE:YS,siml:KS,simlE:eE,simne:tE,simplus:uE,simrarr:rE,slarr:nE,SmallCircle:sE,smallsetminus:iE,smashp:oE,smeparsl:aE,smid:cE,smile:lE,smt:fE,smte:dE,smtes:hE,SOFTcy:pE,softcy:bE,solbar:mE,solb:gE,sol:vE,Sopf:xE,sopf:yE,spades:kE,spadesuit:wE,spar:_E,sqcap:AE,sqcaps:SE,sqcup:EE,sqcups:qE,Sqrt:CE,sqsub:TE,sqsube:DE,sqsubset:IE,sqsubseteq:NE,sqsup:zE,sqsupe:RE,sqsupset:LE,sqsupseteq:ME,square:FE,Square:BE,SquareIntersection:PE,SquareSubset:OE,SquareSubsetEqual:VE,SquareSuperset:$E,SquareSupersetEqual:UE,SquareUnion:GE,squarf:HE,squ:jE,squf:ZE,srarr:WE,Sscr:XE,sscr:JE,ssetmn:QE,ssmile:YE,sstarf:KE,Star:eq,star:tq,starf:uq,straightepsilon:rq,straightphi:nq,strns:sq,sub:iq,Sub:oq,subdot:aq,subE:cq,sube:lq,subedot:fq,submult:dq,subnE:hq,subne:pq,subplus:bq,subrarr:mq,subset:gq,Subset:vq,subseteq:xq,subseteqq:yq,SubsetEqual:kq,subsetneq:wq,subsetneqq:_q,subsim:Aq,subsub:Sq,subsup:Eq,succapprox:qq,succ:Cq,succcurlyeq:Tq,Succeeds:Dq,SucceedsEqual:Iq,SucceedsSlantEqual:Nq,SucceedsTilde:zq,succeq:Rq,succnapprox:Lq,succneqq:Mq,succnsim:Fq,succsim:Bq,SuchThat:Pq,sum:Oq,Sum:Vq,sung:$q,sup1:Uq,sup2:Gq,sup3:Hq,sup:jq,Sup:Zq,supdot:Wq,supdsub:Xq,supE:Jq,supe:Qq,supedot:Yq,Superset:Kq,SupersetEqual:eC,suphsol:tC,suphsub:uC,suplarr:rC,supmult:nC,supnE:sC,supne:iC,supplus:oC,supset:aC,Supset:cC,supseteq:lC,supseteqq:fC,supsetneq:dC,supsetneqq:hC,supsim:pC,supsub:bC,supsup:mC,swarhk:gC,swarr:vC,swArr:xC,swarrow:yC,swnwar:kC,szlig:wC,Tab:_C,target:AC,Tau:SC,tau:EC,tbrk:qC,Tcaron:CC,tcaron:TC,Tcedil:DC,tcedil:IC,Tcy:NC,tcy:zC,tdot:RC,telrec:LC,Tfr:MC,tfr:FC,there4:BC,therefore:PC,Therefore:OC,Theta:VC,theta:$C,thetasym:UC,thetav:GC,thickapprox:HC,thicksim:jC,ThickSpace:ZC,ThinSpace:WC,thinsp:XC,thkap:JC,thksim:QC,THORN:YC,thorn:KC,tilde:eT,Tilde:tT,TildeEqual:uT,TildeFullEqual:rT,TildeTilde:nT,timesbar:sT,timesb:iT,times:oT,timesd:aT,tint:cT,toea:lT,topbot:fT,topcir:dT,top:hT,Topf:pT,topf:bT,topfork:mT,tosa:gT,tprime:vT,trade:xT,TRADE:yT,triangle:kT,triangledown:wT,triangleleft:_T,trianglelefteq:AT,triangleq:ST,triangleright:ET,trianglerighteq:qT,tridot:CT,trie:TT,triminus:DT,TripleDot:IT,triplus:NT,trisb:zT,tritime:RT,trpezium:LT,Tscr:MT,tscr:FT,TScy:BT,tscy:PT,TSHcy:OT,tshcy:VT,Tstrok:$T,tstrok:UT,twixt:GT,twoheadleftarrow:HT,twoheadrightarrow:jT,Uacute:ZT,uacute:WT,uarr:XT,Uarr:JT,uArr:QT,Uarrocir:YT,Ubrcy:KT,ubrcy:eD,Ubreve:tD,ubreve:uD,Ucirc:rD,ucirc:nD,Ucy:sD,ucy:iD,udarr:oD,Udblac:aD,udblac:cD,udhar:lD,ufisht:fD,Ufr:dD,ufr:hD,Ugrave:pD,ugrave:bD,uHar:mD,uharl:gD,uharr:vD,uhblk:xD,ulcorn:yD,ulcorner:kD,ulcrop:wD,ultri:_D,Umacr:AD,umacr:SD,uml:ED,UnderBar:qD,UnderBrace:CD,UnderBracket:TD,UnderParenthesis:DD,Union:ID,UnionPlus:ND,Uogon:zD,uogon:RD,Uopf:LD,uopf:MD,UpArrowBar:FD,uparrow:BD,UpArrow:PD,Uparrow:OD,UpArrowDownArrow:VD,updownarrow:$D,UpDownArrow:UD,Updownarrow:GD,UpEquilibrium:HD,upharpoonleft:jD,upharpoonright:ZD,uplus:WD,UpperLeftArrow:XD,UpperRightArrow:JD,upsi:QD,Upsi:YD,upsih:KD,Upsilon:eI,upsilon:tI,UpTeeArrow:uI,UpTee:rI,upuparrows:nI,urcorn:sI,urcorner:iI,urcrop:oI,Uring:aI,uring:cI,urtri:lI,Uscr:fI,uscr:dI,utdot:hI,Utilde:pI,utilde:bI,utri:mI,utrif:gI,uuarr:vI,Uuml:xI,uuml:yI,uwangle:kI,vangrt:wI,varepsilon:_I,varkappa:AI,varnothing:SI,varphi:EI,varpi:qI,varpropto:CI,varr:TI,vArr:DI,varrho:II,varsigma:NI,varsubsetneq:zI,varsubsetneqq:RI,varsupsetneq:LI,varsupsetneqq:MI,vartheta:FI,vartriangleleft:BI,vartriangleright:PI,vBar:OI,Vbar:VI,vBarv:$I,Vcy:UI,vcy:GI,vdash:HI,vDash:jI,Vdash:ZI,VDash:WI,Vdashl:XI,veebar:JI,vee:QI,Vee:YI,veeeq:KI,vellip:eN,verbar:tN,Verbar:uN,vert:rN,Vert:nN,VerticalBar:sN,VerticalLine:iN,VerticalSeparator:oN,VerticalTilde:aN,VeryThinSpace:cN,Vfr:lN,vfr:fN,vltri:dN,vnsub:hN,vnsup:pN,Vopf:bN,vopf:mN,vprop:gN,vrtri:vN,Vscr:xN,vscr:yN,vsubnE:kN,vsubne:wN,vsupnE:_N,vsupne:AN,Vvdash:SN,vzigzag:EN,Wcirc:qN,wcirc:CN,wedbar:TN,wedge:DN,Wedge:IN,wedgeq:NN,weierp:zN,Wfr:RN,wfr:LN,Wopf:MN,wopf:FN,wp:BN,wr:PN,wreath:ON,Wscr:VN,wscr:$N,xcap:UN,xcirc:GN,xcup:HN,xdtri:jN,Xfr:ZN,xfr:WN,xharr:XN,xhArr:JN,Xi:QN,xi:YN,xlarr:KN,xlArr:ez,xmap:tz,xnis:uz,xodot:rz,Xopf:nz,xopf:sz,xoplus:iz,xotime:oz,xrarr:az,xrArr:cz,Xscr:lz,xscr:fz,xsqcup:dz,xuplus:hz,xutri:pz,xvee:bz,xwedge:mz,Yacute:gz,yacute:vz,YAcy:xz,yacy:yz,Ycirc:kz,ycirc:wz,Ycy:_z,ycy:Az,yen:Sz,Yfr:Ez,yfr:qz,YIcy:Cz,yicy:Tz,Yopf:Dz,yopf:Iz,Yscr:Nz,yscr:zz,YUcy:Rz,yucy:Lz,yuml:Mz,Yuml:Fz,Zacute:Bz,zacute:Pz,Zcaron:Oz,zcaron:Vz,Zcy:$z,zcy:Uz,Zdot:Gz,zdot:Hz,zeetrf:jz,ZeroWidthSpace:Zz,Zeta:Wz,zeta:Xz,zfr:Jz,Zfr:Qz,ZHcy:Yz,zhcy:Kz,zigrarr:eR,zopf:tR,Zopf:uR,Zscr:rR,zscr:nR,zwj:sR,zwnj:iR};var Mu=oR,st=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$e={},Ct={};function aR(t){var e,u,n=Ct[t];if(n)return n;for(n=Ct[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),/^[0-9a-z]$/i.test(u)?n.push(u):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(u=!0),o=aR(e),n=0,r=t.length;n=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1=56320&&a<=57343)){i+=encodeURIComponent(t[n]+t[n+1]),n++;continue}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[n])}return i}m0.defaultChars=";/?:@&=+$,-_.!~*'()#";m0.componentChars="-_.!~*'()";var cR=m0,Tt={};function lR(t){var e,u,n=Tt[t];if(n)return n;for(n=Tt[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),n.push(u);for(e=0;e=55296&&l<=57343?d+="���":d+=String.fromCharCode(l),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(l-=65536,d+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),r+=9;continue}d+="�"}return d})}g0.defaultChars=";/?:@&=+$,#";g0.componentChars="";var fR=g0,dR=function(e){var u="";return u+=e.protocol||"",u+=e.slashes?"//":"",u+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?u+="["+e.hostname+"]":u+=e.hostname||"",u+=e.port?":"+e.port:"",u+=e.pathname||"",u+=e.search||"",u+=e.hash||"",u};function l0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var hR=/^([a-z0-9.+-]+:)/i,pR=/:[0-9]*$/,bR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mR=["<",">",'"',"`"," ","\r",` `," "],gR=["{","}","|","\\","^","`"].concat(mR),vR=["'"].concat(gR),Dt=["%","/","?",";","#"].concat(vR),It=["/","?","#"],xR=255,Nt=/^[+a-z0-9A-Z_-]{0,63}$/,yR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zt={javascript:!0,"javascript:":!0},Rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kR(t,e){if(t&&t instanceof l0)return t;var u=new l0;return u.parse(t,e),u}l0.prototype.parse=function(t,e){var u,n,r,s,a,o=t;if(o=o.trim(),!e&&t.split("#").length===1){var i=bR.exec(o);if(i)return this.pathname=i[1],i[2]&&(this.search=i[2]),this}var c=hR.exec(o);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,o=o.substr(c.length)),(e||c||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=o.substr(0,2)==="//",a&&!(c&&zt[c])&&(o=o.substr(2),this.slashes=!0)),!zt[c]&&(a||c&&!Rt[c])){var l=-1;for(u=0;u127?v+="x":v+=b[g];if(!v.match(Nt)){var w=m.slice(0,u),A=m.slice(u+1),k=b.match(yR);k&&(w.push(k[1]),A.unshift(k[2])),A.length&&(o=A.join(".")+o),this.hostname=w.join(".");break}}}}this.hostname.length>xR&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=o.indexOf("#");C!==-1&&(this.hash=o.substr(C),o=o.slice(0,C));var T=o.indexOf("?");return T!==-1&&(this.search=o.substr(T),o=o.slice(0,T)),o&&(this.pathname=o),Rt[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};l0.prototype.parseHost=function(t){var e=pR.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var wR=kR;$e.encode=cR;$e.decode=fR;$e.format=dR;$e.parse=wR;var ke={},N0,Lt;function Fu(){return Lt||(Lt=1,N0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),N0}var z0,Mt;function Bu(){return Mt||(Mt=1,z0=/[\0-\x1F\x7F-\x9F]/),z0}var R0,Ft;function _R(){return Ft||(Ft=1,R0=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),R0}var L0,Bt;function Pu(){return Bt||(Bt=1,L0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),L0}var Pt;function AR(){return Pt||(Pt=1,ke.Any=Fu(),ke.Cc=Bu(),ke.Cf=_R(),ke.P=st,ke.Z=Pu()),ke}(function(t){function e(_){return Object.prototype.toString.call(_)}function u(_){return e(_)==="[object String]"}var n=Object.prototype.hasOwnProperty;function r(_,O){return n.call(_,O)}function s(_){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(Q){_[Q]=z[Q]})}}),_}function a(_,O,z){return[].concat(_.slice(0,O),z,_.slice(O+1))}function o(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function i(_){if(_>65535){_-=65536;var O=55296+(_>>10),z=56320+(_&1023);return String.fromCharCode(O,z)}return String.fromCharCode(_)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+l.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=Mu;function f(_,O){var z=0;return r(p,O)?p[O]:O.charCodeAt(0)===35&&h.test(O)&&(z=O[1].toLowerCase()==="x"?parseInt(O.slice(2),16):parseInt(O.slice(1),10),o(z))?i(z):_}function m(_){return _.indexOf("\\")<0?_:_.replace(c,"$1")}function b(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(d,function(O,z,Q){return z||f(O,Q)})}var v=/[&<>"]/,g=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function w(_){return y[_]}function A(_){return v.test(_)?_.replace(g,w):_}var k=/[.?*+^$[\]\\(){}|-]/g;function C(_){return _.replace(k,"\\$&")}function T(_){switch(_){case 9:case 32:return!0}return!1}function R(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var D=st;function L(_){return D.test(_)}function ee(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(_){return _=_.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(_=_.replace(/ẞ/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=$e,t.lib.ucmicro=AR(),t.assign=s,t.isString=u,t.has=r,t.unescapeMd=m,t.unescapeAll=b,t.isValidEntityCode=o,t.fromCodePoint=i,t.escapeHtml=A,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=R,t.isMdAsciiPunct=ee,t.isPunctChar=L,t.escapeRE=C,t.normalizeReference=$})(B);var v0={},SR=function(e,u,n){var r,s,a,o,i=-1,c=e.posMax,l=e.pos;for(e.pos=u+1,r=1;e.pos32))return i;if(r===41){if(s===0)break;s--}u++}return o===u||s!==0||(i.str=Ot(e.slice(o,u)),i.lines=a,i.pos=u,i.ok=!0),i},qR=B.unescapeAll,CR=function(e,u,n){var r,s,a=0,o=u,i={ok:!1,pos:0,lines:0,str:""};if(u>=n||(s=e.charCodeAt(u),s!==34&&s!==39&&s!==40))return i;for(u++,s===40&&(s=41);u"+Ee(t[e].content)+""};fe.code_block=function(t,e,u,n,r){var s=t[e];return""+Ee(t[e].content)+` `};fe.fence=function(t,e,u,n,r){var s=t[e],a=s.info?DR(s.info).trim():"",o="",i="",c,l,d,h,p;return a&&(d=a.split(/(\s+)/g),o=d[0],i=d.slice(2).join("")),u.highlight?c=u.highlight(s.content,o,i)||Ee(s.content):c=Ee(s.content),c.indexOf("{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},_=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};_(i,a);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},u={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,u as language}; +import{m as a}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},_=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};_(i,a);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},u={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,u as language}; diff --git a/app/src/main/resources/web/assets/question-mark-rounded-72e52d2c.js b/app/src/main/resources/web/assets/question-mark-rounded-50577cc8.js similarity index 97% rename from app/src/main/resources/web/assets/question-mark-rounded-72e52d2c.js rename to app/src/main/resources/web/assets/question-mark-rounded-50577cc8.js index c12e7bff..bae352db 100644 --- a/app/src/main/resources/web/assets/question-mark-rounded-72e52d2c.js +++ b/app/src/main/resources/web/assets/question-mark-rounded-50577cc8.js @@ -1 +1 @@ -var I=Object.defineProperty;var q=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(q(t,typeof e!="symbol"?e+"":e,n),n);import{c5 as P,c6 as y,c7 as x,c8 as p,c9 as N,o as $,c as O,a as T}from"./index-4040ca75.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=y(t),t&&(n||e===void 0))return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class C{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function R(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return R(t)?!0:F(t)}function _(t,e){let n=t;return e&&(n=l(t,"*.")),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(W||{});class j{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return g(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const B={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=T("path",{fill:"currentColor",d:"M12.025 16q-.6 0-1.012-.425t-.363-1q.075-1.05.5-1.825t1.35-1.6q1.025-.9 1.563-1.563t.537-1.512q0-1.025-.687-1.7T12 5.7q-.8 0-1.363.338t-.912.837q-.35.5-.862.675t-.988-.025q-.575-.25-.787-.825t.087-1.075Q7.9 4.5 9.125 3.75T12 3q2.625 0 4.038 1.462t1.412 3.513q0 1.25-.537 2.138t-1.688 2.012q-.85.8-1.2 1.3t-.475 1.15q-.1.625-.525 1.025t-1 .4ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"},null,-1),V=[M];function Z(t,e){return $(),O("svg",B,V)}const v={name:"material-symbols-question-mark-rounded",render:Z};export{C as A,W as T,v as _,j as a}; +var I=Object.defineProperty;var q=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(q(t,typeof e!="symbol"?e+"":e,n),n);import{c5 as P,c6 as y,c7 as x,c8 as p,c9 as N,o as $,c as O,a as T}from"./index-40f25da6.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=y(t),t&&(n||e===void 0))return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class C{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function R(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return R(t)?!0:F(t)}function _(t,e){let n=t;return e&&(n=l(t,"*.")),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(W||{});class j{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return g(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const B={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=T("path",{fill:"currentColor",d:"M12.025 16q-.6 0-1.012-.425t-.363-1q.075-1.05.5-1.825t1.35-1.6q1.025-.9 1.563-1.563t.537-1.512q0-1.025-.687-1.7T12 5.7q-.8 0-1.363.338t-.912.837q-.35.5-.862.675t-.988-.025q-.575-.25-.787-.825t.087-1.075Q7.9 4.5 9.125 3.75T12 3q2.625 0 4.038 1.462t1.412 3.513q0 1.25-.537 2.138t-1.688 2.012q-.85.8-1.2 1.3t-.475 1.15q-.1.625-.525 1.025t-1 .4ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"},null,-1),V=[M];function Z(t,e){return $(),O("svg",B,V)}const v={name:"material-symbols-question-mark-rounded",render:Z};export{C as A,W as T,v as _,j as a}; diff --git a/app/src/main/resources/web/assets/razor-48ef3acc.js b/app/src/main/resources/web/assets/razor-5bcbaab2.js similarity index 99% rename from app/src/main/resources/web/assets/razor-48ef3acc.js rename to app/src/main/resources/web/assets/razor-5bcbaab2.js index c7e91b02..794963af 100644 --- a/app/src/main/resources/web/assets/razor-48ef3acc.js +++ b/app/src/main/resources/web/assets/razor-5bcbaab2.js @@ -1 +1 @@ -import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!p.call(t,r)&&r!==o&&c(t,r,{get:()=>e[r],enumerable:!(n=l(e,r))||n.enumerable});return t},h=(t,e,o)=>(i(t,e,"default"),o&&i(o,e,"default")),a={};h(a,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; +import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!p.call(t,r)&&r!==o&&c(t,r,{get:()=>e[r],enumerable:!(n=l(e,r))||n.enumerable});return t},h=(t,e,o)=>(i(t,e,"default"),o&&i(o,e,"default")),a={};h(a,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/refresh-rounded-ba092d85.js b/app/src/main/resources/web/assets/refresh-rounded-4826b5dd.js similarity index 90% rename from app/src/main/resources/web/assets/refresh-rounded-ba092d85.js rename to app/src/main/resources/web/assets/refresh-rounded-4826b5dd.js index 8c759857..8062dbe9 100644 --- a/app/src/main/resources/web/assets/refresh-rounded-ba092d85.js +++ b/app/src/main/resources/web/assets/refresh-rounded-4826b5dd.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-4040ca75.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.725 0 3.188-.913t2.187-2.437q.125-.275.413-.463t.587-.187q.575 0 .863.4t.062.9q-.95 2.125-2.925 3.413T12 20Z"},null,-1),r=[s];function c(q,a){return e(),t("svg",n,r)}const T={name:"material-symbols-refresh-rounded",render:c};export{T as _}; +import{o as e,c as t,a as o}from"./index-40f25da6.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.725 0 3.188-.913t2.187-2.437q.125-.275.413-.463t.587-.187q.575 0 .863.4t.062.9q-.95 2.125-2.925 3.413T12 20Z"},null,-1),r=[s];function c(q,a){return e(),t("svg",n,r)}const T={name:"material-symbols-refresh-rounded",render:c};export{T as _}; diff --git a/app/src/main/resources/web/assets/sort-rounded-21b00447.js b/app/src/main/resources/web/assets/sort-rounded-6ce111fd.js similarity index 88% rename from app/src/main/resources/web/assets/sort-rounded-21b00447.js rename to app/src/main/resources/web/assets/sort-rounded-6ce111fd.js index 814e9d91..6b9eeefa 100644 --- a/app/src/main/resources/web/assets/sort-rounded-21b00447.js +++ b/app/src/main/resources/web/assets/sort-rounded-6ce111fd.js @@ -1 +1 @@ -import{o as e,c as o,a as t}from"./index-4040ca75.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M8 18H4q-.425 0-.713-.288T3 17q0-.425.288-.713T4 16h4q.425 0 .713.288T9 17q0 .425-.288.713T8 18ZM20 8H4q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h16q.425 0 .713.288T21 7q0 .425-.288.713T20 8Zm-6 5H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h10q.425 0 .713.288T15 12q0 .425-.288.713T14 13Z"},null,-1),c=[s];function r(a,_){return e(),o("svg",n,c)}const T={name:"material-symbols-sort-rounded",render:r};export{T as _}; +import{o as e,c as o,a as t}from"./index-40f25da6.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M8 18H4q-.425 0-.713-.288T3 17q0-.425.288-.713T4 16h4q.425 0 .713.288T9 17q0 .425-.288.713T8 18ZM20 8H4q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h16q.425 0 .713.288T21 7q0 .425-.288.713T20 8Zm-6 5H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h10q.425 0 .713.288T15 12q0 .425-.288.713T14 13Z"},null,-1),c=[s];function r(a,_){return e(),o("svg",n,c)}const T={name:"material-symbols-sort-rounded",render:r};export{T as _}; diff --git a/app/src/main/resources/web/assets/splitpanes.es-20249936.js b/app/src/main/resources/web/assets/splitpanes.es-a34c2504.js similarity index 99% rename from app/src/main/resources/web/assets/splitpanes.es-20249936.js rename to app/src/main/resources/web/assets/splitpanes.es-a34c2504.js index 38f3336c..d41dd9da 100644 --- a/app/src/main/resources/web/assets/splitpanes.es-20249936.js +++ b/app/src/main/resources/web/assets/splitpanes.es-a34c2504.js @@ -1 +1 @@ -import{bs as m,o as u,c,bH as z,bI as x}from"./index-4040ca75.js";const M={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,i)=>(e[i.id]=i)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,i){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=i},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,i){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===i?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,i),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=i,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[i])},onSplitterDblClick(e,i){let n=0;this.panes=this.panes.map((t,s)=>(t.size=s===i?t.max:t.min,s!==i&&(n+=t.min),t)),this.panes[i].size-=n,this.$emit("pane-maximize",this.panes[i]),this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},onPaneClick(e,i){this.$emit("pane-click",this.indexedPanes[i])},getCurrentMouseDrag(e){const i=this.container.getBoundingClientRect(),{clientX:n,clientY:t}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-i.left,y:t-i.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const i=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=i-e),e*100/i},calculatePanesSize(e){const i=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(i),nextPanesSize:this.sumNextPanesSize(i),prevReachedMinPanes:0,nextReachedMinPanes:0};const t=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),s),t);let o=[i,i+1],h=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const p=h.max<100&&a>=h.max+n.prevPanesSize,d=r.max<100&&a<=100-(r.max+this.sumNextPanesSize(i+1));if(p||d){p?(h.size=h.max,r.size=Math.max(100-h.max-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-r.max-n.prevPanesSize-this.sumNextPanesSize(i+1),0),r.size=r.max);return}if(this.pushOtherPanes){const l=this.doPushOtherPanes(n,a);if(!l)return;({sums:n,panesToResize:o}=l),h=this.panes[o[0]]||null,r=this.panes[o[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),r!==null&&(r.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,i){const n=this.touch.activeSplitter,t=[n,n+1];return i{a>t[0]&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(t[0]),t[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,a)=>{a>0&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[t[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):i>100-e.nextPanesSize-this.panes[t[1]].min&&(t[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,t[1]>n+1&&this.panes.forEach((s,a)=>{a>n&&a{a=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[t[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:t}},sumPrevPanesSize(e){return this.panes.reduce((i,n,t)=>i+(ti+(t>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(i=>i.indexi.min)||{}},findNextExpandedPane(e){return this.panes.find(i=>i.index>e+1&&i.size>i.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const i=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!i&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,i,n=!1){const t=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=a=>this.onMouseDown(a,t),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=a=>this.onMouseDown(a,t)),s.onclick=a=>this.onSplitterClick(a,t+1)),this.dblClickSplitter&&(s.ondblclick=a=>this.onSplitterDblClick(a,t+1)),i.parentNode.insertBefore(s,i)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let i=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!i&&this.firstSplitter?this.addSplitter(i,n,!0):i&&this.addSplitter(i,n),i++)})},requestUpdate({target:e,...i}){const n=this.indexedPanes[e._.uid];Object.entries(i).forEach(([t,s])=>n[t]=s)},onPaneAdd(e){let i=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&i++,s===e.$el));const n=parseFloat(e.minSize),t=parseFloat(e.maxSize);this.panes.splice(i,0,{id:e._.uid,index:i,min:isNaN(n)?0:n,max:isNaN(t)?100:t,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,a)=>s.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[i]}),this.$emit("pane-add",{index:i,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const i=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(i,1)[0];this.panes.forEach((t,s)=>t.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:i}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(i=>i.givenSize!==null||i.min||i.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},equalize(){const e=100/this.panesCount;let i=0;const n=[],t=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),i-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&t.push(s.id)}),i>.1&&this.readjustSizes(i,n,t)},initialPanesSizing(){let e=100;const i=[],n=[];let t=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&t++,a.size>=a.max&&i.push(a.id),a.size<=a.min&&n.push(a.id)});let s=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-t),a.max),a.min)),s-=a.size}),s>.1&&this.readjustSizes(e,i,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:i}={}){let n=100/this.panesCount,t=0;const s=[],a=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(t)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),t>.1&&this.readjustSizes(t,s,a))},readjustSizes(e,i,n){let t;e>0?t=e/(this.panesCount-i.length):t=e/(this.panesCount-n.length),this.panes.forEach((s,a)=>{if(e>0&&!i.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i,n)=>{i.ondblclick=e?t=>this.onSplitterDblClick(t,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return m("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},P=(e,i)=>{const n=e.__vccOpts||e;for(const[t,s]of i)n[t]=s;return n},v={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function S(e,i,n,t,s,a){return u(),c("div",{class:"splitpanes__pane",onClick:i[0]||(i[0]=o=>a.onPaneClick(o,e._.uid)),style:x(e.style)},[z(e.$slots,"default")],4)}const g=P(v,[["render",S]]);export{M,g}; +import{bs as m,o as u,c,bH as z,bI as x}from"./index-40f25da6.js";const M={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,i)=>(e[i.id]=i)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,i){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=i},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,i){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===i?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,i),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=i,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[i])},onSplitterDblClick(e,i){let n=0;this.panes=this.panes.map((t,s)=>(t.size=s===i?t.max:t.min,s!==i&&(n+=t.min),t)),this.panes[i].size-=n,this.$emit("pane-maximize",this.panes[i]),this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},onPaneClick(e,i){this.$emit("pane-click",this.indexedPanes[i])},getCurrentMouseDrag(e){const i=this.container.getBoundingClientRect(),{clientX:n,clientY:t}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-i.left,y:t-i.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const i=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=i-e),e*100/i},calculatePanesSize(e){const i=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(i),nextPanesSize:this.sumNextPanesSize(i),prevReachedMinPanes:0,nextReachedMinPanes:0};const t=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),s),t);let o=[i,i+1],h=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const p=h.max<100&&a>=h.max+n.prevPanesSize,d=r.max<100&&a<=100-(r.max+this.sumNextPanesSize(i+1));if(p||d){p?(h.size=h.max,r.size=Math.max(100-h.max-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-r.max-n.prevPanesSize-this.sumNextPanesSize(i+1),0),r.size=r.max);return}if(this.pushOtherPanes){const l=this.doPushOtherPanes(n,a);if(!l)return;({sums:n,panesToResize:o}=l),h=this.panes[o[0]]||null,r=this.panes[o[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),r!==null&&(r.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,i){const n=this.touch.activeSplitter,t=[n,n+1];return i{a>t[0]&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(t[0]),t[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,a)=>{a>0&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[t[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):i>100-e.nextPanesSize-this.panes[t[1]].min&&(t[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,t[1]>n+1&&this.panes.forEach((s,a)=>{a>n&&a{a=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[t[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:t}},sumPrevPanesSize(e){return this.panes.reduce((i,n,t)=>i+(ti+(t>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(i=>i.indexi.min)||{}},findNextExpandedPane(e){return this.panes.find(i=>i.index>e+1&&i.size>i.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const i=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!i&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,i,n=!1){const t=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=a=>this.onMouseDown(a,t),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=a=>this.onMouseDown(a,t)),s.onclick=a=>this.onSplitterClick(a,t+1)),this.dblClickSplitter&&(s.ondblclick=a=>this.onSplitterDblClick(a,t+1)),i.parentNode.insertBefore(s,i)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let i=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!i&&this.firstSplitter?this.addSplitter(i,n,!0):i&&this.addSplitter(i,n),i++)})},requestUpdate({target:e,...i}){const n=this.indexedPanes[e._.uid];Object.entries(i).forEach(([t,s])=>n[t]=s)},onPaneAdd(e){let i=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&i++,s===e.$el));const n=parseFloat(e.minSize),t=parseFloat(e.maxSize);this.panes.splice(i,0,{id:e._.uid,index:i,min:isNaN(n)?0:n,max:isNaN(t)?100:t,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,a)=>s.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[i]}),this.$emit("pane-add",{index:i,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const i=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(i,1)[0];this.panes.forEach((t,s)=>t.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:i}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(i=>i.givenSize!==null||i.min||i.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},equalize(){const e=100/this.panesCount;let i=0;const n=[],t=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),i-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&t.push(s.id)}),i>.1&&this.readjustSizes(i,n,t)},initialPanesSizing(){let e=100;const i=[],n=[];let t=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&t++,a.size>=a.max&&i.push(a.id),a.size<=a.min&&n.push(a.id)});let s=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-t),a.max),a.min)),s-=a.size}),s>.1&&this.readjustSizes(e,i,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:i}={}){let n=100/this.panesCount,t=0;const s=[],a=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(t)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),t>.1&&this.readjustSizes(t,s,a))},readjustSizes(e,i,n){let t;e>0?t=e/(this.panesCount-i.length):t=e/(this.panesCount-n.length),this.panes.forEach((s,a)=>{if(e>0&&!i.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i,n)=>{i.ondblclick=e?t=>this.onSplitterDblClick(t,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return m("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},P=(e,i)=>{const n=e.__vccOpts||e;for(const[t,s]of i)n[t]=s;return n},v={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function S(e,i,n,t,s,a){return u(),c("div",{class:"splitpanes__pane",onClick:i[0]||(i[0]=o=>a.onPaneClick(o,e._.uid)),style:x(e.style)},[z(e.$slots,"default")],4)}const g=P(v,[["render",S]]);export{M,g}; diff --git a/app/src/main/resources/web/assets/tags-5a94e769.js b/app/src/main/resources/web/assets/tags-15dfcb58.js similarity index 96% rename from app/src/main/resources/web/assets/tags-5a94e769.js rename to app/src/main/resources/web/assets/tags-15dfcb58.js index 9dfbf4a6..525debf5 100644 --- a/app/src/main/resources/web/assets/tags-5a94e769.js +++ b/app/src/main/resources/web/assets/tags-15dfcb58.js @@ -1 +1 @@ -import{o as y,c as T,a as s,d as w,r as S,bT as B,i as M,bU as D,bV as Q,t as h,p as A,F as Z,J as x,j as l,m as E,aW as G,ao as k,P as L,a0 as H,a4 as j,_ as N,u as C,x as F,a2 as J,g as P,ag as R,bC as U,aT as W}from"./index-4040ca75.js";import{u as z,a as K}from"./vee-validate.esm-a8549f5b.js";const O={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=s("path",{fill:"currentColor",d:"M18.45 15.6L17 14.15L18.55 12L15 7H9.85l-2-2H15q.5 0 .925.213t.725.637l3.525 5q.35.525.35 1.15t-.35 1.15L18.45 15.6ZM5 19q-.825 0-1.413-.588T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l17 17q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19H5Zm4.575-6.6Zm3.85-1.825ZM14.2 17L5 7.8V17h9.2Z"},null,-1),Y=[X];function ee(_,a){return y(),T("svg",O,Y)}const te={name:"material-symbols-label-off-outline-rounded",render:ee},ae={slot:"headline"},se={slot:"content"},oe=["label","selected"],ne=["label","selected"],le=["label","selected","onClick"],de={slot:"actions"},ie=["disabled"],ue=w({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(_){const a=_,{handleSubmit:d}=z(),i=S("add_to_tags");function g(e){const{button:r}=e.detail,q=r.dataset.value;i.value=q}const{value:o,errorMessage:n}=K("selectedTags",B().test("required",()=>"valid.required",e=>e.length),{initialValue:[]}),{mutate:m,loading:u,onDone:p}=M({document:D,appApi:!0}),{mutate:f,loading:t,onDone:v}=M({document:Q,appApi:!0}),b=()=>{L.emit("items_tags_updated",{type:a.type}),L.emit("refetch_tags",a.type),k()};v(b),p(b);function I(e){o.value.includes(e)?H(o.value,r=>r.id===e.id):o.value.push(e)}const $=d(()=>{i.value==="add_to_tags"?f({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query}):m({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query})});return(e,r)=>{const q=j,V=te;return y(),T("md-dialog",null,[s("div",ae,h(e.$t("tags")),1),s("div",se,[s("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:g},[s("md-outlined-segmented-button",{label:e.$t("add_to_tags"),selected:i.value==="add_to_tags"},[A(q,{slot:"icon"})],8,oe),s("md-outlined-segmented-button",{label:e.$t("remove_from_tags"),selected:i.value==="remove_from_tags"},[A(V,{slot:"icon"})],8,ne)],32),s("md-chip-set",null,[(y(!0),T(Z,null,x(_.tags,c=>(y(),T("md-filter-chip",{key:c.id,label:c.name,selected:l(o).includes(c),onClick:ce=>I(c)},null,8,le))),128))]),E(s("div",{class:"invalid-feedback"},h(l(n)?e.$t(l(n)):""),513),[[G,l(n)]])]),s("div",de,[s("md-outlined-button",{value:"cancel",onClick:r[0]||(r[0]=(...c)=>l(k)&&l(k)(...c))},h(e.$t("cancel")),1),s("md-filled-button",{value:"save",disabled:l(t)||l(u),onClick:r[1]||(r[1]=(...c)=>l($)&&l($)(...c)),autofocus:""},h(e.$t("save")),9,ie)])])}}});const re=N(ue,[["__scopeId","data-v-ce8a2639"]]),ge=(_,a,d)=>{const{t:i}=C();return{addToTags:(g,o)=>{let n=o;if(!g){const m=a.value.filter(u=>u.checked);if(m.length===0){F(i("select_first"),"error");return}n=`ids:${m.map(u=>u.id).join(",")}`}J(re,{type:_,tags:d.value,query:n})}}},pe=(_,a,d,i)=>{const g=S([]),{t:o}=C();return P({handle:async(n,m)=>{if(m)F(o(m),"error");else if(n){g.value=n.tags;const u=R(a.value);d.tags=[];const p=[];u.forEach(t=>{if(t.name==="text")d.text=t.value;else if(t.name==="tag"){const v=n.tags.find(b=>U(b.name)===t.value);v?(d.tags.push(v),p.push(v.id)):p.push("invalid")}else t.name==="bucket_id"&&(d.bucketId=t.value)});const f=[...u].filter(t=>t.name!=="tag");p.forEach(t=>{f.push({name:"tag_id",op:"",value:t})}),i(f)}},document:W,variables:{type:_},appApi:!0}),{tags:g}};export{ge as a,pe as u}; +import{o as y,c as T,a as s,d as w,r as S,bT as B,i as M,bU as D,bV as Q,t as h,p as A,F as Z,J as x,j as l,m as E,aW as G,ao as k,P as L,a0 as H,a4 as j,_ as N,u as C,x as F,a2 as J,g as P,ag as R,bC as U,aT as W}from"./index-40f25da6.js";import{u as z,a as K}from"./vee-validate.esm-7088b7c0.js";const O={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=s("path",{fill:"currentColor",d:"M18.45 15.6L17 14.15L18.55 12L15 7H9.85l-2-2H15q.5 0 .925.213t.725.637l3.525 5q.35.525.35 1.15t-.35 1.15L18.45 15.6ZM5 19q-.825 0-1.413-.588T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l17 17q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19H5Zm4.575-6.6Zm3.85-1.825ZM14.2 17L5 7.8V17h9.2Z"},null,-1),Y=[X];function ee(_,a){return y(),T("svg",O,Y)}const te={name:"material-symbols-label-off-outline-rounded",render:ee},ae={slot:"headline"},se={slot:"content"},oe=["label","selected"],ne=["label","selected"],le=["label","selected","onClick"],de={slot:"actions"},ie=["disabled"],ue=w({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(_){const a=_,{handleSubmit:d}=z(),i=S("add_to_tags");function g(e){const{button:r}=e.detail,q=r.dataset.value;i.value=q}const{value:o,errorMessage:n}=K("selectedTags",B().test("required",()=>"valid.required",e=>e.length),{initialValue:[]}),{mutate:m,loading:u,onDone:p}=M({document:D,appApi:!0}),{mutate:f,loading:t,onDone:v}=M({document:Q,appApi:!0}),b=()=>{L.emit("items_tags_updated",{type:a.type}),L.emit("refetch_tags",a.type),k()};v(b),p(b);function I(e){o.value.includes(e)?H(o.value,r=>r.id===e.id):o.value.push(e)}const $=d(()=>{i.value==="add_to_tags"?f({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query}):m({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query})});return(e,r)=>{const q=j,V=te;return y(),T("md-dialog",null,[s("div",ae,h(e.$t("tags")),1),s("div",se,[s("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:g},[s("md-outlined-segmented-button",{label:e.$t("add_to_tags"),selected:i.value==="add_to_tags"},[A(q,{slot:"icon"})],8,oe),s("md-outlined-segmented-button",{label:e.$t("remove_from_tags"),selected:i.value==="remove_from_tags"},[A(V,{slot:"icon"})],8,ne)],32),s("md-chip-set",null,[(y(!0),T(Z,null,x(_.tags,c=>(y(),T("md-filter-chip",{key:c.id,label:c.name,selected:l(o).includes(c),onClick:ce=>I(c)},null,8,le))),128))]),E(s("div",{class:"invalid-feedback"},h(l(n)?e.$t(l(n)):""),513),[[G,l(n)]])]),s("div",de,[s("md-outlined-button",{value:"cancel",onClick:r[0]||(r[0]=(...c)=>l(k)&&l(k)(...c))},h(e.$t("cancel")),1),s("md-filled-button",{value:"save",disabled:l(t)||l(u),onClick:r[1]||(r[1]=(...c)=>l($)&&l($)(...c)),autofocus:""},h(e.$t("save")),9,ie)])])}}});const re=N(ue,[["__scopeId","data-v-ce8a2639"]]),ge=(_,a,d)=>{const{t:i}=C();return{addToTags:(g,o)=>{let n=o;if(!g){const m=a.value.filter(u=>u.checked);if(m.length===0){F(i("select_first"),"error");return}n=`ids:${m.map(u=>u.id).join(",")}`}J(re,{type:_,tags:d.value,query:n})}}},pe=(_,a,d,i)=>{const g=S([]),{t:o}=C();return P({handle:async(n,m)=>{if(m)F(o(m),"error");else if(n){g.value=n.tags;const u=R(a.value);d.tags=[];const p=[];u.forEach(t=>{if(t.name==="text")d.text=t.value;else if(t.name==="tag"){const v=n.tags.find(b=>U(b.name)===t.value);v?(d.tags.push(v),p.push(v.id)):p.push("invalid")}else t.name==="bucket_id"&&(d.bucketId=t.value)});const f=[...u].filter(t=>t.name!=="tag");p.forEach(t=>{f.push({name:"tag_id",op:"",value:t})}),i(f)}},document:W,variables:{type:_},appApi:!0}),{tags:g}};export{ge as a,pe as u}; diff --git a/app/src/main/resources/web/assets/tsMode-9d1f3fbb.js b/app/src/main/resources/web/assets/tsMode-da7e0c92.js similarity index 99% rename from app/src/main/resources/web/assets/tsMode-9d1f3fbb.js rename to app/src/main/resources/web/assets/tsMode-da7e0c92.js index 5ecdb4c0..94c24881 100644 --- a/app/src/main/resources/web/assets/tsMode-9d1f3fbb.js +++ b/app/src/main/resources/web/assets/tsMode-da7e0c92.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var L=Object.defineProperty,H=Object.getOwnPropertyDescriptor,V=Object.getOwnPropertyNames,W=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of V(t))!W.call(e,s)&&s!==r&&L(e,s,{get:()=>t[s],enumerable:!(l=H(t,s))||l.enumerable});return e},B=(e,t,r)=>(T(e,t,"default"),r&&T(r,t,"default")),h=(e,t,r)=>(j(e,typeof t!="symbol"?t+"":t,r),r),i={};B(i,E);var U=class{constructor(e,t){_(this,"_configChangeListener");_(this,"_updateExtraLibsToken");_(this,"_extraLibsChangeListener");_(this,"_worker");_(this,"_client");this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=i.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(i.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},o={};o["lib.d.ts"]=!0;o["lib.dom.d.ts"]=!0;o["lib.dom.iterable.d.ts"]=!0;o["lib.es2015.collection.d.ts"]=!0;o["lib.es2015.core.d.ts"]=!0;o["lib.es2015.d.ts"]=!0;o["lib.es2015.generator.d.ts"]=!0;o["lib.es2015.iterable.d.ts"]=!0;o["lib.es2015.promise.d.ts"]=!0;o["lib.es2015.proxy.d.ts"]=!0;o["lib.es2015.reflect.d.ts"]=!0;o["lib.es2015.symbol.d.ts"]=!0;o["lib.es2015.symbol.wellknown.d.ts"]=!0;o["lib.es2016.array.include.d.ts"]=!0;o["lib.es2016.d.ts"]=!0;o["lib.es2016.full.d.ts"]=!0;o["lib.es2017.d.ts"]=!0;o["lib.es2017.full.d.ts"]=!0;o["lib.es2017.intl.d.ts"]=!0;o["lib.es2017.object.d.ts"]=!0;o["lib.es2017.sharedmemory.d.ts"]=!0;o["lib.es2017.string.d.ts"]=!0;o["lib.es2017.typedarrays.d.ts"]=!0;o["lib.es2018.asyncgenerator.d.ts"]=!0;o["lib.es2018.asynciterable.d.ts"]=!0;o["lib.es2018.d.ts"]=!0;o["lib.es2018.full.d.ts"]=!0;o["lib.es2018.intl.d.ts"]=!0;o["lib.es2018.promise.d.ts"]=!0;o["lib.es2018.regexp.d.ts"]=!0;o["lib.es2019.array.d.ts"]=!0;o["lib.es2019.d.ts"]=!0;o["lib.es2019.full.d.ts"]=!0;o["lib.es2019.object.d.ts"]=!0;o["lib.es2019.string.d.ts"]=!0;o["lib.es2019.symbol.d.ts"]=!0;o["lib.es2020.bigint.d.ts"]=!0;o["lib.es2020.d.ts"]=!0;o["lib.es2020.full.d.ts"]=!0;o["lib.es2020.intl.d.ts"]=!0;o["lib.es2020.promise.d.ts"]=!0;o["lib.es2020.sharedmemory.d.ts"]=!0;o["lib.es2020.string.d.ts"]=!0;o["lib.es2020.symbol.wellknown.d.ts"]=!0;o["lib.es2021.d.ts"]=!0;o["lib.es2021.full.d.ts"]=!0;o["lib.es2021.intl.d.ts"]=!0;o["lib.es2021.promise.d.ts"]=!0;o["lib.es2021.string.d.ts"]=!0;o["lib.es2021.weakref.d.ts"]=!0;o["lib.es5.d.ts"]=!0;o["lib.es6.d.ts"]=!0;o["lib.esnext.d.ts"]=!0;o["lib.esnext.full.d.ts"]=!0;o["lib.esnext.intl.d.ts"]=!0;o["lib.esnext.promise.d.ts"]=!0;o["lib.esnext.string.d.ts"]=!0;o["lib.esnext.weakref.d.ts"]=!0;o["lib.scripthost.d.ts"]=!0;o["lib.webworker.d.ts"]=!0;o["lib.webworker.importscripts.d.ts"]=!0;o["lib.webworker.iterable.d.ts"]=!0;function F(e,t,r=0){if(typeof e=="string")return e;if(e===void 0)return"";let l="";if(r){l+=t;for(let s=0;st.text).join(""):""}var w=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let r=e.getPositionAt(t.start),l=e.getPositionAt(t.start+t.length),{lineNumber:s,column:g}=r,{lineNumber:u,column:a}=l;return{startLineNumber:s,startColumn:g,endLineNumber:u,endColumn:a}}},$=class{constructor(e){_(this,"_libFiles");_(this,"_hasFetchedLibFiles");_(this,"_fetchLibFilesPromise");this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!o[e.path.slice(1)]:!1}getOrCreateModel(e){const t=i.Uri.parse(e),r=i.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return i.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const l=R.getExtraLibs()[e];return l?i.editor.createModel(l.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},z=class extends w{constructor(t,r,l,s){super(s);_(this,"_disposables",[]);_(this,"_listener",Object.create(null));this._libFiles=t,this._defaults=r,this._selector=l;const g=n=>{if(n.getLanguageId()!==l)return;const p=()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y?n.isAttachedToEditor()&&this._doValidate(n):this._doValidate(n)};let d;const f=n.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(p,500)}),b=n.onDidChangeAttached(()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y&&(n.isAttachedToEditor()?p():i.editor.setModelMarkers(n,this._selector,[]))});this._listener[n.uri.toString()]={dispose(){f.dispose(),b.dispose(),clearTimeout(d)}},p()},u=n=>{i.editor.setModelMarkers(n,this._selector,[]);const p=n.uri.toString();this._listener[p]&&(this._listener[p].dispose(),delete this._listener[p])};this._disposables.push(i.editor.onDidCreateModel(n=>g(n))),this._disposables.push(i.editor.onWillDisposeModel(u)),this._disposables.push(i.editor.onDidChangeModelLanguage(n=>{u(n.model),g(n.model)})),this._disposables.push({dispose(){for(const n of i.editor.getModels())u(n)}});const a=()=>{for(const n of i.editor.getModels())u(n),g(n)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),i.editor.getModels().forEach(n=>g(n))}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables=[]}async _doValidate(t){const r=await this._worker(t.uri);if(t.isDisposed())return;const l=[],{noSyntaxValidation:s,noSemanticValidation:g,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();s||l.push(r.getSyntacticDiagnostics(t.uri.toString())),g||l.push(r.getSemanticDiagnostics(t.uri.toString())),u||l.push(r.getSuggestionDiagnostics(t.uri.toString()));const a=await Promise.all(l);if(!a||t.isDisposed())return;const n=a.reduce((d,f)=>f.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),p=n.map(d=>d.relatedInformation||[]).reduce((d,f)=>f.concat(d),[]).map(d=>d.file?i.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(p),!t.isDisposed()&&i.editor.setModelMarkers(t,this._selector,n.map(d=>this._convertDiagnostics(t,d)))}_convertDiagnostics(t,r){const l=r.start||0,s=r.length||1,{lineNumber:g,column:u}=t.getPositionAt(l),{lineNumber:a,column:n}=t.getPositionAt(l+s),p=[];return r.reportsUnnecessary&&p.push(i.MarkerTag.Unnecessary),r.reportsDeprecated&&p.push(i.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(r.category),startLineNumber:g,startColumn:u,endLineNumber:a,endColumn:n,message:F(r.messageText,` +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var L=Object.defineProperty,H=Object.getOwnPropertyDescriptor,V=Object.getOwnPropertyNames,W=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of V(t))!W.call(e,s)&&s!==r&&L(e,s,{get:()=>t[s],enumerable:!(l=H(t,s))||l.enumerable});return e},B=(e,t,r)=>(T(e,t,"default"),r&&T(r,t,"default")),h=(e,t,r)=>(j(e,typeof t!="symbol"?t+"":t,r),r),i={};B(i,E);var U=class{constructor(e,t){_(this,"_configChangeListener");_(this,"_updateExtraLibsToken");_(this,"_extraLibsChangeListener");_(this,"_worker");_(this,"_client");this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=i.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(i.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},o={};o["lib.d.ts"]=!0;o["lib.dom.d.ts"]=!0;o["lib.dom.iterable.d.ts"]=!0;o["lib.es2015.collection.d.ts"]=!0;o["lib.es2015.core.d.ts"]=!0;o["lib.es2015.d.ts"]=!0;o["lib.es2015.generator.d.ts"]=!0;o["lib.es2015.iterable.d.ts"]=!0;o["lib.es2015.promise.d.ts"]=!0;o["lib.es2015.proxy.d.ts"]=!0;o["lib.es2015.reflect.d.ts"]=!0;o["lib.es2015.symbol.d.ts"]=!0;o["lib.es2015.symbol.wellknown.d.ts"]=!0;o["lib.es2016.array.include.d.ts"]=!0;o["lib.es2016.d.ts"]=!0;o["lib.es2016.full.d.ts"]=!0;o["lib.es2017.d.ts"]=!0;o["lib.es2017.full.d.ts"]=!0;o["lib.es2017.intl.d.ts"]=!0;o["lib.es2017.object.d.ts"]=!0;o["lib.es2017.sharedmemory.d.ts"]=!0;o["lib.es2017.string.d.ts"]=!0;o["lib.es2017.typedarrays.d.ts"]=!0;o["lib.es2018.asyncgenerator.d.ts"]=!0;o["lib.es2018.asynciterable.d.ts"]=!0;o["lib.es2018.d.ts"]=!0;o["lib.es2018.full.d.ts"]=!0;o["lib.es2018.intl.d.ts"]=!0;o["lib.es2018.promise.d.ts"]=!0;o["lib.es2018.regexp.d.ts"]=!0;o["lib.es2019.array.d.ts"]=!0;o["lib.es2019.d.ts"]=!0;o["lib.es2019.full.d.ts"]=!0;o["lib.es2019.object.d.ts"]=!0;o["lib.es2019.string.d.ts"]=!0;o["lib.es2019.symbol.d.ts"]=!0;o["lib.es2020.bigint.d.ts"]=!0;o["lib.es2020.d.ts"]=!0;o["lib.es2020.full.d.ts"]=!0;o["lib.es2020.intl.d.ts"]=!0;o["lib.es2020.promise.d.ts"]=!0;o["lib.es2020.sharedmemory.d.ts"]=!0;o["lib.es2020.string.d.ts"]=!0;o["lib.es2020.symbol.wellknown.d.ts"]=!0;o["lib.es2021.d.ts"]=!0;o["lib.es2021.full.d.ts"]=!0;o["lib.es2021.intl.d.ts"]=!0;o["lib.es2021.promise.d.ts"]=!0;o["lib.es2021.string.d.ts"]=!0;o["lib.es2021.weakref.d.ts"]=!0;o["lib.es5.d.ts"]=!0;o["lib.es6.d.ts"]=!0;o["lib.esnext.d.ts"]=!0;o["lib.esnext.full.d.ts"]=!0;o["lib.esnext.intl.d.ts"]=!0;o["lib.esnext.promise.d.ts"]=!0;o["lib.esnext.string.d.ts"]=!0;o["lib.esnext.weakref.d.ts"]=!0;o["lib.scripthost.d.ts"]=!0;o["lib.webworker.d.ts"]=!0;o["lib.webworker.importscripts.d.ts"]=!0;o["lib.webworker.iterable.d.ts"]=!0;function F(e,t,r=0){if(typeof e=="string")return e;if(e===void 0)return"";let l="";if(r){l+=t;for(let s=0;st.text).join(""):""}var w=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let r=e.getPositionAt(t.start),l=e.getPositionAt(t.start+t.length),{lineNumber:s,column:g}=r,{lineNumber:u,column:a}=l;return{startLineNumber:s,startColumn:g,endLineNumber:u,endColumn:a}}},$=class{constructor(e){_(this,"_libFiles");_(this,"_hasFetchedLibFiles");_(this,"_fetchLibFilesPromise");this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!o[e.path.slice(1)]:!1}getOrCreateModel(e){const t=i.Uri.parse(e),r=i.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return i.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const l=R.getExtraLibs()[e];return l?i.editor.createModel(l.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},z=class extends w{constructor(t,r,l,s){super(s);_(this,"_disposables",[]);_(this,"_listener",Object.create(null));this._libFiles=t,this._defaults=r,this._selector=l;const g=n=>{if(n.getLanguageId()!==l)return;const p=()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y?n.isAttachedToEditor()&&this._doValidate(n):this._doValidate(n)};let d;const f=n.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(p,500)}),b=n.onDidChangeAttached(()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y&&(n.isAttachedToEditor()?p():i.editor.setModelMarkers(n,this._selector,[]))});this._listener[n.uri.toString()]={dispose(){f.dispose(),b.dispose(),clearTimeout(d)}},p()},u=n=>{i.editor.setModelMarkers(n,this._selector,[]);const p=n.uri.toString();this._listener[p]&&(this._listener[p].dispose(),delete this._listener[p])};this._disposables.push(i.editor.onDidCreateModel(n=>g(n))),this._disposables.push(i.editor.onWillDisposeModel(u)),this._disposables.push(i.editor.onDidChangeModelLanguage(n=>{u(n.model),g(n.model)})),this._disposables.push({dispose(){for(const n of i.editor.getModels())u(n)}});const a=()=>{for(const n of i.editor.getModels())u(n),g(n)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),i.editor.getModels().forEach(n=>g(n))}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables=[]}async _doValidate(t){const r=await this._worker(t.uri);if(t.isDisposed())return;const l=[],{noSyntaxValidation:s,noSemanticValidation:g,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();s||l.push(r.getSyntacticDiagnostics(t.uri.toString())),g||l.push(r.getSemanticDiagnostics(t.uri.toString())),u||l.push(r.getSuggestionDiagnostics(t.uri.toString()));const a=await Promise.all(l);if(!a||t.isDisposed())return;const n=a.reduce((d,f)=>f.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),p=n.map(d=>d.relatedInformation||[]).reduce((d,f)=>f.concat(d),[]).map(d=>d.file?i.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(p),!t.isDisposed()&&i.editor.setModelMarkers(t,this._selector,n.map(d=>this._convertDiagnostics(t,d)))}_convertDiagnostics(t,r){const l=r.start||0,s=r.length||1,{lineNumber:g,column:u}=t.getPositionAt(l),{lineNumber:a,column:n}=t.getPositionAt(l+s),p=[];return r.reportsUnnecessary&&p.push(i.MarkerTag.Unnecessary),r.reportsDeprecated&&p.push(i.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(r.category),startLineNumber:g,startColumn:u,endLineNumber:a,endColumn:n,message:F(r.messageText,` `),code:r.code.toString(),tags:p,relatedInformation:this._convertRelatedInformation(t,r.relatedInformation)}}_convertRelatedInformation(t,r){if(!r)return[];const l=[];return r.forEach(s=>{let g=t;if(s.file&&(g=this._libFiles.getOrCreateModel(s.file.fileName)),!g)return;const u=s.start||0,a=s.length||1,{lineNumber:n,column:p}=g.getPositionAt(u),{lineNumber:d,column:f}=g.getPositionAt(u+a);l.push({resource:g.uri,startLineNumber:n,startColumn:p,endLineNumber:d,endColumn:f,message:F(s.messageText,` `)})}),l}_tsDiagnosticCategoryToMarkerSeverity(t){switch(t){case 1:return i.MarkerSeverity.Error;case 3:return i.MarkerSeverity.Info;case 0:return i.MarkerSeverity.Warning;case 2:return i.MarkerSeverity.Hint}return i.MarkerSeverity.Info}},C=class extends w{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,r,l){const s=e.getWordUntilPosition(t),g=new i.Range(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn),u=e.uri,a=e.getOffsetAt(t),n=await this._worker(u);if(e.isDisposed())return;const p=await n.getCompletionsAtPosition(u.toString(),a);return!p||e.isDisposed()?void 0:{suggestions:p.entries.map(f=>{let b=g;if(f.replacementSpan){const x=e.getPositionAt(f.replacementSpan.start),v=e.getPositionAt(f.replacementSpan.start+f.replacementSpan.length);b=new i.Range(x.lineNumber,x.column,v.lineNumber,v.column)}const y=[];return f.kindModifiers!==void 0&&f.kindModifiers.indexOf("deprecated")!==-1&&y.push(i.languages.CompletionItemTag.Deprecated),{uri:u,position:t,offset:a,range:b,label:f.name,insertText:f.name,sortText:f.sortText,kind:C.convertKind(f.kind),tags:y}})}}async resolveCompletionItem(e,t){const r=e,l=r.uri,s=r.position,g=r.offset,a=await(await this._worker(l)).getCompletionEntryDetails(l.toString(),g,r.label);return a?{uri:l,position:s,label:a.name,kind:C.convertKind(a.kind),detail:k(a.displayParts),documentation:{value:C.createDocumentationString(a)}}:r}static convertKind(e){switch(e){case c.primitiveType:case c.keyword:return i.languages.CompletionItemKind.Keyword;case c.variable:case c.localVariable:return i.languages.CompletionItemKind.Variable;case c.memberVariable:case c.memberGetAccessor:case c.memberSetAccessor:return i.languages.CompletionItemKind.Field;case c.function:case c.memberFunction:case c.constructSignature:case c.callSignature:case c.indexSignature:return i.languages.CompletionItemKind.Function;case c.enum:return i.languages.CompletionItemKind.Enum;case c.module:return i.languages.CompletionItemKind.Module;case c.class:return i.languages.CompletionItemKind.Class;case c.interface:return i.languages.CompletionItemKind.Interface;case c.warning:return i.languages.CompletionItemKind.File}return i.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=k(e.documentation);if(e.tags)for(const r of e.tags)t+=` diff --git a/app/src/main/resources/web/assets/typescript-37df992a.js b/app/src/main/resources/web/assets/typescript-07248291.js similarity index 98% rename from app/src/main/resources/web/assets/typescript-37df992a.js rename to app/src/main/resources/web/assets/typescript-07248291.js index 3eebc9b9..a82102f2 100644 --- a/app/src/main/resources/web/assets/typescript-37df992a.js +++ b/app/src/main/resources/web/assets/typescript-07248291.js @@ -1 +1 @@ -import{m as a}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(s(t,e,"default"),o&&s(o,e,"default")),r={};d(r,a);var b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{b as conf,u as language}; +import{m as a}from"./MonacoEditor.vuevuetypescriptsetuptruelang-751e2d82.js";import"./index-40f25da6.js";var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(s(t,e,"default"),o&&s(o,e,"default")),r={};d(r,a);var b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{b as conf,u as language}; diff --git a/app/src/main/resources/web/assets/upload-rounded-168dfb03.js b/app/src/main/resources/web/assets/upload-rounded-b3049477.js similarity index 90% rename from app/src/main/resources/web/assets/upload-rounded-168dfb03.js rename to app/src/main/resources/web/assets/upload-rounded-b3049477.js index 4119ea94..e84ac065 100644 --- a/app/src/main/resources/web/assets/upload-rounded-168dfb03.js +++ b/app/src/main/resources/web/assets/upload-rounded-b3049477.js @@ -1 +1 @@ -import{o as e,c as o,a as t}from"./index-4040ca75.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M12 16q-.425 0-.713-.288T11 15V7.85L9.125 9.725q-.3.3-.7.3T7.7 9.7q-.3-.3-.287-.712T7.7 8.3l3.6-3.6q.15-.15.325-.212T12 4.425q.2 0 .375.063t.325.212l3.6 3.6q.3.3.288.713T16.3 9.7q-.3.3-.713.313t-.712-.288L13 7.85V15q0 .425-.288.713T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),c=[s];function a(l,q){return e(),o("svg",n,c)}const _={name:"material-symbols-upload-rounded",render:a};export{_}; +import{o as e,c as o,a as t}from"./index-40f25da6.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M12 16q-.425 0-.713-.288T11 15V7.85L9.125 9.725q-.3.3-.7.3T7.7 9.7q-.3-.3-.287-.712T7.7 8.3l3.6-3.6q.15-.15.325-.212T12 4.425q.2 0 .375.063t.325.212l3.6 3.6q.3.3.288.713T16.3 9.7q-.3.3-.713.313t-.712-.288L13 7.85V15q0 .425-.288.713T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),c=[s];function a(l,q){return e(),o("svg",n,c)}const _={name:"material-symbols-upload-rounded",render:a};export{_}; diff --git a/app/src/main/resources/web/assets/vee-validate.esm-a8549f5b.js b/app/src/main/resources/web/assets/vee-validate.esm-7088b7c0.js similarity index 99% rename from app/src/main/resources/web/assets/vee-validate.esm-a8549f5b.js rename to app/src/main/resources/web/assets/vee-validate.esm-7088b7c0.js index 69855c20..59ebd41b 100644 --- a/app/src/main/resources/web/assets/vee-validate.esm-a8549f5b.js +++ b/app/src/main/resources/web/assets/vee-validate.esm-7088b7c0.js @@ -1 +1 @@ -import{aC as M,O as rn,bJ as ln,n as Ve,j as E,w as Z,bK as En,bL as N,r as K,K as Ee,U as ae,bM as jn,bN as wn,bO as Pn,bP as Fe,bQ as Fn}from"./index-4040ca75.js";function D(e){return typeof e=="function"}function an(e){return e==null}const oe=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Le(e){return Number(e)>=0}function Mn(e){const n=parseFloat(e);return isNaN(n)?e:n}function Nn(e){return typeof e=="object"&&e!==null}function Cn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function In(e){if(!Nn(e)||Cn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function je(e,n){return Object.keys(n).forEach(t=>{if(In(n[t])){e[t]||(e[t]={}),je(e[t],n[t]);return}e[t]=n[t]}),e}function be(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let l=1;lBn(a)&&u in a?a[u]:t,e):t}function ue(e,n,t){if(Me(n)){e[Ke(n)]=t;return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let a=e;for(let u=0;uB(e,t.slice(0,d).join(".")));for(let u=a.length-1;u>=0;u--)if(zn(a[u])){if(u===0){Re(e,t[0]);continue}Re(a[u-1],t[u-1])}}function L(e){return Object.keys(e)}function dn(e,n=void 0){const t=Fe();return(t==null?void 0:t.provides[e])||Pn(e,n)}function Ze(e,n,t){if(Array.isArray(e)){const l=[...e],a=l.findIndex(u=>U(u,n));return a>=0?l.splice(a,1):l.push(n),l}return U(e,n)?t:n}function en(e,n=0){let t=null,l=[];return function(...a){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...a);l.forEach(d=>d(u)),l=[]},n),new Promise(u=>l.push(u))}}function Ln(e,n){return oe(n)&&n.number?Mn(e):e}function ze(e,n){let t;return async function(...a){const u=e(...a);t=u;const d=await u;return u!==t||(t=void 0,n(d,a)),d}}function De(e){return Array.isArray(e)?e:e?[e]:[]}function ge(e,n){const t={};for(const l in e)n.includes(l)||(t[l]=e[l]);return t}function $n(e){let n=null,t=[];return function(...l){const a=ae(()=>{if(n!==a)return;const u=e(...l);t.forEach(d=>d(u)),t=[],n=null});return n=a,new Promise(u=>t.push(u))}}function Ue(e){if(cn(e))return e._value}function cn(e){return"_value"in e}function Kn(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Pe(e){if(!sn(e))return e;const n=e.target;if(un(n.type)&&cn(n))return Ue(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(Dn(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Ue);if(on(n)){const t=Array.from(n.options).find(l=>l.selected);return t?Ue(t):n.value}return Kn(n)}function fn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?oe(e)&&e._$$isNormalized?e:oe(e)?Object.keys(e).reduce((t,l)=>{const a=Wn(e[l]);return e[l]!==!1&&(t[l]=nn(a)),t},n):typeof e!="string"?n:e.split("|").reduce((t,l)=>{const a=Gn(l);return a.name&&(t[a.name]=nn(a.params)),t},n):n}function Wn(e){return e===!0?[]:Array.isArray(e)||oe(e)?e:[e]}function nn(e){const n=t=>typeof t=="string"&&t[0]==="@"?Hn(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,l)=>(t[l]=n(e[l]),t),{})}const Gn=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function Hn(e){const n=t=>B(t,e)||t[e];return n.__locatorRef=e,n}function Yn(e){return Array.isArray(e)?e.filter(Be):L(e).filter(n=>Be(e[n])).map(n=>e[n])}const qn={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let Jn=Object.assign({},qn);const he=()=>Jn;async function vn(e,n,t={}){const l=t==null?void 0:t.bails,a={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:l??!0,formData:(t==null?void 0:t.values)||{}},d=(await Qn(a,e)).errors;return{errors:d,valid:!d.length}}async function Qn(e,n){if(ee(e.rules)||we(e.rules))return Zn(n,e.rules);if(D(e.rules)||Array.isArray(e.rules)){const d={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},h=Array.isArray(e.rules)?e.rules:[e.rules],s=h.length,f=[];for(let p=0;p{const s=h.path||"";return d[s]||(d[s]={errors:[],path:s}),d[s].errors.push(...h.errors),d},{});return{errors:Object.values(u)}}}}}async function Zn(e,n){const l=await(ee(n)?n:hn(n)).parse(e),a=[];for(const u of l.errors)u.errors.length&&a.push(...u.errors);return{errors:a}}async function et(e,n,t){const l=kn(t.name);if(!l)throw new Error(`No such validator '${t.name}' exists.`);const a=nt(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:a})},d=await l(n,a,u);return typeof d=="string"?{error:d}:{error:d?void 0:mn(u)}}function mn(e){const n=he().generateMessage;return n?n(e):"Field is invalid"}function nt(e,n){const t=l=>Be(l)?l(n):l;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((l,a)=>(l[a]=t(e[a]),l),{})}async function tt(e,n){const l=await(ee(e)?e:hn(e)).parse(C(n)),a={},u={};for(const d of l.errors){const h=d.errors,s=(d.path||"").replace(/\["(\d+)"\]/g,(f,p)=>`[${p}]`);a[s]={valid:!h.length,errors:h},h.length&&(u[s]=h[0])}return{valid:!l.errors.length,results:a,errors:u,values:l.value}}async function rt(e,n,t){const a=L(e).map(async f=>{var p,b,S;const V=(p=t==null?void 0:t.names)===null||p===void 0?void 0:p[f],I=await vn(B(n,f),e[f],{name:(V==null?void 0:V.name)||f,label:V==null?void 0:V.label,values:n,bails:(S=(b=t==null?void 0:t.bailsMap)===null||b===void 0?void 0:b[f])!==null&&S!==void 0?S:!0});return Object.assign(Object.assign({},I),{path:f})});let u=!0;const d=await Promise.all(a),h={},s={};for(const f of d)h[f.path]={valid:f.valid,errors:f.errors},f.valid||(u=!1,s[f.path]=f.errors[0]);return{valid:u,results:h,errors:s}}let tn=0;function it(e,n){const{value:t,initialValue:l,setInitialValue:a}=lt(e,n.modelValue,n.form);if(!n.form){let S=function(V){var I;"value"in V&&(t.value=V.value),"errors"in V&&f(V.errors),"touched"in V&&(b.touched=(I=V.touched)!==null&&I!==void 0?I:b.touched),"initialValue"in V&&a(V.initialValue)};const{errors:s,setErrors:f}=ot(),p=tn>=Number.MAX_SAFE_INTEGER?0:++tn,b=ut(t,l,s);return{id:p,path:e,value:t,initialValue:l,meta:b,flags:{pendingUnmount:{[p]:!1},pendingReset:!1},errors:s,setState:S}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate}),d=M(()=>u.errors);function h(s){var f,p,b;"value"in s&&(t.value=s.value),"errors"in s&&((f=n.form)===null||f===void 0||f.setFieldError(E(e),s.errors)),"touched"in s&&((p=n.form)===null||p===void 0||p.setFieldTouched(E(e),(b=s.touched)!==null&&b!==void 0?b:!1)),"initialValue"in s&&a(s.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:d,meta:u,initialValue:l,flags:u.__flags,setState:h}}function lt(e,n,t){const l=K(E(n));function a(){return t?B(t.initialValues.value,E(e),E(l)):E(l)}function u(f){if(!t){l.value=f;return}t.stageInitialValue(E(e),f,!0)}const d=M(a);if(!t)return{value:K(a()),initialValue:d,setInitialValue:u};const h=at(n,t,d,e);return t.stageInitialValue(E(e),h,!0),{value:M({get(){return B(t.values,E(e))},set(f){t.setFieldValue(E(e),f,!1)}}),initialValue:d,setInitialValue:u}}function at(e,n,t,l){return Ve(e)?E(e):e!==void 0?e:B(n.values,E(l),E(t))}function ut(e,n,t){const l=Ee({touched:!1,pending:!1,valid:!0,validated:!!E(t).length,initialValue:M(()=>E(n)),dirty:M(()=>!U(E(e),E(n)))});return Z(t,a=>{l.valid=!a.length},{immediate:!0,flush:"sync"}),l}function ot(){const e=K([]);return{errors:e,setErrors:n=>{e.value=De(n)}}}function yt(e,n,t){return un(t==null?void 0:t.type)?dt(e,n,t):yn(e,n,t)}function yn(e,n,t){const{initialValue:l,validateOnMount:a,bails:u,type:d,checkedValue:h,label:s,validateOnValueUpdate:f,uncheckedValue:p,controlled:b,keepValueOnUnmount:S,syncVModel:V,form:I}=st(t),Q=b?dn($e):void 0,O=I||Q,W=M(()=>be(N(e))),x=M(()=>{if(N(O==null?void 0:O.schema))return;const y=E(n);return we(y)||ee(y)||D(y)||Array.isArray(y)?y:fn(y)}),{id:se,value:de,initialValue:ne,meta:T,setState:ce,errors:Oe,flags:te}=it(W,{modelValue:l,form:O,bails:u,label:s,type:d,validate:x.value?H:void 0}),$=M(()=>Oe.value[0]);V&&ct({value:de,prop:V,handleChange:k,shouldValidate:()=>f&&!te.pendingReset});const re=(v,y=!1)=>{T.touched=!0,y&&X()};async function _e(v){var y,j;return O!=null&&O.validateSchema?(y=(await O.validateSchema(v)).results[N(W)])!==null&&y!==void 0?y:{valid:!0,errors:[]}:x.value?vn(de.value,x.value,{name:N(W),label:N(s),values:(j=O==null?void 0:O.values)!==null&&j!==void 0?j:{},bails:u}):{valid:!0,errors:[]}}const X=ze(async()=>(T.pending=!0,T.validated=!0,_e("validated-only")),v=>{if(!te.pendingUnmount[R.id])return ce({errors:v.errors}),T.pending=!1,T.valid=v.valid,v}),G=ze(async()=>_e("silent"),v=>(T.valid=v.valid,v));function H(v){return(v==null?void 0:v.mode)==="silent"?G():X()}function k(v,y=!0){const j=Pe(v);me(j,y)}rn(()=>{if(a)return X();(!O||!O.validateSchema)&&G()});function Ne(v){T.touched=v}function fe(v){var y;const j=v&&"value"in v?v.value:ne.value;ce({value:C(j),initialValue:C(j),touched:(y=v==null?void 0:v.touched)!==null&&y!==void 0?y:!1,errors:(v==null?void 0:v.errors)||[]}),T.pending=!1,T.validated=!1,G()}const ie=Fe();function me(v,y=!0){de.value=ie&&V?Ln(v,ie.props.modelModifiers):v,(y?X:G)()}function Se(v){ce({errors:Array.isArray(v)?v:[v]})}const We=M({get(){return de.value},set(v){me(v,f)}}),R={id:se,name:W,label:s,value:We,meta:T,errors:Oe,errorMessage:$,type:d,checkedValue:h,uncheckedValue:p,bails:u,keepValueOnUnmount:S,resetField:fe,handleReset:()=>fe(),validate:H,handleChange:k,handleBlur:re,setState:ce,setTouched:Ne,setErrors:Se,setValue:me};if(ln(Rn,R),Ve(n)&&typeof E(n)!="function"&&Z(n,(v,y)=>{U(v,y)||(T.validated?X():G())},{deep:!0}),!O)return R;const Ce=M(()=>{const v=x.value;return!v||D(v)||we(v)||ee(v)||Array.isArray(v)?{}:Object.keys(v).reduce((y,j)=>{const P=Yn(v[j]).map(Y=>Y.__locatorRef).reduce((Y,q)=>{const J=B(O.values,q)||O.values[q];return J!==void 0&&(Y[q]=J),Y},{});return Object.assign(y,P),y},{})});return Z(Ce,(v,y)=>{if(!Object.keys(v).length)return;!U(v,y)&&(T.validated?X():G())}),En(()=>{var v;const y=(v=N(R.keepValueOnUnmount))!==null&&v!==void 0?v:N(O.keepValuesOnUnmount),j=N(W);if(y||!O||te.pendingUnmount[R.id]){O==null||O.removePathState(j,se);return}te.pendingUnmount[R.id]=!0;const P=O.getPathState(j);if(Array.isArray(P==null?void 0:P.id)&&(P!=null&&P.multiple)?P!=null&&P.id.includes(R.id):(P==null?void 0:P.id)===R.id){if(P!=null&&P.multiple&&Array.isArray(P.value)){const q=P.value.findIndex(J=>U(J,N(R.checkedValue)));if(q>-1){const J=[...P.value];J.splice(q,1),O.setFieldValue(j,J)}Array.isArray(P.id)&&P.id.splice(P.id.indexOf(R.id),1)}else O.unsetPathValue(N(W));O.removePathState(j,se)}}),R}function st(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),l=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",a=t&&!("initialValue"in(e||{}))?xe(Fe(),l):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:a});const u="valueProp"in e?e.valueProp:e.checkedValue,d="standalone"in e?!e.standalone:e.controlled,h=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:a,controlled:d??!0,checkedValue:u,syncVModel:h})}function dt(e,n,t){const l=t!=null&&t.standalone?void 0:dn($e),a=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function d(h){const s=h.handleChange,f=M(()=>{const b=N(h.value),S=N(a);return Array.isArray(b)?b.findIndex(V=>U(V,S))>=0:U(S,b)});function p(b,S=!0){var V,I;if(f.value===((V=b==null?void 0:b.target)===null||V===void 0?void 0:V.checked)){S&&h.validate();return}const Q=N(e),O=l==null?void 0:l.getPathState(Q),W=Pe(b);let x=(I=N(a))!==null&&I!==void 0?I:W;l&&(O!=null&&O.multiple)&&O.type==="checkbox"?x=Ze(B(l.values,Q)||[],x,void 0):(t==null?void 0:t.type)==="checkbox"&&(x=Ze(N(h.value),x,N(u))),s(x,S)}return Object.assign(Object.assign({},h),{checked:f,checkedValue:a,uncheckedValue:u,handleChange:p})}return d(yn(e,n,t))}function ct({prop:e,value:n,handleChange:t,shouldValidate:l}){const a=Fe();if(!a||!e)return;const u=typeof e=="string"?e:"modelValue",d=`update:${u}`;u in a.props&&(Z(n,h=>{U(h,xe(a,u))||a.emit(d,h)}),Z(()=>xe(a,u),h=>{if(h===Je&&n.value===void 0)return;const s=h===Je?void 0:h;U(s,n.value)||t(s,l())}))}function xe(e,n){if(e)return e.props[n]}let ft=0;const pe=["bails","fieldsCount","id","multiple","type","validate"];function gn(e){const n=E(e==null?void 0:e.initialValues)||{},t=E(e==null?void 0:e.validationSchema);return t&&ee(t)&&D(t.cast)?C(t.cast(n)||{}):C(n)}function gt(e){var n;const t=ft++;let l=0;const a=K(!1),u=K(!1),d=K(0),h=[],s=Ee(gn(e)),f=K([]),p=K({}),b=K({}),S=$n(()=>{b.value=f.value.reduce((i,r)=>(i[be(N(r.path))]=r,i),{})});function V(i,r){const o=k(i);if(!o){typeof i=="string"&&(p.value[be(i)]=De(r));return}if(typeof i=="string"){const c=be(i);p.value[c]&&delete p.value[c]}o.errors=De(r),o.valid=!o.errors.length}function I(i){L(i).forEach(r=>{V(r,i[r])})}e!=null&&e.initialErrors&&I(e.initialErrors);const Q=M(()=>{const i=f.value.reduce((r,o)=>(o.errors.length&&(r[o.path]=o.errors),r),{});return Object.assign(Object.assign({},p.value),i)}),O=M(()=>L(Q.value).reduce((i,r)=>{const o=Q.value[r];return o!=null&&o.length&&(i[r]=o[0]),i},{})),W=M(()=>f.value.reduce((i,r)=>(i[r.path]={name:r.path||"",label:r.label||""},i),{})),x=M(()=>f.value.reduce((i,r)=>{var o;return i[r.path]=(o=r.bails)!==null&&o!==void 0?o:!0,i},{})),se=Object.assign({},(e==null?void 0:e.initialErrors)||{}),de=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:ne,originalInitialValues:T,setInitialValues:ce}=ht(f,s,e),Oe=vt(f,s,T,O),te=M(()=>f.value.reduce((i,r)=>{const o=B(s,r.path);return ue(i,r.path,o),i},{})),$=e==null?void 0:e.validationSchema;function re(i,r){var o,c;const m=M(()=>B(ne.value,N(i))),g=b.value[N(i)];if(g){((r==null?void 0:r.type)==="checkbox"||(r==null?void 0:r.type)==="radio")&&(g.multiple=!0);const z=l++;return Array.isArray(g.id)?g.id.push(z):g.id=[g.id,z],g.fieldsCount++,g.__flags.pendingUnmount[z]=!1,g}const _=M(()=>B(s,N(i))),F=N(i),A=l++,w=Ee({id:A,path:i,touched:!1,pending:!1,valid:!0,validated:!!(!((o=se[F])===null||o===void 0)&&o.length),initialValue:m,errors:Fn([]),bails:(c=r==null?void 0:r.bails)!==null&&c!==void 0?c:!1,label:r==null?void 0:r.label,type:(r==null?void 0:r.type)||"default",value:_,multiple:!1,__flags:{pendingUnmount:{[A]:!1},pendingReset:!1},fieldsCount:1,validate:r==null?void 0:r.validate,dirty:M(()=>!U(E(_),E(m)))});return f.value.push(w),b.value[F]=w,S(),O.value[F]&&!se[F]&&ae(()=>{le(F,{mode:"silent"})}),Ve(i)&&Z(i,z=>{S();const ye=C(_.value);b.value[z]=w,ae(()=>{ue(s,z,ye)})}),w}const _e=en(Ye,5),X=en(Ye,5),G=ze(async i=>await i==="silent"?_e():X(),(i,[r])=>{const o=L(y.errorBag.value);return[...new Set([...L(i.results),...f.value.map(m=>m.path),...o])].sort().reduce((m,g)=>{const _=g,F=k(_)||Ne(_),A=(i.results[_]||{errors:[]}).errors,w={errors:A,valid:!A.length};return m.results[_]=w,w.valid||(m.errors[_]=w.errors[0]),F&&p.value[_]&&delete p.value[_],F?(F.valid=w.valid,r==="silent"||r==="validated-only"&&!F.validated||V(F,w.errors),m):(V(_,A),m)},{valid:i.valid,results:{},errors:{}})});function H(i){f.value.forEach(i)}function k(i){const r=typeof i=="string"?be(i):i;return typeof r=="string"?b.value[r]:r}function Ne(i){return f.value.filter(o=>i.startsWith(o.path)).reduce((o,c)=>o?c.path.length>o.path.length?c:o:c,void 0)}let fe=[],ie;function me(i){return fe.push(i),ie||(ie=ae(()=>{[...fe].sort().reverse().forEach(o=>{Xe(s,o)}),fe=[],ie=null})),ie}function Se(i){return function(o,c){return function(g){return g instanceof Event&&(g.preventDefault(),g.stopPropagation()),H(_=>_.touched=!0),a.value=!0,d.value++,ve().then(_=>{const F=C(s);if(_.valid&&typeof o=="function"){const A=C(te.value);let w=i?A:F;return _.values&&(w=_.values),o(w,{evt:g,controlledValues:A,setErrors:I,setFieldError:V,setTouched:Ie,setFieldTouched:Ae,setValues:Y,setFieldValue:j,resetForm:Te,resetField:Ge})}!_.valid&&typeof c=="function"&&c({values:F,evt:g,errors:_.errors,results:_.results})}).then(_=>(a.value=!1,_),_=>{throw a.value=!1,_})}}}const R=Se(!1);R.withControlled=Se(!0);function Ce(i,r){const o=f.value.findIndex(m=>m.path===i),c=f.value[o];if(!(o===-1||!c)){if(ae(()=>{le(i,{mode:"silent",warn:!1})}),c.multiple&&c.fieldsCount&&c.fieldsCount--,Array.isArray(c.id)){const m=c.id.indexOf(r);m>=0&&c.id.splice(m,1),delete c.__flags.pendingUnmount[r]}(!c.multiple||c.fieldsCount<=0)&&(f.value.splice(o,1),He(i),S(),delete b.value[i])}}function v(i){return H(r=>{r.path.startsWith(i)&&L(r.__flags.pendingUnmount).forEach(o=>{r.__flags.pendingUnmount[o]=!0})})}const y={formId:t,values:s,controlledValues:te,errorBag:Q,errors:O,schema:$,submitCount:d,meta:Oe,isSubmitting:a,isValidating:u,fieldArrays:h,keepValuesOnUnmount:de,validateSchema:E($)?G:void 0,validate:ve,setFieldError:V,validateField:le,setFieldValue:j,setValues:Y,setErrors:I,setFieldTouched:Ae,setTouched:Ie,resetForm:Te,resetField:Ge,handleSubmit:R,stageInitialValue:On,unsetInitialValue:He,setFieldInitialValue:ke,useFieldModel:J,createPathState:re,getPathState:k,unsetPathValue:me,removePathState:Ce,initialValues:ne,getAllPathStates:()=>f.value,markForUnmount:v,isFieldTouched:pn,isFieldDirty:bn,isFieldValid:Vn};function j(i,r,o=!0){const c=C(r),m=typeof i=="string"?i:i.path;k(m)||re(m),ue(s,m,c),o&&le(m)}function P(i,r=!0){L(s).forEach(o=>{delete s[o]}),L(i).forEach(o=>{j(o,i[o],!1)}),r&&ve()}function Y(i,r=!0){je(s,i),h.forEach(o=>o&&o.reset()),r&&ve()}function q(i){const r=k(E(i))||re(i);return M({get(){return r.value},set(o){const c=E(i);j(c,o,!1),r.validated=!0,r.pending=!0,le(c).then(()=>{r.pending=!1})}})}function J(i){return Array.isArray(i)?i.map(q):q(i)}function Ae(i,r){const o=k(i);o&&(o.touched=r)}function pn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.touched)}function bn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.dirty)}function Vn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.valid)}function Ie(i){if(typeof i=="boolean"){H(r=>{r.touched=i});return}L(i).forEach(r=>{Ae(r,!!i[r])})}function Ge(i,r){var o;const c=r&&"value"in r?r.value:B(ne.value,i),m=k(i);m&&(m.__flags.pendingReset=!0),ke(i,C(c)),j(i,c,!1),Ae(i,(o=r==null?void 0:r.touched)!==null&&o!==void 0?o:!1),V(i,(r==null?void 0:r.errors)||[]),ae(()=>{m&&(m.__flags.pendingReset=!1)})}function Te(i,r){let o=i!=null&&i.values?i.values:T.value;o=ee($)&&D($.cast)?$.cast(o):o,ce(o),H(c=>{var m;c.__flags.pendingReset=!0,c.validated=!1,c.touched=((m=i==null?void 0:i.touched)===null||m===void 0?void 0:m[c.path])||!1,j(c.path,B(o,c.path),!1),V(c.path,void 0)}),r!=null&&r.force?P(o,!1):Y(o,!1),I((i==null?void 0:i.errors)||{}),d.value=(i==null?void 0:i.submitCount)||0,ae(()=>{ve({mode:"silent"}),H(c=>{c.__flags.pendingReset=!1})})}async function ve(i){const r=(i==null?void 0:i.mode)||"force";if(r==="force"&&H(g=>g.validated=!0),y.validateSchema)return y.validateSchema(r);u.value=!0;const o=await Promise.all(f.value.map(g=>g.validate?g.validate(i).then(_=>({key:g.path,valid:_.valid,errors:_.errors})):Promise.resolve({key:g.path,valid:!0,errors:[]})));u.value=!1;const c={},m={};for(const g of o)c[g.key]={valid:g.valid,errors:g.errors},g.errors.length&&(m[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:c,errors:m}}async function le(i,r){var o;const c=k(i);if(c&&(r==null?void 0:r.mode)!=="silent"&&(c.validated=!0),$){const{results:m}=await G((r==null?void 0:r.mode)||"validated-only");return m[i]||{errors:[],valid:!0}}return c!=null&&c.validate?c.validate(r):(!c&&(o=r==null?void 0:r.warn),Promise.resolve({errors:[],valid:!0}))}function He(i){Xe(ne.value,i)}function On(i,r,o=!1){ke(i,r),ue(s,i,r),o&&!(e!=null&&e.initialValues)&&ue(T.value,i,C(r))}function ke(i,r){ue(ne.value,i,C(r))}async function Ye(){const i=E($);if(!i)return{valid:!0,results:{},errors:{}};u.value=!0;const r=we(i)||ee(i)?await tt(i,s):await rt(i,s,{names:W.value,bailsMap:x.value});return u.value=!1,r}const _n=R((i,{evt:r})=>{xn(r)&&r.target.submit()});rn(()=>{if(e!=null&&e.initialErrors&&I(e.initialErrors),e!=null&&e.initialTouched&&Ie(e.initialTouched),e!=null&&e.validateOnMount){ve();return}y.validateSchema&&y.validateSchema("silent")}),Ve($)&&Z($,()=>{var i;(i=y.validateSchema)===null||i===void 0||i.call(y,"validated-only")}),ln($e,y);function Sn(i,r){const o=k(N(i))||re(i),c=()=>D(r)?r(ge(o,pe)):r||{};function m(){var F;o.touched=!0,((F=c().validateOnBlur)!==null&&F!==void 0?F:he().validateOnBlur)&&le(o.path)}function g(F){var A;const w=(A=c().validateOnModelUpdate)!==null&&A!==void 0?A:he().validateOnModelUpdate;j(o.path,F,w)}return M(()=>{if(D(r)){const w=r(o),z=w.model||"modelValue";return Object.assign({onBlur:m,[z]:o.value,[`onUpdate:${z}`]:g},w.props||{})}const F=(r==null?void 0:r.model)||"modelValue",A={onBlur:m,[F]:o.value,[`onUpdate:${F}`]:g};return r!=null&&r.mapProps?Object.assign(Object.assign({},A),r.mapProps(ge(o,pe))):A})}function An(i,r){const o=k(N(i))||re(i),c=()=>D(r)?r(ge(o,pe)):r||{};function m(){var A;o.touched=!0,((A=c().validateOnBlur)!==null&&A!==void 0?A:he().validateOnBlur)&&le(o.path)}function g(A){var w;const z=Pe(A),ye=(w=c().validateOnInput)!==null&&w!==void 0?w:he().validateOnInput;j(o.path,z,ye)}function _(A){var w;const z=Pe(A),ye=(w=c().validateOnChange)!==null&&w!==void 0?w:he().validateOnChange;j(o.path,z,ye)}return M(()=>{const A={value:o.value,onChange:_,onInput:g,onBlur:m};return D(r)?Object.assign(Object.assign({},A),r(ge(o,pe)).attrs||{}):r!=null&&r.mapAttrs?Object.assign(Object.assign({},A),r.mapAttrs(ge(o,pe))):A})}return Object.assign(Object.assign({},y),{values:jn(s),handleReset:()=>Te(),submitForm:_n,defineComponentBinds:Sn,defineInputBinds:An})}function vt(e,n,t,l){const a={touched:"some",pending:"some",valid:"every"},u=M(()=>!U(n,E(t)));function d(){const s=e.value;return L(a).reduce((f,p)=>{const b=a[p];return f[p]=s[b](S=>S[p]),f},{})}const h=Ee(d());return wn(()=>{const s=d();h.touched=s.touched,h.valid=s.valid,h.pending=s.pending}),M(()=>Object.assign(Object.assign({initialValues:E(t)},h),{valid:h.valid&&!L(l.value).length,dirty:u.value}))}function ht(e,n,t){const l=gn(t),a=t==null?void 0:t.initialValues,u=K(l),d=K(C(l));function h(s,f=!1){u.value=je(C(u.value)||{},C(s)),d.value=je(C(d.value)||{},C(s)),f&&e.value.forEach(p=>{if(p.touched)return;const S=B(u.value,p.path);ue(n,p.path,C(S))})}return Ve(a)&&Z(a,s=>{s&&h(s,!0)},{deep:!0}),{initialValues:u,originalInitialValues:d,setInitialValues:h}}export{yt as a,gt as u}; +import{aC as M,O as rn,bJ as ln,n as Ve,j as E,w as Z,bK as En,bL as N,r as K,K as Ee,U as ae,bM as jn,bN as wn,bO as Pn,bP as Fe,bQ as Fn}from"./index-40f25da6.js";function D(e){return typeof e=="function"}function an(e){return e==null}const oe=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Le(e){return Number(e)>=0}function Mn(e){const n=parseFloat(e);return isNaN(n)?e:n}function Nn(e){return typeof e=="object"&&e!==null}function Cn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function In(e){if(!Nn(e)||Cn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function je(e,n){return Object.keys(n).forEach(t=>{if(In(n[t])){e[t]||(e[t]={}),je(e[t],n[t]);return}e[t]=n[t]}),e}function be(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let l=1;lBn(a)&&u in a?a[u]:t,e):t}function ue(e,n,t){if(Me(n)){e[Ke(n)]=t;return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let a=e;for(let u=0;uB(e,t.slice(0,d).join(".")));for(let u=a.length-1;u>=0;u--)if(zn(a[u])){if(u===0){Re(e,t[0]);continue}Re(a[u-1],t[u-1])}}function L(e){return Object.keys(e)}function dn(e,n=void 0){const t=Fe();return(t==null?void 0:t.provides[e])||Pn(e,n)}function Ze(e,n,t){if(Array.isArray(e)){const l=[...e],a=l.findIndex(u=>U(u,n));return a>=0?l.splice(a,1):l.push(n),l}return U(e,n)?t:n}function en(e,n=0){let t=null,l=[];return function(...a){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...a);l.forEach(d=>d(u)),l=[]},n),new Promise(u=>l.push(u))}}function Ln(e,n){return oe(n)&&n.number?Mn(e):e}function ze(e,n){let t;return async function(...a){const u=e(...a);t=u;const d=await u;return u!==t||(t=void 0,n(d,a)),d}}function De(e){return Array.isArray(e)?e:e?[e]:[]}function ge(e,n){const t={};for(const l in e)n.includes(l)||(t[l]=e[l]);return t}function $n(e){let n=null,t=[];return function(...l){const a=ae(()=>{if(n!==a)return;const u=e(...l);t.forEach(d=>d(u)),t=[],n=null});return n=a,new Promise(u=>t.push(u))}}function Ue(e){if(cn(e))return e._value}function cn(e){return"_value"in e}function Kn(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Pe(e){if(!sn(e))return e;const n=e.target;if(un(n.type)&&cn(n))return Ue(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(Dn(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Ue);if(on(n)){const t=Array.from(n.options).find(l=>l.selected);return t?Ue(t):n.value}return Kn(n)}function fn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?oe(e)&&e._$$isNormalized?e:oe(e)?Object.keys(e).reduce((t,l)=>{const a=Wn(e[l]);return e[l]!==!1&&(t[l]=nn(a)),t},n):typeof e!="string"?n:e.split("|").reduce((t,l)=>{const a=Gn(l);return a.name&&(t[a.name]=nn(a.params)),t},n):n}function Wn(e){return e===!0?[]:Array.isArray(e)||oe(e)?e:[e]}function nn(e){const n=t=>typeof t=="string"&&t[0]==="@"?Hn(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,l)=>(t[l]=n(e[l]),t),{})}const Gn=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function Hn(e){const n=t=>B(t,e)||t[e];return n.__locatorRef=e,n}function Yn(e){return Array.isArray(e)?e.filter(Be):L(e).filter(n=>Be(e[n])).map(n=>e[n])}const qn={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let Jn=Object.assign({},qn);const he=()=>Jn;async function vn(e,n,t={}){const l=t==null?void 0:t.bails,a={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:l??!0,formData:(t==null?void 0:t.values)||{}},d=(await Qn(a,e)).errors;return{errors:d,valid:!d.length}}async function Qn(e,n){if(ee(e.rules)||we(e.rules))return Zn(n,e.rules);if(D(e.rules)||Array.isArray(e.rules)){const d={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},h=Array.isArray(e.rules)?e.rules:[e.rules],s=h.length,f=[];for(let p=0;p{const s=h.path||"";return d[s]||(d[s]={errors:[],path:s}),d[s].errors.push(...h.errors),d},{});return{errors:Object.values(u)}}}}}async function Zn(e,n){const l=await(ee(n)?n:hn(n)).parse(e),a=[];for(const u of l.errors)u.errors.length&&a.push(...u.errors);return{errors:a}}async function et(e,n,t){const l=kn(t.name);if(!l)throw new Error(`No such validator '${t.name}' exists.`);const a=nt(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:a})},d=await l(n,a,u);return typeof d=="string"?{error:d}:{error:d?void 0:mn(u)}}function mn(e){const n=he().generateMessage;return n?n(e):"Field is invalid"}function nt(e,n){const t=l=>Be(l)?l(n):l;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((l,a)=>(l[a]=t(e[a]),l),{})}async function tt(e,n){const l=await(ee(e)?e:hn(e)).parse(C(n)),a={},u={};for(const d of l.errors){const h=d.errors,s=(d.path||"").replace(/\["(\d+)"\]/g,(f,p)=>`[${p}]`);a[s]={valid:!h.length,errors:h},h.length&&(u[s]=h[0])}return{valid:!l.errors.length,results:a,errors:u,values:l.value}}async function rt(e,n,t){const a=L(e).map(async f=>{var p,b,S;const V=(p=t==null?void 0:t.names)===null||p===void 0?void 0:p[f],I=await vn(B(n,f),e[f],{name:(V==null?void 0:V.name)||f,label:V==null?void 0:V.label,values:n,bails:(S=(b=t==null?void 0:t.bailsMap)===null||b===void 0?void 0:b[f])!==null&&S!==void 0?S:!0});return Object.assign(Object.assign({},I),{path:f})});let u=!0;const d=await Promise.all(a),h={},s={};for(const f of d)h[f.path]={valid:f.valid,errors:f.errors},f.valid||(u=!1,s[f.path]=f.errors[0]);return{valid:u,results:h,errors:s}}let tn=0;function it(e,n){const{value:t,initialValue:l,setInitialValue:a}=lt(e,n.modelValue,n.form);if(!n.form){let S=function(V){var I;"value"in V&&(t.value=V.value),"errors"in V&&f(V.errors),"touched"in V&&(b.touched=(I=V.touched)!==null&&I!==void 0?I:b.touched),"initialValue"in V&&a(V.initialValue)};const{errors:s,setErrors:f}=ot(),p=tn>=Number.MAX_SAFE_INTEGER?0:++tn,b=ut(t,l,s);return{id:p,path:e,value:t,initialValue:l,meta:b,flags:{pendingUnmount:{[p]:!1},pendingReset:!1},errors:s,setState:S}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate}),d=M(()=>u.errors);function h(s){var f,p,b;"value"in s&&(t.value=s.value),"errors"in s&&((f=n.form)===null||f===void 0||f.setFieldError(E(e),s.errors)),"touched"in s&&((p=n.form)===null||p===void 0||p.setFieldTouched(E(e),(b=s.touched)!==null&&b!==void 0?b:!1)),"initialValue"in s&&a(s.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:d,meta:u,initialValue:l,flags:u.__flags,setState:h}}function lt(e,n,t){const l=K(E(n));function a(){return t?B(t.initialValues.value,E(e),E(l)):E(l)}function u(f){if(!t){l.value=f;return}t.stageInitialValue(E(e),f,!0)}const d=M(a);if(!t)return{value:K(a()),initialValue:d,setInitialValue:u};const h=at(n,t,d,e);return t.stageInitialValue(E(e),h,!0),{value:M({get(){return B(t.values,E(e))},set(f){t.setFieldValue(E(e),f,!1)}}),initialValue:d,setInitialValue:u}}function at(e,n,t,l){return Ve(e)?E(e):e!==void 0?e:B(n.values,E(l),E(t))}function ut(e,n,t){const l=Ee({touched:!1,pending:!1,valid:!0,validated:!!E(t).length,initialValue:M(()=>E(n)),dirty:M(()=>!U(E(e),E(n)))});return Z(t,a=>{l.valid=!a.length},{immediate:!0,flush:"sync"}),l}function ot(){const e=K([]);return{errors:e,setErrors:n=>{e.value=De(n)}}}function yt(e,n,t){return un(t==null?void 0:t.type)?dt(e,n,t):yn(e,n,t)}function yn(e,n,t){const{initialValue:l,validateOnMount:a,bails:u,type:d,checkedValue:h,label:s,validateOnValueUpdate:f,uncheckedValue:p,controlled:b,keepValueOnUnmount:S,syncVModel:V,form:I}=st(t),Q=b?dn($e):void 0,O=I||Q,W=M(()=>be(N(e))),x=M(()=>{if(N(O==null?void 0:O.schema))return;const y=E(n);return we(y)||ee(y)||D(y)||Array.isArray(y)?y:fn(y)}),{id:se,value:de,initialValue:ne,meta:T,setState:ce,errors:Oe,flags:te}=it(W,{modelValue:l,form:O,bails:u,label:s,type:d,validate:x.value?H:void 0}),$=M(()=>Oe.value[0]);V&&ct({value:de,prop:V,handleChange:k,shouldValidate:()=>f&&!te.pendingReset});const re=(v,y=!1)=>{T.touched=!0,y&&X()};async function _e(v){var y,j;return O!=null&&O.validateSchema?(y=(await O.validateSchema(v)).results[N(W)])!==null&&y!==void 0?y:{valid:!0,errors:[]}:x.value?vn(de.value,x.value,{name:N(W),label:N(s),values:(j=O==null?void 0:O.values)!==null&&j!==void 0?j:{},bails:u}):{valid:!0,errors:[]}}const X=ze(async()=>(T.pending=!0,T.validated=!0,_e("validated-only")),v=>{if(!te.pendingUnmount[R.id])return ce({errors:v.errors}),T.pending=!1,T.valid=v.valid,v}),G=ze(async()=>_e("silent"),v=>(T.valid=v.valid,v));function H(v){return(v==null?void 0:v.mode)==="silent"?G():X()}function k(v,y=!0){const j=Pe(v);me(j,y)}rn(()=>{if(a)return X();(!O||!O.validateSchema)&&G()});function Ne(v){T.touched=v}function fe(v){var y;const j=v&&"value"in v?v.value:ne.value;ce({value:C(j),initialValue:C(j),touched:(y=v==null?void 0:v.touched)!==null&&y!==void 0?y:!1,errors:(v==null?void 0:v.errors)||[]}),T.pending=!1,T.validated=!1,G()}const ie=Fe();function me(v,y=!0){de.value=ie&&V?Ln(v,ie.props.modelModifiers):v,(y?X:G)()}function Se(v){ce({errors:Array.isArray(v)?v:[v]})}const We=M({get(){return de.value},set(v){me(v,f)}}),R={id:se,name:W,label:s,value:We,meta:T,errors:Oe,errorMessage:$,type:d,checkedValue:h,uncheckedValue:p,bails:u,keepValueOnUnmount:S,resetField:fe,handleReset:()=>fe(),validate:H,handleChange:k,handleBlur:re,setState:ce,setTouched:Ne,setErrors:Se,setValue:me};if(ln(Rn,R),Ve(n)&&typeof E(n)!="function"&&Z(n,(v,y)=>{U(v,y)||(T.validated?X():G())},{deep:!0}),!O)return R;const Ce=M(()=>{const v=x.value;return!v||D(v)||we(v)||ee(v)||Array.isArray(v)?{}:Object.keys(v).reduce((y,j)=>{const P=Yn(v[j]).map(Y=>Y.__locatorRef).reduce((Y,q)=>{const J=B(O.values,q)||O.values[q];return J!==void 0&&(Y[q]=J),Y},{});return Object.assign(y,P),y},{})});return Z(Ce,(v,y)=>{if(!Object.keys(v).length)return;!U(v,y)&&(T.validated?X():G())}),En(()=>{var v;const y=(v=N(R.keepValueOnUnmount))!==null&&v!==void 0?v:N(O.keepValuesOnUnmount),j=N(W);if(y||!O||te.pendingUnmount[R.id]){O==null||O.removePathState(j,se);return}te.pendingUnmount[R.id]=!0;const P=O.getPathState(j);if(Array.isArray(P==null?void 0:P.id)&&(P!=null&&P.multiple)?P!=null&&P.id.includes(R.id):(P==null?void 0:P.id)===R.id){if(P!=null&&P.multiple&&Array.isArray(P.value)){const q=P.value.findIndex(J=>U(J,N(R.checkedValue)));if(q>-1){const J=[...P.value];J.splice(q,1),O.setFieldValue(j,J)}Array.isArray(P.id)&&P.id.splice(P.id.indexOf(R.id),1)}else O.unsetPathValue(N(W));O.removePathState(j,se)}}),R}function st(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),l=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",a=t&&!("initialValue"in(e||{}))?xe(Fe(),l):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:a});const u="valueProp"in e?e.valueProp:e.checkedValue,d="standalone"in e?!e.standalone:e.controlled,h=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:a,controlled:d??!0,checkedValue:u,syncVModel:h})}function dt(e,n,t){const l=t!=null&&t.standalone?void 0:dn($e),a=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function d(h){const s=h.handleChange,f=M(()=>{const b=N(h.value),S=N(a);return Array.isArray(b)?b.findIndex(V=>U(V,S))>=0:U(S,b)});function p(b,S=!0){var V,I;if(f.value===((V=b==null?void 0:b.target)===null||V===void 0?void 0:V.checked)){S&&h.validate();return}const Q=N(e),O=l==null?void 0:l.getPathState(Q),W=Pe(b);let x=(I=N(a))!==null&&I!==void 0?I:W;l&&(O!=null&&O.multiple)&&O.type==="checkbox"?x=Ze(B(l.values,Q)||[],x,void 0):(t==null?void 0:t.type)==="checkbox"&&(x=Ze(N(h.value),x,N(u))),s(x,S)}return Object.assign(Object.assign({},h),{checked:f,checkedValue:a,uncheckedValue:u,handleChange:p})}return d(yn(e,n,t))}function ct({prop:e,value:n,handleChange:t,shouldValidate:l}){const a=Fe();if(!a||!e)return;const u=typeof e=="string"?e:"modelValue",d=`update:${u}`;u in a.props&&(Z(n,h=>{U(h,xe(a,u))||a.emit(d,h)}),Z(()=>xe(a,u),h=>{if(h===Je&&n.value===void 0)return;const s=h===Je?void 0:h;U(s,n.value)||t(s,l())}))}function xe(e,n){if(e)return e.props[n]}let ft=0;const pe=["bails","fieldsCount","id","multiple","type","validate"];function gn(e){const n=E(e==null?void 0:e.initialValues)||{},t=E(e==null?void 0:e.validationSchema);return t&&ee(t)&&D(t.cast)?C(t.cast(n)||{}):C(n)}function gt(e){var n;const t=ft++;let l=0;const a=K(!1),u=K(!1),d=K(0),h=[],s=Ee(gn(e)),f=K([]),p=K({}),b=K({}),S=$n(()=>{b.value=f.value.reduce((i,r)=>(i[be(N(r.path))]=r,i),{})});function V(i,r){const o=k(i);if(!o){typeof i=="string"&&(p.value[be(i)]=De(r));return}if(typeof i=="string"){const c=be(i);p.value[c]&&delete p.value[c]}o.errors=De(r),o.valid=!o.errors.length}function I(i){L(i).forEach(r=>{V(r,i[r])})}e!=null&&e.initialErrors&&I(e.initialErrors);const Q=M(()=>{const i=f.value.reduce((r,o)=>(o.errors.length&&(r[o.path]=o.errors),r),{});return Object.assign(Object.assign({},p.value),i)}),O=M(()=>L(Q.value).reduce((i,r)=>{const o=Q.value[r];return o!=null&&o.length&&(i[r]=o[0]),i},{})),W=M(()=>f.value.reduce((i,r)=>(i[r.path]={name:r.path||"",label:r.label||""},i),{})),x=M(()=>f.value.reduce((i,r)=>{var o;return i[r.path]=(o=r.bails)!==null&&o!==void 0?o:!0,i},{})),se=Object.assign({},(e==null?void 0:e.initialErrors)||{}),de=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:ne,originalInitialValues:T,setInitialValues:ce}=ht(f,s,e),Oe=vt(f,s,T,O),te=M(()=>f.value.reduce((i,r)=>{const o=B(s,r.path);return ue(i,r.path,o),i},{})),$=e==null?void 0:e.validationSchema;function re(i,r){var o,c;const m=M(()=>B(ne.value,N(i))),g=b.value[N(i)];if(g){((r==null?void 0:r.type)==="checkbox"||(r==null?void 0:r.type)==="radio")&&(g.multiple=!0);const z=l++;return Array.isArray(g.id)?g.id.push(z):g.id=[g.id,z],g.fieldsCount++,g.__flags.pendingUnmount[z]=!1,g}const _=M(()=>B(s,N(i))),F=N(i),A=l++,w=Ee({id:A,path:i,touched:!1,pending:!1,valid:!0,validated:!!(!((o=se[F])===null||o===void 0)&&o.length),initialValue:m,errors:Fn([]),bails:(c=r==null?void 0:r.bails)!==null&&c!==void 0?c:!1,label:r==null?void 0:r.label,type:(r==null?void 0:r.type)||"default",value:_,multiple:!1,__flags:{pendingUnmount:{[A]:!1},pendingReset:!1},fieldsCount:1,validate:r==null?void 0:r.validate,dirty:M(()=>!U(E(_),E(m)))});return f.value.push(w),b.value[F]=w,S(),O.value[F]&&!se[F]&&ae(()=>{le(F,{mode:"silent"})}),Ve(i)&&Z(i,z=>{S();const ye=C(_.value);b.value[z]=w,ae(()=>{ue(s,z,ye)})}),w}const _e=en(Ye,5),X=en(Ye,5),G=ze(async i=>await i==="silent"?_e():X(),(i,[r])=>{const o=L(y.errorBag.value);return[...new Set([...L(i.results),...f.value.map(m=>m.path),...o])].sort().reduce((m,g)=>{const _=g,F=k(_)||Ne(_),A=(i.results[_]||{errors:[]}).errors,w={errors:A,valid:!A.length};return m.results[_]=w,w.valid||(m.errors[_]=w.errors[0]),F&&p.value[_]&&delete p.value[_],F?(F.valid=w.valid,r==="silent"||r==="validated-only"&&!F.validated||V(F,w.errors),m):(V(_,A),m)},{valid:i.valid,results:{},errors:{}})});function H(i){f.value.forEach(i)}function k(i){const r=typeof i=="string"?be(i):i;return typeof r=="string"?b.value[r]:r}function Ne(i){return f.value.filter(o=>i.startsWith(o.path)).reduce((o,c)=>o?c.path.length>o.path.length?c:o:c,void 0)}let fe=[],ie;function me(i){return fe.push(i),ie||(ie=ae(()=>{[...fe].sort().reverse().forEach(o=>{Xe(s,o)}),fe=[],ie=null})),ie}function Se(i){return function(o,c){return function(g){return g instanceof Event&&(g.preventDefault(),g.stopPropagation()),H(_=>_.touched=!0),a.value=!0,d.value++,ve().then(_=>{const F=C(s);if(_.valid&&typeof o=="function"){const A=C(te.value);let w=i?A:F;return _.values&&(w=_.values),o(w,{evt:g,controlledValues:A,setErrors:I,setFieldError:V,setTouched:Ie,setFieldTouched:Ae,setValues:Y,setFieldValue:j,resetForm:Te,resetField:Ge})}!_.valid&&typeof c=="function"&&c({values:F,evt:g,errors:_.errors,results:_.results})}).then(_=>(a.value=!1,_),_=>{throw a.value=!1,_})}}}const R=Se(!1);R.withControlled=Se(!0);function Ce(i,r){const o=f.value.findIndex(m=>m.path===i),c=f.value[o];if(!(o===-1||!c)){if(ae(()=>{le(i,{mode:"silent",warn:!1})}),c.multiple&&c.fieldsCount&&c.fieldsCount--,Array.isArray(c.id)){const m=c.id.indexOf(r);m>=0&&c.id.splice(m,1),delete c.__flags.pendingUnmount[r]}(!c.multiple||c.fieldsCount<=0)&&(f.value.splice(o,1),He(i),S(),delete b.value[i])}}function v(i){return H(r=>{r.path.startsWith(i)&&L(r.__flags.pendingUnmount).forEach(o=>{r.__flags.pendingUnmount[o]=!0})})}const y={formId:t,values:s,controlledValues:te,errorBag:Q,errors:O,schema:$,submitCount:d,meta:Oe,isSubmitting:a,isValidating:u,fieldArrays:h,keepValuesOnUnmount:de,validateSchema:E($)?G:void 0,validate:ve,setFieldError:V,validateField:le,setFieldValue:j,setValues:Y,setErrors:I,setFieldTouched:Ae,setTouched:Ie,resetForm:Te,resetField:Ge,handleSubmit:R,stageInitialValue:On,unsetInitialValue:He,setFieldInitialValue:ke,useFieldModel:J,createPathState:re,getPathState:k,unsetPathValue:me,removePathState:Ce,initialValues:ne,getAllPathStates:()=>f.value,markForUnmount:v,isFieldTouched:pn,isFieldDirty:bn,isFieldValid:Vn};function j(i,r,o=!0){const c=C(r),m=typeof i=="string"?i:i.path;k(m)||re(m),ue(s,m,c),o&&le(m)}function P(i,r=!0){L(s).forEach(o=>{delete s[o]}),L(i).forEach(o=>{j(o,i[o],!1)}),r&&ve()}function Y(i,r=!0){je(s,i),h.forEach(o=>o&&o.reset()),r&&ve()}function q(i){const r=k(E(i))||re(i);return M({get(){return r.value},set(o){const c=E(i);j(c,o,!1),r.validated=!0,r.pending=!0,le(c).then(()=>{r.pending=!1})}})}function J(i){return Array.isArray(i)?i.map(q):q(i)}function Ae(i,r){const o=k(i);o&&(o.touched=r)}function pn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.touched)}function bn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.dirty)}function Vn(i){var r;return!!(!((r=k(i))===null||r===void 0)&&r.valid)}function Ie(i){if(typeof i=="boolean"){H(r=>{r.touched=i});return}L(i).forEach(r=>{Ae(r,!!i[r])})}function Ge(i,r){var o;const c=r&&"value"in r?r.value:B(ne.value,i),m=k(i);m&&(m.__flags.pendingReset=!0),ke(i,C(c)),j(i,c,!1),Ae(i,(o=r==null?void 0:r.touched)!==null&&o!==void 0?o:!1),V(i,(r==null?void 0:r.errors)||[]),ae(()=>{m&&(m.__flags.pendingReset=!1)})}function Te(i,r){let o=i!=null&&i.values?i.values:T.value;o=ee($)&&D($.cast)?$.cast(o):o,ce(o),H(c=>{var m;c.__flags.pendingReset=!0,c.validated=!1,c.touched=((m=i==null?void 0:i.touched)===null||m===void 0?void 0:m[c.path])||!1,j(c.path,B(o,c.path),!1),V(c.path,void 0)}),r!=null&&r.force?P(o,!1):Y(o,!1),I((i==null?void 0:i.errors)||{}),d.value=(i==null?void 0:i.submitCount)||0,ae(()=>{ve({mode:"silent"}),H(c=>{c.__flags.pendingReset=!1})})}async function ve(i){const r=(i==null?void 0:i.mode)||"force";if(r==="force"&&H(g=>g.validated=!0),y.validateSchema)return y.validateSchema(r);u.value=!0;const o=await Promise.all(f.value.map(g=>g.validate?g.validate(i).then(_=>({key:g.path,valid:_.valid,errors:_.errors})):Promise.resolve({key:g.path,valid:!0,errors:[]})));u.value=!1;const c={},m={};for(const g of o)c[g.key]={valid:g.valid,errors:g.errors},g.errors.length&&(m[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:c,errors:m}}async function le(i,r){var o;const c=k(i);if(c&&(r==null?void 0:r.mode)!=="silent"&&(c.validated=!0),$){const{results:m}=await G((r==null?void 0:r.mode)||"validated-only");return m[i]||{errors:[],valid:!0}}return c!=null&&c.validate?c.validate(r):(!c&&(o=r==null?void 0:r.warn),Promise.resolve({errors:[],valid:!0}))}function He(i){Xe(ne.value,i)}function On(i,r,o=!1){ke(i,r),ue(s,i,r),o&&!(e!=null&&e.initialValues)&&ue(T.value,i,C(r))}function ke(i,r){ue(ne.value,i,C(r))}async function Ye(){const i=E($);if(!i)return{valid:!0,results:{},errors:{}};u.value=!0;const r=we(i)||ee(i)?await tt(i,s):await rt(i,s,{names:W.value,bailsMap:x.value});return u.value=!1,r}const _n=R((i,{evt:r})=>{xn(r)&&r.target.submit()});rn(()=>{if(e!=null&&e.initialErrors&&I(e.initialErrors),e!=null&&e.initialTouched&&Ie(e.initialTouched),e!=null&&e.validateOnMount){ve();return}y.validateSchema&&y.validateSchema("silent")}),Ve($)&&Z($,()=>{var i;(i=y.validateSchema)===null||i===void 0||i.call(y,"validated-only")}),ln($e,y);function Sn(i,r){const o=k(N(i))||re(i),c=()=>D(r)?r(ge(o,pe)):r||{};function m(){var F;o.touched=!0,((F=c().validateOnBlur)!==null&&F!==void 0?F:he().validateOnBlur)&&le(o.path)}function g(F){var A;const w=(A=c().validateOnModelUpdate)!==null&&A!==void 0?A:he().validateOnModelUpdate;j(o.path,F,w)}return M(()=>{if(D(r)){const w=r(o),z=w.model||"modelValue";return Object.assign({onBlur:m,[z]:o.value,[`onUpdate:${z}`]:g},w.props||{})}const F=(r==null?void 0:r.model)||"modelValue",A={onBlur:m,[F]:o.value,[`onUpdate:${F}`]:g};return r!=null&&r.mapProps?Object.assign(Object.assign({},A),r.mapProps(ge(o,pe))):A})}function An(i,r){const o=k(N(i))||re(i),c=()=>D(r)?r(ge(o,pe)):r||{};function m(){var A;o.touched=!0,((A=c().validateOnBlur)!==null&&A!==void 0?A:he().validateOnBlur)&&le(o.path)}function g(A){var w;const z=Pe(A),ye=(w=c().validateOnInput)!==null&&w!==void 0?w:he().validateOnInput;j(o.path,z,ye)}function _(A){var w;const z=Pe(A),ye=(w=c().validateOnChange)!==null&&w!==void 0?w:he().validateOnChange;j(o.path,z,ye)}return M(()=>{const A={value:o.value,onChange:_,onInput:g,onBlur:m};return D(r)?Object.assign(Object.assign({},A),r(ge(o,pe)).attrs||{}):r!=null&&r.mapAttrs?Object.assign(Object.assign({},A),r.mapAttrs(ge(o,pe))):A})}return Object.assign(Object.assign({},y),{values:jn(s),handleReset:()=>Te(),submitForm:_n,defineComponentBinds:Sn,defineInputBinds:An})}function vt(e,n,t,l){const a={touched:"some",pending:"some",valid:"every"},u=M(()=>!U(n,E(t)));function d(){const s=e.value;return L(a).reduce((f,p)=>{const b=a[p];return f[p]=s[b](S=>S[p]),f},{})}const h=Ee(d());return wn(()=>{const s=d();h.touched=s.touched,h.valid=s.valid,h.pending=s.pending}),M(()=>Object.assign(Object.assign({initialValues:E(t)},h),{valid:h.valid&&!L(l.value).length,dirty:u.value}))}function ht(e,n,t){const l=gn(t),a=t==null?void 0:t.initialValues,u=K(l),d=K(C(l));function h(s,f=!1){u.value=je(C(u.value)||{},C(s)),d.value=je(C(d.value)||{},C(s)),f&&e.value.forEach(p=>{if(p.touched)return;const S=B(u.value,p.path);ue(n,p.path,C(S))})}return Ve(a)&&Z(a,s=>{s&&h(s,!0)},{deep:!0}),{initialValues:u,originalInitialValues:d,setInitialValues:h}}export{yt as a,gt as u}; diff --git a/app/src/main/resources/web/assets/xml-b5d59370.js b/app/src/main/resources/web/assets/xml-40f65ec6.js similarity index 94% rename from app/src/main/resources/web/assets/xml-b5d59370.js rename to app/src/main/resources/web/assets/xml-40f65ec6.js index 757f9d5f..26350b30 100644 --- a/app/src/main/resources/web/assets/xml-b5d59370.js +++ b/app/src/main/resources/web/assets/xml-40f65ec6.js @@ -1 +1 @@ -import{m}from"./MonacoEditor.vuevuetypescriptsetuptruelang-6ee1fbd9.js";import"./index-4040ca75.js";var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,r=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!d.call(t,n)&&n!==a&&c(t,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return t},s=(t,e,a)=>(r(t,e,"default"),a&&r(a,e,"default")),o={};s(o,m);var k={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},f={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},f={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/