@highstate/designer 0.9.10 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{u1LJIsVJ.js → Ac7u0q1U.js} +1 -1
  3. package/.output/public/_nuxt/{DpbzZaYz.js → BL3_ujoq.js} +1 -1
  4. package/.output/public/_nuxt/{D7A_Cmv6.js → BOFPVWRn.js} +1 -1
  5. package/.output/public/_nuxt/{BR_yabFg.js → BhaZEzEV.js} +1 -1
  6. package/.output/public/_nuxt/{DvvpEbI7.js → BiQ-D8x3.js} +8 -8
  7. package/.output/public/_nuxt/{KoN-_LDE.js → BnrdXTdi.js} +1 -1
  8. package/.output/public/_nuxt/{Dlc85_KX.js → CB2LzrFr.js} +1 -1
  9. package/.output/public/_nuxt/{e03DUfWR.js → CDS6eaOy.js} +1 -1
  10. package/.output/public/_nuxt/{OxuJ9iek.js → CF533OWs.js} +1 -1
  11. package/.output/public/_nuxt/{DXtzSs6x.js → CQFXU10N.js} +1 -1
  12. package/.output/public/_nuxt/{Blyjv-yS.js → Co9xk1iL.js} +1 -1
  13. package/.output/public/_nuxt/{njezAZeM.js → CxFKnBQK.js} +1 -1
  14. package/.output/public/_nuxt/{s4Nkp2ux.js → D52Pciua.js} +1 -1
  15. package/.output/public/_nuxt/{Drmh0FlG.js → D5pW4lwg.js} +1 -1
  16. package/.output/public/_nuxt/{Sr2vEVbE.js → D83-uLjC.js} +1 -1
  17. package/.output/public/_nuxt/{CU8AzneQ.js → DCJlDgf4.js} +1 -1
  18. package/.output/public/_nuxt/{DIaU0ifL.js → DUxl0u_w.js} +1 -1
  19. package/.output/public/_nuxt/builds/latest.json +1 -1
  20. package/.output/public/_nuxt/builds/meta/1465c7fe-b5f1-4e10-911d-66f3d4691f29.json +1 -0
  21. package/.output/public/_nuxt/{CUDKtjLY.js → icj551d7.js} +1 -1
  22. package/.output/public/_nuxt/{MbKGS2Gs.js → u0l01Cyc.js} +1 -1
  23. package/.output/server/index.mjs +534 -534
  24. package/.output/server/package.json +1 -1
  25. package/package.json +4 -4
  26. package/.output/public/_nuxt/builds/meta/2d985111-1fc8-4a17-8f75-135f7aae942b.json +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D7A_Cmv6.js","./u1LJIsVJ.js","./CW2Vrioc.js","./BHuRbl13.js","./ryoHgIpY.js","./B0QpCHAm.js","./1FBXtL6T.js","./mtNz0_Xw.js","./32uRPJ4N.js","./CCLpvtro.js","./CtpALBBA.js","./Cp-IABpG.js","./zH8SnKTm.js","./CYoF9-Z5.js","./CXtECtnM.js","./CtIj0LFu.js","./CCouqEzj.js","./Bc-MNOVW.js","./CquLrc37.js","./DVxCFoDh.js","./CYx6PXAq.js","./CXTBPihj.js","./B9Kps4VT.js","./M64VA-8k.js","./BzgE5b26.js","./CDVJQ6XC.js","./BgLz8NXr.js","./Dql7v_Bn.js","./CYBft37h.js","./enPR0-Fz.js","./BG8T9Pi3.js","./Wlg0E1_o.js","./RUaqLVwG.js","./DtXx6hVj.js","./cP9hzipi.js","./gI3nN7Ut.js","./DFFYXpeI.js","./h0LN4FIn.js","./nsowKw4B.js","./C9lfyjdU.js","./Buea-lGh.js","./WZprGpd_.js","./-gUCin__.js","./hIfYPPDs.js","./C9sg6759.js","./8VYUoF4n.js","./DkwncUOv.js","./CBs8Keu3.js","./CxGSJlkm.js","./D97Zzqfu.js","./BFdI9D2b.js","./DCIw00iZ.js","./C1s3v70Z.js","./itr3s8OG.js","./C9-wYoAy.js","./CJ1eVxFS.js","./Cqtoupvr.js","./DC3yV9u3.js","./BFKVEqu8.js","./BVgHyAf_.js","./DW9tJLXY.js","./Cpx7UCi2.js","./BfB9GJr7.js","./BAmeXbWa.js","./BDJi0rE3.js","./B82-JnRn.js","./DqnT6WTg.js","./DREyJzTe.js","./Dykf6cri.js","./D_T-aAMc.js","./G3-HApOe.js","./C8_cZGvL.js","./DJs7a6wl.js","./CNgRkp1_.js","./CChMg1-B.js","./CHadp7IV.js","./B9QVBjCK.js","./Cn55uXmY.js","./Bv2DfwTI.js","./CeDfCXaY.js","./B2VXiYNb.js","./BIzIjuvV.js","./CEizyJ1q.js","./BRZ36xJF.js","./BsS91CYL.js","./CFfumueS.js","./CrtRcjh8.js","./Da4t7zrk.js","./ClSdsI-R.js","./Cc-FHe7z.js","./GXefNOxV.js","./C5CPwoy2.js","./CKfMBS6n.js","./Chm2_3hY.js","./DIaU0ifL.js","./Blyjv-yS.js","./error-404.D7tj2jQK.css","./s4Nkp2ux.js","./error-500.TOCKLquH.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BOFPVWRn.js","./Ac7u0q1U.js","./CW2Vrioc.js","./BHuRbl13.js","./ryoHgIpY.js","./B0QpCHAm.js","./1FBXtL6T.js","./mtNz0_Xw.js","./32uRPJ4N.js","./CCLpvtro.js","./CtpALBBA.js","./Cp-IABpG.js","./zH8SnKTm.js","./CYoF9-Z5.js","./CXtECtnM.js","./CtIj0LFu.js","./CCouqEzj.js","./Bc-MNOVW.js","./CquLrc37.js","./DVxCFoDh.js","./CYx6PXAq.js","./CXTBPihj.js","./B9Kps4VT.js","./M64VA-8k.js","./BzgE5b26.js","./CDVJQ6XC.js","./BgLz8NXr.js","./Dql7v_Bn.js","./CYBft37h.js","./enPR0-Fz.js","./BG8T9Pi3.js","./Wlg0E1_o.js","./RUaqLVwG.js","./DtXx6hVj.js","./cP9hzipi.js","./gI3nN7Ut.js","./DFFYXpeI.js","./h0LN4FIn.js","./nsowKw4B.js","./C9lfyjdU.js","./Buea-lGh.js","./WZprGpd_.js","./-gUCin__.js","./hIfYPPDs.js","./C9sg6759.js","./8VYUoF4n.js","./DkwncUOv.js","./CBs8Keu3.js","./CxGSJlkm.js","./D97Zzqfu.js","./BFdI9D2b.js","./DCIw00iZ.js","./C1s3v70Z.js","./itr3s8OG.js","./C9-wYoAy.js","./CJ1eVxFS.js","./Cqtoupvr.js","./DC3yV9u3.js","./BFKVEqu8.js","./BVgHyAf_.js","./DW9tJLXY.js","./Cpx7UCi2.js","./BfB9GJr7.js","./BAmeXbWa.js","./BDJi0rE3.js","./B82-JnRn.js","./DqnT6WTg.js","./DREyJzTe.js","./Dykf6cri.js","./D_T-aAMc.js","./G3-HApOe.js","./C8_cZGvL.js","./DJs7a6wl.js","./CNgRkp1_.js","./CChMg1-B.js","./CHadp7IV.js","./B9QVBjCK.js","./Cn55uXmY.js","./Bv2DfwTI.js","./CeDfCXaY.js","./B2VXiYNb.js","./BIzIjuvV.js","./CEizyJ1q.js","./BRZ36xJF.js","./BsS91CYL.js","./CFfumueS.js","./CrtRcjh8.js","./Da4t7zrk.js","./ClSdsI-R.js","./Cc-FHe7z.js","./GXefNOxV.js","./C5CPwoy2.js","./CKfMBS6n.js","./Chm2_3hY.js","./DUxl0u_w.js","./Co9xk1iL.js","./error-404.D7tj2jQK.css","./D52Pciua.js","./error-500.TOCKLquH.css"])))=>i.map(i=>d[i]);
2
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();/**
3
3
  * @vue/shared v3.5.13
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -895,27 +895,27 @@ ${e.toString()}`}}class s2{constructor(e=new E0,t=!1,i,s=hft){this._services=e,t
895
895
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
896
896
  * Released under the MIT license
897
897
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
898
- *-----------------------------------------------------------------------------*/var lSt=Object.defineProperty,cSt=Object.getOwnPropertyDescriptor,dSt=Object.getOwnPropertyNames,uSt=Object.prototype.hasOwnProperty,hSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of dSt(e))!uSt.call(n,s)&&s!==t&&lSt(n,s,{get:()=>e[s],enumerable:!(i=cSt(e,s))||i.enumerable});return n},fSt=(n,e,t)=>(hSt(n,e,"default"),t),dT={};fSt(dT,rD);var mNe={},O6={},gSt=class _Ne{static getOrCreate(e){return O6[e]||(O6[e]=new _Ne(e)),O6[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,mNe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ct(n){const e=n.id;mNe[e]=n,dT.languages.register(n);const t=gSt.getOrCreate(e);dT.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),dT.languages.onLanguageEncountered(e,async()=>{const i=await t.load();dT.languages.setLanguageConfiguration(e,i.conf)})}Ct({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ne(()=>import("./BrgZPUOV.js"),[],import.meta.url)});Ct({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ne(()=>import("./DyP6w7ZV.js"),[],import.meta.url)});Ct({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ne(()=>import("./BaLxmfj-.js"),[],import.meta.url)});Ct({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ne(()=>import("./CFOPXBzS.js"),[],import.meta.url)});Ct({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ne(()=>import("./BfEKNvv3.js"),[],import.meta.url)});Ct({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ne(()=>import("./BFG1Mk7z.js"),[],import.meta.url)});Ct({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ne(()=>import("./DTECt2xU.js"),[],import.meta.url)});Ct({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ne(()=>import("./CDGzqUPQ.js"),[],import.meta.url)});Ct({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ne(()=>import("./CLLBncYj.js"),[],import.meta.url)});Ct({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ne(()=>import("./CLLBncYj.js"),[],import.meta.url)});Ct({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ne(()=>import("./dUCx_-0o.js"),[],import.meta.url)});Ct({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>ne(()=>import("./5Rap-vPy.js"),[],import.meta.url)});Ct({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ne(()=>import("./D3h14YRZ.js"),[],import.meta.url)});Ct({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ne(()=>import("./DrQuvNYM.js"),[],import.meta.url)});Ct({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ne(()=>import("./CFKIUWau.js"),[],import.meta.url)});Ct({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ne(()=>import("./Zznr-cwX.js"),[],import.meta.url)});Ct({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ne(()=>import("./Ce3n6wWz.js"),[],import.meta.url)});Ct({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ne(()=>import("./deUWdS0T.js"),[],import.meta.url)});Ct({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ne(()=>import("./i9-g7ZhI.js"),[],import.meta.url)});Ct({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ne(()=>import("./CzKuDChf.js"),[],import.meta.url)});Ct({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});Ct({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationDollar)});Ct({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationDollar)});Ct({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationBracket)});Ct({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationBracket)});Ct({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});Ct({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ne(()=>import("./DXtzSs6x.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationBracket)});Ct({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ne(()=>import("./Cphgjts3.js"),[],import.meta.url)});Ct({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ne(()=>import("./Cg7bfA9N.js"),[],import.meta.url)});Ct({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ne(()=>import("./e03DUfWR.js"),[],import.meta.url)});Ct({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ne(()=>import("./0cvrggvQ.js"),[],import.meta.url)});Ct({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:()=>ne(()=>import("./CUDKtjLY.js"),[],import.meta.url)});Ct({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ne(()=>import("./Drc7WvVn.js"),[],import.meta.url)});Ct({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ne(()=>import("./B_fMsGYe.js"),[],import.meta.url)});Ct({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ne(()=>import("./D7A_Cmv6.js"),__vite__mapDeps([0,1]),import.meta.url)});Ct({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ne(()=>import("./Bqgm2twL.js"),[],import.meta.url)});Ct({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ne(()=>import("./BSkB5QuD.js"),[],import.meta.url)});Ct({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ne(()=>import("./BsTHnhdd.js"),[],import.meta.url)});Ct({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ne(()=>import("./YWi4-JPR.js"),[],import.meta.url)});Ct({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ne(()=>import("./nf6ki56Z.js"),[],import.meta.url)});Ct({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ne(()=>import("./KoN-_LDE.js"),[],import.meta.url)});Ct({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ne(()=>import("./Cpb6xl2v.js"),[],import.meta.url)});Ct({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ne(()=>import("./DSZPf7rp.js"),[],import.meta.url)});Ct({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>ne(()=>import("./DpbzZaYz.js"),[],import.meta.url)});Ct({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ne(()=>import("./B_c3zf-v.js"),[],import.meta.url)});Ct({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ne(()=>import("./rUNN04Wq.js"),[],import.meta.url)});Ct({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ne(()=>import("./DDwshQtU.js"),[],import.meta.url)});Ct({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ne(()=>import("./B5zXfXm9.js"),[],import.meta.url)});Ct({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ne(()=>import("./CXOwvkN_.js"),[],import.meta.url)});Ct({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ne(()=>import("./Bc-ZgV77.js"),[],import.meta.url)});Ct({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>ne(()=>import("./CwNk8-XU.js"),[],import.meta.url)});Ct({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ne(()=>import("./tGk8EFnU.js"),[],import.meta.url)});Ct({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ne(()=>import("./CpIb_Oan.js"),[],import.meta.url)});Ct({id:"pla",extensions:[".pla"],loader:()=>ne(()=>import("./B03wrqEc.js"),[],import.meta.url)});Ct({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ne(()=>import("./BKlk5iyT.js"),[],import.meta.url)});Ct({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ne(()=>import("./Bhzvs7bI.js"),[],import.meta.url)});Ct({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ne(()=>import("./Dd3NCNK9.js"),[],import.meta.url)});Ct({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ne(()=>import("./COyEY5Pt.js"),[],import.meta.url)});Ct({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ne(()=>import("./BaJupSGV.js"),[],import.meta.url)});Ct({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ne(()=>import("./Sr2vEVbE.js"),[],import.meta.url)});Ct({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ne(()=>import("./DXyYeYxl.js"),[],import.meta.url)});Ct({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ne(()=>import("./CdQndTaG.js"),[],import.meta.url)});Ct({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ne(()=>import("./CU8AzneQ.js"),[],import.meta.url)});Ct({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ne(()=>import("./CVwtpugi.js"),[],import.meta.url)});Ct({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ne(()=>import("./25W9uPmb.js"),[],import.meta.url)});Ct({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ne(()=>import("./DfzH4Xui.js"),[],import.meta.url)});Ct({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ne(()=>import("./Cp1zYvxS.js"),[],import.meta.url)});Ct({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ne(()=>import("./D5C2fndG.js"),[],import.meta.url)});Ct({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ne(()=>import("./CDntyWJ8.js"),[],import.meta.url)});Ct({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:()=>ne(()=>import("./BoFRg7Ot.js"),[],import.meta.url)});Ct({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ne(()=>import("./Bio4gycK.js"),[],import.meta.url)});Ct({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ne(()=>import("./4Ik7cdeQ.js"),[],import.meta.url)});Ct({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ne(()=>import("./CX-rkNHf.js"),[],import.meta.url)});Ct({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ne(()=>import("./Tw7wswEv.js"),[],import.meta.url)});Ct({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ne(()=>import("./C5WLch3f.js"),[],import.meta.url)});Ct({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ne(()=>import("./DHaeiCBh.js"),[],import.meta.url)});Ct({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ne(()=>import("./CCSDG5nI.js"),[],import.meta.url)});Ct({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>ne(()=>import("./pnP8ivHi.js"),[],import.meta.url)});Ct({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ne(()=>import("./DwJ7jVG9.js"),[],import.meta.url)});Ct({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ne(()=>import("./B9Xyijhd.js"),[],import.meta.url)});Ct({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ne(()=>import("./B9Xyijhd.js"),[],import.meta.url)});Ct({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ne(()=>import("./DnHyzjbg.js"),[],import.meta.url)});Ct({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ne(()=>import("./CPajHgWi.js"),[],import.meta.url)});Ct({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ne(()=>import("./u1LJIsVJ.js"),[],import.meta.url)});Ct({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>ne(()=>import("./D-MeaMDU.js"),[],import.meta.url)});Ct({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ne(()=>import("./DgyLZaXg.js"),[],import.meta.url)});Ct({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>ne(()=>import("./DYQUnd45.js"),[],import.meta.url)});Ct({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>ne(()=>import("./njezAZeM.js"),[],import.meta.url)});Ct({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ne(()=>import("./Drmh0FlG.js"),[],import.meta.url)});/*!-----------------------------------------------------------------------------
898
+ *-----------------------------------------------------------------------------*/var lSt=Object.defineProperty,cSt=Object.getOwnPropertyDescriptor,dSt=Object.getOwnPropertyNames,uSt=Object.prototype.hasOwnProperty,hSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of dSt(e))!uSt.call(n,s)&&s!==t&&lSt(n,s,{get:()=>e[s],enumerable:!(i=cSt(e,s))||i.enumerable});return n},fSt=(n,e,t)=>(hSt(n,e,"default"),t),dT={};fSt(dT,rD);var mNe={},O6={},gSt=class _Ne{static getOrCreate(e){return O6[e]||(O6[e]=new _Ne(e)),O6[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,mNe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ct(n){const e=n.id;mNe[e]=n,dT.languages.register(n);const t=gSt.getOrCreate(e);dT.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),dT.languages.onLanguageEncountered(e,async()=>{const i=await t.load();dT.languages.setLanguageConfiguration(e,i.conf)})}Ct({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ne(()=>import("./BrgZPUOV.js"),[],import.meta.url)});Ct({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ne(()=>import("./DyP6w7ZV.js"),[],import.meta.url)});Ct({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ne(()=>import("./BaLxmfj-.js"),[],import.meta.url)});Ct({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ne(()=>import("./CFOPXBzS.js"),[],import.meta.url)});Ct({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ne(()=>import("./BfEKNvv3.js"),[],import.meta.url)});Ct({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ne(()=>import("./BFG1Mk7z.js"),[],import.meta.url)});Ct({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ne(()=>import("./DTECt2xU.js"),[],import.meta.url)});Ct({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ne(()=>import("./CDGzqUPQ.js"),[],import.meta.url)});Ct({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ne(()=>import("./CLLBncYj.js"),[],import.meta.url)});Ct({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ne(()=>import("./CLLBncYj.js"),[],import.meta.url)});Ct({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ne(()=>import("./dUCx_-0o.js"),[],import.meta.url)});Ct({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>ne(()=>import("./5Rap-vPy.js"),[],import.meta.url)});Ct({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ne(()=>import("./D3h14YRZ.js"),[],import.meta.url)});Ct({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ne(()=>import("./DrQuvNYM.js"),[],import.meta.url)});Ct({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ne(()=>import("./CFKIUWau.js"),[],import.meta.url)});Ct({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ne(()=>import("./Zznr-cwX.js"),[],import.meta.url)});Ct({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ne(()=>import("./Ce3n6wWz.js"),[],import.meta.url)});Ct({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ne(()=>import("./deUWdS0T.js"),[],import.meta.url)});Ct({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ne(()=>import("./i9-g7ZhI.js"),[],import.meta.url)});Ct({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ne(()=>import("./CzKuDChf.js"),[],import.meta.url)});Ct({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});Ct({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationDollar)});Ct({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationDollar)});Ct({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationBracket)});Ct({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationBracket)});Ct({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});Ct({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ne(()=>import("./CQFXU10N.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationBracket)});Ct({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ne(()=>import("./Cphgjts3.js"),[],import.meta.url)});Ct({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ne(()=>import("./Cg7bfA9N.js"),[],import.meta.url)});Ct({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ne(()=>import("./CDS6eaOy.js"),[],import.meta.url)});Ct({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ne(()=>import("./0cvrggvQ.js"),[],import.meta.url)});Ct({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:()=>ne(()=>import("./icj551d7.js"),[],import.meta.url)});Ct({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ne(()=>import("./Drc7WvVn.js"),[],import.meta.url)});Ct({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ne(()=>import("./B_fMsGYe.js"),[],import.meta.url)});Ct({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ne(()=>import("./BOFPVWRn.js"),__vite__mapDeps([0,1]),import.meta.url)});Ct({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ne(()=>import("./Bqgm2twL.js"),[],import.meta.url)});Ct({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ne(()=>import("./BSkB5QuD.js"),[],import.meta.url)});Ct({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ne(()=>import("./BsTHnhdd.js"),[],import.meta.url)});Ct({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ne(()=>import("./YWi4-JPR.js"),[],import.meta.url)});Ct({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ne(()=>import("./nf6ki56Z.js"),[],import.meta.url)});Ct({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ne(()=>import("./BnrdXTdi.js"),[],import.meta.url)});Ct({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ne(()=>import("./Cpb6xl2v.js"),[],import.meta.url)});Ct({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ne(()=>import("./DSZPf7rp.js"),[],import.meta.url)});Ct({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>ne(()=>import("./BL3_ujoq.js"),[],import.meta.url)});Ct({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ne(()=>import("./B_c3zf-v.js"),[],import.meta.url)});Ct({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ne(()=>import("./rUNN04Wq.js"),[],import.meta.url)});Ct({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ne(()=>import("./DDwshQtU.js"),[],import.meta.url)});Ct({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ne(()=>import("./B5zXfXm9.js"),[],import.meta.url)});Ct({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ne(()=>import("./CXOwvkN_.js"),[],import.meta.url)});Ct({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ne(()=>import("./Bc-ZgV77.js"),[],import.meta.url)});Ct({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>ne(()=>import("./CwNk8-XU.js"),[],import.meta.url)});Ct({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ne(()=>import("./tGk8EFnU.js"),[],import.meta.url)});Ct({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ne(()=>import("./CpIb_Oan.js"),[],import.meta.url)});Ct({id:"pla",extensions:[".pla"],loader:()=>ne(()=>import("./B03wrqEc.js"),[],import.meta.url)});Ct({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ne(()=>import("./BKlk5iyT.js"),[],import.meta.url)});Ct({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ne(()=>import("./Bhzvs7bI.js"),[],import.meta.url)});Ct({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ne(()=>import("./Dd3NCNK9.js"),[],import.meta.url)});Ct({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ne(()=>import("./COyEY5Pt.js"),[],import.meta.url)});Ct({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ne(()=>import("./BaJupSGV.js"),[],import.meta.url)});Ct({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ne(()=>import("./D83-uLjC.js"),[],import.meta.url)});Ct({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ne(()=>import("./DXyYeYxl.js"),[],import.meta.url)});Ct({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ne(()=>import("./CdQndTaG.js"),[],import.meta.url)});Ct({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ne(()=>import("./DCJlDgf4.js"),[],import.meta.url)});Ct({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ne(()=>import("./CVwtpugi.js"),[],import.meta.url)});Ct({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ne(()=>import("./25W9uPmb.js"),[],import.meta.url)});Ct({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ne(()=>import("./DfzH4Xui.js"),[],import.meta.url)});Ct({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ne(()=>import("./Cp1zYvxS.js"),[],import.meta.url)});Ct({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ne(()=>import("./D5C2fndG.js"),[],import.meta.url)});Ct({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ne(()=>import("./CDntyWJ8.js"),[],import.meta.url)});Ct({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:()=>ne(()=>import("./BoFRg7Ot.js"),[],import.meta.url)});Ct({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ne(()=>import("./Bio4gycK.js"),[],import.meta.url)});Ct({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ne(()=>import("./4Ik7cdeQ.js"),[],import.meta.url)});Ct({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ne(()=>import("./CX-rkNHf.js"),[],import.meta.url)});Ct({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ne(()=>import("./Tw7wswEv.js"),[],import.meta.url)});Ct({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ne(()=>import("./C5WLch3f.js"),[],import.meta.url)});Ct({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ne(()=>import("./DHaeiCBh.js"),[],import.meta.url)});Ct({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ne(()=>import("./CCSDG5nI.js"),[],import.meta.url)});Ct({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>ne(()=>import("./pnP8ivHi.js"),[],import.meta.url)});Ct({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ne(()=>import("./DwJ7jVG9.js"),[],import.meta.url)});Ct({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ne(()=>import("./B9Xyijhd.js"),[],import.meta.url)});Ct({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ne(()=>import("./B9Xyijhd.js"),[],import.meta.url)});Ct({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ne(()=>import("./DnHyzjbg.js"),[],import.meta.url)});Ct({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ne(()=>import("./CPajHgWi.js"),[],import.meta.url)});Ct({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ne(()=>import("./Ac7u0q1U.js"),[],import.meta.url)});Ct({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>ne(()=>import("./D-MeaMDU.js"),[],import.meta.url)});Ct({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ne(()=>import("./DgyLZaXg.js"),[],import.meta.url)});Ct({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>ne(()=>import("./DYQUnd45.js"),[],import.meta.url)});Ct({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>ne(()=>import("./CxFKnBQK.js"),[],import.meta.url)});Ct({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ne(()=>import("./D5pW4lwg.js"),[],import.meta.url)});/*!-----------------------------------------------------------------------------
899
899
  * Copyright (c) Microsoft Corporation. All rights reserved.
900
900
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
901
901
  * Released under the MIT license
902
902
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
903
- *-----------------------------------------------------------------------------*/var pSt=Object.defineProperty,mSt=Object.getOwnPropertyDescriptor,_St=Object.getOwnPropertyNames,vSt=Object.prototype.hasOwnProperty,bSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of _St(e))!vSt.call(n,s)&&s!==t&&pSt(n,s,{get:()=>e[s],enumerable:!(i=mSt(e,s))||i.enumerable});return n},SSt=(n,e,t)=>(bSt(n,e,"default"),t),L0={};SSt(L0,rD);var Ute=class{constructor(e,t,i){this._onDidChange=new L0.Emitter,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)}},$te={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}},zte={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},vNe=new Ute("css",$te,zte),bNe=new Ute("scss",$te,zte),SNe=new Ute("less",$te,zte);L0.languages.css={cssDefaults:vNe,lessDefaults:SNe,scssDefaults:bNe};function Gte(){return ne(()=>import("./MbKGS2Gs.js"),[],import.meta.url)}L0.languages.onLanguage("less",()=>{Gte().then(n=>n.setupMode(SNe))});L0.languages.onLanguage("scss",()=>{Gte().then(n=>n.setupMode(bNe))});L0.languages.onLanguage("css",()=>{Gte().then(n=>n.setupMode(vNe))});/*!-----------------------------------------------------------------------------
903
+ *-----------------------------------------------------------------------------*/var pSt=Object.defineProperty,mSt=Object.getOwnPropertyDescriptor,_St=Object.getOwnPropertyNames,vSt=Object.prototype.hasOwnProperty,bSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of _St(e))!vSt.call(n,s)&&s!==t&&pSt(n,s,{get:()=>e[s],enumerable:!(i=mSt(e,s))||i.enumerable});return n},SSt=(n,e,t)=>(bSt(n,e,"default"),t),L0={};SSt(L0,rD);var Ute=class{constructor(e,t,i){this._onDidChange=new L0.Emitter,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)}},$te={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}},zte={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},vNe=new Ute("css",$te,zte),bNe=new Ute("scss",$te,zte),SNe=new Ute("less",$te,zte);L0.languages.css={cssDefaults:vNe,lessDefaults:SNe,scssDefaults:bNe};function Gte(){return ne(()=>import("./u0l01Cyc.js"),[],import.meta.url)}L0.languages.onLanguage("less",()=>{Gte().then(n=>n.setupMode(SNe))});L0.languages.onLanguage("scss",()=>{Gte().then(n=>n.setupMode(bNe))});L0.languages.onLanguage("css",()=>{Gte().then(n=>n.setupMode(vNe))});/*!-----------------------------------------------------------------------------
904
904
  * Copyright (c) Microsoft Corporation. All rights reserved.
905
905
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
906
906
  * Released under the MIT license
907
907
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
908
- *-----------------------------------------------------------------------------*/var ySt=Object.defineProperty,CSt=Object.getOwnPropertyDescriptor,wSt=Object.getOwnPropertyNames,ESt=Object.prototype.hasOwnProperty,TSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wSt(e))!ESt.call(n,s)&&s!==t&&ySt(n,s,{get:()=>e[s],enumerable:!(i=CSt(e,s))||i.enumerable});return n},ISt=(n,e,t)=>(TSt(n,e,"default"),t),v4={};ISt(v4,rD);var LSt=class{constructor(e,t,i){this._onDidChange=new v4.Emitter,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)}},xSt={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"},b4={format:xSt,suggest:{},data:{useDefaultDataProvider:!0}};function S4(n){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:n===vI,documentFormattingEdits:n===vI,documentRangeFormattingEdits:n===vI}}var vI="html",Wpe="handlebars",Upe="razor",yNe=y4(vI,b4,S4(vI)),RSt=yNe.defaults,CNe=y4(Wpe,b4,S4(Wpe)),DSt=CNe.defaults,wNe=y4(Upe,b4,S4(Upe)),NSt=wNe.defaults;v4.languages.html={htmlDefaults:RSt,razorDefaults:NSt,handlebarDefaults:DSt,htmlLanguageService:yNe,handlebarLanguageService:CNe,razorLanguageService:wNe,registerHTMLLanguageService:y4};function kSt(){return ne(()=>import("./OxuJ9iek.js"),[],import.meta.url)}function y4(n,e=b4,t=S4(n)){const i=new LSt(n,e,t);let s;const r=v4.languages.onLanguage(n,async()=>{s=(await kSt()).setupMode(i)});return{defaults:i,dispose(){r.dispose(),s?.dispose(),s=void 0}}}/*!-----------------------------------------------------------------------------
908
+ *-----------------------------------------------------------------------------*/var ySt=Object.defineProperty,CSt=Object.getOwnPropertyDescriptor,wSt=Object.getOwnPropertyNames,ESt=Object.prototype.hasOwnProperty,TSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wSt(e))!ESt.call(n,s)&&s!==t&&ySt(n,s,{get:()=>e[s],enumerable:!(i=CSt(e,s))||i.enumerable});return n},ISt=(n,e,t)=>(TSt(n,e,"default"),t),v4={};ISt(v4,rD);var LSt=class{constructor(e,t,i){this._onDidChange=new v4.Emitter,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)}},xSt={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"},b4={format:xSt,suggest:{},data:{useDefaultDataProvider:!0}};function S4(n){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:n===vI,documentFormattingEdits:n===vI,documentRangeFormattingEdits:n===vI}}var vI="html",Wpe="handlebars",Upe="razor",yNe=y4(vI,b4,S4(vI)),RSt=yNe.defaults,CNe=y4(Wpe,b4,S4(Wpe)),DSt=CNe.defaults,wNe=y4(Upe,b4,S4(Upe)),NSt=wNe.defaults;v4.languages.html={htmlDefaults:RSt,razorDefaults:NSt,handlebarDefaults:DSt,htmlLanguageService:yNe,handlebarLanguageService:CNe,razorLanguageService:wNe,registerHTMLLanguageService:y4};function kSt(){return ne(()=>import("./CF533OWs.js"),[],import.meta.url)}function y4(n,e=b4,t=S4(n)){const i=new LSt(n,e,t);let s;const r=v4.languages.onLanguage(n,async()=>{s=(await kSt()).setupMode(i)});return{defaults:i,dispose(){r.dispose(),s?.dispose(),s=void 0}}}/*!-----------------------------------------------------------------------------
909
909
  * Copyright (c) Microsoft Corporation. All rights reserved.
910
910
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
911
911
  * Released under the MIT license
912
912
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
913
- *-----------------------------------------------------------------------------*/var ASt=Object.defineProperty,OSt=Object.getOwnPropertyDescriptor,MSt=Object.getOwnPropertyNames,PSt=Object.prototype.hasOwnProperty,FSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of MSt(e))!PSt.call(n,s)&&s!==t&&ASt(n,s,{get:()=>e[s],enumerable:!(i=OSt(e,s))||i.enumerable});return n},BSt=(n,e,t)=>(FSt(n,e,"default"),t),oD={};BSt(oD,rD);var HSt=class{constructor(e,t,i){this._onDidChange=new oD.Emitter,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)}},VSt={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},WSt={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},ENe=new HSt("json",VSt,WSt),USt=()=>TNe().then(n=>n.getWorker());oD.languages.json={jsonDefaults:ENe,getWorker:USt};function TNe(){return ne(()=>import("./BR_yabFg.js"),[],import.meta.url)}oD.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});oD.languages.onLanguage("json",()=>{TNe().then(n=>n.setupMode(ENe))});/*!-----------------------------------------------------------------------------
913
+ *-----------------------------------------------------------------------------*/var ASt=Object.defineProperty,OSt=Object.getOwnPropertyDescriptor,MSt=Object.getOwnPropertyNames,PSt=Object.prototype.hasOwnProperty,FSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of MSt(e))!PSt.call(n,s)&&s!==t&&ASt(n,s,{get:()=>e[s],enumerable:!(i=OSt(e,s))||i.enumerable});return n},BSt=(n,e,t)=>(FSt(n,e,"default"),t),oD={};BSt(oD,rD);var HSt=class{constructor(e,t,i){this._onDidChange=new oD.Emitter,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)}},VSt={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},WSt={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},ENe=new HSt("json",VSt,WSt),USt=()=>TNe().then(n=>n.getWorker());oD.languages.json={jsonDefaults:ENe,getWorker:USt};function TNe(){return ne(()=>import("./BhaZEzEV.js"),[],import.meta.url)}oD.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});oD.languages.onLanguage("json",()=>{TNe().then(n=>n.setupMode(ENe))});/*!-----------------------------------------------------------------------------
914
914
  * Copyright (c) Microsoft Corporation. All rights reserved.
915
915
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
916
916
  * Released under the MIT license
917
917
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
918
- *-----------------------------------------------------------------------------*/var $St=Object.defineProperty,zSt=Object.getOwnPropertyDescriptor,GSt=Object.getOwnPropertyNames,qSt=Object.prototype.hasOwnProperty,KSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of GSt(e))!qSt.call(n,s)&&s!==t&&$St(n,s,{get:()=>e[s],enumerable:!(i=zSt(e,s))||i.enumerable});return n},jSt=(n,e,t)=>(KSt(n,e,"default"),t),YSt="5.4.5",vE={};jSt(vE,rD);var INe=(n=>(n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n))(INe||{}),LNe=(n=>(n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev",n))(LNe||{}),xNe=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(xNe||{}),RNe=(n=>(n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n))(RNe||{}),DNe=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(DNe||{}),NNe=class{constructor(n,e,t,i,s){this._onDidChange=new vE.Emitter,this._onDidExtraLibsChange=new vE.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(n),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(s),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(n,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===n)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:n,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[t];s&&s.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(n){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),n&&n.length>0)for(const e of n){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(n){this._compilerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(n){this._workerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(n){this._inlayHintsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(n){}setEagerModelSync(n){this._eagerModelSync=n}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(void 0)}},QSt=YSt,kNe={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},ANe=new NNe({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},kNe),ONe=new NNe({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},kNe),XSt=()=>C4().then(n=>n.getTypeScriptWorker()),ZSt=()=>C4().then(n=>n.getJavaScriptWorker());vE.languages.typescript={ModuleKind:INe,JsxEmit:LNe,NewLineKind:xNe,ScriptTarget:RNe,ModuleResolutionKind:DNe,typescriptVersion:QSt,typescriptDefaults:ANe,javascriptDefaults:ONe,getTypeScriptWorker:XSt,getJavaScriptWorker:ZSt};function C4(){return ne(()=>import("./Dlc85_KX.js"),[],import.meta.url)}vE.languages.onLanguage("typescript",()=>C4().then(n=>n.setupTypeScript(ANe)));vE.languages.onLanguage("javascript",()=>C4().then(n=>n.setupJavaScript(ONe)));class JSt extends Ta{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Dt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:We.map,toggled:Re.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Re.has("isInDiffEditor"),menu:{when:Re.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class MNe extends Ta{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Dt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class PNe extends Ta{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Dt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const aD=Dt("diffEditor","Diff Editor");class eyt extends hh{constructor(){super({id:"diffEditor.switchSide",title:Dt("switchSide","Switch Side"),icon:We.arrowSwap,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,i){const s=x0(e);if(s instanceof hp){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class tyt extends hh{constructor(){super({id:"diffEditor.exitCompareMove",title:Dt("exitCompareMove","Exit Compare Move"),icon:We.close,precondition:J.comparingMovedCode,f1:!1,category:aD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.exitCompareMove()}}class iyt extends hh{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Dt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:We.fold,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.collapseAllUnchangedRegions()}}class nyt extends hh{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Dt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:We.unfold,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.showAllUnchangedRegions()}}class HK extends Ta{constructor(){super({id:"diffEditor.revert",title:Dt("revert","Revert"),f1:!1,category:aD})}run(e,t){const i=syt(e,t.originalUri,t.modifiedUri);i instanceof hp&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const FNe=Dt("accessibleDiffViewer","Accessible Diff Viewer");class lD extends Ta{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:lD.id,title:Dt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:FNe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerNext()}}class w4 extends Ta{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w4.id,title:Dt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:FNe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerPrev()}}function syt(n,e,t){return n.get(Oi).listDiffEditors().find(r=>{const o=r.getModifiedEditor(),a=r.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&a&&a.getModel()?.uri.toString()===e.toString()})||null}function x0(n){const t=n.get(Oi).listDiffEditors(),i=ao();if(i)for(const s of t){const r=s.getContainerDomNode();if(ryt(r,i))return s}return null}function ryt(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}Rn(JSt);Rn(MNe);Rn(PNe);kr.appendMenuItem(fe.EditorTitle,{command:{id:new PNe().desc.id,title:w("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Re.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Re.has("isInDiffEditor")},order:11,group:"1_diff",when:Re.and(J.diffEditorRenderSideBySideInlineBreakpointReached,Re.has("isInDiffEditor"))});kr.appendMenuItem(fe.EditorTitle,{command:{id:new MNe().desc.id,title:w("showMoves","Show Moved Code Blocks"),icon:We.move,toggled:d0.create("config.diffEditor.experimental.showMoves",!0),precondition:Re.has("isInDiffEditor")},order:10,group:"1_diff",when:Re.has("isInDiffEditor")});Rn(HK);for(const n of[{icon:We.arrowRight,key:J.diffEditorInlineMode.toNegated()},{icon:We.discard,key:J.diffEditorInlineMode}])kr.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new HK().desc.id,title:w("revertHunk","Revert Block"),icon:n.icon},when:Re.and(J.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),kr.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new HK().desc.id,title:w("revertSelection","Revert Selection"),icon:n.icon},when:Re.and(J.diffEditorModifiedWritable,n.key),order:5,group:"primary"});Rn(eyt);Rn(tyt);Rn(iyt);Rn(nyt);kr.appendMenuItem(fe.EditorTitle,{command:{id:lD.id,title:w("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Re.has("isInDiffEditor")},order:10,group:"2_diff",when:Re.and(J.accessibleDiffViewerVisible.negate(),Re.has("isInDiffEditor"))});Ti.registerCommandAlias("editor.action.diffReview.next",lD.id);Rn(lD);Ti.registerCommandAlias("editor.action.diffReview.prev",w4.id);Rn(w4);var oyt=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},ayt=function(n,e){return function(t,i){e(t,i,n)}},VK;const E4=new Qe("selectionAnchorSet",!1);let v_=class{static{VK=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(VK.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=E4.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(st.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Eo().appendText(w("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),wa(w("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(st.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()}};v_=VK=oyt([ayt(1,Tt)],v_);class lyt extends Je{constructor(){super({id:"editor.action.setSelectionAnchor",label:w("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:Zs(2089,2080),weight:100}})}async run(e,t){v_.get(t)?.setSelectionAnchor()}}class cyt extends Je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:w("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:E4})}async run(e,t){v_.get(t)?.goToSelectionAnchor()}}class dyt extends Je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:w("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:E4,kbOpts:{kbExpr:J.editorTextFocus,primary:Zs(2089,2089),weight:100}})}async run(e,t){v_.get(t)?.selectFromAnchorToCursor()}}class uyt extends Je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:w("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:E4,kbOpts:{kbExpr:J.editorTextFocus,primary:9,weight:100}})}async run(e,t){v_.get(t)?.cancelSelectionAnchor()}}xi(v_.ID,v_,4);Be(lyt);Be(cyt);Be(dyt);Be(uyt);const hyt=te("editorOverviewRuler.bracketMatchForeground","#A0A0A0",w("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class fyt extends Je{constructor(){super({id:"editor.action.jumpToBracket",label:w("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:3165,weight:100}})}run(e,t){ep.get(t)?.jumpToBracket()}}class gyt extends Je{constructor(){super({id:"editor.action.selectToBracket",label:w("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Dt("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&i.selectBrackets===!1&&(s=!1),ep.get(t)?.selectToBracket(s)}}class pyt extends Je{constructor(){super({id:"editor.action.removeBrackets",label:w("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:2561,weight:100}})}run(e,t){ep.get(t)?.removeBrackets(this.id)}}class myt{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class ep extends _e{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(ep.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new fn(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),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(72)&&(this._matchBrackets=this._editor.getOption(72),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 s=i.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new st(o.lineNumber,o.column,o.lineNumber,o.column):new st(s.lineNumber,s.column,s.lineNumber,s.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(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const c=t.bracketPairs.findNextBracket(r);c&&c.range&&(o=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(z.compareRangesUsingStarts);const[c,d]=o;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(r)){const u=a;a=l,l=u}}a&&l&&i.push(new st(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const s=i.getPosition();let r=t.bracketPairs.matchBracket(s);r||(r=t.bracketPairs.findEnclosingBrackets(s)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Wt.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Cs(hyt),position:pc.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Wt.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[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 s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const r=[];let o=0;for(let u=0,h=e.length;u<h;u++){const f=e[u];f.isEmpty()&&(r[o++]=f.getStartPosition())}r.length>1&&r.sort(pe.compare);const a=[];let l=0,c=0;const d=s.length;for(let u=0,h=r.length;u<h;u++){const f=r[u];for(;c<d&&s[c].position.isBefore(f);)c++;if(c<d&&s[c].position.equals(f))a[l++]=s[c];else{let g=t.bracketPairs.matchBracket(f,20),p=ep._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),p=ep._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new myt(f,g,p)}}this._lastBracketsData=a,this._lastVersionId=i}}xi(ep.ID,ep,1);Be(gyt);Be(fyt);Be(pyt);kr.appendMenuItem(fe.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:w({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class _yt{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new z(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new z(i,r,i,r),a)}else{const o=new z(i,r,i,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new z(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new st(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new st(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class BNe extends Je{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const r of s)i.push(new _yt(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class vyt extends BNe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:w("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:J.writable})}}class byt extends BNe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:w("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:J.writable})}}Be(vyt);Be(byt);class Syt extends Je{constructor(){super({id:"editor.action.transposeLetters",label:w("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:J.writable,kbOpts:{kbExpr:J.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?o.getPosition():tn.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),u=tn.leftPosition(i,d),h=tn.leftPosition(i,u),f=i.getValueInRange(z.fromPositions(h,u)),g=i.getValueInRange(z.fromPositions(u,d)),p=z.fromPositions(h,d);s.push(new ro(p,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Be(Syt);const T4=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let n;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?n=crypto.getRandomValues.bind(crypto):n=function(i){for(let s=0;s<i.length;s++)i[s]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){n(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let s=0,r="";return r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r}}();function qte(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function yyt(n,e,t){const i={id:T4(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class HNe{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return wi.some(this,([i,s])=>s.asFile())&&t.push("files"),WNe(R2(e),t)}get(e){return this._entries.get(this.toKey(e))?.[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))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return R2(e)}}function R2(n){return n.toLowerCase()}function VNe(n,e){return WNe(R2(n),e.map(R2))}function WNe(n,e){if(n==="*/*")return e.length>0;if(e.includes(n))return!0;const t=n.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,s,r]=t;return r==="*"?e.some(o=>o.startsWith(s+"/")):!1}const I4=Object.freeze({create:n=>sp(n.map(e=>e.toString())).join(`\r
918
+ *-----------------------------------------------------------------------------*/var $St=Object.defineProperty,zSt=Object.getOwnPropertyDescriptor,GSt=Object.getOwnPropertyNames,qSt=Object.prototype.hasOwnProperty,KSt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of GSt(e))!qSt.call(n,s)&&s!==t&&$St(n,s,{get:()=>e[s],enumerable:!(i=zSt(e,s))||i.enumerable});return n},jSt=(n,e,t)=>(KSt(n,e,"default"),t),YSt="5.4.5",vE={};jSt(vE,rD);var INe=(n=>(n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n))(INe||{}),LNe=(n=>(n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev",n))(LNe||{}),xNe=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(xNe||{}),RNe=(n=>(n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n))(RNe||{}),DNe=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(DNe||{}),NNe=class{constructor(n,e,t,i,s){this._onDidChange=new vE.Emitter,this._onDidExtraLibsChange=new vE.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(n),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(s),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(n,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===n)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:n,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[t];s&&s.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(n){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),n&&n.length>0)for(const e of n){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(n){this._compilerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(n){this._workerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(n){this._inlayHintsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(n){}setEagerModelSync(n){this._eagerModelSync=n}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(void 0)}},QSt=YSt,kNe={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},ANe=new NNe({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},kNe),ONe=new NNe({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},kNe),XSt=()=>C4().then(n=>n.getTypeScriptWorker()),ZSt=()=>C4().then(n=>n.getJavaScriptWorker());vE.languages.typescript={ModuleKind:INe,JsxEmit:LNe,NewLineKind:xNe,ScriptTarget:RNe,ModuleResolutionKind:DNe,typescriptVersion:QSt,typescriptDefaults:ANe,javascriptDefaults:ONe,getTypeScriptWorker:XSt,getJavaScriptWorker:ZSt};function C4(){return ne(()=>import("./CB2LzrFr.js"),[],import.meta.url)}vE.languages.onLanguage("typescript",()=>C4().then(n=>n.setupTypeScript(ANe)));vE.languages.onLanguage("javascript",()=>C4().then(n=>n.setupJavaScript(ONe)));class JSt extends Ta{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Dt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:We.map,toggled:Re.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Re.has("isInDiffEditor"),menu:{when:Re.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class MNe extends Ta{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Dt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class PNe extends Ta{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Dt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ri),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const aD=Dt("diffEditor","Diff Editor");class eyt extends hh{constructor(){super({id:"diffEditor.switchSide",title:Dt("switchSide","Switch Side"),icon:We.arrowSwap,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,i){const s=x0(e);if(s instanceof hp){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class tyt extends hh{constructor(){super({id:"diffEditor.exitCompareMove",title:Dt("exitCompareMove","Exit Compare Move"),icon:We.close,precondition:J.comparingMovedCode,f1:!1,category:aD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.exitCompareMove()}}class iyt extends hh{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Dt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:We.fold,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.collapseAllUnchangedRegions()}}class nyt extends hh{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Dt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:We.unfold,precondition:Re.has("isInDiffEditor"),f1:!0,category:aD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.showAllUnchangedRegions()}}class HK extends Ta{constructor(){super({id:"diffEditor.revert",title:Dt("revert","Revert"),f1:!1,category:aD})}run(e,t){const i=syt(e,t.originalUri,t.modifiedUri);i instanceof hp&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const FNe=Dt("accessibleDiffViewer","Accessible Diff Viewer");class lD extends Ta{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:lD.id,title:Dt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:FNe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerNext()}}class w4 extends Ta{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w4.id,title:Dt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:FNe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerPrev()}}function syt(n,e,t){return n.get(Oi).listDiffEditors().find(r=>{const o=r.getModifiedEditor(),a=r.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&a&&a.getModel()?.uri.toString()===e.toString()})||null}function x0(n){const t=n.get(Oi).listDiffEditors(),i=ao();if(i)for(const s of t){const r=s.getContainerDomNode();if(ryt(r,i))return s}return null}function ryt(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}Rn(JSt);Rn(MNe);Rn(PNe);kr.appendMenuItem(fe.EditorTitle,{command:{id:new PNe().desc.id,title:w("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Re.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Re.has("isInDiffEditor")},order:11,group:"1_diff",when:Re.and(J.diffEditorRenderSideBySideInlineBreakpointReached,Re.has("isInDiffEditor"))});kr.appendMenuItem(fe.EditorTitle,{command:{id:new MNe().desc.id,title:w("showMoves","Show Moved Code Blocks"),icon:We.move,toggled:d0.create("config.diffEditor.experimental.showMoves",!0),precondition:Re.has("isInDiffEditor")},order:10,group:"1_diff",when:Re.has("isInDiffEditor")});Rn(HK);for(const n of[{icon:We.arrowRight,key:J.diffEditorInlineMode.toNegated()},{icon:We.discard,key:J.diffEditorInlineMode}])kr.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new HK().desc.id,title:w("revertHunk","Revert Block"),icon:n.icon},when:Re.and(J.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),kr.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new HK().desc.id,title:w("revertSelection","Revert Selection"),icon:n.icon},when:Re.and(J.diffEditorModifiedWritable,n.key),order:5,group:"primary"});Rn(eyt);Rn(tyt);Rn(iyt);Rn(nyt);kr.appendMenuItem(fe.EditorTitle,{command:{id:lD.id,title:w("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Re.has("isInDiffEditor")},order:10,group:"2_diff",when:Re.and(J.accessibleDiffViewerVisible.negate(),Re.has("isInDiffEditor"))});Ti.registerCommandAlias("editor.action.diffReview.next",lD.id);Rn(lD);Ti.registerCommandAlias("editor.action.diffReview.prev",w4.id);Rn(w4);var oyt=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},ayt=function(n,e){return function(t,i){e(t,i,n)}},VK;const E4=new Qe("selectionAnchorSet",!1);let v_=class{static{VK=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(VK.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=E4.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(st.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Eo().appendText(w("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),wa(w("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(st.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()}};v_=VK=oyt([ayt(1,Tt)],v_);class lyt extends Je{constructor(){super({id:"editor.action.setSelectionAnchor",label:w("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:Zs(2089,2080),weight:100}})}async run(e,t){v_.get(t)?.setSelectionAnchor()}}class cyt extends Je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:w("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:E4})}async run(e,t){v_.get(t)?.goToSelectionAnchor()}}class dyt extends Je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:w("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:E4,kbOpts:{kbExpr:J.editorTextFocus,primary:Zs(2089,2089),weight:100}})}async run(e,t){v_.get(t)?.selectFromAnchorToCursor()}}class uyt extends Je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:w("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:E4,kbOpts:{kbExpr:J.editorTextFocus,primary:9,weight:100}})}async run(e,t){v_.get(t)?.cancelSelectionAnchor()}}xi(v_.ID,v_,4);Be(lyt);Be(cyt);Be(dyt);Be(uyt);const hyt=te("editorOverviewRuler.bracketMatchForeground","#A0A0A0",w("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class fyt extends Je{constructor(){super({id:"editor.action.jumpToBracket",label:w("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:3165,weight:100}})}run(e,t){ep.get(t)?.jumpToBracket()}}class gyt extends Je{constructor(){super({id:"editor.action.selectToBracket",label:w("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Dt("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&i.selectBrackets===!1&&(s=!1),ep.get(t)?.selectToBracket(s)}}class pyt extends Je{constructor(){super({id:"editor.action.removeBrackets",label:w("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:J.editorTextFocus,primary:2561,weight:100}})}run(e,t){ep.get(t)?.removeBrackets(this.id)}}class myt{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class ep extends _e{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(ep.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new fn(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),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(72)&&(this._matchBrackets=this._editor.getOption(72),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 s=i.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new st(o.lineNumber,o.column,o.lineNumber,o.column):new st(s.lineNumber,s.column,s.lineNumber,s.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(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const c=t.bracketPairs.findNextBracket(r);c&&c.range&&(o=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(z.compareRangesUsingStarts);const[c,d]=o;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(r)){const u=a;a=l,l=u}}a&&l&&i.push(new st(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const s=i.getPosition();let r=t.bracketPairs.matchBracket(s);r||(r=t.bracketPairs.findEnclosingBrackets(s)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Wt.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Cs(hyt),position:pc.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Wt.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[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 s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const r=[];let o=0;for(let u=0,h=e.length;u<h;u++){const f=e[u];f.isEmpty()&&(r[o++]=f.getStartPosition())}r.length>1&&r.sort(pe.compare);const a=[];let l=0,c=0;const d=s.length;for(let u=0,h=r.length;u<h;u++){const f=r[u];for(;c<d&&s[c].position.isBefore(f);)c++;if(c<d&&s[c].position.equals(f))a[l++]=s[c];else{let g=t.bracketPairs.matchBracket(f,20),p=ep._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),p=ep._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new myt(f,g,p)}}this._lastBracketsData=a,this._lastVersionId=i}}xi(ep.ID,ep,1);Be(gyt);Be(fyt);Be(pyt);kr.appendMenuItem(fe.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:w({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class _yt{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new z(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new z(i,r,i,r),a)}else{const o=new z(i,r,i,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new z(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new st(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new st(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class BNe extends Je{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const r of s)i.push(new _yt(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class vyt extends BNe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:w("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:J.writable})}}class byt extends BNe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:w("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:J.writable})}}Be(vyt);Be(byt);class Syt extends Je{constructor(){super({id:"editor.action.transposeLetters",label:w("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:J.writable,kbOpts:{kbExpr:J.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?o.getPosition():tn.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),u=tn.leftPosition(i,d),h=tn.leftPosition(i,u),f=i.getValueInRange(z.fromPositions(h,u)),g=i.getValueInRange(z.fromPositions(u,d)),p=z.fromPositions(h,d);s.push(new ro(p,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Be(Syt);const T4=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let n;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?n=crypto.getRandomValues.bind(crypto):n=function(i){for(let s=0;s<i.length;s++)i[s]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){n(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let s=0,r="";return r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r}}();function qte(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function yyt(n,e,t){const i={id:T4(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class HNe{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return wi.some(this,([i,s])=>s.asFile())&&t.push("files"),WNe(R2(e),t)}get(e){return this._entries.get(this.toKey(e))?.[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))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return R2(e)}}function R2(n){return n.toLowerCase()}function VNe(n,e){return WNe(R2(n),e.map(R2))}function WNe(n,e){if(n==="*/*")return e.length>0;if(e.includes(n))return!0;const t=n.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,s,r]=t;return r==="*"?e.some(o=>o.startsWith(s+"/")):!1}const I4=Object.freeze({create:n=>sp(n.map(e=>e.toString())).join(`\r
919
919
  `),split:n=>n.split(`\r
920
920
  `),parse:n=>I4.split(n).filter(e=>!e.startsWith("#"))});class In{static{this.sep="."}static{this.None=new In("@@none@@")}static{this.Empty=new In("")}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+In.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new In((this.value?[this.value,...e]:e).join(In.sep))}}const $pe={EDITORS:"CodeEditors",FILES:"CodeFiles"};class Cyt{}const wyt={DragAndDropContribution:"workbench.contributions.dragAndDrop"};gs.add(wyt.DragAndDropContribution,new Cyt);class D2{static{this.INSTANCE=new D2}constructor(){}static getInstance(){return D2.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}function UNe(n){const e=new HNe;for(const t of n.items){const i=t.type;if(t.kind==="string"){const s=new Promise(r=>t.getAsString(r));e.append(i,qte(s))}else if(t.kind==="file"){const s=t.getAsFile();s&&e.append(i,Eyt(s))}}return e}function Eyt(n){const e=n.path?bt.parse(n.path):void 0;return yyt(n.name,e,async()=>new Uint8Array(await n.arrayBuffer()))}const Tyt=Object.freeze([$pe.EDITORS,$pe.FILES,NL.RESOURCES,NL.INTERNAL_URI_LIST]);function $Ne(n,e=!1){const t=UNe(n),i=t.get(NL.INTERNAL_URI_LIST);if(i)t.replace(Rs.uriList,i);else if(e||!t.has(Rs.uriList)){const s=[];for(const r of n.items){const o=r.getAsFile();if(o){const a=o.path;try{a?s.push(bt.file(a).toString()):s.push(bt.parse(o.name,!0).toString())}catch{}}}s.length&&t.replace(Rs.uriList,qte(I4.create(s)))}for(const s of Tyt)t.delete(s);return t}var Kte=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},sx=function(n,e){return function(t,i){e(t,i,n)}};class jte{async provideDocumentPasteEdits(e,t,i,s,r){const o=await this.getEdit(i,r);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const r=await this.getEdit(i,s);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}}class mS extends jte{constructor(){super(...arguments),this.kind=mS.kind,this.dropMimeTypes=[Rs.text],this.pasteMimeTypes=[Rs.text]}static{this.id="text"}static{this.kind=new In("text.plain")}async getEdit(e,t){const i=e.get(Rs.text);if(!i||e.has(Rs.uriList))return;const s=await i.asString();return{handledMimeType:Rs.text,title:w("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class zNe extends jte{constructor(){super(...arguments),this.kind=new In("uri.absolute"),this.dropMimeTypes=[Rs.uriList],this.pasteMimeTypes=[Rs.uriList]}async getEdit(e,t){const i=await GNe(e);if(!i.length||t.isCancellationRequested)return;let s=0;const r=i.map(({uri:a,originalText:l})=>a.scheme===Ht.file?a.fsPath:(s++,l)).join(" ");let o;return s>0?o=i.length>1?w("defaultDropProvider.uriList.uris","Insert Uris"):w("defaultDropProvider.uriList.uri","Insert Uri"):o=i.length>1?w("defaultDropProvider.uriList.paths","Insert Paths"):w("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Rs.uriList,insertText:r,title:o,kind:this.kind}}}let N2=class extends jte{constructor(e){super(),this._workspaceContextService=e,this.kind=new In("uri.relative"),this.dropMimeTypes=[Rs.uriList],this.pasteMimeTypes=[Rs.uriList]}async getEdit(e,t){const i=await GNe(e);if(!i.length||t.isCancellationRequested)return;const s=qd(i.map(({uri:r})=>{const o=this._workspaceContextService.getWorkspaceFolder(r);return o?Brt(o.uri,r):void 0}));if(s.length)return{handledMimeType:Rs.uriList,insertText:s.join(" "),title:i.length>1?w("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):w("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};N2=Kte([sx(0,dS)],N2);class Iyt{constructor(){this.kind=new In("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Rs.text}]}async provideDocumentPasteEdits(e,t,i,s,r){if(s.triggerKind!==aL.PasteAs&&!s.only?.contains(this.kind))return;const a=await i.get("text/html")?.asString();if(!(!a||r.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:w("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function GNe(n){const e=n.get(Rs.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const s of I4.parse(t))try{i.push({uri:bt.parse(s),originalText:s})}catch{}return i}let WK=class extends _e{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new mS)),this._register(e.documentDropEditProvider.register("*",new zNe)),this._register(e.documentDropEditProvider.register("*",new N2(t)))}};WK=Kte([sx(0,it),sx(1,dS)],WK);let UK=class extends _e{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new mS)),this._register(e.documentPasteEditProvider.register("*",new zNe)),this._register(e.documentPasteEditProvider.register("*",new N2(t))),this._register(e.documentPasteEditProvider.register("*",new Iyt))}};UK=Kte([sx(0,it),sx(1,dS)],UK);class mu{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}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),s;if(s=mu._table[i],typeof s=="number")return this.pos+=1,{type:s,pos:e,len:1};if(mu.isDigitCharacter(i)){s=8;do t+=1,i=this.value.charCodeAt(e+t);while(mu.isDigitCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}if(mu.isVariableCharacter(i)){s=9;do i=this.value.charCodeAt(e+ ++t);while(mu.isVariableCharacter(i)||mu.isDigitCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}s=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof mu._table[i]>"u"&&!mu.isDigitCharacter(i)&&!mu.isVariableCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}}class R0{constructor(){this._children=[]}appendChild(e){return e instanceof Cl&&this._children[this._children.length-1]instanceof Cl?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),r=i.children.slice(0);r.splice(s,1,...t),i._children=r,function o(a,l){for(const c of a)c.parent=l,o(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 cD)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}let Cl=class qNe extends R0{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new qNe(this.value)}};class KNe extends R0{}class Bc extends KNe{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.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 D0?this._children[0]:void 0}clone(){const e=new Bc(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class D0 extends R0{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Cl&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new D0;return this.options.forEach(e.appendChild,e),e}}let Lyt=class jNe extends R0{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(r=>r instanceof wu&&!!r.elseValue)&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof wu){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new jNe;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 wu extends R0{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}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,s)=>s===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new wu(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class rx extends KNe{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 Cl(t)],!0):!1}clone(){const e=new rx(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function zpe(n,e){const t=[...n];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class cD extends R0{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Bc&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(s=>s===e?(i=!0,!1):(t+=s.len(),!0)),i?t:-1}fullLen(e){let t=0;return zpe([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Bc&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof rx&&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 cD;return this._children=this.children.map(t=>t.clone()),e}walk(e){zpe(this.children,e)}}class _S{constructor(){this._scanner=new mu,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 s=new cD;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,r=[];t.walk(l=>(l instanceof Bc&&(l.isFinalTabstop?s.set(0,void 0):!s.has(l.index)&&l.children.length>0?s.set(l.index,l.children):r.push(l)),!0));const o=(l,c)=>{const d=s.get(l.index);if(!d)return;const u=new Bc(l.index);u.transform=l.transform;for(const h of d){const f=h.clone();u.appendChild(f),f instanceof Bc&&s.has(f.index)&&!c.has(f.index)&&(c.add(f.index),o(f,c),c.delete(f.index))}t.replace(l,[u])},a=new Set;for(const l of r)o(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(r=>r.index===0)||e.appendChild(new Bc(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 s=this._scanner.next();if(s.type!==0&&s.type!==4&&s.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 Cl(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 Bc(Number(t)):new rx(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 r=new Bc(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Cl("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else if(r.index>0&&this._accept(7)){const o=new D0;for(;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(o),this._accept(4)))return e.appendChild(r),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let s;if((s=this._accept(5,!0))?s=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||s:s=this._accept(void 0,!0),!s)return this._backTo(t),!1;i.push(s)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Cl(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 r=new rx(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Cl("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(i)}_parseTransform(e){const t=new Lyt;let i="",s="";for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(6,!0)||r,i+=r;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(5,!0)||this._accept(6,!0)||r,t.appendChild(new Cl(r));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){s+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,s)}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 s=this._accept(8,!0);if(s)if(i){if(this._accept(4))return e.appendChild(new wu(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new wu(Number(s))),!0;else return this._backTo(t),!1;if(this._accept(6)){const r=this._accept(9,!0);return!r||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new wu(Number(s),r)),!0)}else if(this._accept(11)){const r=this._until(4);if(r)return e.appendChild(new wu(Number(s),void 0,r,void 0)),!0}else if(this._accept(12)){const r=this._until(4);if(r)return e.appendChild(new wu(Number(s),void 0,void 0,r)),!0}else if(this._accept(13)){const r=this._until(1);if(r){const o=this._until(4);if(o)return e.appendChild(new wu(Number(s),void 0,r,o)),!0}}else{const r=this._until(4);if(r)return e.appendChild(new wu(Number(s),void 0,void 0,r)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Cl(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function YNe(n,e,t){return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:t.additionalEdit?.edits??[]}:{edits:[...e.map(i=>new Ym(n,{range:i,text:typeof t.insertText=="string"?_S.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...t.additionalEdit?.edits??[]]}}function QNe(n){function e(o,a){return"mimeType"in o?o.mimeType===a.handledMimeType:!!a.kind&&o.kind.contains(a.kind)}const t=new Map;for(const o of n)for(const a of o.yieldTo??[])for(const l of n)if(l!==o&&e(a,l)){let c=t.get(o);c||(c=[],t.set(o,c)),c.push(l)}if(!t.size)return Array.from(n);const i=new Set,s=[];function r(o){if(!o.length)return[];const a=o[0];if(s.includes(a))return console.warn("Yield to cycle detected",a),o;if(i.has(a))return r(o.slice(1));let l=[];const c=t.get(a);return c&&(s.push(a),l=r(c),s.pop()),i.add(a),[...l,a,...r(o.slice(1))]}return r(Array.from(n))}var xyt=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},Ryt=function(n,e){return function(t,i){e(t,i,n)}};const Dyt=Wt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:rIe,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class Yte extends _e{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,r){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=r,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ze(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ze("span.icon");this.domNode.append(t),t.classList.add(...wt.asClassNameArray(We.loading),"codicon-modifier-spin");const i=()=>{const s=this.editor.getOption(67);this.domNode.style.height=`${s}px`,this.domNode.style.width=`${Math.ceil(.8*s)}px`};i(),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(52)||s.hasChanged(67))&&i()})),this._register(Ie(this.domNode,$e.CLICK,s=>{this.delegate.cancel()}))}getId(){return Yte.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let k2=class extends _e{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new Er),this._currentWidget=this._register(new Er),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=a_(()=>{const a=z.fromPositions(e);this._currentDecorations.set([{range:a,options:Dyt}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(Yte,this.id,this._editor,a,t,s))},r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};k2=xyt([Ryt(2,ut)],k2);var Nyt=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},Gpe=function(n,e){return function(t,i){e(t,i,n)}},mO;let Nl=class{static{mO=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new Qe("messageVisible",!1,w("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(mO.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Er,this._messageListeners=new xe,this._mouseOverMessage=!1,this._editor=e,this._visible=mO.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){wa(zu(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=zu(e)?M5(e,{actionHandler:{callback:s=>{this.closeMessage(),ree(this._openerService,s,zu(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new qpe(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(qe.debounce(this._editor.onDidBlurEditorText,(s,r)=>r,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Sr(ao(),this._messageWidget.value.getDomNode())||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(Ie(this._messageWidget.value.getDomNode(),$e.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Ie(this._messageWidget.value.getDomNode(),$e.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(s=>{s.target.position&&(i?i.containsPosition(s.target.position)||this.closeMessage():i=new z(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(qpe.fadeOut(this._messageWidget.value))}};Nl=mO=Nyt([Gpe(1,Tt),Gpe(2,nl)],Nl);const kyt=hr.bindToContribution(Nl.get);Ye(new kyt({id:"leaveEditorMessage",precondition:Nl.MESSAGE_VISIBLE,handler:n=>n.closeMessage(),kbOpts:{weight:130,primary:9}}));let qpe=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},s){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 r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");typeof s=="string"?(o.classList.add("message"),o.textContent=s):(s.classList.add("message"),o.appendChild(s)),this._domNode.appendChild(o);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)}};xi(Nl.ID,Nl,4);function M6(n,e){return e&&(n.stack||n.stacktrace)?w("stackTrace.format","{0}: {1}",jpe(n),Kpe(n.stack)||Kpe(n.stacktrace)):jpe(n)}function Kpe(n){return Array.isArray(n)?n.join(`
921
921
  `):n}function jpe(n){return n.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${n.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof n.code=="string"&&typeof n.errno=="number"&&typeof n.syscall=="string"?w("nodeExceptionMessage","A system error occurred ({0})",n.message):n.message||w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function A2(n=null,e=!1){if(!n)return w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(n)){const t=qd(n),i=A2(t[0],e);return t.length>1?w("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Ka(n))return n;if(n.detail){const t=n.detail;if(t.error)return M6(t.error,e);if(t.exception)return M6(t.exception,e)}return n.stack?M6(n,e):n.message?n.message:w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var XNe=function(n,e,t,i){var s=arguments.length,r=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},yw=function(n,e){return function(t,i){e(t,i,n)}},$K;let zK=class extends _e{static{$K=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,r,o,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=r,this.edits=o,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(dt(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(dt(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{r.containsPosition(u.position)||this.dispose()})),this._register(qe.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=ze(".post-edit-widget"),this.button=this._register(new $P(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Ie(this.domNode,$e.CLICK,()=>this.showSelector()))}getId(){return $K.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Ds(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>Tb({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};zK=$K=XNe([yw(7,Ul),yw(8,Tt),yw(9,Xi)],zK);let O2=class extends _e{constructor(e,t,i,s,r,o,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=r,this._bulkEditService=o,this._notificationService=a,this._currentWidget=this._register(new Er),this._register(qe.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,s,r){const o=this._editor.getModel();if(!o||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async m=>{const _=this._editor.getModel();_&&(await _.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:m,allEdits:t.allEdits},i,s,r))},c=(m,_)=>{ad(m)||(this._notificationService.error(_),i&&this.show(e[0],t,l))};let d;try{d=await s(a,r)}catch(m){return c(m,w("resolveError",`Error resolving edit '{0}':
@@ -994,7 +994,7 @@ ${n.value}
994
994
  \f\r "&'<=>\``.split("")],[`\0
995
995
  \f\r "&'<=>\``.split(""),`\0
996
996
  \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function pkt(n,e,t,i){const s=i.schema,r=s.space==="svg"?!1:i.settings.omitOptionalTags;let o=s.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(n.tagName.toLowerCase());const a=[];let l;s.space==="html"&&n.tagName==="svg"&&(i.schema=qOe);const c=mkt(i,n.properties),d=i.all(s.space==="html"&&n.tagName==="template"?n.content:n);return i.schema=s,d&&(o=!1),(c||!r||!ckt(n,e,t))&&(a.push("<",n.tagName,c?" "+c:""),o&&(s.space==="svg"||i.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!i.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(d),!o&&(!r||!fne(n,e,t))&&a.push("</"+n.tagName+">"),a.join("")}function mkt(n,e){const t=[];let i=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){const r=_kt(n,s,e[s]);r&&t.push(r)}}for(;++i<t.length;){const r=n.settings.tightAttributes?t[i].charAt(t[i].length-1):void 0;i!==t.length-1&&r!=='"'&&r!=="'"&&(t[i]+=" ")}return t.join("")}function _kt(n,e,t){const i=SNt(n.schema,e),s=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,r=n.settings.allowDangerousCharacters?0:1;let o=n.quote,a;if(i.overloadedBoolean&&(t===i.attribute||t==="")?t=!0:(i.boolean||i.overloadedBoolean)&&(typeof t!="string"||t===i.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const l=Dw(i.attribute,Object.assign({},n.settings.characterReferences,{subset:wk.name[s][r]}));return t===!0||(t=Array.isArray(t)?(i.commaSeparated?qNt:KNt)(t,{padLeft:!n.settings.tightCommaSeparatedLists}):String(t),n.settings.collapseEmptyAttributes&&!t)?l:(n.settings.preferUnquoted&&(a=Dw(t,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:wk.unquoted[s][r]}))),a!==t&&(n.settings.quoteSmart&&q_e(t,o)>q_e(t,n.alternative)&&(o=n.alternative),a=o+Dw(t,Object.assign({},n.settings.characterReferences,{subset:(o==="'"?wk.single:wk.double)[s][r],attribute:!0}))+o),l+(a&&"="+a))}const vkt=["<","&"];function XOe(n,e,t,i){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:Dw(n.value,Object.assign({},i.settings.characterReferences,{subset:vkt}))}function bkt(n,e,t,i){return i.settings.allowDangerousHtml?n.value:XOe(n,e,t,i)}function Skt(n,e,t,i){return i.all(n)}const ykt=ENt("type",{invalid:Ckt,unknown:wkt,handlers:{comment:zNt,doctype:GNt,element:pkt,raw:bkt,root:Skt,text:XOe}});function Ckt(n){throw new Error("Expected node, not `"+n+"`")}function wkt(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ekt={},Tkt={},Ikt=[];function Lkt(n,e){const t=e||Ekt,i=t.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:xkt,all:Rkt,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||gNt,characterReferences:t.characterReferences||Tkt,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?qOe:wNt,quote:i,alternative:s}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function xkt(n,e,t){return ykt(n,e,t,this)}function Rkt(n){const e=[],t=n&&n.children||Ikt;let i=-1;for(;++i<t.length;)e[i]=this.one(t[i],i,n);return e.join("")}function mF(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},i=typeof n=="string"?n:n.name;for(const[s,r]of Object.entries(e?.colorReplacements||{}))typeof r=="string"?t[s]=r:s===i&&Object.assign(t,r);return t}function gb(n,e){return n&&(e?.[n?.toLowerCase()]||n)}function Dkt(n){return Array.isArray(n)?n:[n]}async function ZOe(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function gne(n){return!n||["plaintext","txt","text","plain"].includes(n)}function JOe(n){return n==="ansi"||gne(n)}function pne(n){return n==="none"}function eMe(n){return pne(n)}function tMe(n,e){if(!e)return n;n.properties||={},n.properties.class||=[],typeof n.properties.class=="string"&&(n.properties.class=n.properties.class.split(/\s+/g)),Array.isArray(n.properties.class)||(n.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const i of t)i&&!n.properties.class.includes(i)&&n.properties.class.push(i);return n}function X4(n,e=!1){const t=n.split(/(\r?\n)/g);let i=0;const s=[];for(let r=0;r<t.length;r+=2){const o=e?t[r]+(t[r+1]||""):t[r];s.push([o,i]),i+=t[r].length,i+=t[r+1]?.length||0}return s}function Nkt(n){const e=X4(n,!0).map(([s])=>s);function t(s){if(s===n.length)return{line:e.length-1,character:e[e.length-1].length};let r=s,o=0;for(const a of e){if(r<a.length)break;r-=a.length,o++}return{line:o,character:r}}function i(s,r){let o=0;for(let a=0;a<s;a++)o+=e[a].length;return o+=r,o}return{lines:e,indexToPos:t,posToIndex:i}}function kkt(n,e){let t=0;const i=[];for(const s of e)s>t&&i.push({...n,content:n.content.slice(t,s),offset:n.offset+t}),t=s;return t<n.content.length&&i.push({...n,content:n.content.slice(t),offset:n.offset+t}),i}function Akt(n,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((i,s)=>i-s);return t.length?n.map(i=>i.flatMap(s=>{const r=t.filter(o=>s.offset<o&&o<s.offset+s.content.length).map(o=>o-s.offset).sort((o,a)=>o-a);return r.length?kkt(s,r):s})):n}function Okt(n,e,t,i){const s={content:n.content,explanation:n.explanation,offset:n.offset},r=e.map(l=>_F(n.variants[l])),o=new Set(r.flatMap(l=>Object.keys(l))),a={};return r.forEach((l,c)=>{for(const d of o){const u=l[d]||"inherit";if(c===0&&i)a[d]=u;else{const h=d==="color"?"":d==="background-color"?"-bg":`-${d}`,f=t+e[c]+(d==="color"?"":h);a[f]=u}}}),s.htmlStyle=a,s}function _F(n){const e={};if(n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle){n.fontStyle&$a.Italic&&(e["font-style"]="italic"),n.fontStyle&$a.Bold&&(e["font-weight"]="bold");const t=[];n.fontStyle&$a.Underline&&t.push("underline"),n.fontStyle&$a.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function oQ(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}const iMe=new WeakMap;function Z4(n,e){iMe.set(n,e)}function Nx(n){return iMe.get(n)}class M0{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new M0(Object.fromEntries(Dkt(t).map(i=>[i,pF])),e)}constructor(...e){if(e.length===2){const[t,i]=e;this.lang=i,this._stacks=t}else{const[t,i,s]=e;this.lang=i,this._stacks={[s]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Mkt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Mkt(n){const e=[],t=new Set;function i(s){if(t.has(s))return;t.add(s);const r=s?.nameScopesList?.scopeName;r&&e.push(r),s.parent&&i(s.parent)}return i(n),e}function Pkt(n,e){if(!(n instanceof M0))throw new Go("Invalid grammar state");return n.getInternalStack(e)}function Fkt(){const n=new WeakMap;function e(t){if(!n.has(t.meta)){let i=function(o){if(typeof o=="number"){if(o<0||o>t.source.length)throw new Go(`Invalid decoration offset: ${o}. Code length: ${t.source.length}`);return{...s.indexToPos(o),offset:o}}else{const a=s.lines[o.line];if(a===void 0)throw new Go(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${s.lines.length}`);if(o.character<0||o.character>a.length)throw new Go(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,offset:s.posToIndex(o.line,o.character)}}};const s=Nkt(t.source),r=(t.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));Bkt(r),n.set(t.meta,{decorations:r,converter:s,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const s=e(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return Akt(t,s)},code(t){if(!this.options.decorations?.length)return;const i=e(this),s=Array.from(t.children).filter(d=>d.type==="element"&&d.tagName==="span");if(s.length!==i.converter.lines.length)throw new Go(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function r(d,u,h,f){const g=s[d];let p="",m=-1,_=-1;if(u===0&&(m=0),h===0&&(_=0),h===Number.POSITIVE_INFINITY&&(_=g.children.length),m===-1||_===-1)for(let b=0;b<g.children.length;b++)p+=nMe(g.children[b]),m===-1&&p.length===u&&(m=b+1),_===-1&&p.length===h&&(_=b+1);if(m===-1)throw new Go(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(_===-1)throw new Go(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const v=g.children.slice(m,_);if(!f.alwaysWrap&&v.length===g.children.length)a(g,f,"line");else if(!f.alwaysWrap&&v.length===1&&v[0].type==="element")a(v[0],f,"token");else{const b={type:"element",tagName:"span",properties:{},children:v};a(b,f,"wrapper"),g.children.splice(m,v.length,b)}}function o(d,u){s[d]=a(s[d],u,"line")}function a(d,u,h){const f=u.properties||{},g=u.transform||(p=>p);return d.tagName=u.tagName||"span",d.properties={...d.properties,...f,class:d.properties.class},u.properties?.class&&tMe(d,u.properties.class),d=g(d,h)||d,d}const l=[],c=i.decorations.sort((d,u)=>u.start.offset-d.start.offset||d.end.offset-u.end.offset);for(const d of c){const{start:u,end:h}=d;if(u.line===h.line)r(u.line,u.character,h.character,d);else if(u.line<h.line){r(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let f=u.line+1;f<h.line;f++)l.unshift(()=>o(f,d));r(h.line,0,h.character,d)}}l.forEach(d=>d())}}}function Bkt(n){for(let e=0;e<n.length;e++){const t=n[e];if(t.start.offset>t.end.offset)throw new Go(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=e+1;i<n.length;i++){const s=n[i],r=t.start.offset<=s.start.offset&&s.start.offset<t.end.offset,o=t.start.offset<s.end.offset&&s.end.offset<=t.end.offset,a=s.start.offset<=t.start.offset&&t.start.offset<s.end.offset,l=s.start.offset<t.end.offset&&t.end.offset<=s.end.offset;if(r||o||a||l){if(r&&o||a&&l)continue;throw new Go(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function nMe(n){return n.type==="text"?n.value:n.type==="element"?n.children.map(nMe).join(""):""}const Hkt=[Fkt()];function vF(n){return[...n.transformers||[],...Hkt]}var pb=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],b8={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Vkt(n,e){const t=n.indexOf("\x1B",e);if(t!==-1&&n[t+1]==="["){const i=n.indexOf("m",t);if(i!==-1)return{sequence:n.substring(t+2,i).split(";"),startPosition:t,position:i+1}}return{position:n.length}}function Q_e(n){const e=n.shift();if(e==="2"){const t=n.splice(0,3).map(i=>Number.parseInt(i));return t.length!==3||t.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=n.shift();if(t)return{type:"table",index:Number(t)}}}function Wkt(n){const e=[];for(;n.length>0;){const t=n.shift();if(!t)continue;const i=Number.parseInt(t);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)b8[i]&&e.push({type:"setDecoration",value:b8[i]});else if(i<=29){const s=b8[i-20];s&&(e.push({type:"resetDecoration",value:s}),s==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:pb[i-30]}});else if(i===38){const s=Q_e(n);s&&e.push({type:"setForegroundColor",value:s})}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:pb[i-40]}});else if(i===48){const s=Q_e(n);s&&e.push({type:"setBackgroundColor",value:s})}else i===49?e.push({type:"resetBackgroundColor"}):i===53?e.push({type:"setDecoration",value:"overline"}):i===55?e.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:pb[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:pb[i-100+8]}})}return e}function Ukt(){let n=null,e=null,t=new Set;return{parse(i){const s=[];let r=0;do{const o=Vkt(i,r),a=o.sequence?i.substring(r,o.startPosition):i.substring(r);if(a.length>0&&s.push({value:a,foreground:n,background:e,decorations:new Set(t)}),o.sequence){const l=Wkt(o.sequence);for(const c of l)c.type==="resetAll"?(n=null,e=null,t.clear()):c.type==="resetForegroundColor"?n=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&t.delete(c.value);for(const c of l)c.type==="setForegroundColor"?n=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&t.add(c.value)}r=o.position}while(r<i.length);return s}}}var $kt={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function zkt(n=$kt){function e(a){return n[a]}function t(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let i;function s(){if(i)return i;i=[];for(let c=0;c<pb.length;c++)i.push(e(pb[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)i.push(t([a[c],a[d],a[u]]));let l=8;for(let c=0;c<24;c++,l+=10)i.push(t([l,l,l]));return i}function r(a){return s()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return t(a.rgb);case"table":return r(a.index)}}return{value:o}}function Gkt(n,e,t){const i=mF(n,t),s=X4(e),r=zkt(Object.fromEntries(pb.map(a=>[a,n.colors?.[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]))),o=Ukt();return s.map(a=>o.parse(a[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?r.value(l.background):n.bg,d=l.foreground?r.value(l.foreground):n.fg):(c=l.foreground?r.value(l.foreground):n.fg,d=l.background?r.value(l.background):void 0),c=gb(c,i),d=gb(d,i),l.decorations.has("dim")&&(c=qkt(c));let u=$a.None;return l.decorations.has("bold")&&(u|=$a.Bold),l.decorations.has("italic")&&(u|=$a.Italic),l.decorations.has("underline")&&(u|=$a.Underline),l.decorations.has("strikethrough")&&(u|=$a.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:d,fontStyle:u}}))}function qkt(n){const e=n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const i=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${i}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(i=>`${i}${i}`).join("")}80`;const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function mne(n,e,t={}){const{lang:i="text",theme:s=n.getLoadedThemes()[0]}=t;if(gne(i)||pne(s))return X4(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=n.setTheme(s);if(i==="ansi")return Gkt(r,e,t);const a=n.getLanguage(i);if(t.grammarState){if(t.grammarState.lang!==a.name)throw new Go(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${a.name}"`);if(!t.grammarState.themes.includes(r.name))throw new Go(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return jkt(e,a,r,o,t)}function Kkt(...n){if(n.length===2)return Nx(n[1]);const[e,t,i={}]=n,{lang:s="text",theme:r=e.getLoadedThemes()[0]}=i;if(gne(s)||pne(r))throw new Go("Plain language does not have grammar state");if(s==="ansi")throw new Go("ANSI language does not have grammar state");const{theme:o,colorMap:a}=e.setTheme(r),l=e.getLanguage(s);return new M0(bF(t,l,o,a,i).stateStack,l.name,o.name)}function jkt(n,e,t,i,s){const r=bF(n,e,t,i,s),o=new M0(bF(n,e,t,i,s).stateStack,e.name,t.name);return Z4(r.tokens,o),r.tokens}function bF(n,e,t,i,s){const r=mF(t,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=s,l=X4(n);let c=s.grammarState?Pkt(s.grammarState,t.name)??pF:s.grammarContextCode!=null?bF(s.grammarContextCode,e,t,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:pF,d=[];const u=[];for(let h=0,f=l.length;h<f;h++){const[g,p]=l[h];if(g===""){d=[],u.push([]);continue}if(o>0&&g.length>=o){d=[],u.push([{content:g,offset:p,color:"",fontStyle:0}]);continue}let m,_,v;s.includeExplanation&&(m=e.tokenizeLine(g,c,a),_=m.tokens,v=0);const b=e.tokenizeLine2(g,c,a),S=b.tokens.length/2;for(let y=0;y<S;y++){const C=b.tokens[2*y],T=y+1<S?b.tokens[2*y+2]:g.length;if(C===T)continue;const E=b.tokens[2*y+1],I=gb(i[IS.getForeground(E)],r),D=IS.getFontStyle(E),R={content:g.substring(C,T),offset:p+C,color:I,fontStyle:D};if(s.includeExplanation){const x=[];if(s.includeExplanation!=="scopeName")for(const L of t.settings){let N;switch(typeof L.scope){case"string":N=L.scope.split(/,/).map(A=>A.trim());break;case"object":N=L.scope;break;default:continue}x.push({settings:L,selectors:N.map(A=>A.split(/ /))})}R.explanation=[];let k=0;for(;C+k<T;){const L=_[v],N=g.substring(L.startIndex,L.endIndex);k+=N.length,R.explanation.push({content:N,scopes:s.includeExplanation==="scopeName"?Ykt(L.scopes):Qkt(x,L.scopes)}),v+=1}}d.push(R)}u.push(d),d=[],c=b.ruleStack}return{tokens:u,stateStack:c}}function Ykt(n){return n.map(e=>({scopeName:e}))}function Qkt(n,e){const t=[];for(let i=0,s=e.length;i<s;i++){const r=e[i];t[i]={scopeName:r,themeMatches:Zkt(n,r,e.slice(0,i))}}return t}function X_e(n,e){return n===e||e.substring(0,n.length)===n&&e[n.length]==="."}function Xkt(n,e,t){if(!X_e(n[n.length-1],e))return!1;let i=n.length-2,s=t.length-1;for(;i>=0&&s>=0;)X_e(n[i],t[s])&&(i-=1),s-=1;return i===-1}function Zkt(n,e,t){const i=[];for(const{selectors:s,settings:r}of n)for(const o of s)if(Xkt(o,e,t)){i.push(r);break}return i}function sMe(n,e,t){const i=Object.entries(t.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=i.map(l=>{const c=mne(n,e,{...t,theme:l.theme}),d=Nx(c),u=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:d,theme:u}}),r=Jkt(...s.map(l=>l.tokens)),o=r[0].map((l,c)=>l.map((d,u)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in t&&t.includeExplanation&&(h.explanation=d.explanation),r.forEach((f,g)=>{const{content:p,explanation:m,offset:_,...v}=f[c][u];h.variants[i[g].color]=v}),h})),a=s[0].state?new M0(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&Z4(o,a),o}function Jkt(...n){const e=n.map(()=>[]),t=n.length;for(let i=0;i<n[0].length;i++){const s=n.map(l=>l[i]),r=e.map(()=>[]);e.forEach((l,c)=>l.push(r[c]));const o=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<t;c++){const d=a[c];d.content.length===l?(r[c].push(d),o[c]+=1,a[c]=s[c][o[c]]):(r[c].push({...d,content:d.content.slice(0,l)}),a[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return e}function SF(n,e,t){let i,s,r,o,a,l;if("themes"in t){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-"}=t,u=Object.entries(t.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})).sort((m,_)=>m.color===c?-1:_.color===c?1:0);if(u.length===0)throw new Go("`themes` option must not be empty");const h=sMe(n,e,t);if(l=Nx(h),c&&!u.find(m=>m.color===c))throw new Go(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=u.map(m=>n.getTheme(m.theme)),g=u.map(m=>m.color);r=h.map(m=>m.map(_=>Okt(_,g,d,c))),l&&Z4(r,l);const p=u.map(m=>mF(m.theme,t));s=u.map((m,_)=>(_===0&&c?"":`${d+m.color}:`)+(gb(f[_].fg,p[_])||"inherit")).join(";"),i=u.map((m,_)=>(_===0&&c?"":`${d+m.color}-bg:`)+(gb(f[_].bg,p[_])||"inherit")).join(";"),o=`shiki-themes ${f.map(m=>m.name).join(" ")}`,a=c?void 0:[s,i].join(";")}else if("theme"in t){const c=mF(t.theme,t);r=mne(n,e,t);const d=n.getTheme(t.theme);i=gb(d.bg,c),s=gb(d.fg,c),o=d.name,l=Nx(r)}else throw new Go("Invalid options, either `theme` or `themes` must be provided");return{tokens:r,fg:s,bg:i,themeName:o,rootStyle:a,grammarState:l}}function yF(n,e,t,i={meta:{},options:t,codeToHast:(s,r)=>yF(n,s,r),codeToTokens:(s,r)=>SF(n,s,r)}){let s=e;for(const g of vF(t))s=g.preprocess?.call(i,s,t)||s;let{tokens:r,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:d}=SF(n,s,t);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:h=!1}=t;u===!0?r=tAt(r):u==="never"&&(r=iAt(r)),h&&(r=nAt(r));const f={...i,get source(){return s}};for(const g of vF(t))r=g.tokens?.call(f,r)||r;return eAt(r,{...t,fg:o,bg:a,themeName:l,rootStyle:c},f,d)}function eAt(n,e,t,i=Nx(n)){const s=vF(e),r=[],o={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=e;let c={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},d={type:"element",tagName:"code",properties:{},children:r};const u=[],h={...t,structure:a,addClassToHast:tMe,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return o},get pre(){return c},get code(){return d},get lines(){return u}};if(n.forEach((g,p)=>{p&&(a==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&r.push({type:"text",value:`
997
- `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const v of g){let b={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};const S=oQ(v.htmlStyle||_F(v));S&&(b.properties.style=S);for(const y of s)b=y?.span?.call(h,b,p+1,_,m,v)||b;a==="inline"?o.children.push(b):a==="classic"&&m.children.push(b),_+=v.content.length}if(a==="classic"){for(const v of s)m=v?.line?.call(h,m,p+1)||m;u.push(m),r.push(m)}}),a==="classic"){for(const g of s)d=g?.code?.call(h,d)||d;c.children.push(d);for(const g of s)c=g?.pre?.call(h,c)||c;o.children.push(c)}let f=o;for(const g of s)f=g?.root?.call(h,f)||f;return i&&Z4(f,i),f}function tAt(n){return n.map(e=>{const t=[];let i="",s=0;return e.forEach((r,o)=>{const l=!(r.fontStyle&&(r.fontStyle&$a.Underline||r.fontStyle&$a.Strikethrough));l&&r.content.match(/^\s+$/)&&e[o+1]?(s||(s=r.offset),i+=r.content):i?(l?t.push({...r,offset:s,content:i+r.content}):t.push({content:i,offset:s},r),s=0,i=""):t.push(r)}),t})}function iAt(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const i=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return t;const[,s,r,o]=i;if(!s&&!o)return t;const a=[{...t,offset:t.offset+s.length,content:r}];return s&&a.unshift({content:s,offset:t.offset}),o&&a.push({content:o,offset:t.offset+s.length+r.length}),a}))}function nAt(n){return n.map(e=>{const t=[];for(const i of e){if(t.length===0){t.push({...i});continue}const s=t[t.length-1],r=s.htmlStyle||oQ(_F(s)),o=i.htmlStyle||oQ(_F(i)),a=s.fontStyle&&(s.fontStyle&$a.Underline||s.fontStyle&$a.Strikethrough),l=i.fontStyle&&(i.fontStyle&$a.Underline||i.fontStyle&$a.Strikethrough);!a&&!l&&r===o?s.content+=i.content:t.push({...i})}return t})}const sAt=Lkt;function rAt(n,e,t){const i={meta:{},options:t,codeToHast:(r,o)=>yF(n,r,o),codeToTokens:(r,o)=>SF(n,r,o)};let s=sAt(yF(n,e,t,i));for(const r of vF(t))s=r.postprocess?.call(i,s,t)||s;return s}const Z_e={light:"#333333",dark:"#bbbbbb"},J_e={light:"#fffffe",dark:"#1e1e1e"},eve="__shiki_resolved";function _ne(n){if(n?.[eve])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:i}=e;if(!t||!i){const a=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(t=a.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),i||(i=e.type==="light"?Z_e.light:Z_e.dark),t||(t=e.type==="light"?J_e.light:J_e.dark),e.fg=i,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0;const r=new Map;function o(a){if(r.has(a))return r.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?o(a):(r.set(a,l),l)}e.settings=e.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const d={...a,settings:{...a.settings}};if(l){const u=o(a.settings.foreground);e.colorReplacements[u]=a.settings.foreground,d.settings.foreground=u}if(c){const u=o(a.settings.background);e.colorReplacements[u]=a.settings.background,d.settings.background=u}return d});for(const a of Object.keys(e.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!e.colors[a]?.startsWith("#")){const l=o(e.colors[a]);e.colorReplacements[l]=e.colors[a],e.colors[a]=l}return Object.defineProperty(e,eve,{enumerable:!1,writable:!1,value:!0}),e}async function rMe(n){return Array.from(new Set((await Promise.all(n.filter(e=>!JOe(e)).map(async e=>await ZOe(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function oMe(n){return(await Promise.all(n.map(async t=>eMe(t)?null:_ne(await ZOe(t))))).filter(t=>!!t)}let oAt=3;function aAt(n,e=3){e>oAt||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let WC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class lAt extends uNt{constructor(e,t,i,s={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=s,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=_ne(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=dF.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new WC(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const s=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(s.name=e.name,this._resolvedGrammars.set(e.name,s),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const s of e)this.resolveEmbeddedLanguages(s);const t=Array.from(this._langGraph.entries()),i=t.filter(([s,r])=>!r);if(i.length){const s=t.filter(([r,o])=>o&&o.embeddedLangs?.some(a=>i.map(([l])=>l).includes(a))).filter(r=>!i.includes(r));throw new WC(`Missing languages ${i.map(([r])=>`\`${r}\``).join(", ")}, required by ${s.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[s,r]of t)this._resolver.addLanguage(r);for(const[s,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class cAt{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let s=1;s<=t.length;s++){const r=t.slice(0,s).join(".");i=[...i,...this._injections.get(r)||[]]}return i}}let N1=0;function dAt(n){N1+=1,n.warnings!==!1&&N1>=10&&N1%10===0&&console.warn(`[Shiki] ${N1} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new WC("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),i=(n.themes||[]).flat(1).map(_ne),s=new cAt(n.engine,t),r=new lAt(s,i,t,n.langAlias);let o;function a(v){m();const b=r.getGrammar(typeof v=="string"?v:v.name);if(!b)throw new WC(`Language \`${v}\` not found, you may need to load it first`);return b}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const b=r.getTheme(v);if(!b)throw new WC(`Theme \`${v}\` not found, you may need to load it first`);return b}function c(v){m();const b=l(v);o!==v&&(r.setTheme(b),o=v);const S=r.getColorMap();return{theme:b,colorMap:S}}function d(){return m(),r.getLoadedThemes()}function u(){return m(),r.getLoadedLanguages()}function h(...v){m(),r.loadLanguages(v.flat(1))}async function f(...v){return h(await rMe(v))}function g(...v){m();for(const b of v.flat(1))r.loadTheme(b)}async function p(...v){return m(),g(await oMe(v))}function m(){if(e)throw new WC("Shiki instance has been disposed")}function _(){e||(e=!0,r.dispose(),N1-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:u,loadLanguage:f,loadLanguageSync:h,loadTheme:p,loadThemeSync:g,dispose:_,[Symbol.dispose]:_}}async function uAt(n){n.engine||aAt("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,i]=await Promise.all([oMe(n.themes||[]),rMe(n.langs||[]),n.engine]);return dAt({...n,themes:e,langs:t,engine:i})}async function hAt(n){const e=await uAt(n);return{getLastGrammarState:(...t)=>Kkt(e,...t),codeToTokensBase:(t,i)=>mne(e,t,i),codeToTokensWithThemes:(t,i)=>sMe(e,t,i),codeToTokens:(t,i)=>SF(e,t,i),codeToHast:(t,i)=>yF(e,t,i),codeToHtml:(t,i)=>rAt(e,t,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function fAt(n){const e=n.langs,t=n.themes,i=n.engine;async function s(r){function o(u){if(typeof u=="string"){if(JOe(u))return[];const h=e[u];if(!h)throw new Go(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}function a(u){if(eMe(u))return"none";if(typeof u=="string"){const h=t[u];if(!h)throw new Go(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}const l=(r.themes??[]).map(u=>a(u)),c=(r.langs??[]).map(u=>o(u)),d=await hAt({engine:r.engine??i(),...r,themes:l,langs:c});return{...d,loadLanguage(...u){return d.loadLanguage(...u.map(o))},loadTheme(...u){return d.loadTheme(...u.map(a))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return s}const aMe=[{id:"abap",name:"ABAP",import:()=>ne(()=>import("./C-LNjlSw.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>ne(()=>import("./SpSV0q3Y.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>ne(()=>import("./CwwkfVSR.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>ne(()=>import("./CW2Vrioc.js").then(n=>n.f),__vite__mapDeps([2,3,4,5]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>ne(()=>import("./1FBXtL6T.js"),__vite__mapDeps([6,2,3,4,5,7]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>ne(()=>import("./Pmp26Uib.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>ne(()=>import("./QX45V2Sx.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>ne(()=>import("./32uRPJ4N.js"),__vite__mapDeps([8,3,4,5,9,10,11]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>ne(()=>import("./3x3noH9Z.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>ne(()=>import("./bbDxRicf.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>ne(()=>import("./DUyX-Nai.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>ne(()=>import("./8iK_SAcF.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>ne(()=>import("./zH8SnKTm.js"),__vite__mapDeps([12,11,4,13,5,14]),import.meta.url)},{id:"awk",name:"AWK",import:()=>ne(()=>import("./BInbHe_J.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>ne(()=>import("./C96HV_dC.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>ne(()=>import("./DVZd9B17.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>ne(()=>import("./BoKiGodi.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>ne(()=>import("./D08WgyRC.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>ne(()=>import("./CHM0blh-.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>ne(()=>import("./6nHXG8SA.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>ne(()=>import("./CtIj0LFu.js"),__vite__mapDeps([15,16,3,4,5,9,10,17,11]),import.meta.url)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>ne(()=>import("./CquLrc37.js"),__vite__mapDeps([18,19]),import.meta.url)},{id:"c",name:"C",import:()=>ne(()=>import("./Dql7v_Bn.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>ne(()=>import("./CSgDAwbP.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>ne(()=>import("./CYx6PXAq.js"),__vite__mapDeps([20,21]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>ne(()=>import("./D_3VmgUT.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>ne(()=>import("./P80f7IUj.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>ne(()=>import("./Cn55uXmY.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>ne(()=>import("./B9Kps4VT.js"),__vite__mapDeps([22,3,4,5,10]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>ne(()=>import("./Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>ne(()=>import("./DPjEyH5T.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>ne(()=>import("./M64VA-8k.js"),__vite__mapDeps([23,4]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>ne(()=>import("./kdhEWpvT.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>ne(()=>import("./COqw26dr.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>ne(()=>import("./BzgE5b26.js"),__vite__mapDeps([24,25,26,27,17]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>ne(()=>import("./CYBft37h.js"),__vite__mapDeps([28,3,4,5,17,27,29]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>ne(()=>import("./CHadp7IV.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>ne(()=>import("./B0QpCHAm.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>ne(()=>import("./fuZLfV_i.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>ne(()=>import("./D82EKSYY.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>ne(()=>import("./afimtvtX.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>ne(()=>import("./BLe-5KzV.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>ne(()=>import("./CF10PKvl.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>ne(()=>import("./os-I7NdE.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>ne(()=>import("./BmXAJ9_W.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>ne(()=>import("./D97Zzqfu.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>ne(()=>import("./BcOcwvcX.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>ne(()=>import("./Da5cRb03.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>ne(()=>import("./WwEXBnAl.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>ne(()=>import("./BG8T9Pi3.js"),__vite__mapDeps([30,13,3,4,5,16]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>ne(()=>import("./Wlg0E1_o.js"),__vite__mapDeps([31,3,4,5]),import.meta.url)},{id:"elm",name:"Elm",import:()=>ne(()=>import("./RUaqLVwG.js"),__vite__mapDeps([32,26,27]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>ne(()=>import("./BAsAT7ku.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>ne(()=>import("./DtXx6hVj.js"),__vite__mapDeps([33,3,4,5,34,35,9,10,17,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>ne(()=>import("./BjMo22yv.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>ne(()=>import("./D1HCxHaw.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>ne(()=>import("./Bl2oy6fF.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>ne(()=>import("./C4IJs8-o.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>ne(()=>import("./WZprGpd_.js"),__vite__mapDeps([41,42]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>ne(()=>import("./-gUCin__.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>ne(()=>import("./hIfYPPDs.js"),__vite__mapDeps([43,44]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>ne(()=>import("./8VYUoF4n.js"),__vite__mapDeps([45,46,47]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>ne(()=>import("./CBs8Keu3.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>ne(()=>import("./DkwncUOv.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>ne(()=>import("./D0YGMca9.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>ne(()=>import("./Bp_PLy4w.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>ne(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>ne(()=>import("./BFdI9D2b.js"),__vite__mapDeps([50,29]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>ne(()=>import("./DfbSQCnh.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>ne(()=>import("./DCIw00iZ.js"),__vite__mapDeps([51,4,13,5,3]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>ne(()=>import("./C1s3v70Z.js"),__vite__mapDeps([52,13,5,4,3]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>ne(()=>import("./BgLz8NXr.js"),__vite__mapDeps([26,27]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>ne(()=>import("./CFetOo1p.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>ne(()=>import("./ClSdsI-R.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>ne(()=>import("./DFFYXpeI.js"),__vite__mapDeps([36,4,13,37,38]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>ne(()=>import("./PDBGRe-6.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>ne(()=>import("./itr3s8OG.js"),__vite__mapDeps([53,3,4,5,17]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>ne(()=>import("./gI3nN7Ut.js"),__vite__mapDeps([35,4,5]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>ne(()=>import("./C9-wYoAy.js"),__vite__mapDeps([54,3,4,5,40]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>ne(()=>import("./Df6bDoY_.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>ne(()=>import("./DC3yV9u3.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>ne(()=>import("./BWvSN4gD.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>ne(()=>import("./D5-asLiD.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>ne(()=>import("./B2VXiYNb.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>ne(()=>import("./BHuRbl13.js"),__vite__mapDeps([3,4,5]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>ne(()=>import("./CCouqEzj.js"),__vite__mapDeps([16,3,4,5]),import.meta.url)},{id:"http",name:"HTTP",import:()=>ne(()=>import("./CJ1eVxFS.js"),__vite__mapDeps([55,29,11,9,10,36,4,13,37,38]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>ne(()=>import("./Cqtoupvr.js"),__vite__mapDeps([56,57]),import.meta.url)},{id:"hy",name:"Hy",import:()=>ne(()=>import("./DFXneXwc.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>ne(()=>import("./E_RAAYUa.js"),[],import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>ne(()=>import("./BEwlwnbL.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>ne(()=>import("./CtpALBBA.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>ne(()=>import("./ryoHgIpY.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>ne(()=>import("./BFKVEqu8.js"),__vite__mapDeps([58,3,4,5]),import.meta.url)},{id:"jison",name:"Jison",import:()=>ne(()=>import("./BVgHyAf_.js"),__vite__mapDeps([59,4]),import.meta.url)},{id:"json",name:"JSON",import:()=>ne(()=>import("./Cp-IABpG.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>ne(()=>import("./C9tS-k6U.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>ne(()=>import("./Des-eS-w.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>ne(()=>import("./DcaNXYhu.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>ne(()=>import("./caUT6aIO.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>ne(()=>import("./C2t-YnRu.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>ne(()=>import("./h0LN4FIn.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>ne(()=>import("./DW9tJLXY.js"),__vite__mapDeps([60,24,25,26,27,17,21,4,61]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>ne(()=>import("./BdnUsdx6.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>ne(()=>import("./BKLW6Or0.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>ne(()=>import("./BfB9GJr7.js"),__vite__mapDeps([62,63,61]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>ne(()=>import("./Bc5W3P_y.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>ne(()=>import("./DqnT6WTg.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>ne(()=>import("./BDJi0rE3.js"),__vite__mapDeps([64,3,4,5,11]),import.meta.url)},{id:"llvm",name:"LLVM IR",import:()=>ne(()=>import("./DLpp9LvF.js"),[],import.meta.url)},{id:"log",name:"Log file",import:()=>ne(()=>import("./BPQEJVH-.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>ne(()=>import("./BB0-839A.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>ne(()=>import("./C9lfyjdU.js"),__vite__mapDeps([39,27]),import.meta.url)},{id:"luau",name:"Luau",import:()=>ne(()=>import("./BUGa-R-r.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>ne(()=>import("./BoASPUxF.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>ne(()=>import("./C9sg6759.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>ne(()=>import("./B82-JnRn.js"),__vite__mapDeps([65,5,66,7,4]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>ne(()=>import("./Coy0nst6.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>ne(()=>import("./DREyJzTe.js"),__vite__mapDeps([67,44,40,16,3,4,5]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>ne(()=>import("./DHd_1LBM.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>ne(()=>import("./DfYh35At.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>ne(()=>import("./B7zkapVa.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>ne(()=>import("./DmN1BIHU.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>ne(()=>import("./BkPM1oy1.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>ne(()=>import("./DRg8JJMk.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>ne(()=>import("./BU0udk1K.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>ne(()=>import("./Dykf6cri.js"),__vite__mapDeps([68,39,27]),import.meta.url)},{id:"nim",name:"Nim",import:()=>ne(()=>import("./D_T-aAMc.js"),__vite__mapDeps([69,27,3,4,5,9,10,26,44]),import.meta.url)},{id:"nix",name:"Nix",import:()=>ne(()=>import("./CDCQC_zV.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>ne(()=>import("./DOiXYxxS.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>ne(()=>import("./P9Jyl3kd.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>ne(()=>import("./CFJys5tQ.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>ne(()=>import("./SN78sQLf.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>ne(()=>import("./DLb4zeju.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>ne(()=>import("./G3-HApOe.js"),__vite__mapDeps([70,3,4,5,9,10,17]),import.meta.url)},{id:"php",name:"PHP",import:()=>ne(()=>import("./C8_cZGvL.js"),__vite__mapDeps([71,3,4,5,9,10,17,11]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>ne(()=>import("./DbnbuKy4.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>ne(()=>import("./BTJTHyun.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>ne(()=>import("./C0HS_06l.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>ne(()=>import("./CXtECtnM.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>ne(()=>import("./CEu0bR-o.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>ne(()=>import("./B9QZihn4.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>ne(()=>import("./Dd19v3D-.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>ne(()=>import("./BRGHnwaO.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>ne(()=>import("./DyJlTyXw.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>ne(()=>import("./DJs7a6wl.js"),__vite__mapDeps([72,4,5,3]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>ne(()=>import("./BMWR74SV.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>ne(()=>import("./CtrldY6v.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>ne(()=>import("./CXTBPihj.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>ne(()=>import("./CNgRkp1_.js"),__vite__mapDeps([73,4]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>ne(()=>import("./C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>ne(()=>import("./diaQH6uK.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>ne(()=>import("./Cpx7UCi2.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>ne(()=>import("./BauLn-NW.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>ne(()=>import("./CrUG655c.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>ne(()=>import("./CChMg1-B.js"),__vite__mapDeps([74,3,4,5,75]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>ne(()=>import("./C-SQnVFl.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>ne(()=>import("./CDVJQ6XC.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>ne(()=>import("./C3B-1QV4.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>ne(()=>import("./LUZpk28X.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>ne(()=>import("./B9QVBjCK.js"),__vite__mapDeps([76,16,3,4,5,24,25,26,27,17,21,29,40,77,34,35,9,10,36,13,37,38,39]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>ne(()=>import("./cP9hzipi.js"),__vite__mapDeps([34,3,4,5,35,9,10,17,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>ne(()=>import("./B1yitclQ.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>ne(()=>import("./Bv2DfwTI.js"),__vite__mapDeps([78,17]),import.meta.url)},{id:"sass",name:"Sass",import:()=>ne(()=>import("./Cj5Yp3dK.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>ne(()=>import("./C151Ov-r.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>ne(()=>import("./BlI8fBv_.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>ne(()=>import("./mtNz0_Xw.js"),__vite__mapDeps([7,5]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>ne(()=>import("./DVxCFoDh.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>ne(()=>import("./CeDfCXaY.js"),__vite__mapDeps([79,80]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>ne(()=>import("./enPR0-Fz.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>ne(()=>import("./BIzIjuvV.js"),__vite__mapDeps([81,29]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>ne(()=>import("./BKe6jfpc.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>ne(()=>import("./BbcW6ACK.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>ne(()=>import("./CEizyJ1q.js"),__vite__mapDeps([82,3,4,5]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>ne(()=>import("./BRZ36xJF.js"),__vite__mapDeps([83,84]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>ne(()=>import("./C2pHKz2C.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>ne(()=>import("./Bc-MNOVW.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>ne(()=>import("./_ykCGR6B.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>ne(()=>import("./CFfumueS.js"),__vite__mapDeps([85,17]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>ne(()=>import("./DgWikGMS.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>ne(()=>import("./CrtRcjh8.js"),__vite__mapDeps([86,4,13,5,14]),import.meta.url)},{id:"swift",name:"Swift",import:()=>ne(()=>import("./fve9TYiY.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>ne(()=>import("./CVTao1yP.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>ne(()=>import("./BgWFZNIN.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>ne(()=>import("./Z9sDDOrt.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>ne(()=>import("./QIJgUcNo.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>ne(()=>import("./dwOrl1Do.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>ne(()=>import("./Da4t7zrk.js"),__vite__mapDeps([87,88,4,5]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>ne(()=>import("./lrsjGwJC.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>ne(()=>import("./BAmeXbWa.js"),__vite__mapDeps([63,61]),import.meta.url)},{id:"toml",name:"TOML",import:()=>ne(()=>import("./DpWJAGvS.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>ne(()=>import("./Cc-FHe7z.js"),__vite__mapDeps([89,13,5,4,26,27,3,17,9,10]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>ne(()=>import("./B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>ne(()=>import("./nsowKw4B.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>ne(()=>import("./BsS91CYL.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>ne(()=>import("./GXefNOxV.js"),__vite__mapDeps([90,5,4,7,71,3,9,10,17,11,21,34,35,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>ne(()=>import("./CYoF9-Z5.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>ne(()=>import("./Df68jz8_.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>ne(()=>import("./C5DMNY_Y.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>ne(()=>import("./Bx8CTVFK.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>ne(()=>import("./wef_wrfO.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>ne(()=>import("./gsC4jtYg.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>ne(()=>import("./BQ8w6xss.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>ne(()=>import("./B-n0qIwP.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>ne(()=>import("./2vEc2rIP.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>ne(()=>import("./C5CPwoy2.js"),__vite__mapDeps([91,5,4,13,11,16,3]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>ne(()=>import("./CKfMBS6n.js"),__vite__mapDeps([92,91,5,4,13,11,16,3]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>ne(()=>import("./BvCpsbMi.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>ne(()=>import("./BIkblFNm.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>ne(()=>import("./BV7otONQ.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>ne(()=>import("./Dx-B1_4e.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>ne(()=>import("./y_XAX2KJ.js"),[],import.meta.url)},{id:"wit",name:"WebAssembly Interface Types",import:()=>ne(()=>import("./5i3qLPDT.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>ne(()=>import("./BdBarL6S.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>ne(()=>import("./CCLpvtro.js"),__vite__mapDeps([9,10]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>ne(()=>import("./Chm2_3hY.js"),__vite__mapDeps([93,9,10]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>ne(()=>import("./Buea-lGh.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>ne(()=>import("./Y7AfTJ_q.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>ne(()=>import("./CK-KhNJq.js"),[],import.meta.url)}],gAt=Object.fromEntries(aMe.map(n=>[n.id,n.import])),pAt=Object.fromEntries(aMe.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),mAt={...gAt,...pAt},_At=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>ne(()=>import("./C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>ne(()=>import("./D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>ne(()=>import("./Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>ne(()=>import("./Btyk0a-E.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>ne(()=>import("./q-j0iyEw.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>ne(()=>import("./brDaU2vB.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>ne(()=>import("./BR7mELCv.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>ne(()=>import("./C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>ne(()=>import("./BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>ne(()=>import("./BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>ne(()=>import("./BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>ne(()=>import("./C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>ne(()=>import("./DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>ne(()=>import("./Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>ne(()=>import("./DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>ne(()=>import("./E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>ne(()=>import("./DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>ne(()=>import("./D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>ne(()=>import("./BfjtVDDH.js"),[],import.meta.url)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>ne(()=>import("./Hhtzho9R.js"),[],import.meta.url)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>ne(()=>import("./DFR6f4Jn.js"),[],import.meta.url)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>ne(()=>import("./BFVdkX1U.js"),[],import.meta.url)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>ne(()=>import("./7i6GEmcB.js"),[],import.meta.url)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>ne(()=>import("./Dcsh5twl.js"),[],import.meta.url)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>ne(()=>import("./leinZj1a.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>ne(()=>import("./DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>ne(()=>import("./CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>ne(()=>import("./CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>ne(()=>import("./DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>ne(()=>import("./DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>ne(()=>import("./B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>ne(()=>import("./D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>ne(()=>import("./BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>ne(()=>import("./B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>ne(()=>import("./CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>ne(()=>import("./Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>ne(()=>import("./CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>ne(()=>import("./CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>ne(()=>import("./D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>ne(()=>import("./C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>ne(()=>import("./Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>ne(()=>import("./DVMEJ2y_.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>ne(()=>import("./PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>ne(()=>import("./3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>ne(()=>import("./CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>ne(()=>import("./bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>ne(()=>import("./BHrmToEH.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>ne(()=>import("./CnK8MTSM.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>ne(()=>import("./NleAzG8P.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>ne(()=>import("./BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>ne(()=>import("./DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>ne(()=>import("./Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>ne(()=>import("./DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>ne(()=>import("./L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>ne(()=>import("./CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>ne(()=>import("./hegEt444.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>ne(()=>import("./DU1UobuO.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>ne(()=>import("./Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>ne(()=>import("./D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>ne(()=>import("./CVO1_9PV.js"),[],import.meta.url)}],vAt=Object.fromEntries(_At.map(n=>[n.id,n.import]));class vne extends Error{constructor(e){super(e),this.name="ShikiError"}}function bAt(){return 2147483648}function SAt(){return typeof performance<"u"?performance.now():Date.now()}const yAt=(n,e)=>n+(e-n%e)%e;async function CAt(n){let e,t;const i={};function s(f){t=f,i.HEAPU8=new Uint8Array(f),i.HEAPU32=new Uint32Array(f)}function r(f,g,p){i.HEAPU8.copyWithin(f,g,g+p)}function o(f){try{return e.grow(f-t.byteLength+65535>>>16),s(e.buffer),1}catch{}}function a(f){const g=i.HEAPU8.length;f=f>>>0;const p=bAt();if(f>p)return!1;for(let m=1;m<=4;m*=2){let _=g*(1+.2/m);_=Math.min(_,f+100663296);const v=Math.min(p,yAt(Math.max(f,_),65536));if(o(v))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,g,p=1024){const m=g+p;let _=g;for(;f[_]&&!(_>=m);)++_;if(_-g>16&&f.buffer&&l)return l.decode(f.subarray(g,_));let v="";for(;g<_;){let b=f[g++];if(!(b&128)){v+=String.fromCharCode(b);continue}const S=f[g++]&63;if((b&224)===192){v+=String.fromCharCode((b&31)<<6|S);continue}const y=f[g++]&63;if((b&240)===224?b=(b&15)<<12|S<<6|y:b=(b&7)<<18|S<<12|y<<6|f[g++]&63,b<65536)v+=String.fromCharCode(b);else{const C=b-65536;v+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return v}function d(f,g){return f?c(i.HEAPU8,f,g):""}const u={emscripten_get_now:SAt,emscripten_memcpy_big:r,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const g=await n({env:u,wasi_snapshot_preview1:u});e=g.memory,s(e.buffer),Object.assign(i,g),i.UTF8ToString=d}return await h(),i}var wAt=Object.defineProperty,EAt=(n,e,t)=>e in n?wAt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Co=(n,e,t)=>EAt(n,typeof e!="symbol"?e+"":e,t);let Wo=null;function TAt(n){throw new vne(n.UTF8ToString(n.getLastOnigError()))}class J4{constructor(e){Co(this,"utf16Length"),Co(this,"utf8Length"),Co(this,"utf16Value"),Co(this,"utf8Value"),Co(this,"utf16OffsetToUtf8"),Co(this,"utf8OffsetToUtf16");const t=e.length,i=J4._utf8ByteLength(e),s=i!==t,r=s?new Uint32Array(t+1):null;s&&(r[t]=i);const o=s?new Uint32Array(i+1):null;s&&(o[i]=t);const a=new Uint8Array(i);let l=0;for(let c=0;c<t;c++){const d=e.charCodeAt(c);let u=d,h=!1;if(d>=55296&&d<=56319&&c+1<t){const f=e.charCodeAt(c+1);f>=56320&&f<=57343&&(u=(d-55296<<10)+65536|f-56320,h=!0)}s&&(r[c]=l,h&&(r[c+1]=l),u<=127?o[l+0]=c:u<=2047?(o[l+0]=c,o[l+1]=c):u<=65535?(o[l+0]=c,o[l+1]=c,o[l+2]=c):(o[l+0]=c,o[l+1]=c,o[l+2]=c,o[l+3]=c)),u<=127?a[l++]=u:u<=2047?(a[l++]=192|(u&1984)>>>6,a[l++]=128|(u&63)>>>0):u<=65535?(a[l++]=224|(u&61440)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0):(a[l++]=240|(u&1835008)>>>18,a[l++]=128|(u&258048)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0),h&&c++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,s=e.length;i<s;i++){const r=e.charCodeAt(i);let o=r,a=!1;if(r>=55296&&r<=56319&&i+1<s){const l=e.charCodeAt(i+1);l>=56320&&l<=57343&&(o=(r-55296<<10)+65536|l-56320,a=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,a&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const e3=class Mh{constructor(e){if(Co(this,"id",++Mh.LAST_ID),Co(this,"_onigBinding"),Co(this,"content"),Co(this,"utf16Length"),Co(this,"utf8Length"),Co(this,"utf16OffsetToUtf8"),Co(this,"utf8OffsetToUtf16"),Co(this,"ptr"),!Wo)throw new vne("Must invoke loadWasm first.");this._onigBinding=Wo,this.content=e;const t=new J4(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Mh._sharedPtrInUse?(Mh._sharedPtr||(Mh._sharedPtr=Wo.omalloc(1e4)),Mh._sharedPtrInUse=!0,Wo.HEAPU8.set(t.utf8Value,Mh._sharedPtr),this.ptr=Mh._sharedPtr):this.ptr=t.createString(Wo)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Mh._sharedPtr?Mh._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Co(e3,"LAST_ID",0);Co(e3,"_sharedPtr",0);Co(e3,"_sharedPtrInUse",!1);let lMe=e3;class IAt{constructor(e){if(Co(this,"_onigBinding"),Co(this,"_ptr"),!Wo)throw new vne("Must invoke loadWasm first.");const t=[],i=[];for(let a=0,l=e.length;a<l;a++){const c=new J4(e[a]);t[a]=c.createString(Wo),i[a]=c.utf8Length}const s=Wo.omalloc(4*e.length);Wo.HEAPU32.set(t,s/4);const r=Wo.omalloc(4*e.length);Wo.HEAPU32.set(i,r/4);const o=Wo.createOnigScanner(s,r,e.length);for(let a=0,l=e.length;a<l;a++)Wo.ofree(t[a]);Wo.ofree(r),Wo.ofree(s),o===0&&TAt(Wo),this._onigBinding=Wo,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let s=0;if(typeof i=="number"&&(s=i),typeof e=="string"){e=new lMe(e);const r=this._findNextMatchSync(e,t,!1,s);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,s)}_findNextMatchSync(e,t,i,s){const r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s);if(o===0)return null;const a=r.HEAPU32;let l=o/4;const c=a[l++],d=a[l++],u=[];for(let h=0;h<d;h++){const f=e.convertUtf8OffsetToUtf16(a[l++]),g=e.convertUtf8OffsetToUtf16(a[l++]);u[h]={start:f,end:g,length:g-f}}return{index:c,captureIndices:u}}}function LAt(n){return typeof n.instantiator=="function"}function xAt(n){return typeof n.default=="function"}function RAt(n){return typeof n.data<"u"}function DAt(n){return typeof Response<"u"&&n instanceof Response}function NAt(n){return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&Buffer.isBuffer?.(n)||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let Ek;function kAt(n){if(Ek)return Ek;async function e(){Wo=await CAt(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),LAt(i)?i=await i.instantiator(t):xAt(i)?i=await i.default(t):(RAt(i)&&(i=i.data),DAt(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await AAt(i)(t):i=await OAt(i)(t):NAt(i)?i=await S8(i)(t):i instanceof WebAssembly.Module?i=await S8(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await S8(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Ek=e(),Ek}function S8(n){return e=>WebAssembly.instantiate(n,e)}function AAt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function OAt(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function MAt(n){return n&&await kAt(n),{createScanner(e){return new IAt(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new lMe(e)}}}const PAt=fAt({langs:mAt,themes:vAt,engine:()=>MAt(ne(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),FAt=await PAt({themes:["dark-plus"],langs:["nix"]});_4.register({id:"nix"});_4.setLanguageConfiguration("nix",{brackets:[["{","}"],["[","]"],["(",")"]]});fNt(FAt,cne);self.MonacoEnvironment={getWorker(n,e){switch(e){case"yaml":return new XRt;default:return new ZRt}}};const tve=new Map,BAt=TDt(cne,{});T7.config({monaco:cne});function ive(n){for(const[e,{schema:t}]of Object.entries(n.args))CF(t)&&(tve.set(`${n.type}.${e}`,{fileMatch:[`${n.type}.${e}`],uri:`library://${n.type}/${e}`,schema:t}),BAt.update({schemas:Array.from(tve.values())}))}function CF(n){return n.type==="object"?!0:n.type==="array"?CF(n.items):"anyOf"in n?CF(n.anyOf[0]):!1}const cMe=Symbol.for("vuetify:selection-control-group"),dMe=It({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:is,trueIcon:is,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Fu},...An(),...lh(),...ea()},"SelectionControlGroup"),HAt=It({...dMe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Li()({name:"VSelectionControlGroup",props:HAt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ys(n,"modelValue"),s=Jd(),r=ue(()=>n.id||`v-selection-control-group-${s}`),o=ue(()=>n.name||r.value),a=new Set;return ur(cMe,{modelValue:i,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),nr(()=>{a.delete(l)})}}),QE({[n.defaultsTarget]:{color:xt(n,"color"),disabled:xt(n,"disabled"),density:xt(n,"density"),error:xt(n,"error"),inline:xt(n,"inline"),modelValue:i,multiple:ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),name:o,falseIcon:xt(n,"falseIcon"),trueIcon:xt(n,"trueIcon"),readonly:xt(n,"readonly"),ripple:xt(n,"ripple"),type:xt(n,"type"),valueComparator:xt(n,"valueComparator")}}),on(()=>K("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":n.inline},n.class],style:n.style,role:n.type==="radio"?"radiogroup":void 0},[t.default?.()])),{}}});const uMe=It({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...An(),...dMe()},"VSelectionControl");function VAt(n){const e=Qn(cMe,void 0),{densityClasses:t}=Pf(n),i=Ys(n,"modelValue"),s=ue(()=>n.trueValue!==void 0?n.trueValue:n.value!==void 0?n.value:!0),r=ue(()=>n.falseValue!==void 0?n.falseValue:!1),o=ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),a=ue({get(){const f=e?e.modelValue.value:i.value;return o.value?fc(f).some(g=>n.valueComparator(g,s.value)):n.valueComparator(f,s.value)},set(f){if(n.readonly)return;const g=f?s.value:r.value;let p=g;o.value&&(p=f?[...fc(i.value),g]:fc(i.value).filter(m=>!n.valueComparator(m,s.value))),e?e.modelValue.value=p:i.value=p}}),{textColorClasses:l,textColorStyles:c}=ju(ue(()=>{if(!(n.error||n.disabled))return a.value?n.color:n.baseColor})),{backgroundColorClasses:d,backgroundColorStyles:u}=Um(ue(()=>a.value&&!n.error&&!n.disabled?n.color:n.baseColor)),h=ue(()=>a.value?n.trueIcon:n.falseIcon);return{group:e,densityClasses:t,trueValue:s,falseValue:r,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,icon:h}}const nve=Li()({name:"VSelectionControl",directives:{Ripple:bR},inheritAttrs:!1,props:uMe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const{group:s,densityClasses:r,icon:o,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,trueValue:h}=VAt(n),f=Jd(),g=Gt(!1),p=Gt(!1),m=Ne(),_=ue(()=>n.id||`input-${f}`),v=ue(()=>!n.disabled&&!n.readonly);s?.onForceUpdate(()=>{m.value&&(m.value.checked=a.value)});function b(T){v.value&&(g.value=!0,lM(T.target,":focus-visible")!==!1&&(p.value=!0))}function S(){g.value=!1,p.value=!1}function y(T){T.stopPropagation()}function C(T){if(!v.value){m.value&&(m.value.checked=a.value);return}n.readonly&&s&&Ki(()=>s.forceUpdate()),a.value=T.target.checked}return on(()=>{const T=i.label?i.label({label:n.label,props:{for:_.value}}):n.label,[E,I]=vB(t),D=K("input",$t({ref:m,checked:a.value,disabled:!!n.disabled,id:_.value,onBlur:S,onFocus:b,onInput:C,"aria-disabled":!!n.disabled,"aria-label":n.label,type:n.type,value:h.value,name:n.name,"aria-checked":n.type==="checkbox"?a.value:void 0},I),null);return K("div",$t({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":n.disabled,"v-selection-control--error":n.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":p.value,"v-selection-control--inline":n.inline},r.value,n.class]},E,{style:n.style}),[K("div",{class:["v-selection-control__wrapper",l.value],style:c.value},[i.default?.({backgroundColorClasses:d,backgroundColorStyles:u}),Ol(K("div",{class:["v-selection-control__input"]},[i.input?.({model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,inputNode:D,icon:o.value,props:{onFocus:b,onBlur:S,id:_.value}})??K(vt,null,[o.value&&K(Vi,{key:"icon",icon:o.value},null),D])]),[[k_("ripple"),n.ripple&&[!n.disabled&&!n.readonly,null,["center","circle"]]]])]),T&&K(u0e,{for:_.value,onClick:y},{default:()=>[T]})])}),{isFocused:g,input:m}}}),hMe=It({indeterminate:Boolean,indeterminateIcon:{type:is,default:"$checkboxIndeterminate"},...uMe({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),wF=Li()({name:"VCheckboxBtn",props:hMe(),emits:{"update:modelValue":n=>!0,"update:indeterminate":n=>!0},setup(n,e){let{slots:t}=e;const i=Ys(n,"indeterminate"),s=Ys(n,"modelValue");function r(l){i.value&&(i.value=!1)}const o=ue(()=>i.value?n.indeterminateIcon:n.falseIcon),a=ue(()=>i.value?n.indeterminateIcon:n.trueIcon);return on(()=>{const l=wp(nve.filterProps(n),["modelValue"]);return K(nve,$t(l,{modelValue:s.value,"onUpdate:modelValue":[c=>s.value=c,r],class:["v-checkbox-btn",n.class],style:n.style,type:"checkbox",falseIcon:o.value,trueIcon:a.value,"aria-checked":i.value?"mixed":void 0}),t)}),{}}}),WAt=It({...RB(),...wp(hMe(),["inline"])},"VCheckbox"),oC=Li()({name:"VCheckbox",inheritAttrs:!1,props:WAt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const s=Ys(n,"modelValue"),{isFocused:r,focus:o,blur:a}=TB(n),l=Jd(),c=ue(()=>n.id||`checkbox-${l}`);return on(()=>{const[d,u]=vB(t),h=Ww.filterProps(n),f=wF.filterProps(n);return K(Ww,$t({class:["v-checkbox",n.class]},d,h,{modelValue:s.value,"onUpdate:modelValue":g=>s.value=g,id:c.value,focused:r.value,style:n.style}),{...i,default:g=>{let{id:p,messagesId:m,isDisabled:_,isReadonly:v,isValid:b}=g;return K(wF,$t(f,{id:p.value,"aria-describedby":m.value,disabled:_.value,readonly:v.value},u,{error:b.value===!1,modelValue:s.value,"onUpdate:modelValue":S=>s.value=S,onFocus:o,onBlur:a}),i)}})}),{}}});function UAt(n){let{selectedElement:e,containerElement:t,isRtl:i,isHorizontal:s}=n;const r=kx(s,t),o=fMe(s,i,t),a=kx(s,e),l=gMe(s,e),c=a*.4;return o>l?l-c:o+r<l+a?l-r+a+c:o}function $At(n){let{selectedElement:e,containerElement:t,isHorizontal:i}=n;const s=kx(i,t),r=gMe(i,e),o=kx(i,e);return r-s/2+o/2}function sve(n,e){return e?.[n?"scrollWidth":"scrollHeight"]||0}function zAt(n,e){return e?.[n?"clientWidth":"clientHeight"]||0}function fMe(n,e,t){if(!t)return 0;const{scrollLeft:i,offsetWidth:s,scrollWidth:r}=t;return n?e?r-s+i:i:t.scrollTop}function kx(n,e){return e?.[n?"offsetWidth":"offsetHeight"]||0}function gMe(n,e){return e?.[n?"offsetLeft":"offsetTop"]||0}const GAt=Symbol.for("vuetify:v-slide-group"),pMe=It({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:GAt},nextIcon:{type:is,default:"$next"},prevIcon:{type:is,default:"$prev"},showArrows:{type:[Boolean,String],validator:n=>typeof n=="boolean"||["always","desktop","mobile"].includes(n)},...An(),...$Ue({mobile:null}),...ta(),...sZ({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),rve=Li()({name:"VSlideGroup",props:pMe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{isRtl:i}=A_(),{displayClasses:s,mobile:r}=VX(n),o=rZ(n,n.symbol),a=Gt(!1),l=Gt(0),c=Gt(0),d=Gt(0),u=ue(()=>n.direction==="horizontal"),{resizeRef:h,contentRect:f}=KI(),{resizeRef:g,contentRect:p}=KI(),m=qUe(),_=ue(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),v=ue(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[0]):-1),b=ue(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[o.selected.value.length-1]):-1);if(ds){let P=-1;rt(()=>[o.selected.value,f.value,p.value,u.value],()=>{cancelAnimationFrame(P),P=requestAnimationFrame(()=>{if(f.value&&p.value){const W=u.value?"width":"height";c.value=f.value[W],d.value=p.value[W],a.value=c.value+1<d.value}if(v.value>=0&&g.el){const W=g.el.children[b.value];y(W,n.centerActive)}})})}const S=Gt(!1);function y(P,W){let j=0;W?j=$At({containerElement:h.el,isHorizontal:u.value,selectedElement:P}):j=UAt({containerElement:h.el,isHorizontal:u.value,isRtl:i.value,selectedElement:P}),C(j)}function C(P){if(!ds||!h.el)return;const W=kx(u.value,h.el),j=fMe(u.value,i.value,h.el);if(!(sve(u.value,h.el)<=W||Math.abs(P-j)<16)){if(u.value&&i.value&&h.el){const{scrollWidth:q,offsetWidth:oe}=h.el;P=q-oe-P}u.value?m.horizontal(P,_.value):m(P,_.value)}}function T(P){const{scrollTop:W,scrollLeft:j}=P.target;l.value=u.value?j:W}function E(P){if(S.value=!0,!(!a.value||!g.el)){for(const W of P.composedPath())for(const j of g.el.children)if(j===W){y(j);return}}}function I(P){S.value=!1}let D=!1;function R(P){!D&&!S.value&&!(P.relatedTarget&&g.el?.contains(P.relatedTarget))&&N(),D=!1}function x(){D=!0}function k(P){if(!g.el)return;function W(j){P.preventDefault(),N(j)}u.value?P.key==="ArrowRight"?W(i.value?"prev":"next"):P.key==="ArrowLeft"&&W(i.value?"next":"prev"):P.key==="ArrowDown"?W("next"):P.key==="ArrowUp"&&W("prev"),P.key==="Home"?W("first"):P.key==="End"&&W("last")}function L(P,W){if(!P)return;let j=P;do j=j?.[W==="next"?"nextElementSibling":"previousElementSibling"];while(j?.hasAttribute("disabled"));return j}function N(P){if(!g.el)return;let W;if(!P)W=UI(g.el)[0];else if(P==="next"){if(W=L(g.el.querySelector(":focus"),P),!W)return N("first")}else if(P==="prev"){if(W=L(g.el.querySelector(":focus"),P),!W)return N("last")}else P==="first"?(W=g.el.firstElementChild,W?.hasAttribute("disabled")&&(W=L(W,"next"))):P==="last"&&(W=g.el.lastElementChild,W?.hasAttribute("disabled")&&(W=L(W,"prev")));W&&W.focus({preventScroll:!0})}function A(P){const W=u.value&&i.value?-1:1,j=(P==="prev"?-W:W)*c.value;let H=l.value+j;if(u.value&&i.value&&h.el){const{scrollWidth:q,offsetWidth:oe}=h.el;H+=q-oe}C(H)}const F=ue(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),B=ue(()=>{switch(n.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return r.value||a.value||Math.abs(l.value)>0;default:return!r.value&&(a.value||Math.abs(l.value)>0)}}),O=ue(()=>Math.abs(l.value)>1),M=ue(()=>{if(!h.value)return!1;const P=sve(u.value,h.el),W=zAt(u.value,h.el);return P-W-Math.abs(l.value)>1});return on(()=>K(n.tag,{class:["v-slide-group",{"v-slide-group--vertical":!u.value,"v-slide-group--has-affixes":B.value,"v-slide-group--is-overflowing":a.value},s.value,n.class],style:n.style,tabindex:S.value||o.selected.value.length?-1:0,onFocus:R},{default:()=>[B.value&&K("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!O.value}],onMousedown:x,onClick:()=>O.value&&A("prev")},[t.prev?.(F.value)??K(woe,null,{default:()=>[K(Vi,{icon:i.value?n.nextIcon:n.prevIcon},null)]})]),K("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:T},[K("div",{ref:g,class:"v-slide-group__content",onFocusin:E,onFocusout:I,onKeydown:k},[t.default?.(F.value)])]),B.value&&K("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}],onMousedown:x,onClick:()=>M.value&&A("next")},[t.next?.(F.value)??K(woe,null,{default:()=>[K(Vi,{icon:i.value?n.prevIcon:n.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:A,scrollOffset:l,focus:N,hasPrev:O,hasNext:M}}}),mMe=Symbol.for("vuetify:v-chip-group"),qAt=It({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Fu},...pMe(),...An(),...sZ({selectedClass:"v-chip--selected"}),...ta(),...ea(),...Ip({variant:"tonal"})},"VChipGroup");Li()({name:"VChipGroup",props:qAt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{themeClasses:i}=Wl(n),{isSelected:s,select:r,next:o,prev:a,selected:l}=rZ(n,mMe);return QE({VChip:{color:xt(n,"color"),disabled:xt(n,"disabled"),filter:xt(n,"filter"),variant:xt(n,"variant")}}),on(()=>{const c=rve.filterProps(n);return K(rve,$t(c,{class:["v-chip-group",{"v-chip-group--column":n.column},i.value,n.class],style:n.style}),{default:()=>[t.default?.({isSelected:s,select:r,next:o,prev:a,selected:l.value})]})}),{}}});const KAt=It({activeClass:String,appendAvatar:String,appendIcon:is,closable:Boolean,closeIcon:{type:is,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:is,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:is,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:gc(),onClickOnce:gc(),...VS(),...An(),...lh(),...US(),...T0e(),...oh(),...kB(),..._R(),...ta({tag:"span"}),...ea(),...Ip({variant:"tonal"})},"VChip"),rf=Li()({name:"VChip",directives:{Ripple:bR},props:KAt(),emits:{"click:close":n=>!0,"update:modelValue":n=>!0,"group:selected":n=>!0,click:n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{t:r}=mR(),{borderClasses:o}=WS(n),{colorClasses:a,colorStyles:l,variantClasses:c}=e0(n),{densityClasses:d}=Pf(n),{elevationClasses:u}=$S(n),{roundedClasses:h}=ah(n),{sizeClasses:f}=vR(n),{themeClasses:g}=Wl(n),p=Ys(n,"modelValue"),m=I0e(n,mMe,!1),_=NB(n,t),v=ue(()=>n.link!==!1&&_.isLink.value),b=ue(()=>!n.disabled&&n.link!==!1&&(!!m||n.link||_.isClickable.value)),S=ue(()=>({"aria-label":r(n.closeLabel),onClick(T){T.preventDefault(),T.stopPropagation(),p.value=!1,i("click:close",T)}}));function y(T){i("click",T),b.value&&(_.navigate?.(T),m?.toggle())}function C(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),y(T))}return()=>{const T=_.isLink.value?"a":n.tag,E=!!(n.appendIcon||n.appendAvatar),I=!!(E||s.append),D=!!(s.close||n.closable),R=!!(s.filter||n.filter)&&m,x=!!(n.prependIcon||n.prependAvatar),k=!!(x||s.prepend),L=!m||m.isSelected.value;return p.value&&Ol(K(T,$t({class:["v-chip",{"v-chip--disabled":n.disabled,"v-chip--label":n.label,"v-chip--link":b.value,"v-chip--filter":R,"v-chip--pill":n.pill,[`${n.activeClass}`]:n.activeClass&&_.isActive?.value},g.value,o.value,L?a.value:void 0,d.value,u.value,h.value,f.value,c.value,m?.selectedClass.value,n.class],style:[L?l.value:void 0,n.style],disabled:n.disabled||void 0,draggable:n.draggable,tabindex:b.value?0:void 0,onClick:y,onKeydown:b.value&&!v.value&&C},_.linkProps),{default:()=>[JE(b.value,"v-chip"),R&&K(c0e,{key:"filter"},{default:()=>[Ol(K("div",{class:"v-chip__filter"},[s.filter?K(Wr,{key:"filter-defaults",disabled:!n.filterIcon,defaults:{VIcon:{icon:n.filterIcon}}},s.filter):K(Vi,{key:"filter-icon",icon:n.filterIcon},null)]),[[jE,m.isSelected.value]])]}),k&&K("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?K(Wr,{key:"prepend-defaults",disabled:!x,defaults:{VAvatar:{image:n.prependAvatar,start:!0},VIcon:{icon:n.prependIcon,start:!0}}},s.prepend):K(vt,null,[n.prependIcon&&K(Vi,{key:"prepend-icon",icon:n.prependIcon,start:!0},null),n.prependAvatar&&K(ip,{key:"prepend-avatar",image:n.prependAvatar,start:!0},null)])]),K("div",{class:"v-chip__content","data-no-activator":""},[s.default?.({isSelected:m?.isSelected.value,selectedClass:m?.selectedClass.value,select:m?.select,toggle:m?.toggle,value:m?.value.value,disabled:n.disabled})??Bi(n.text)]),I&&K("div",{key:"append",class:"v-chip__append"},[s.append?K(Wr,{key:"append-defaults",disabled:!E,defaults:{VAvatar:{end:!0,image:n.appendAvatar},VIcon:{end:!0,icon:n.appendIcon}}},s.append):K(vt,null,[n.appendIcon&&K(Vi,{key:"append-icon",end:!0,icon:n.appendIcon},null),n.appendAvatar&&K(ip,{key:"append-avatar",end:!0,image:n.appendAvatar},null)])]),D&&K("button",$t({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},S.value),[s.close?K(Wr,{key:"close-defaults",defaults:{VIcon:{icon:n.closeIcon,size:"x-small"}}},s.close):K(Vi,{key:"close-icon",icon:n.closeIcon,size:"x-small"},null)])]}),[[k_("ripple"),b.value&&n.ripple,null]])}}}),jAt=It({renderless:Boolean,...An()},"VVirtualScrollItem"),YAt=Li()({name:"VVirtualScrollItem",inheritAttrs:!1,props:jAt(),emits:{"update:height":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{resizeRef:r,contentRect:o}=KI(void 0,"border");rt(()=>o.value?.height,a=>{a!=null&&i("update:height",a)}),on(()=>n.renderless?K(vt,null,[s.default?.({itemRef:r})]):K("div",$t({ref:r,class:["v-virtual-scroll__item",n.class],style:n.style},t),[s.default?.()]))}}),QAt=-1,XAt=1,y8=100,ZAt=It({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function JAt(n,e){const t=VX(),i=Gt(0);Ya(()=>{i.value=parseFloat(n.itemHeight||0)});const s=Gt(0),r=Gt(Math.ceil((parseInt(n.height)||t.height.value)/(i.value||16))||1),o=Gt(0),a=Gt(0),l=Ne(),c=Ne();let d=0;const{resizeRef:u,contentRect:h}=KI();Ya(()=>{u.value=l.value});const f=ue(()=>l.value===document.documentElement?t.height.value:h.value?.height||parseInt(n.height)||0),g=ue(()=>!!(l.value&&c.value&&f.value&&i.value));let p=Array.from({length:e.value.length}),m=Array.from({length:e.value.length});const _=Gt(0);let v=-1;function b(M){return p[M]||i.value}const S=wHe(()=>{const M=performance.now();m[0]=0;const P=e.value.length;for(let W=1;W<=P-1;W++)m[W]=(m[W-1]||0)+b(W-1);_.value=Math.max(_.value,performance.now()-M)},_),y=rt(g,M=>{M&&(y(),d=c.value.offsetTop,S.immediate(),A(),~v&&Ki(()=>{ds&&window.requestAnimationFrame(()=>{B(v),v=-1})}))});nr(()=>{S.clear()});function C(M,P){const W=p[M],j=i.value;i.value=j?Math.min(i.value,P):P,(W!==P||j!==i.value)&&(p[M]=P,S())}function T(M){return M=af(M,0,e.value.length-1),m[M]||0}function E(M){return eOt(m,M)}let I=0,D=0,R=0;rt(f,(M,P)=>{P&&(A(),M<P&&requestAnimationFrame(()=>{D=0,A()}))});let x=-1;function k(){if(!l.value||!c.value)return;const M=l.value.scrollTop,P=performance.now();P-R>500?(D=Math.sign(M-I),d=c.value.offsetTop):D=M-I,I=M,R=P,window.clearTimeout(x),x=window.setTimeout(L,500),A()}function L(){!l.value||!c.value||(D=0,R=0,window.clearTimeout(x),A())}let N=-1;function A(){cancelAnimationFrame(N),N=requestAnimationFrame(F)}function F(){if(!l.value||!f.value)return;const M=I-d,P=Math.sign(D),W=Math.max(0,M-y8),j=af(E(W),0,e.value.length),H=M+f.value+y8,q=af(E(H)+1,j+1,e.value.length);if((P!==QAt||j<s.value)&&(P!==XAt||q>r.value)){const oe=T(s.value)-T(j),X=T(q)-T(r.value);Math.max(oe,X)>y8?(s.value=j,r.value=q):(j<=0&&(s.value=j),q>=e.value.length&&(r.value=q))}o.value=T(s.value),a.value=T(e.value.length)-T(r.value)}function B(M){const P=T(M);!l.value||M&&!P?v=M:l.value.scrollTop=P}const O=ue(()=>e.value.slice(s.value,r.value).map((M,P)=>({raw:M,index:P+s.value,key:iEe(M)&&"value"in M?M.value:P+s.value})));return rt(e,()=>{p=Array.from({length:e.value.length}),m=Array.from({length:e.value.length}),S.immediate(),A()},{deep:!0}),{calculateVisibleItems:A,containerRef:l,markerRef:c,computedItems:O,paddingTop:o,paddingBottom:a,scrollToIndex:B,handleScroll:k,handleScrollend:L,handleItemResize:C}}function eOt(n,e){let t=n.length-1,i=0,s=0,r=null,o=-1;if(n[t]<e)return t;for(;i<=t;)if(s=i+t>>1,r=n[s],r>e)t=s-1;else if(r<e)o=s,i=s+1;else return r===e?s:i;return o}const tOt=It({items:{type:Array,default:()=>[]},renderless:Boolean,...ZAt(),...An(),...Ep()},"VVirtualScroll"),_Me=Li()({name:"VVirtualScroll",props:tOt(),setup(n,e){let{slots:t}=e;const i=go("VVirtualScroll"),{dimensionStyles:s}=Tp(n),{calculateVisibleItems:r,containerRef:o,markerRef:a,handleScroll:l,handleScrollend:c,handleItemResize:d,scrollToIndex:u,paddingTop:h,paddingBottom:f,computedItems:g}=JAt(n,xt(n,"items"));return Qb(()=>n.renderless,()=>{function p(){const _=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[_]("scroll",l,{passive:!0}),document[_]("scrollend",c)):(o.value?.[_]("scroll",l,{passive:!0}),o.value?.[_]("scrollend",c))}sr(()=>{o.value=bEe(i.vnode.el,!0),p(!0)}),nr(p)}),on(()=>{const p=g.value.map(m=>K(YAt,{key:m.key,renderless:n.renderless,"onUpdate:height":_=>d(m.index,_)},{default:_=>t.default?.({item:m.raw,index:m.index,..._})}));return n.renderless?K(vt,null,[K("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:gn(h.value)}},null),p,K("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:gn(f.value)}},null)]):K("div",{ref:o,class:["v-virtual-scroll",n.class],onScrollPassive:l,onScrollend:c,style:[s.value,n.style]},[K("div",{ref:a,class:"v-virtual-scroll__container",style:{paddingTop:gn(h.value),paddingBottom:gn(f.value)}},[p])])}),{calculateVisibleItems:r,scrollToIndex:u}}});function vMe(n,e){const t=Gt(!1);let i;function s(a){cancelAnimationFrame(i),t.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{t.value=!1})})}async function r(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(t.value){const l=rt(t,()=>{l(),a()})}else a()})}async function o(a){if(a.key==="Tab"&&e.value?.focus(),!["PageDown","PageUp","Home","End"].includes(a.key))return;const l=n.value?.$el;if(!l)return;(a.key==="Home"||a.key==="End")&&l.scrollTo({top:a.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await r();const c=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const d=l.getBoundingClientRect().top;for(const u of c)if(u.getBoundingClientRect().top>=d){u.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const u of[...c].reverse())if(u.getBoundingClientRect().bottom<=d){u.focus();break}}}return{onScrollPassive:s,onKeydown:o}}const bMe=It({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:is,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...n1e({itemChildren:!1})},"Select"),iOt=It({...bMe(),...wp(eZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ZE({transition:{component:jX}})},"VSelect"),ove=Li()({name:"VSelect",props:iOt(),emits:{"update:focused":n=>!0,"update:modelValue":n=>!0,"update:menu":n=>!0},setup(n,e){let{slots:t}=e;const{t:i}=mR(),s=Ne(),r=Ne(),o=Ne(),a=Ys(n,"menu"),l=ue({get:()=>a.value,set:O=>{a.value&&!O&&r.value?.ΨopenChildren.size||(a.value=O)}}),{items:c,transformIn:d,transformOut:u}=r1e(n),h=Ys(n,"modelValue",[],O=>d(O===null?[null]:fc(O)),O=>{const M=u(O);return n.multiple?M:M[0]??null}),f=ue(()=>typeof n.counterValue=="function"?n.counterValue(h.value):typeof n.counterValue=="number"?n.counterValue:h.value.length),g=ZX(n),p=ue(()=>h.value.map(O=>O.value)),m=Gt(!1),_=ue(()=>l.value?n.closeText:n.openText);let v="",b;const S=ue(()=>n.hideSelected?c.value.filter(O=>!h.value.some(M=>(n.valueComparator||Fu)(M,O))):c.value),y=ue(()=>n.hideNoData&&!S.value.length||g.isReadonly.value||g.isDisabled.value),C=ue(()=>({...n.menuProps,activatorProps:{...n.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),T=Ne(),E=vMe(T,s);function I(O){n.openOnClear&&(l.value=!0)}function D(){y.value||(l.value=!l.value)}function R(O){cM(O)&&x(O)}function x(O){if(!O.key||g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(O.key)&&O.preventDefault(),["Enter","ArrowDown"," "].includes(O.key)&&(l.value=!0),["Escape","Tab"].includes(O.key)&&(l.value=!1),O.key==="Home"?T.value?.focus("first"):O.key==="End"&&T.value?.focus("last");const M=1e3;if(!cM(O))return;const P=performance.now();P-b>M&&(v=""),v+=O.key.toLowerCase(),b=P;const W=c.value.find(j=>j.title.toLowerCase().startsWith(v));if(W!==void 0){h.value=[W];const j=S.value.indexOf(W);ds&&window.requestAnimationFrame(()=>{j>=0&&o.value?.scrollToIndex(j)})}}function k(O){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!O.props.disabled)if(n.multiple){const P=h.value.findIndex(j=>(n.valueComparator||Fu)(j.value,O.value)),W=M??!~P;if(~P){const j=W?[...h.value,O]:[...h.value];j.splice(P,1),h.value=j}else W&&(h.value=[...h.value,O])}else{const P=M!==!1;h.value=P?[O]:[],Ki(()=>{l.value=!1})}}function L(O){T.value?.$el.contains(O.relatedTarget)||(l.value=!1)}function N(){n.eager&&o.value?.calculateVisibleItems()}function A(){m.value&&s.value?.focus()}function F(O){m.value=!0}function B(O){if(O==null)h.value=[];else if(lM(s.value,":autofill")||lM(s.value,":-webkit-autofill")){const M=c.value.find(P=>P.title===O);M&&k(M)}else s.value&&(s.value.value="")}return rt(l,()=>{if(!n.hideSelected&&l.value&&h.value.length){const O=S.value.findIndex(M=>h.value.some(P=>(n.valueComparator||Fu)(P.value,M.value)));ds&&window.requestAnimationFrame(()=>{O>=0&&o.value?.scrollToIndex(O)})}}),rt(()=>n.items,(O,M)=>{l.value||m.value&&!M.length&&O.length&&(l.value=!0)}),on(()=>{const O=!!(n.chips||t.chip),M=!!(!n.hideNoData||S.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),P=h.value.length>0,W=bf.filterProps(n),j=P||!m.value&&n.label&&!n.persistentPlaceholder?void 0:n.placeholder;return K(bf,$t({ref:s},W,{modelValue:h.value.map(H=>H.props.value).join(", "),"onUpdate:modelValue":B,focused:m.value,"onUpdate:focused":H=>m.value=H,validationValue:h.externalValue,counterValue:f.value,dirty:P,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!n.chips,[`v-select--${n.multiple?"multiple":"single"}`]:!0,"v-select--selected":h.value.length,"v-select--selection-slot":!!t.selection},n.class],style:n.style,inputmode:"none",placeholder:j,"onClick:clear":I,"onMousedown:control":D,onBlur:L,onKeydown:x,"aria-label":i(_.value),title:i(_.value)}),{...t,default:()=>K(vt,null,[K(t0,$t({ref:r,modelValue:l.value,"onUpdate:modelValue":H=>l.value=H,activator:"parent",contentClass:"v-select__content",disabled:y.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:N,onAfterLeave:A},C.value),{default:()=>[M&&K(yR,$t({ref:T,selected:p.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:H=>H.preventDefault(),onKeydown:R,onFocusin:F,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},E,n.listProps),{default:()=>[t["prepend-item"]?.(),!S.value.length&&!n.hideNoData&&(t["no-data"]?.()??K(Sf,{key:"no-data",title:i(n.noDataText)},null)),K(_Me,{ref:o,renderless:!0,items:S.value},{default:H=>{let{item:q,index:oe,itemRef:X}=H;const G=$t(q.props,{ref:X,key:q.value,onClick:()=>k(q,null)});return t.item?.({item:q,index:oe,props:G})??K(Sf,$t(G,{role:"option"}),{prepend:ge=>{let{isSelected:ve}=ge;return K(vt,null,[n.multiple&&!n.hideSelected?K(wF,{key:q.value,modelValue:ve,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&K(ip,{image:q.props.prependAvatar},null),q.props.prependIcon&&K(Vi,{icon:q.props.prependIcon},null)])}})}}),t["append-item"]?.()]})]}),h.value.map((H,q)=>{function oe(ve){ve.stopPropagation(),ve.preventDefault(),k(H,!1)}const X={"onClick:close":oe,onKeydown(ve){ve.key!=="Enter"&&ve.key!==" "||(ve.preventDefault(),ve.stopPropagation(),oe(ve))},onMousedown(ve){ve.preventDefault(),ve.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},G=O?!!t.chip:!!t.selection,ge=G?AX(O?t.chip({item:H,index:q,props:X}):t.selection({item:H,index:q})):void 0;if(!(G&&!ge))return K("div",{key:H.value,class:"v-select__selection"},[O?t.chip?K(Wr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:H.title}}},{default:()=>[ge]}):K(rf,$t({key:"chip",closable:n.closableChips,size:"small",text:H.title,disabled:H.props.disabled},X),null):ge??K("span",{class:"v-select__selection-text"},[H.title,n.multiple&&q<h.value.length-1&&K("span",{class:"v-select__selection-comma"},[ni(",")])])])})]),"append-inner":function(){for(var H=arguments.length,q=new Array(H),oe=0;oe<H;oe++)q[oe]=arguments[oe];return K(vt,null,[t["append-inner"]?.(...q),n.menuIcon?K(Vi,{class:"v-select__menu-icon",icon:n.menuIcon},null):void 0])}})}),O_({isFocused:m,menu:l,select:k},s)}}),nOt=(n,e,t)=>n==null||e==null?-1:n.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),sOt=It({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function rOt(n,e,t){const i=[],s=t?.default??nOt,r=t?.filterKeys?fc(t.filterKeys):!1,o=Object.keys(t?.customKeyFilter??{}).length;if(!n?.length)return i;e:for(let a=0;a<n.length;a++){const[l,c=l]=fc(n[a]),d={},u={};let h=-1;if((e||o>0)&&!t?.noFilter){if(typeof l=="object"){const p=r||Object.keys(c);for(const m of p){const _=Yh(c,m),v=t?.customKeyFilter?.[m];if(h=v?v(_,e,l):s(_,e,l),h!==-1&&h!==!1)v?d[m]=h:u[m]=h;else if(t?.filterMode==="every")continue e}}else h=s(l,e,l),h!==-1&&h!==!1&&(u.title=h);const f=Object.keys(u).length,g=Object.keys(d).length;if(!f&&!g||t?.filterMode==="union"&&g!==o&&!f||t?.filterMode==="intersection"&&(g!==o||!f))continue}i.push({index:a,matches:{...u,...d}})}return i}function oOt(n,e,t,i){const s=Gt([]),r=Gt(new Map),o=ue(()=>se(e));Ya(()=>{const l=typeof t=="function"?t():se(t),c=typeof l!="string"&&typeof l!="number"?"":String(l),d=rOt(o.value,c,{customKeyFilter:{...n.customKeyFilter,...se(i?.customKeyFilter)},default:n.customFilter,filterKeys:n.filterKeys,filterMode:n.filterMode,noFilter:n.noFilter}),u=se(e),h=[],f=new Map;d.forEach(g=>{let{index:p,matches:m}=g;const _=u[p];h.push(_),f.set(_.value,m)}),s.value=h,r.value=f});function a(l){return r.value.get(l.value)}return{filteredItems:s,filteredMatches:r,getMatches:a}}function aOt(n,e,t){if(e==null)return n;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?K(vt,null,[K("span",{class:"v-combobox__unmask"},[n.substr(0,e)]),K("span",{class:"v-combobox__mask"},[n.substr(e,t)]),K("span",{class:"v-combobox__unmask"},[n.substr(e+t)])]):n}const lOt=It({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...sOt({filterKeys:["title"]}),...bMe({hideNoData:!0,returnObject:!0}),...wp(eZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ZE({transition:!1})},"VCombobox"),cOt=Li()({name:"VCombobox",props:lOt(),emits:{"update:focused":n=>!0,"update:modelValue":n=>!0,"update:search":n=>!0,"update:menu":n=>!0},setup(n,e){let{emit:t,slots:i}=e;const{t:s}=mR(),r=Ne(),o=Gt(!1),a=Gt(!0),l=Gt(!1),c=Ne(),d=Ne(),u=Ys(n,"menu"),h=ue({get:()=>u.value,set:ee=>{u.value&&!ee&&c.value?.ΨopenChildren.size||(u.value=ee)}}),f=Gt(-1);let g=!1;const p=ue(()=>r.value?.color),m=ue(()=>h.value?n.closeText:n.openText),{items:_,transformIn:v,transformOut:b}=r1e(n),{textColorClasses:S,textColorStyles:y}=ju(p),C=Ys(n,"modelValue",[],ee=>v(fc(ee)),ee=>{const Y=b(ee);return n.multiple?Y:Y[0]??null}),T=ZX(n),E=ue(()=>!!(n.chips||i.chip)),I=ue(()=>E.value||!!i.selection),D=Gt(!n.multiple&&!I.value?C.value[0]?.title??"":""),R=ue({get:()=>D.value,set:ee=>{if(D.value=ee??"",!n.multiple&&!I.value&&(C.value=[um(n,ee)]),ee&&n.multiple&&n.delimiters?.length){const Y=ee.split(new RegExp(`(?:${n.delimiters.join("|")})+`));Y.length>1&&(Y.forEach(U=>{U=U.trim(),U&&G(um(n,U))}),D.value="")}ee||(f.value=-1),a.value=!ee}}),x=ue(()=>typeof n.counterValue=="function"?n.counterValue(C.value):typeof n.counterValue=="number"?n.counterValue:n.multiple?C.value.length:R.value.length);rt(D,ee=>{g?Ki(()=>g=!1):o.value&&!h.value&&(h.value=!0),t("update:search",ee)}),rt(C,ee=>{!n.multiple&&!I.value&&(D.value=ee[0]?.title??"")});const{filteredItems:k,getMatches:L}=oOt(n,_,()=>a.value?"":R.value),N=ue(()=>n.hideSelected?k.value.filter(ee=>!C.value.some(Y=>Y.value===ee.value)):k.value),A=ue(()=>C.value.map(ee=>ee.value)),F=ue(()=>(n.autoSelectFirst===!0||n.autoSelectFirst==="exact"&&R.value===N.value[0]?.title)&&N.value.length>0&&!a.value&&!l.value),B=ue(()=>n.hideNoData&&!N.value.length||T.isReadonly.value||T.isDisabled.value),O=Ne(),M=vMe(O,r);function P(ee){g=!0,n.openOnClear&&(h.value=!0)}function W(){B.value||(h.value=!0)}function j(ee){B.value||(o.value&&(ee.preventDefault(),ee.stopPropagation()),h.value=!h.value)}function H(ee){ee.key!==" "&&cM(ee)&&r.value?.focus()}function q(ee){if(CHe(ee)||T.isReadonly.value)return;const Y=r.value.selectionStart,U=C.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(ee.key)&&ee.preventDefault(),["Enter","ArrowDown"].includes(ee.key)&&(h.value=!0),["Escape"].includes(ee.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(ee.key)&&(F.value&&["Enter","Tab"].includes(ee.key)&&!C.value.some($=>{let{value:Q}=$;return Q===N.value[0].value})&&G(k.value[0]),a.value=!0),ee.key==="ArrowDown"&&F.value&&O.value?.focus("next"),ee.key==="Enter"&&R.value&&(G(um(n,R.value)),I.value&&(D.value="")),["Backspace","Delete"].includes(ee.key)){if(!n.multiple&&I.value&&C.value.length>0&&!R.value)return G(C.value[0],!1);if(~f.value){ee.preventDefault();const $=f.value;G(C.value[f.value],!1),f.value=$>=U-1?U-2:$}else ee.key==="Backspace"&&!R.value&&(f.value=U-1);return}if(n.multiple)if(ee.key==="ArrowLeft"){if(f.value<0&&Y>0)return;const $=f.value>-1?f.value-1:U-1;C.value[$]?f.value=$:(f.value=-1,r.value.setSelectionRange(R.value.length,R.value.length))}else if(ee.key==="ArrowRight"){if(f.value<0)return;const $=f.value+1;C.value[$]?f.value=$:(f.value=-1,r.value.setSelectionRange(0,0))}else~f.value&&cM(ee)&&(f.value=-1)}function oe(){n.eager&&d.value?.calculateVisibleItems()}function X(){o.value&&(a.value=!0,r.value?.focus())}function G(ee){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!ee||ee.props.disabled))if(n.multiple){const U=C.value.findIndex(Q=>(n.valueComparator||Fu)(Q.value,ee.value)),$=Y??!~U;if(~U){const Q=$?[...C.value,ee]:[...C.value];Q.splice(U,1),C.value=Q}else $&&(C.value=[...C.value,ee]);n.clearOnSelect&&(R.value="")}else{const U=Y!==!1;C.value=U?[ee]:[],D.value=U&&!I.value?ee.title:"",Ki(()=>{h.value=!1,a.value=!0})}}function ge(ee){o.value=!0,setTimeout(()=>{l.value=!0})}function ve(ee){l.value=!1}function le(ee){(ee==null||ee===""&&!n.multiple&&!I.value)&&(C.value=[])}return rt(o,(ee,Y)=>{if(!(ee||ee===Y)&&(f.value=-1,h.value=!1,R.value)){if(n.multiple){G(um(n,R.value));return}if(!I.value)return;C.value.some(U=>{let{title:$}=U;return $===R.value})?D.value="":G(um(n,R.value))}}),rt(h,()=>{if(!n.hideSelected&&h.value&&C.value.length){const ee=N.value.findIndex(Y=>C.value.some(U=>(n.valueComparator||Fu)(U.value,Y.value)));ds&&window.requestAnimationFrame(()=>{ee>=0&&d.value?.scrollToIndex(ee)})}}),rt(()=>n.items,(ee,Y)=>{h.value||o.value&&!Y.length&&ee.length&&(h.value=!0)}),on(()=>{const ee=!!(!n.hideNoData||N.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),Y=C.value.length>0,U=bf.filterProps(n);return K(bf,$t({ref:r},U,{modelValue:R.value,"onUpdate:modelValue":[$=>R.value=$,le],focused:o.value,"onUpdate:focused":$=>o.value=$,validationValue:C.externalValue,counterValue:x.value,dirty:Y,class:["v-combobox",{"v-combobox--active-menu":h.value,"v-combobox--chips":!!n.chips,"v-combobox--selection-slot":!!I.value,"v-combobox--selecting-index":f.value>-1,[`v-combobox--${n.multiple?"multiple":"single"}`]:!0},n.class],style:n.style,readonly:T.isReadonly.value,placeholder:Y?void 0:n.placeholder,"onClick:clear":P,"onMousedown:control":W,onKeydown:q}),{...i,default:()=>K(vt,null,[K(t0,$t({ref:c,modelValue:h.value,"onUpdate:modelValue":$=>h.value=$,activator:"parent",contentClass:"v-combobox__content",disabled:B.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:oe,onAfterLeave:X},n.menuProps),{default:()=>[ee&&K(yR,$t({ref:O,selected:A.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:$=>$.preventDefault(),onKeydown:H,onFocusin:ge,onFocusout:ve,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},M,n.listProps),{default:()=>[i["prepend-item"]?.(),!N.value.length&&!n.hideNoData&&(i["no-data"]?.()??K(Sf,{key:"no-data",title:s(n.noDataText)},null)),K(_Me,{ref:d,renderless:!0,items:N.value},{default:$=>{let{item:Q,index:Z,itemRef:be}=$;const ke=$t(Q.props,{ref:be,key:Q.value,active:F.value&&Z===0?!0:void 0,onClick:()=>G(Q,null)});return i.item?.({item:Q,index:Z,props:ke})??K(Sf,$t(ke,{role:"option"}),{prepend:we=>{let{isSelected:Ce}=we;return K(vt,null,[n.multiple&&!n.hideSelected?K(wF,{key:Q.value,modelValue:Ce,ripple:!1,tabindex:"-1"},null):void 0,Q.props.prependAvatar&&K(ip,{image:Q.props.prependAvatar},null),Q.props.prependIcon&&K(Vi,{icon:Q.props.prependIcon},null)])},title:()=>a.value?Q.title:aOt(Q.title,L(Q)?.title,R.value?.length??0)})}}),i["append-item"]?.()]})]}),C.value.map(($,Q)=>{function Z(Ce){Ce.stopPropagation(),Ce.preventDefault(),G($,!1)}const be={"onClick:close":Z,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),Z(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ke=E.value?!!i.chip:!!i.selection,we=ke?AX(E.value?i.chip({item:$,index:Q,props:be}):i.selection({item:$,index:Q})):void 0;if(!(ke&&!we))return K("div",{key:$.value,class:["v-combobox__selection",Q===f.value&&["v-combobox__selection--selected",S.value]],style:Q===f.value?y.value:{}},[E.value?i.chip?K(Wr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:$.title}}},{default:()=>[we]}):K(rf,$t({key:"chip",closable:n.closableChips,size:"small",text:$.title,disabled:$.props.disabled},be),null):we??K("span",{class:"v-combobox__selection-text"},[$.title,n.multiple&&Q<C.value.length-1&&K("span",{class:"v-combobox__selection-comma"},[ni(",")])])])})]),"append-inner":function(){for(var $=arguments.length,Q=new Array($),Z=0;Z<$;Z++)Q[Z]=arguments[Z];return K(vt,null,[i["append-inner"]?.(...Q),(!n.hideNoData||n.items.length)&&n.menuIcon?K(Vi,{class:"v-combobox__menu-icon",icon:n.menuIcon,onMousedown:j,onClick:THe,"aria-label":s(m.value),title:s(m.value),tabindex:"-1"},null):void 0])}})}),O_({isFocused:o,isPristine:a,menu:h,search:R,selectionIndex:f,filteredItems:k,select:G},r)}}),dOt=It({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:n=>!isNaN(parseFloat(n))},maxRows:{type:[Number,String],validator:n=>!isNaN(parseFloat(n))},suffix:String,modelModifiers:Object,...RB(),...XX()},"VTextarea"),uOt=Li()({name:"VTextarea",directives:{Intersect:JX},inheritAttrs:!1,props:dOt(),emits:{"click:control":n=>!0,"mousedown:control":n=>!0,"update:focused":n=>!0,"update:modelValue":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const r=Ys(n,"modelValue"),{isFocused:o,focus:a,blur:l}=TB(n),c=ue(()=>typeof n.counterValue=="function"?n.counterValue(r.value):(r.value||"").toString().length),d=ue(()=>{if(t.maxlength)return t.maxlength;if(!(!n.counter||typeof n.counter!="number"&&typeof n.counter!="string"))return n.counter});function u(R,x){!n.autofocus||!R||x[0].target?.focus?.()}const h=Ne(),f=Ne(),g=Gt(""),p=Ne(),m=ue(()=>n.persistentPlaceholder||o.value||n.active);function _(){p.value!==document.activeElement&&p.value?.focus(),o.value||a()}function v(R){_(),i("click:control",R)}function b(R){i("mousedown:control",R)}function S(R){R.stopPropagation(),_(),Ki(()=>{r.value="",kX(n["onClick:clear"],R)})}function y(R){const x=R.target;if(r.value=x.value,n.modelModifiers?.trim){const k=[x.selectionStart,x.selectionEnd];Ki(()=>{x.selectionStart=k[0],x.selectionEnd=k[1]})}}const C=Ne(),T=Ne(Number(n.rows)),E=ue(()=>["plain","underlined"].includes(n.variant));Ya(()=>{n.autoGrow||(T.value=Number(n.rows))});function I(){n.autoGrow&&Ki(()=>{if(!C.value||!f.value)return;const R=getComputedStyle(C.value),x=getComputedStyle(f.value.$el),k=parseFloat(R.getPropertyValue("--v-field-padding-top"))+parseFloat(R.getPropertyValue("--v-input-padding-top"))+parseFloat(R.getPropertyValue("--v-field-padding-bottom")),L=C.value.scrollHeight,N=parseFloat(R.lineHeight),A=Math.max(parseFloat(n.rows)*N+k,parseFloat(x.getPropertyValue("--v-input-control-height"))),F=parseFloat(n.maxRows)*N+k||1/0,B=af(L??0,A,F);T.value=Math.floor((B-k)/N),g.value=gn(B)})}sr(I),rt(r,I),rt(()=>n.rows,I),rt(()=>n.maxRows,I),rt(()=>n.density,I);let D;return rt(C,R=>{R?(D=new ResizeObserver(I),D.observe(C.value)):D?.disconnect()}),Jo(()=>{D?.disconnect()}),on(()=>{const R=!!(s.counter||n.counter||n.counterValue),x=!!(R||s.details),[k,L]=vB(t),{modelValue:N,...A}=Ww.filterProps(n),F=bM.filterProps(n);return K(Ww,$t({ref:h,modelValue:r.value,"onUpdate:modelValue":B=>r.value=B,class:["v-textarea v-text-field",{"v-textarea--prefixed":n.prefix,"v-textarea--suffixed":n.suffix,"v-text-field--prefixed":n.prefix,"v-text-field--suffixed":n.suffix,"v-textarea--auto-grow":n.autoGrow,"v-textarea--no-resize":n.noResize||n.autoGrow,"v-input--plain-underlined":E.value},n.class],style:n.style},k,A,{centerAffix:T.value===1&&!E.value,focused:o.value}),{...s,default:B=>{let{id:O,isDisabled:M,isDirty:P,isReadonly:W,isValid:j}=B;return K(bM,$t({ref:f,style:{"--v-textarea-control-height":g.value},onClick:v,onMousedown:b,"onClick:clear":S,"onClick:prependInner":n["onClick:prependInner"],"onClick:appendInner":n["onClick:appendInner"]},F,{id:O.value,active:m.value||P.value,centerAffix:T.value===1&&!E.value,dirty:P.value||n.dirty,disabled:M.value,focused:o.value,error:j.value===!1}),{...s,default:H=>{let{props:{class:q,...oe}}=H;return K(vt,null,[n.prefix&&K("span",{class:"v-text-field__prefix"},[n.prefix]),Ol(K("textarea",$t({ref:p,class:q,value:r.value,onInput:y,autofocus:n.autofocus,readonly:W.value,disabled:M.value,placeholder:n.placeholder,rows:n.rows,name:n.name,onFocus:_,onBlur:l},oe,L),null),[[k_("intersect"),{handler:u},null,{once:!0}]]),n.autoGrow&&Ol(K("textarea",{class:[q,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":X=>r.value=X,ref:C,readonly:!0,"aria-hidden":"true"},null),[[W5e,r.value]]),n.suffix&&K("span",{class:"v-text-field__suffix"},[n.suffix])])}})},details:x?B=>K(vt,null,[s.details?.(B),R&&K(vt,null,[K("span",null,null),K(d0e,{active:n.persistentCounter||o.value,value:c.value,max:d.value,disabled:n.disabled},s.counter)])]):void 0})}),O_({},h,f,p)}}),SMe=Et({__name:"ComponentArgInput",props:BS({name:{},arg:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=_f(n,"modelValue"),t=ue(()=>"type"in n.arg.schema?n.arg.schema.type:"unknown");n.arg.schema.default!==void 0&&e.value===void 0&&(e.value=n.arg.schema.default);const i=Ne(!1),s=ue(()=>n.isSecret?i.value?"text":"password":"text"),r=ue(()=>n.isSecret?i.value?e.value:"*".repeat(e.value?.length??0):e.value),o=ue(()=>t.value==="array"&&(n.arg.schema.items.type==="string"||n.arg.schema.items.type==="number"||"anyOf"in n.arg.schema.items&&n.arg.schema.items.anyOf[0].type==="string")),a=ue(()=>{if("anyOf"in n.arg.schema.items&&n.arg.schema.items.anyOf[0].type==="string")return n.arg.schema.items.anyOf.map(l=>l.const)});return(l,c)=>{const d=O7e,u=Eje,h=WYe;return se(t)==="string"&&l.arg.schema.language?(Te(),Ze(d,{key:0,modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=f=>e.value=f),"component-type":l.instance.type,name:l.name,arg:l.arg},null,8,["modelValue","component-type","name","arg"])):se(t)==="string"&&!l.arg.schema.multiline?(Te(),Ze(bf,{key:1,modelValue:e.value,"onUpdate:modelValue":c[2]||(c[2]=f=>e.value=f),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:se(s),placeholder:l.arg.schema.default},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0),l.isSecret?(Te(),Ze(Vi,{key:1,onClick:c[1]||(c[1]=f=>i.value=!se(i))},{default:Me(()=>[ni(Bi(se(i)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):Rt("",!0)]),_:1},8,["modelValue","label","type","placeholder"])):se(t)==="string"&&l.arg.schema.multiline?(Te(),Ze(uOt,{key:2,"model-value":se(r),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),variant:"outlined",density:"compact",placeholder:l.arg.schema.default,"hide-details":"","onUpdate:modelValue":c[4]||(c[4]=f=>e.value=f)},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0),l.isSecret?(Te(),Ze(Vi,{key:1,onClick:c[3]||(c[3]=f=>i.value=!se(i))},{default:Me(()=>[ni(Bi(se(i)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):Rt("",!0)]),_:1},8,["model-value","label","placeholder"])):se(t)==="number"?(Te(),Ze(bf,{key:3,modelValue:e.value,"onUpdate:modelValue":c[5]||(c[5]=f=>e.value=f),modelModifiers:{number:!0},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:"number",placeholder:l.arg.schema.default,"hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder"])):se(t)==="boolean"?(Te(),Ze(oC,{key:4,modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=f=>e.value=f),style:{"max-height":"40px"},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),density:"compact","hide-details":""},{append:Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description,style:{"margin-right":"12px"}},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label"])):se(o)&&!se(a)?(Te(),Ze(cOt,{key:5,modelValue:e.value,"onUpdate:modelValue":c[7]||(c[7]=f=>e.value=f),style:{"max-height":"40px"},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder"])):se(o)?(Te(),Ze(ove,{key:6,modelValue:e.value,"onUpdate:modelValue":c[8]||(c[8]=f=>e.value=f),style:{"max-height":"40px"},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,items:se(a),variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder","items"])):"anyOf"in l.arg.schema&&l.arg.schema.anyOf[0].type==="string"?(Te(),Ze(ove,{key:7,modelValue:e.value,"onUpdate:modelValue":c[9]||(c[9]=f=>e.value=f),style:{"max-height":"40px"},items:l.arg.schema.anyOf.map(f=>f.const),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,variant:"outlined",density:"compact","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","items","label","placeholder"])):("isComplexSchema"in l?l.isComplexSchema:se(CF))(l.arg.schema)?(Te(),Ze(h,{key:8,modelValue:e.value,"onUpdate:modelValue":c[10]||(c[10]=f=>e.value=f),"component-type":l.instance.type,name:l.name,arg:l.arg},null,8,["modelValue","component-type","name","arg"])):Rt("",!0)}}});var Yn;(function(n){n.assertEqual=s=>s;function e(s){}n.assertIs=e;function t(s){throw new Error}n.assertNever=t,n.arrayToEnum=s=>{const r={};for(const o of s)r[o]=o;return r},n.getValidEnumValues=s=>{const r=n.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of r)o[a]=s[a];return n.objectValues(o)},n.objectValues=s=>n.objectKeys(s).map(function(r){return s[r]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const r=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&r.push(o);return r},n.find=(s,r)=>{for(const o of s)if(r(o))return o},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function i(s,r=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}n.joinValues=i,n.jsonStringifyReplacer=(s,r)=>typeof r=="bigint"?r.toString():r})(Yn||(Yn={}));var aQ;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(aQ||(aQ={}));const Vt=Yn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Cg=n=>{switch(typeof n){case"undefined":return Vt.undefined;case"string":return Vt.string;case"number":return isNaN(n)?Vt.nan:Vt.number;case"boolean":return Vt.boolean;case"function":return Vt.function;case"bigint":return Vt.bigint;case"symbol":return Vt.symbol;case"object":return Array.isArray(n)?Vt.array:n===null?Vt.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?Vt.promise:typeof Map<"u"&&n instanceof Map?Vt.map:typeof Set<"u"&&n instanceof Set?Vt.set:typeof Date<"u"&&n instanceof Date?Vt.date:Vt.object;default:return Vt.unknown}},ft=Yn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),hOt=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Qc extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(r){return r.message},i={_errors:[]},s=r=>{for(const o of r.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)i._errors.push(t(o));else{let a=i,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),i}static assert(e){if(!(e instanceof Qc))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Yn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):i.push(e(s));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}Qc.create=n=>new Qc(n);const OE=(n,e)=>{let t;switch(n.code){case ft.invalid_type:n.received===Vt.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case ft.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,Yn.jsonStringifyReplacer)}`;break;case ft.unrecognized_keys:t=`Unrecognized key(s) in object: ${Yn.joinValues(n.keys,", ")}`;break;case ft.invalid_union:t="Invalid input";break;case ft.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Yn.joinValues(n.options)}`;break;case ft.invalid_enum_value:t=`Invalid enum value. Expected ${Yn.joinValues(n.options)}, received '${n.received}'`;break;case ft.invalid_arguments:t="Invalid function arguments";break;case ft.invalid_return_type:t="Invalid function return type";break;case ft.invalid_date:t="Invalid date";break;case ft.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:Yn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case ft.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case ft.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case ft.custom:t="Invalid input";break;case ft.invalid_intersection_types:t="Intersection results could not be merged";break;case ft.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case ft.not_finite:t="Number must be finite";break;default:t=e.defaultError,Yn.assertNever(n)}return{message:t}};let yMe=OE;function fOt(n){yMe=n}function EF(){return yMe}const TF=n=>{const{data:e,path:t,errorMaps:i,issueData:s}=n,r=[...t,...s.path||[]],o={...s,path:r};if(s.message!==void 0)return{...s,path:r,message:s.message};let a="";const l=i.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:e,defaultError:a}).message;return{...s,path:r,message:a}},gOt=[];function Ot(n,e){const t=EF(),i=TF({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===OE?void 0:OE].filter(s=>!!s)});n.common.issues.push(i)}class el{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const s of t){if(s.status==="aborted")return Wi;s.status==="dirty"&&e.dirty(),i.push(s.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const s of t){const r=await s.key,o=await s.value;i.push({key:r,value:o})}return el.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const s of t){const{key:r,value:o}=s;if(r.status==="aborted"||o.status==="aborted")return Wi;r.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(i[r.value]=o.value)}return{status:e.value,value:i}}}const Wi=Object.freeze({status:"aborted"}),UC=n=>({status:"dirty",value:n}),Vl=n=>({status:"valid",value:n}),lQ=n=>n.status==="aborted",cQ=n=>n.status==="dirty",LS=n=>n.status==="valid",Ax=n=>typeof Promise<"u"&&n instanceof Promise;function IF(n,e,t,i){if(typeof e=="function"?n!==e||!0:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(n)}function CMe(n,e,t,i,s){if(typeof e=="function"?n!==e||!0:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(n,t),t}var oi;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e?.message})(oi||(oi={}));var ET,TT;class Af{constructor(e,t,i,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ave=(n,e)=>{if(LS(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Qc(n.common.issues);return this._error=t,this._error}}};function ln(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:s}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{var l,c;const{message:d}=n;return o.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??i)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=d??t)!==null&&c!==void 0?c:a.defaultError}},description:s}}class pn{get description(){return this._def.description}_getType(e){return Cg(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Cg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new el,ctx:{common:e.parent.common,data:e.data,parsedType:Cg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ax(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const s={common:{issues:[],async:(i=t?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)},r=this._parseSync({data:e,path:s.path,parent:s});return ave(s,r)}"~validate"(e){var t,i;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:s});return LS(r)?{value:r.value}:{issues:s.common.issues}}catch(r){!((i=(t=r?.message)===null||t===void 0?void 0:t.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(r=>LS(r)?{value:r.value}:{issues:s.common.issues})}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)},s=this._parse({data:e,path:i.path,parent:i}),r=await(Ax(s)?s:Promise.resolve(s));return ave(i,r)}refine(e,t){const i=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,r)=>{const o=e(s),a=()=>r.addIssue({code:ft.custom,...i(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,t){return this._refinement((i,s)=>e(i)?!0:(s.addIssue(typeof t=="function"?t(i,s):t),!1))}_refinement(e){return new nh({schema:this,typeName:Fi.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return ff.create(this,this._def)}nullable(){return I_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gu.create(this)}promise(){return PE.create(this,this._def)}or(e){return Fx.create([this,e],this._def)}and(e){return Bx.create(this,e,this._def)}transform(e){return new nh({...ln(this._def),schema:this,typeName:Fi.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new $x({...ln(this._def),innerType:this,defaultValue:t,typeName:Fi.ZodDefault})}brand(){return new bne({typeName:Fi.ZodBranded,type:this,...ln(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new zx({...ln(this._def),innerType:this,catchValue:t,typeName:Fi.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return wD.create(this,e)}readonly(){return Gx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pOt=/^c[^\s-]{8,}$/i,mOt=/^[0-9a-z]+$/,_Ot=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vOt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bOt=/^[a-z0-9_-]{21}$/i,SOt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yOt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,COt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wOt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let C8;const EOt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,TOt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,IOt=/^(([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]))$/,LOt=/^(([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]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xOt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ROt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wMe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",DOt=new RegExp(`^${wMe}$`);function EMe(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function NOt(n){return new RegExp(`^${EMe(n)}$`)}function TMe(n){let e=`${wMe}T${EMe(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function kOt(n,e){return!!((e==="v4"||!e)&&EOt.test(n)||(e==="v6"||!e)&&IOt.test(n))}function AOt(n,e){if(!SOt.test(n))return!1;try{const[t]=n.split("."),i=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),s=JSON.parse(atob(i));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function OOt(n,e){return!!((e==="v4"||!e)&&TOt.test(n)||(e==="v6"||!e)&&LOt.test(n))}class Ou extends pn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Vt.string){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.string,received:r.parsedType}),Wi}const i=new el;let s;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")e.data.length>r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const o=e.data.length>r.value,a=e.data.length<r.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?Ot(s,{code:ft.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&Ot(s,{code:ft.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")COt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"email",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")C8||(C8=new RegExp(wOt,"u")),C8.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"emoji",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")vOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"uuid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")bOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"nanoid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")pOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cuid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")mOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cuid2",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")_Ot.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"ulid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),Ot(s,{validation:"url",code:ft.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"regex",code:ft.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?e.data=e.data.trim():r.kind==="includes"?e.data.includes(r.value,r.position)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?e.data=e.data.toLowerCase():r.kind==="toUpperCase"?e.data=e.data.toUpperCase():r.kind==="startsWith"?e.data.startsWith(r.value)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?TMe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?DOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?NOt(r).test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?yOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"duration",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?kOt(e.data,r.version)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"ip",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?AOt(e.data,r.alg)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"jwt",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?OOt(e.data,r.version)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cidr",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?xOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"base64",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?ROt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"base64url",code:ft.invalid_string,message:r.message}),i.dirty()):Yn.assertNever(r);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(s=>e.test(s),{validation:t,code:ft.invalid_string,...oi.errToObj(i)})}_addCheck(e){return new Ou({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...oi.errToObj(e)})}url(e){return this._addCheck({kind:"url",...oi.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...oi.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...oi.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...oi.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...oi.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...oi.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...oi.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...oi.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...oi.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...oi.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...oi.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...oi.errToObj(e)})}datetime(e){var t,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,local:(i=e?.local)!==null&&i!==void 0?i:!1,...oi.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...oi.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...oi.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...oi.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...oi.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...oi.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...oi.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...oi.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...oi.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...oi.errToObj(t)})}nonempty(e){return this.min(1,oi.errToObj(e))}trim(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Ou.create=n=>{var e;return new Ou({checks:[],typeName:Fi.ZodString,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...ln(n)})};function MOt(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,s=t>i?t:i,r=parseInt(n.toFixed(s).replace(".","")),o=parseInt(e.toFixed(s).replace(".",""));return r%o/Math.pow(10,s)}class w_ extends pn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Vt.number){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.number,received:r.parsedType}),Wi}let i;const s=new el;for(const r of this._def.checks)r.kind==="int"?Yn.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty()):r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?MOt(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_finite,message:r.message}),s.dirty()):Yn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,oi.toString(t))}gt(e,t){return this.setLimit("min",e,!1,oi.toString(t))}lte(e,t){return this.setLimit("max",e,!0,oi.toString(t))}lt(e,t){return this.setLimit("max",e,!1,oi.toString(t))}setLimit(e,t,i,s){return new w_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:oi.toString(s)}]})}_addCheck(e){return new w_({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:oi.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:oi.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:oi.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:oi.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:oi.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:oi.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:oi.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:oi.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:oi.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Yn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}w_.create=n=>new w_({checks:[],typeName:Fi.ZodNumber,coerce:n?.coerce||!1,...ln(n)});class E_ extends pn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Vt.bigint)return this._getInvalidInput(e);let i;const s=new el;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):Yn.assertNever(r);return{status:s.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Ot(t,{code:ft.invalid_type,expected:Vt.bigint,received:t.parsedType}),Wi}gte(e,t){return this.setLimit("min",e,!0,oi.toString(t))}gt(e,t){return this.setLimit("min",e,!1,oi.toString(t))}lte(e,t){return this.setLimit("max",e,!0,oi.toString(t))}lt(e,t){return this.setLimit("max",e,!1,oi.toString(t))}setLimit(e,t,i,s){return new E_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:oi.toString(s)}]})}_addCheck(e){return new E_({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:oi.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:oi.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:oi.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:oi.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:oi.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}E_.create=n=>{var e;return new E_({checks:[],typeName:Fi.ZodBigInt,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...ln(n)})};class Ox extends pn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Vt.boolean){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.boolean,received:i.parsedType}),Wi}return Vl(e.data)}}Ox.create=n=>new Ox({typeName:Fi.ZodBoolean,coerce:n?.coerce||!1,...ln(n)});class xS extends pn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Vt.date){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.date,received:r.parsedType}),Wi}if(isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_date}),Wi}const i=new el;let s;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?e.data.getTime()>r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):Yn.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new xS({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:oi.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:oi.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}xS.create=n=>new xS({checks:[],coerce:n?.coerce||!1,typeName:Fi.ZodDate,...ln(n)});class LF extends pn{_parse(e){if(this._getType(e)!==Vt.symbol){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.symbol,received:i.parsedType}),Wi}return Vl(e.data)}}LF.create=n=>new LF({typeName:Fi.ZodSymbol,...ln(n)});class Mx extends pn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.undefined,received:i.parsedType}),Wi}return Vl(e.data)}}Mx.create=n=>new Mx({typeName:Fi.ZodUndefined,...ln(n)});class Px extends pn{_parse(e){if(this._getType(e)!==Vt.null){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.null,received:i.parsedType}),Wi}return Vl(e.data)}}Px.create=n=>new Px({typeName:Fi.ZodNull,...ln(n)});class ME extends pn{constructor(){super(...arguments),this._any=!0}_parse(e){return Vl(e.data)}}ME.create=n=>new ME({typeName:Fi.ZodAny,...ln(n)});class Hb extends pn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Vl(e.data)}}Hb.create=n=>new Hb({typeName:Fi.ZodUnknown,...ln(n)});class mp extends pn{_parse(e){const t=this._getOrReturnCtx(e);return Ot(t,{code:ft.invalid_type,expected:Vt.never,received:t.parsedType}),Wi}}mp.create=n=>new mp({typeName:Fi.ZodNever,...ln(n)});class xF extends pn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.void,received:i.parsedType}),Wi}return Vl(e.data)}}xF.create=n=>new xF({typeName:Fi.ZodVoid,...ln(n)});class Gu extends pn{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==Vt.array)return Ot(t,{code:ft.invalid_type,expected:Vt.array,received:t.parsedType}),Wi;if(s.exactLength!==null){const o=t.data.length>s.exactLength.value,a=t.data.length<s.exactLength.value;(o||a)&&(Ot(t,{code:o?ft.too_big:ft.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(Ot(t,{code:ft.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(Ot(t,{code:ft.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,a)=>s.type._parseAsync(new Af(t,o,t.path,a)))).then(o=>el.mergeArray(i,o));const r=[...t.data].map((o,a)=>s.type._parseSync(new Af(t,o,t.path,a)));return el.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new Gu({...this._def,minLength:{value:e,message:oi.toString(t)}})}max(e,t){return new Gu({...this._def,maxLength:{value:e,message:oi.toString(t)}})}length(e,t){return new Gu({...this._def,exactLength:{value:e,message:oi.toString(t)}})}nonempty(e){return this.min(1,e)}}Gu.create=(n,e)=>new Gu({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Fi.ZodArray,...ln(e)});function aC(n){if(n instanceof mr){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=ff.create(aC(i))}return new mr({...n._def,shape:()=>e})}else return n instanceof Gu?new Gu({...n._def,type:aC(n.element)}):n instanceof ff?ff.create(aC(n.unwrap())):n instanceof I_?I_.create(aC(n.unwrap())):n instanceof Of?Of.create(n.items.map(e=>aC(e))):n}class mr extends pn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=Yn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Vt.object){const c=this._getOrReturnCtx(e);return Ot(c,{code:ft.invalid_type,expected:Vt.object,received:c.parsedType}),Wi}const{status:i,ctx:s}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mp&&this._def.unknownKeys==="strip"))for(const c in s.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const d=r[c],u=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Af(s,u,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof mp){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")a.length>0&&(Ot(s,{code:ft.unrecognized_keys,keys:a}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const u=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Af(s,u,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const u=await d.key,h=await d.value;c.push({key:u,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>el.mergeObjectSync(i,c)):el.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return oi.errToObj,new mr({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var s,r,o,a;const l=(o=(r=(s=this._def).errorMap)===null||r===void 0?void 0:r.call(s,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(a=oi.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new mr({...this._def,unknownKeys:"strip"})}passthrough(){return new mr({...this._def,unknownKeys:"passthrough"})}extend(e){return new mr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new mr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Fi.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new mr({...this._def,catchall:e})}pick(e){const t={};return Yn.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}omit(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}deepPartial(){return aC(this)}partial(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{const s=this.shape[i];e&&!e[i]?t[i]=s:t[i]=s.optional()}),new mr({...this._def,shape:()=>t})}required(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof ff;)r=r._def.innerType;t[i]=r}}),new mr({...this._def,shape:()=>t})}keyof(){return IMe(Yn.objectKeys(this.shape))}}mr.create=(n,e)=>new mr({shape:()=>n,unknownKeys:"strip",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});mr.strictCreate=(n,e)=>new mr({shape:()=>n,unknownKeys:"strict",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});mr.lazycreate=(n,e)=>new mr({shape:n,unknownKeys:"strip",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});class Fx extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function s(r){for(const a of r)if(a.result.status==="valid")return a.result;for(const a of r)if(a.result.status==="dirty")return t.common.issues.push(...a.ctx.common.issues),a.result;const o=r.map(a=>new Qc(a.ctx.common.issues));return Ot(t,{code:ft.invalid_union,unionErrors:o}),Wi}if(t.common.async)return Promise.all(i.map(async r=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(s);{let r;const o=[];for(const l of i){const c={...t,common:{...t.common,issues:[]},parent:null},d=l._parseSync({data:t.data,path:t.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!r&&(r={result:d,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const a=o.map(l=>new Qc(l));return Ot(t,{code:ft.invalid_union,unionErrors:a}),Wi}}get options(){return this._def.options}}Fx.create=(n,e)=>new Fx({options:n,typeName:Fi.ZodUnion,...ln(e)});const dg=n=>n instanceof Vx?dg(n.schema):n instanceof nh?dg(n.innerType()):n instanceof Wx?[n.value]:n instanceof T_?n.options:n instanceof Ux?Yn.objectValues(n.enum):n instanceof $x?dg(n._def.innerType):n instanceof Mx?[void 0]:n instanceof Px?[null]:n instanceof ff?[void 0,...dg(n.unwrap())]:n instanceof I_?[null,...dg(n.unwrap())]:n instanceof bne||n instanceof Gx?dg(n.unwrap()):n instanceof zx?dg(n._def.innerType):[];class t3 extends pn{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.object)return Ot(t,{code:ft.invalid_type,expected:Vt.object,received:t.parsedType}),Wi;const i=this.discriminator,s=t.data[i],r=this.optionsMap.get(s);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(Ot(t,{code:ft.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Wi)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const s=new Map;for(const r of t){const o=dg(r.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,r)}}return new t3({typeName:Fi.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...ln(i)})}}function dQ(n,e){const t=Cg(n),i=Cg(e);if(n===e)return{valid:!0,data:n};if(t===Vt.object&&i===Vt.object){const s=Yn.objectKeys(e),r=Yn.objectKeys(n).filter(a=>s.indexOf(a)!==-1),o={...n,...e};for(const a of r){const l=dQ(n[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(t===Vt.array&&i===Vt.array){if(n.length!==e.length)return{valid:!1};const s=[];for(let r=0;r<n.length;r++){const o=n[r],a=e[r],l=dQ(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return t===Vt.date&&i===Vt.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Bx extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=(r,o)=>{if(lQ(r)||lQ(o))return Wi;const a=dQ(r.value,o.value);return a.valid?((cQ(r)||cQ(o))&&t.dirty(),{status:t.value,value:a.data}):(Ot(i,{code:ft.invalid_intersection_types}),Wi)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,o])=>s(r,o)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Bx.create=(n,e,t)=>new Bx({left:n,right:e,typeName:Fi.ZodIntersection,...ln(t)});class Of extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.array)return Ot(i,{code:ft.invalid_type,expected:Vt.array,received:i.parsedType}),Wi;if(i.data.length<this._def.items.length)return Ot(i,{code:ft.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Wi;!this._def.rest&&i.data.length>this._def.items.length&&(Ot(i,{code:ft.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...i.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Af(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(r).then(o=>el.mergeArray(t,o)):el.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Of({...this._def,rest:e})}}Of.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Of({items:n,typeName:Fi.ZodTuple,rest:null,...ln(e)})};class Hx extends pn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.object)return Ot(i,{code:ft.invalid_type,expected:Vt.object,received:i.parsedType}),Wi;const s=[],r=this._def.keyType,o=this._def.valueType;for(const a in i.data)s.push({key:r._parse(new Af(i,a,i.path,a)),value:o._parse(new Af(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?el.mergeObjectAsync(t,s):el.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof pn?new Hx({keyType:e,valueType:t,typeName:Fi.ZodRecord,...ln(i)}):new Hx({keyType:Ou.create(),valueType:e,typeName:Fi.ZodRecord,...ln(t)})}}class RF extends pn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.map)return Ot(i,{code:ft.invalid_type,expected:Vt.map,received:i.parsedType}),Wi;const s=this._def.keyType,r=this._def.valueType,o=[...i.data.entries()].map(([a,l],c)=>({key:s._parse(new Af(i,a,i.path,[c,"key"])),value:r._parse(new Af(i,l,i.path,[c,"value"]))}));if(i.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return Wi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return Wi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}}}}RF.create=(n,e,t)=>new RF({valueType:e,keyType:n,typeName:Fi.ZodMap,...ln(t)});class RS extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.set)return Ot(i,{code:ft.invalid_type,expected:Vt.set,received:i.parsedType}),Wi;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(Ot(i,{code:ft.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&i.data.size>s.maxSize.value&&(Ot(i,{code:ft.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const r=this._def.valueType;function o(l){const c=new Set;for(const d of l){if(d.status==="aborted")return Wi;d.status==="dirty"&&t.dirty(),c.add(d.value)}return{status:t.value,value:c}}const a=[...i.data.values()].map((l,c)=>r._parse(new Af(i,l,i.path,c)));return i.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,t){return new RS({...this._def,minSize:{value:e,message:oi.toString(t)}})}max(e,t){return new RS({...this._def,maxSize:{value:e,message:oi.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}RS.create=(n,e)=>new RS({valueType:n,minSize:null,maxSize:null,typeName:Fi.ZodSet,...ln(e)});class Nw extends pn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.function)return Ot(t,{code:ft.invalid_type,expected:Vt.function,received:t.parsedType}),Wi;function i(a,l){return TF({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EF(),OE].filter(c=>!!c),issueData:{code:ft.invalid_arguments,argumentsError:l}})}function s(a,l){return TF({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EF(),OE].filter(c=>!!c),issueData:{code:ft.invalid_return_type,returnTypeError:l}})}const r={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof PE){const a=this;return Vl(async function(...l){const c=new Qc([]),d=await a._def.args.parseAsync(l,r).catch(f=>{throw c.addIssue(i(l,f)),c}),u=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(u,r).catch(f=>{throw c.addIssue(s(u,f)),c})})}else{const a=this;return Vl(function(...l){const c=a._def.args.safeParse(l,r);if(!c.success)throw new Qc([i(l,c.error)]);const d=Reflect.apply(o,this,c.data),u=a._def.returns.safeParse(d,r);if(!u.success)throw new Qc([s(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Nw({...this._def,args:Of.create(e).rest(Hb.create())})}returns(e){return new Nw({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Nw({args:e||Of.create([]).rest(Hb.create()),returns:t||Hb.create(),typeName:Fi.ZodFunction,...ln(i)})}}class Vx extends pn{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Vx.create=(n,e)=>new Vx({getter:n,typeName:Fi.ZodLazy,...ln(e)});class Wx extends pn{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ot(t,{received:t.data,code:ft.invalid_literal,expected:this._def.value}),Wi}return{status:"valid",value:e.data}}get value(){return this._def.value}}Wx.create=(n,e)=>new Wx({value:n,typeName:Fi.ZodLiteral,...ln(e)});function IMe(n,e){return new T_({values:n,typeName:Fi.ZodEnum,...ln(e)})}class T_ extends pn{constructor(){super(...arguments),ET.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return Ot(t,{expected:Yn.joinValues(i),received:t.parsedType,code:ft.invalid_type}),Wi}if(IF(this,ET)||CMe(this,ET,new Set(this._def.values)),!IF(this,ET).has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return Ot(t,{received:t.data,code:ft.invalid_enum_value,options:i}),Wi}return Vl(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return T_.create(e,{...this._def,...t})}exclude(e,t=this._def){return T_.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}ET=new WeakMap;T_.create=IMe;class Ux extends pn{constructor(){super(...arguments),TT.set(this,void 0)}_parse(e){const t=Yn.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==Vt.string&&i.parsedType!==Vt.number){const s=Yn.objectValues(t);return Ot(i,{expected:Yn.joinValues(s),received:i.parsedType,code:ft.invalid_type}),Wi}if(IF(this,TT)||CMe(this,TT,new Set(Yn.getValidEnumValues(this._def.values))),!IF(this,TT).has(e.data)){const s=Yn.objectValues(t);return Ot(i,{received:i.data,code:ft.invalid_enum_value,options:s}),Wi}return Vl(e.data)}get enum(){return this._def.values}}TT=new WeakMap;Ux.create=(n,e)=>new Ux({values:n,typeName:Fi.ZodNativeEnum,...ln(e)});class PE extends pn{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.promise&&t.common.async===!1)return Ot(t,{code:ft.invalid_type,expected:Vt.promise,received:t.parsedType}),Wi;const i=t.parsedType===Vt.promise?t.data:Promise.resolve(t.data);return Vl(i.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}PE.create=(n,e)=>new PE({type:n,typeName:Fi.ZodPromise,...ln(e)});class nh extends pn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fi.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:o=>{Ot(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),s.type==="preprocess"){const o=s.transform(i.data,r);if(i.common.async)return Promise.resolve(o).then(async a=>{if(t.value==="aborted")return Wi;const l=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return l.status==="aborted"?Wi:l.status==="dirty"||t.value==="dirty"?UC(l.value):l});{if(t.value==="aborted")return Wi;const a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Wi:a.status==="dirty"||t.value==="dirty"?UC(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){const a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Wi:(a.status==="dirty"&&t.dirty(),o(a.value),{status:t.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?Wi:(a.status==="dirty"&&t.dirty(),o(a.value).then(()=>({status:t.value,value:a.value}))))}if(s.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!LS(o))return o;const a=s.transform(o.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>LS(o)?Promise.resolve(s.transform(o.value,r)).then(a=>({status:t.value,value:a})):o);Yn.assertNever(s)}}nh.create=(n,e,t)=>new nh({schema:n,typeName:Fi.ZodEffects,effect:e,...ln(t)});nh.createWithPreprocess=(n,e,t)=>new nh({schema:e,effect:{type:"preprocess",transform:n},typeName:Fi.ZodEffects,...ln(t)});class ff extends pn{_parse(e){return this._getType(e)===Vt.undefined?Vl(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ff.create=(n,e)=>new ff({innerType:n,typeName:Fi.ZodOptional,...ln(e)});class I_ extends pn{_parse(e){return this._getType(e)===Vt.null?Vl(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}I_.create=(n,e)=>new I_({innerType:n,typeName:Fi.ZodNullable,...ln(e)});class $x extends pn{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===Vt.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}$x.create=(n,e)=>new $x({innerType:n,typeName:Fi.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ln(e)});class zx extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ax(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Qc(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Qc(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}zx.create=(n,e)=>new zx({innerType:n,typeName:Fi.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ln(e)});class DF extends pn{_parse(e){if(this._getType(e)!==Vt.nan){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.nan,received:i.parsedType}),Wi}return{status:"valid",value:e.data}}}DF.create=n=>new DF({typeName:Fi.ZodNaN,...ln(n)});const POt=Symbol("zod_brand");class bne extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class wD extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Wi:r.status==="dirty"?(t.dirty(),UC(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Wi:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}static create(e,t){return new wD({in:e,out:t,typeName:Fi.ZodPipeline})}}class Gx extends pn{_parse(e){const t=this._def.innerType._parse(e),i=s=>(LS(s)&&(s.value=Object.freeze(s.value)),s);return Ax(t)?t.then(s=>i(s)):i(t)}unwrap(){return this._def.innerType}}Gx.create=(n,e)=>new Gx({innerType:n,typeName:Fi.ZodReadonly,...ln(e)});function lve(n,e){const t=typeof n=="function"?n(e):typeof n=="string"?{message:n}:n;return typeof t=="string"?{message:t}:t}function LMe(n,e={},t){return n?ME.create().superRefine((i,s)=>{var r,o;const a=n(i);if(a instanceof Promise)return a.then(l=>{var c,d;if(!l){const u=lve(e,i),h=(d=(c=u.fatal)!==null&&c!==void 0?c:t)!==null&&d!==void 0?d:!0;s.addIssue({code:"custom",...u,fatal:h})}});if(!a){const l=lve(e,i),c=(o=(r=l.fatal)!==null&&r!==void 0?r:t)!==null&&o!==void 0?o:!0;s.addIssue({code:"custom",...l,fatal:c})}}):ME.create()}const FOt={object:mr.lazycreate};var Fi;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Fi||(Fi={}));const BOt=(n,e={message:`Input not instance of ${n.name}`})=>LMe(t=>t instanceof n,e),xMe=Ou.create,RMe=w_.create,HOt=DF.create,VOt=E_.create,DMe=Ox.create,WOt=xS.create,UOt=LF.create,$Ot=Mx.create,zOt=Px.create,GOt=ME.create,qOt=Hb.create,KOt=mp.create,jOt=xF.create,YOt=Gu.create,QOt=mr.create,XOt=mr.strictCreate,ZOt=Fx.create,JOt=t3.create,eMt=Bx.create,tMt=Of.create,iMt=Hx.create,nMt=RF.create,sMt=RS.create,rMt=Nw.create,oMt=Vx.create,aMt=Wx.create,lMt=T_.create,cMt=Ux.create,dMt=PE.create,cve=nh.create,uMt=ff.create,hMt=I_.create,fMt=nh.createWithPreprocess,gMt=wD.create,pMt=()=>xMe().optional(),mMt=()=>RMe().optional(),_Mt=()=>DMe().optional(),vMt={string:n=>Ou.create({...n,coerce:!0}),number:n=>w_.create({...n,coerce:!0}),boolean:n=>Ox.create({...n,coerce:!0}),bigint:n=>E_.create({...n,coerce:!0}),date:n=>xS.create({...n,coerce:!0})},bMt=Wi;var Ue=Object.freeze({__proto__:null,defaultErrorMap:OE,setErrorMap:fOt,getErrorMap:EF,makeIssue:TF,EMPTY_PATH:gOt,addIssueToContext:Ot,ParseStatus:el,INVALID:Wi,DIRTY:UC,OK:Vl,isAborted:lQ,isDirty:cQ,isValid:LS,isAsync:Ax,get util(){return Yn},get objectUtil(){return aQ},ZodParsedType:Vt,getParsedType:Cg,ZodType:pn,datetimeRegex:TMe,ZodString:Ou,ZodNumber:w_,ZodBigInt:E_,ZodBoolean:Ox,ZodDate:xS,ZodSymbol:LF,ZodUndefined:Mx,ZodNull:Px,ZodAny:ME,ZodUnknown:Hb,ZodNever:mp,ZodVoid:xF,ZodArray:Gu,ZodObject:mr,ZodUnion:Fx,ZodDiscriminatedUnion:t3,ZodIntersection:Bx,ZodTuple:Of,ZodRecord:Hx,ZodMap:RF,ZodSet:RS,ZodFunction:Nw,ZodLazy:Vx,ZodLiteral:Wx,ZodEnum:T_,ZodNativeEnum:Ux,ZodPromise:PE,ZodEffects:nh,ZodTransformer:nh,ZodOptional:ff,ZodNullable:I_,ZodDefault:$x,ZodCatch:zx,ZodNaN:DF,BRAND:POt,ZodBranded:bne,ZodPipeline:wD,ZodReadonly:Gx,custom:LMe,Schema:pn,ZodSchema:pn,late:FOt,get ZodFirstPartyTypeKind(){return Fi},coerce:vMt,any:GOt,array:YOt,bigint:VOt,boolean:DMe,date:WOt,discriminatedUnion:JOt,effect:cve,enum:lMt,function:rMt,instanceof:BOt,intersection:eMt,lazy:oMt,literal:aMt,map:nMt,nan:HOt,nativeEnum:cMt,never:KOt,null:zOt,nullable:hMt,number:RMe,object:QOt,oboolean:_Mt,onumber:mMt,optional:uMt,ostring:pMt,pipeline:gMt,preprocess:fMt,promise:dMt,record:iMt,set:sMt,strictObject:XOt,string:xMe,symbol:UOt,transformer:cve,tuple:tMt,undefined:$Ot,union:ZOt,unknown:qOt,void:jOt,NEVER:bMt,ZodIssueCode:ft,quotelessJson:hOt,ZodError:Qc});const Sne=Ue.object({x:Ue.number(),y:Ue.number()}),kw=Ue.object({instanceId:Ue.string(),output:Ue.string()}),NF=Ue.object({hubId:Ue.string()}),SMt=Ue.object({args:Ue.record(Ue.unknown()).optional(),inputs:Ue.record(Ue.array(kw)).optional(),hubInputs:Ue.record(Ue.array(NF)).optional(),injectionInputs:Ue.array(NF).optional(),position:Sne.optional()}),dve=Ue.object({id:Ue.string(),type:Ue.string(),name:Ue.string(),...SMt.shape,resolvedInputs:Ue.record(Ue.array(kw)).optional(),parentId:Ue.string().optional(),outputs:Ue.record(Ue.array(kw)).optional(),resolvedOutputs:Ue.record(Ue.array(kw)).optional()});Ue.object({instance:dve,children:Ue.array(dve),inputHash:Ue.string().optional()});Ue.object({position:Sne.optional(),inputs:Ue.array(kw).optional(),injectionInputs:Ue.array(NF).optional()});Ue.object({id:Ue.string().nanoid(),position:Sne,inputs:Ue.array(kw).optional(),injectionInputs:Ue.array(NF).optional()});var NMe={done:!1,hasNext:!1};function uQ(n,...e){let t=n,i=e.map(r=>"lazy"in r?yMt(r):void 0),s=0;for(;s<e.length;){if(i[s]===void 0||!CMt(t)){let l=e[s];t=l(t),s+=1;continue}let r=[];for(let l=s;l<e.length;l++){let c=i[l];if(c===void 0||(r.push(c),c.isSingle))break}let o=[];for(let l of t)if(kMe(l,o,r))break;let{isSingle:a}=r.at(-1);t=a?o[0]:o,s+=r.length}return t}function kMe(n,e,t){if(t.length===0)return e.push(n),!1;let i=n,s=NMe,r=!1;for(let[o,a]of t.entries()){let{index:l,items:c}=a;if(c.push(i),s=a(i,l,c),a.index+=1,s.hasNext){if(s.hasMany??!1){for(let d of s.next)if(kMe(d,e,t.slice(o+1)))return!0;return r}i=s.next}if(!s.hasNext)break;s.done&&(r=!0)}return s.hasNext&&e.push(i),r}function yMt(n){let{lazy:e,lazyArgs:t}=n,i=e(...t);return Object.assign(i,{isSingle:e.single??!1,index:0,items:[]})}function CMt(n){return typeof n=="string"||typeof n=="object"&&n!==null&&Symbol.iterator in n}function wMt(n,e){let t=e.length-n.length;if(t===1){let[i,...s]=e;return uQ(i,{lazy:n,lazyArgs:s})}if(t===0){let i={lazy:n,lazyArgs:e};return Object.assign(s=>uQ(s,i),i)}throw new Error("Wrong number of arguments")}function EMt(n,e,t){let i=s=>n(s,...e);return t===void 0?i:Object.assign(i,{lazy:t,lazyArgs:e})}function ED(n,e,t){let i=n.length-e.length;if(i===0)return n(...e);if(i===1)return EMt(n,e,t);throw new Error("Wrong number of arguments")}function AMe(...n){return wMt(TMt,n)}function TMt(){let n=new Set;return e=>n.has(e)?NMe:(n.add(e),{done:!1,hasNext:!0,next:e})}var OMe={asc:(n,e)=>n>e,desc:(n,e)=>n<e};function IMt(n,e){let[t,...i]=e;if(!LMt(t)){let r=hQ(...i);return n(t,r)}let s=hQ(t,...i);return r=>n(r,s)}function hQ(n,e,...t){let i=typeof n=="function"?n:n[0],s=typeof n=="function"?"asc":n[1],{[s]:r}=OMe,o=e===void 0?void 0:hQ(e,...t);return(a,l)=>{let c=i(a),d=i(l);return r(c,d)?1:r(d,c)?-1:o?.(a,l)??0}}function LMt(n){if(uve(n))return!0;if(typeof n!="object"||!Array.isArray(n))return!1;let[e,t,...i]=n;return uve(e)&&typeof t=="string"&&t in OMe&&i.length===0}var uve=n=>typeof n=="function"&&n.length===1;function hve(...n){return IMt(xMt,n)}var xMt=(n,e)=>[...n].sort(e);function fve(...n){return ED(RMt,n)}function RMt(n,e){let t={};for(let i of e)i in n&&(t[i]=n[i]);return t}function DMt(...n){return ED(NMt,n)}function NMt(n,e){let t={};for(let[i,s]of Object.entries(n)){let r=e(s,i,n);t[i]=r}return t}function kMt(...n){return ED(AMt,n,OMt)}var AMt=(n,e)=>n.map(e),OMt=n=>(e,t,i)=>({done:!1,hasNext:!0,next:n(e,t,i)});function MMt(...n){return ED(PMt,n)}var PMt=(n,e)=>{let t=new Map;for(let[i,s]of n.entries()){let r=e(s,i,n);if(r!==void 0){let o=t.get(r);o===void 0&&(o=[],t.set(r,o)),o.push(s)}}return Object.fromEntries(t)};function FMt(...n){return ED(Object.fromEntries,n)}const BMt=Ue.enum(["not_created","updating","previewing","destroying","refreshing","created","error","pending","unknown"]),HMt=Ue.union([Ue.string(),Ue.number(),Ue.boolean(),Ue.array(Ue.string())]),VMt=Ue.object({name:Ue.string(),value:HMt.optional(),displayName:Ue.string().optional(),sensitive:Ue.boolean().optional(),url:Ue.string().optional(),complementaryTo:Ue.string().optional()}),yne=Ue.object({name:Ue.string(),contentType:Ue.string(),size:Ue.number(),isBinary:Ue.boolean().optional()});Ue.object({meta:yne,content:Ue.string()});const WMt=Ue.union([Ue.object({type:Ue.literal("markdown"),content:Ue.string()}),Ue.object({type:Ue.literal("qr"),content:Ue.string(),showContent:Ue.coerce.boolean(),language:Ue.string().optional()}),Ue.object({type:Ue.literal("file"),fileMeta:yne})]),MMe=Ue.object({name:Ue.string(),title:Ue.string()});Ue.object({...MMe.shape,content:Ue.array(WMt)});const PMe=Ue.object({name:Ue.string(),title:Ue.string(),description:Ue.string().optional()}),UMt=Ue.object({content:Ue.string().optional(),isBinary:Ue.boolean().optional(),mode:Ue.number().optional()});Ue.object({...PMe.shape,image:Ue.string(),command:Ue.string().array(),cwd:Ue.string().optional(),env:Ue.record(Ue.string()).optional(),files:Ue.record(UMt).optional()});const $Mt=Ue.union([Ue.object({type:Ue.literal("before-destroy")}),Ue.object({type:Ue.literal("schedule"),schedule:Ue.string()})]),zMt=Ue.object({name:Ue.string(),title:Ue.string(),description:Ue.string().optional(),spec:$Mt});Ue.object({name:Ue.string()});const GMt=Ue.object({id:Ue.string(),parentId:Ue.string().nullable().default(null),status:BMt,dependencyIds:Ue.array(Ue.string()).default(()=>[]),latestOperationId:Ue.string().nullable().default(null),currentResourceCount:Ue.number().nullable().default(null),totalResourceCount:Ue.number().nullable().default(null),inputHash:Ue.string().nullable().default(null),outputHash:Ue.string().nullable().default(null),error:Ue.string().nullable().default(null),evaluationError:Ue.string().nullable().default(null),statusFields:Ue.array(VMt).default(()=>[]),files:Ue.array(yne).default(()=>[]),pages:Ue.array(MMe).default(()=>[]),terminals:Ue.array(PMe).default(()=>[]),triggers:Ue.array(zMt).default(()=>[])});Ue.object({...GMt.shape,secrets:Ue.record(Ue.string()).nullable(),logLine:Ue.string().nullable()}).partial();function FMe(n,e="not_created",t={}){return{id:n,parentId:null,dependencyIds:[],status:e,latestOperationId:null,currentResourceCount:null,totalResourceCount:null,inputHash:null,outputHash:null,error:null,evaluationError:null,statusFields:[],files:[],pages:[],terminals:[],triggers:[],...t}}function qMt(n,e){if(!e.id)throw new Error("The ID of the instance state is required.");let t=n.get(e.id)??FMe(e.id,"unknown");return t={...t,...e},n.set(t.id,t),t}function gve(n){const e=new Map;for(const t of n.values())for(const i of t.dependencyIds){let s=e.get(i);s||(s=[],e.set(i,s)),s.push(t.id)}return e}function KMt(n,e){const t=new Set,i=new Set,s=r=>{if(i.has(r))return;i.add(r);const o=n.get(r);if(o)for(const a of o)t.add(a),s(a)};return s(e),Array.from(t)}const BMe=Ue.enum(["update","preview","destroy","recreate","refresh"]),jMt=Ue.enum(["pending","running","completed","failed","cancelled"]),HMe=Ue.object({forceUpdateDependencies:Ue.boolean().default(!1),forceUpdateChildren:Ue.boolean().default(!1),destroyDependentInstances:Ue.boolean().default(!0),invokeDestroyTriggers:Ue.boolean().default(!0),deleteUnreachableResources:Ue.boolean().default(!1),forceDeleteState:Ue.boolean().default(!1),refresh:Ue.boolean().default(!1)});Ue.object({projectId:Ue.string(),type:BMe,instanceIds:Ue.array(Ue.string()),options:HMe.partial().optional()});Ue.object({id:Ue.string().uuid(),status:jMt,projectId:Ue.string(),type:BMe,requestedInstanceIds:Ue.array(Ue.string()),instanceIdsToUpdate:Ue.array(Ue.string()).default(()=>[]),instanceIdsToDestroy:Ue.array(Ue.string()).default(()=>[]),options:HMe.default(()=>({})),error:Ue.string().nullable(),startedAt:Ue.number(),completedAt:Ue.number().nullable()});function VMe(n){return n==="completed"||n==="failed"||n==="cancelled"}class Cne{constructor(e,t,i){this.nodes=e,this.logger=t,this.outputHandler=i}workset=new Set;dependentMap=new Map;outputMap=new Map;addToWorkset(e){this.workset.add(e)}addAllNodesToWorkset(){for(const e of this.nodes.keys())this.workset.add(e)}get outputs(){return this.outputMap}requireOutput(e){const t=this.outputMap.get(e);if(!t)throw new Error(`Output for node ${e} is not available`);return t}invalidate(e){const t=[e];for(;t.length>0;){const i=t.pop();if(!this.nodes.has(i))continue;this.outputMap.delete(i),this.workset.add(i);const s=this.dependentMap.get(i);if(s){for(const r of s)this.outputMap.has(r)&&t.push(r);this.dependentMap.delete(i)}}}async process(e){for(;this.workset.size>0;){const t=this.workset.values().next().value,i=[{nodeId:t,resolved:!1,dependencies:[]}];for(;i.length>0;){const s=i[i.length-1],{nodeId:r,resolved:o}=s,a=this.nodes.get(r);if(!a){this.logger.warn({nodeId:r},"node not found in the graph, skipping"),i.pop();continue}if(this.outputMap.has(r)){i.pop();continue}if(!o){s.dependencies=AMe(this.getNodeDependencies(a));let c=!1;for(const d of s.dependencies){if(!this.nodes.has(d)){this.logger.warn({depId:d,nodeId:r},"dependency not found in the graph, skipping");continue}this.outputMap.has(d)||(i.push({nodeId:d,resolved:!1,dependencies:[]}),c=!0)}if(c){s.resolved=!0;continue}}const l=await this.processNode(a,this.logger);if(e?.aborted){this.logger.warn({nodeId:r},"processing aborted, skipping output");return}for(const c of s.dependencies){let d=this.dependentMap.get(c);d||(d=new Set,this.dependentMap.set(c,d)),d.add(r)}this.outputMap.set(r,l),this.outputHandler?.(r,l),i.pop()}this.workset.delete(t)}}}function pve(n,e){return`${n}:${e}`}var Tk={exports:{}},w8={},ig={},pv={},E8={},T8={},I8={},mve;function kF(){return mve||(mve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;class e{}n._CodeOrName=e,n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(v){if(super(),!n.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=t;class i extends e{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((b,S)=>(S instanceof t&&(b[S.str]=(b[S.str]||0)+1),b),{})}}n._Code=i,n.nil=new i("");function s(_,...v){const b=[_[0]];let S=0;for(;S<v.length;)a(b,v[S]),b.push(_[++S]);return new i(b)}n._=s;const r=new i("+");function o(_,...v){const b=[f(_[0])];let S=0;for(;S<v.length;)b.push(r),a(b,v[S]),b.push(r,f(_[++S]));return l(b),new i(b)}n.str=o;function a(_,v){v instanceof i?_.push(...v._items):v instanceof t?_.push(v):_.push(u(v))}n.addCodeArg=a;function l(_){let v=1;for(;v<_.length-1;){if(_[v]===r){const b=c(_[v-1],_[v+1]);if(b!==void 0){_.splice(v-1,3,b);continue}_[v++]="+"}v++}}function c(_,v){if(v==='""')return _;if(_==='""')return v;if(typeof _=="string")return v instanceof t||_[_.length-1]!=='"'?void 0:typeof v!="string"?`${_.slice(0,-1)}${v}"`:v[0]==='"'?_.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(_ instanceof t))return`"${_}${v.slice(1)}`}function d(_,v){return v.emptyStr()?_:_.emptyStr()?v:o`${_}${v}`}n.strConcat=d;function u(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:f(Array.isArray(_)?_.join(","):_)}function h(_){return new i(f(_))}n.stringify=h;function f(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.safeStringify=f;function g(_){return typeof _=="string"&&n.IDENTIFIER.test(_)?new i(`.${_}`):s`[${_}]`}n.getProperty=g;function p(_){if(typeof _=="string"&&n.IDENTIFIER.test(_))return new i(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}n.getEsmExportName=p;function m(_){return new i(_.toString())}n.regexpCode=m}(I8)),I8}var L8={},_ve;function vve(){return _ve||(_ve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const e=kF();class t extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(n.UsedValueState=i={})),n.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class s{constructor({prefixes:c,parent:d}={}){this._names={},this._prefixes=c,this._parent=d}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const d=this._names[c]||this._nameGroup(c);return`${c}${d.index++}`}_nameGroup(c){var d,u;if(!((u=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||u===void 0)&&u.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}n.Scope=s;class r extends e.Name{constructor(c,d){super(d),this.prefix=c}setValue(c,{property:d,itemIndex:u}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(d)}[${u}]`}}n.ValueScopeName=r;const o=(0,e._)`\n`;class a extends s{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:e.nil}}get(){return this._scope}name(c){return new r(c,this._newName(c))}value(c,d){var u;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(c),{prefix:f}=h,g=(u=d.key)!==null&&u!==void 0?u:d.ref;let p=this._values[f];if(p){const v=p.get(g);if(v)return v}else p=this._values[f]=new Map;p.set(g,h);const m=this._scope[f]||(this._scope[f]=[]),_=m.length;return m[_]=d.ref,h.setValue(d,{property:f,itemIndex:_}),h}getValue(c,d){const u=this._values[c];if(u)return u.get(d)}scopeRefs(c,d=this._values){return this._reduceValues(d,u=>{if(u.scopePath===void 0)throw new Error(`CodeGen: name "${u}" has no value`);return(0,e._)`${c}${u.scopePath}`})}scopeCode(c=this._values,d,u){return this._reduceValues(c,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,u)}_reduceValues(c,d,u={},h){let f=e.nil;for(const g in c){const p=c[g];if(!p)continue;const m=u[g]=u[g]||new Map;p.forEach(_=>{if(m.has(_))return;m.set(_,i.Started);let v=d(_);if(v){const b=this.opts.es5?n.varKinds.var:n.varKinds.const;f=(0,e._)`${f}${b} ${_} = ${v};${this.opts._n}`}else if(v=h?.(_))f=(0,e._)`${f}${v}${this.opts._n}`;else throw new t(_);m.set(_,i.Completed)})}return f}}n.ValueScope=a}(L8)),L8}var bve;function xn(){return bve||(bve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.or=n.and=n.not=n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0;const e=kF(),t=vve();var i=kF();Object.defineProperty(n,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(n,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(n,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(n,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return i.Name}});var s=vve();Object.defineProperty(n,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(n,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(n,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(n,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),n.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class r{optimizeNodes(){return this}optimizeNames(H,q){return this}}class o extends r{constructor(H,q,oe){super(),this.varKind=H,this.name=q,this.rhs=oe}render({es5:H,_n:q}){const oe=H?t.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${X};`+q}optimizeNames(H,q){if(H[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,H,q)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends r{constructor(H,q,oe){super(),this.lhs=H,this.rhs=q,this.sideEffects=oe}render({_n:H}){return`${this.lhs} = ${this.rhs};`+H}optimizeNames(H,q){if(!(this.lhs instanceof e.Name&&!H[this.lhs.str]&&!this.sideEffects))return this.rhs=L(this.rhs,H,q),this}get names(){const H=this.lhs instanceof e.Name?{}:{...this.lhs.names};return k(H,this.rhs)}}class l extends a{constructor(H,q,oe,X){super(H,oe,X),this.op=q}render({_n:H}){return`${this.lhs} ${this.op}= ${this.rhs};`+H}}class c extends r{constructor(H){super(),this.label=H,this.names={}}render({_n:H}){return`${this.label}:`+H}}class d extends r{constructor(H){super(),this.label=H,this.names={}}render({_n:H}){return`break${this.label?` ${this.label}`:""};`+H}}class u extends r{constructor(H){super(),this.error=H}render({_n:H}){return`throw ${this.error};`+H}get names(){return this.error.names}}class h extends r{constructor(H){super(),this.code=H}render({_n:H}){return`${this.code};`+H}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(H,q){return this.code=L(this.code,H,q),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class f extends r{constructor(H=[]){super(),this.nodes=H}render(H){return this.nodes.reduce((q,oe)=>q+oe.render(H),"")}optimizeNodes(){const{nodes:H}=this;let q=H.length;for(;q--;){const oe=H[q].optimizeNodes();Array.isArray(oe)?H.splice(q,1,...oe):oe?H[q]=oe:H.splice(q,1)}return H.length>0?this:void 0}optimizeNames(H,q){const{nodes:oe}=this;let X=oe.length;for(;X--;){const G=oe[X];G.optimizeNames(H,q)||(N(H,G.names),oe.splice(X,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((H,q)=>x(H,q.names),{})}}class g extends f{render(H){return"{"+H._n+super.render(H)+"}"+H._n}}class p extends f{}class m extends g{}m.kind="else";class _ extends g{constructor(H,q){super(q),this.condition=H}render(H){let q=`if(${this.condition})`+super.render(H);return this.else&&(q+="else "+this.else.render(H)),q}optimizeNodes(){super.optimizeNodes();const H=this.condition;if(H===!0)return this.nodes;let q=this.else;if(q){const oe=q.optimizeNodes();q=this.else=Array.isArray(oe)?new m(oe):oe}if(q)return H===!1?q instanceof _?q:q.nodes:this.nodes.length?this:new _(A(H),q instanceof _?[q]:q.nodes);if(!(H===!1||!this.nodes.length))return this}optimizeNames(H,q){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(H,q),!!(super.optimizeNames(H,q)||this.else))return this.condition=L(this.condition,H,q),this}get names(){const H=super.names;return k(H,this.condition),this.else&&x(H,this.else.names),H}}_.kind="if";class v extends g{}v.kind="for";class b extends v{constructor(H){super(),this.iteration=H}render(H){return`for(${this.iteration})`+super.render(H)}optimizeNames(H,q){if(super.optimizeNames(H,q))return this.iteration=L(this.iteration,H,q),this}get names(){return x(super.names,this.iteration.names)}}class S extends v{constructor(H,q,oe,X){super(),this.varKind=H,this.name=q,this.from=oe,this.to=X}render(H){const q=H.es5?t.varKinds.var:this.varKind,{name:oe,from:X,to:G}=this;return`for(${q} ${oe}=${X}; ${oe}<${G}; ${oe}++)`+super.render(H)}get names(){const H=k(super.names,this.from);return k(H,this.to)}}class y extends v{constructor(H,q,oe,X){super(),this.loop=H,this.varKind=q,this.name=oe,this.iterable=X}render(H){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(H)}optimizeNames(H,q){if(super.optimizeNames(H,q))return this.iterable=L(this.iterable,H,q),this}get names(){return x(super.names,this.iterable.names)}}class C extends g{constructor(H,q,oe){super(),this.name=H,this.args=q,this.async=oe}render(H){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(H)}}C.kind="func";class T extends f{render(H){return"return "+super.render(H)}}T.kind="return";class E extends g{render(H){let q="try"+super.render(H);return this.catch&&(q+=this.catch.render(H)),this.finally&&(q+=this.finally.render(H)),q}optimizeNodes(){var H,q;return super.optimizeNodes(),(H=this.catch)===null||H===void 0||H.optimizeNodes(),(q=this.finally)===null||q===void 0||q.optimizeNodes(),this}optimizeNames(H,q){var oe,X;return super.optimizeNames(H,q),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(H,q),(X=this.finally)===null||X===void 0||X.optimizeNames(H,q),this}get names(){const H=super.names;return this.catch&&x(H,this.catch.names),this.finally&&x(H,this.finally.names),H}}class I extends g{constructor(H){super(),this.error=H}render(H){return`catch(${this.error})`+super.render(H)}}I.kind="catch";class D extends g{render(H){return"finally"+super.render(H)}}D.kind="finally";class R{constructor(H,q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...q,_n:q.lines?`
997
+ `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const v of g){let b={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};const S=oQ(v.htmlStyle||_F(v));S&&(b.properties.style=S);for(const y of s)b=y?.span?.call(h,b,p+1,_,m,v)||b;a==="inline"?o.children.push(b):a==="classic"&&m.children.push(b),_+=v.content.length}if(a==="classic"){for(const v of s)m=v?.line?.call(h,m,p+1)||m;u.push(m),r.push(m)}}),a==="classic"){for(const g of s)d=g?.code?.call(h,d)||d;c.children.push(d);for(const g of s)c=g?.pre?.call(h,c)||c;o.children.push(c)}let f=o;for(const g of s)f=g?.root?.call(h,f)||f;return i&&Z4(f,i),f}function tAt(n){return n.map(e=>{const t=[];let i="",s=0;return e.forEach((r,o)=>{const l=!(r.fontStyle&&(r.fontStyle&$a.Underline||r.fontStyle&$a.Strikethrough));l&&r.content.match(/^\s+$/)&&e[o+1]?(s||(s=r.offset),i+=r.content):i?(l?t.push({...r,offset:s,content:i+r.content}):t.push({content:i,offset:s},r),s=0,i=""):t.push(r)}),t})}function iAt(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const i=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return t;const[,s,r,o]=i;if(!s&&!o)return t;const a=[{...t,offset:t.offset+s.length,content:r}];return s&&a.unshift({content:s,offset:t.offset}),o&&a.push({content:o,offset:t.offset+s.length+r.length}),a}))}function nAt(n){return n.map(e=>{const t=[];for(const i of e){if(t.length===0){t.push({...i});continue}const s=t[t.length-1],r=s.htmlStyle||oQ(_F(s)),o=i.htmlStyle||oQ(_F(i)),a=s.fontStyle&&(s.fontStyle&$a.Underline||s.fontStyle&$a.Strikethrough),l=i.fontStyle&&(i.fontStyle&$a.Underline||i.fontStyle&$a.Strikethrough);!a&&!l&&r===o?s.content+=i.content:t.push({...i})}return t})}const sAt=Lkt;function rAt(n,e,t){const i={meta:{},options:t,codeToHast:(r,o)=>yF(n,r,o),codeToTokens:(r,o)=>SF(n,r,o)};let s=sAt(yF(n,e,t,i));for(const r of vF(t))s=r.postprocess?.call(i,s,t)||s;return s}const Z_e={light:"#333333",dark:"#bbbbbb"},J_e={light:"#fffffe",dark:"#1e1e1e"},eve="__shiki_resolved";function _ne(n){if(n?.[eve])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:i}=e;if(!t||!i){const a=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(t=a.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),i||(i=e.type==="light"?Z_e.light:Z_e.dark),t||(t=e.type==="light"?J_e.light:J_e.dark),e.fg=i,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0;const r=new Map;function o(a){if(r.has(a))return r.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?o(a):(r.set(a,l),l)}e.settings=e.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const d={...a,settings:{...a.settings}};if(l){const u=o(a.settings.foreground);e.colorReplacements[u]=a.settings.foreground,d.settings.foreground=u}if(c){const u=o(a.settings.background);e.colorReplacements[u]=a.settings.background,d.settings.background=u}return d});for(const a of Object.keys(e.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!e.colors[a]?.startsWith("#")){const l=o(e.colors[a]);e.colorReplacements[l]=e.colors[a],e.colors[a]=l}return Object.defineProperty(e,eve,{enumerable:!1,writable:!1,value:!0}),e}async function rMe(n){return Array.from(new Set((await Promise.all(n.filter(e=>!JOe(e)).map(async e=>await ZOe(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function oMe(n){return(await Promise.all(n.map(async t=>eMe(t)?null:_ne(await ZOe(t))))).filter(t=>!!t)}let oAt=3;function aAt(n,e=3){e>oAt||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let WC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class lAt extends uNt{constructor(e,t,i,s={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=s,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=_ne(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=dF.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new WC(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const s=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(s.name=e.name,this._resolvedGrammars.set(e.name,s),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const s of e)this.resolveEmbeddedLanguages(s);const t=Array.from(this._langGraph.entries()),i=t.filter(([s,r])=>!r);if(i.length){const s=t.filter(([r,o])=>o&&o.embeddedLangs?.some(a=>i.map(([l])=>l).includes(a))).filter(r=>!i.includes(r));throw new WC(`Missing languages ${i.map(([r])=>`\`${r}\``).join(", ")}, required by ${s.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[s,r]of t)this._resolver.addLanguage(r);for(const[s,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class cAt{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let s=1;s<=t.length;s++){const r=t.slice(0,s).join(".");i=[...i,...this._injections.get(r)||[]]}return i}}let N1=0;function dAt(n){N1+=1,n.warnings!==!1&&N1>=10&&N1%10===0&&console.warn(`[Shiki] ${N1} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new WC("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),i=(n.themes||[]).flat(1).map(_ne),s=new cAt(n.engine,t),r=new lAt(s,i,t,n.langAlias);let o;function a(v){m();const b=r.getGrammar(typeof v=="string"?v:v.name);if(!b)throw new WC(`Language \`${v}\` not found, you may need to load it first`);return b}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const b=r.getTheme(v);if(!b)throw new WC(`Theme \`${v}\` not found, you may need to load it first`);return b}function c(v){m();const b=l(v);o!==v&&(r.setTheme(b),o=v);const S=r.getColorMap();return{theme:b,colorMap:S}}function d(){return m(),r.getLoadedThemes()}function u(){return m(),r.getLoadedLanguages()}function h(...v){m(),r.loadLanguages(v.flat(1))}async function f(...v){return h(await rMe(v))}function g(...v){m();for(const b of v.flat(1))r.loadTheme(b)}async function p(...v){return m(),g(await oMe(v))}function m(){if(e)throw new WC("Shiki instance has been disposed")}function _(){e||(e=!0,r.dispose(),N1-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:u,loadLanguage:f,loadLanguageSync:h,loadTheme:p,loadThemeSync:g,dispose:_,[Symbol.dispose]:_}}async function uAt(n){n.engine||aAt("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,i]=await Promise.all([oMe(n.themes||[]),rMe(n.langs||[]),n.engine]);return dAt({...n,themes:e,langs:t,engine:i})}async function hAt(n){const e=await uAt(n);return{getLastGrammarState:(...t)=>Kkt(e,...t),codeToTokensBase:(t,i)=>mne(e,t,i),codeToTokensWithThemes:(t,i)=>sMe(e,t,i),codeToTokens:(t,i)=>SF(e,t,i),codeToHast:(t,i)=>yF(e,t,i),codeToHtml:(t,i)=>rAt(e,t,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function fAt(n){const e=n.langs,t=n.themes,i=n.engine;async function s(r){function o(u){if(typeof u=="string"){if(JOe(u))return[];const h=e[u];if(!h)throw new Go(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}function a(u){if(eMe(u))return"none";if(typeof u=="string"){const h=t[u];if(!h)throw new Go(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}const l=(r.themes??[]).map(u=>a(u)),c=(r.langs??[]).map(u=>o(u)),d=await hAt({engine:r.engine??i(),...r,themes:l,langs:c});return{...d,loadLanguage(...u){return d.loadLanguage(...u.map(o))},loadTheme(...u){return d.loadTheme(...u.map(a))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return s}const aMe=[{id:"abap",name:"ABAP",import:()=>ne(()=>import("./C-LNjlSw.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>ne(()=>import("./SpSV0q3Y.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>ne(()=>import("./CwwkfVSR.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>ne(()=>import("./CW2Vrioc.js").then(n=>n.f),__vite__mapDeps([2,3,4,5]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>ne(()=>import("./1FBXtL6T.js"),__vite__mapDeps([6,2,3,4,5,7]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>ne(()=>import("./Pmp26Uib.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>ne(()=>import("./QX45V2Sx.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>ne(()=>import("./32uRPJ4N.js"),__vite__mapDeps([8,3,4,5,9,10,11]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>ne(()=>import("./3x3noH9Z.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>ne(()=>import("./bbDxRicf.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>ne(()=>import("./DUyX-Nai.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>ne(()=>import("./8iK_SAcF.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>ne(()=>import("./zH8SnKTm.js"),__vite__mapDeps([12,11,4,13,5,14]),import.meta.url)},{id:"awk",name:"AWK",import:()=>ne(()=>import("./BInbHe_J.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>ne(()=>import("./C96HV_dC.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>ne(()=>import("./DVZd9B17.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>ne(()=>import("./BoKiGodi.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>ne(()=>import("./D08WgyRC.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>ne(()=>import("./CHM0blh-.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>ne(()=>import("./6nHXG8SA.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>ne(()=>import("./CtIj0LFu.js"),__vite__mapDeps([15,16,3,4,5,9,10,17,11]),import.meta.url)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>ne(()=>import("./CquLrc37.js"),__vite__mapDeps([18,19]),import.meta.url)},{id:"c",name:"C",import:()=>ne(()=>import("./Dql7v_Bn.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>ne(()=>import("./CSgDAwbP.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>ne(()=>import("./CYx6PXAq.js"),__vite__mapDeps([20,21]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>ne(()=>import("./D_3VmgUT.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>ne(()=>import("./P80f7IUj.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>ne(()=>import("./Cn55uXmY.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>ne(()=>import("./B9Kps4VT.js"),__vite__mapDeps([22,3,4,5,10]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>ne(()=>import("./Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>ne(()=>import("./DPjEyH5T.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>ne(()=>import("./M64VA-8k.js"),__vite__mapDeps([23,4]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>ne(()=>import("./kdhEWpvT.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>ne(()=>import("./COqw26dr.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>ne(()=>import("./BzgE5b26.js"),__vite__mapDeps([24,25,26,27,17]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>ne(()=>import("./CYBft37h.js"),__vite__mapDeps([28,3,4,5,17,27,29]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>ne(()=>import("./CHadp7IV.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>ne(()=>import("./B0QpCHAm.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>ne(()=>import("./fuZLfV_i.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>ne(()=>import("./D82EKSYY.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>ne(()=>import("./afimtvtX.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>ne(()=>import("./BLe-5KzV.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>ne(()=>import("./CF10PKvl.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>ne(()=>import("./os-I7NdE.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>ne(()=>import("./BmXAJ9_W.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>ne(()=>import("./D97Zzqfu.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>ne(()=>import("./BcOcwvcX.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>ne(()=>import("./Da5cRb03.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>ne(()=>import("./WwEXBnAl.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>ne(()=>import("./BG8T9Pi3.js"),__vite__mapDeps([30,13,3,4,5,16]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>ne(()=>import("./Wlg0E1_o.js"),__vite__mapDeps([31,3,4,5]),import.meta.url)},{id:"elm",name:"Elm",import:()=>ne(()=>import("./RUaqLVwG.js"),__vite__mapDeps([32,26,27]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>ne(()=>import("./BAsAT7ku.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>ne(()=>import("./DtXx6hVj.js"),__vite__mapDeps([33,3,4,5,34,35,9,10,17,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>ne(()=>import("./BjMo22yv.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>ne(()=>import("./D1HCxHaw.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>ne(()=>import("./Bl2oy6fF.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>ne(()=>import("./C4IJs8-o.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>ne(()=>import("./WZprGpd_.js"),__vite__mapDeps([41,42]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>ne(()=>import("./-gUCin__.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>ne(()=>import("./hIfYPPDs.js"),__vite__mapDeps([43,44]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>ne(()=>import("./8VYUoF4n.js"),__vite__mapDeps([45,46,47]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>ne(()=>import("./CBs8Keu3.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>ne(()=>import("./DkwncUOv.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>ne(()=>import("./D0YGMca9.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>ne(()=>import("./Bp_PLy4w.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>ne(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>ne(()=>import("./BFdI9D2b.js"),__vite__mapDeps([50,29]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>ne(()=>import("./DfbSQCnh.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>ne(()=>import("./DCIw00iZ.js"),__vite__mapDeps([51,4,13,5,3]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>ne(()=>import("./C1s3v70Z.js"),__vite__mapDeps([52,13,5,4,3]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>ne(()=>import("./BgLz8NXr.js"),__vite__mapDeps([26,27]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>ne(()=>import("./CFetOo1p.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>ne(()=>import("./ClSdsI-R.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>ne(()=>import("./DFFYXpeI.js"),__vite__mapDeps([36,4,13,37,38]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>ne(()=>import("./PDBGRe-6.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>ne(()=>import("./itr3s8OG.js"),__vite__mapDeps([53,3,4,5,17]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>ne(()=>import("./gI3nN7Ut.js"),__vite__mapDeps([35,4,5]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>ne(()=>import("./C9-wYoAy.js"),__vite__mapDeps([54,3,4,5,40]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>ne(()=>import("./Df6bDoY_.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>ne(()=>import("./DC3yV9u3.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>ne(()=>import("./BWvSN4gD.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>ne(()=>import("./D5-asLiD.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>ne(()=>import("./B2VXiYNb.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>ne(()=>import("./BHuRbl13.js"),__vite__mapDeps([3,4,5]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>ne(()=>import("./CCouqEzj.js"),__vite__mapDeps([16,3,4,5]),import.meta.url)},{id:"http",name:"HTTP",import:()=>ne(()=>import("./CJ1eVxFS.js"),__vite__mapDeps([55,29,11,9,10,36,4,13,37,38]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>ne(()=>import("./Cqtoupvr.js"),__vite__mapDeps([56,57]),import.meta.url)},{id:"hy",name:"Hy",import:()=>ne(()=>import("./DFXneXwc.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>ne(()=>import("./E_RAAYUa.js"),[],import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>ne(()=>import("./BEwlwnbL.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>ne(()=>import("./CtpALBBA.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>ne(()=>import("./ryoHgIpY.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>ne(()=>import("./BFKVEqu8.js"),__vite__mapDeps([58,3,4,5]),import.meta.url)},{id:"jison",name:"Jison",import:()=>ne(()=>import("./BVgHyAf_.js"),__vite__mapDeps([59,4]),import.meta.url)},{id:"json",name:"JSON",import:()=>ne(()=>import("./Cp-IABpG.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>ne(()=>import("./C9tS-k6U.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>ne(()=>import("./Des-eS-w.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>ne(()=>import("./DcaNXYhu.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>ne(()=>import("./caUT6aIO.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>ne(()=>import("./C2t-YnRu.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>ne(()=>import("./h0LN4FIn.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>ne(()=>import("./DW9tJLXY.js"),__vite__mapDeps([60,24,25,26,27,17,21,4,61]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>ne(()=>import("./BdnUsdx6.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>ne(()=>import("./BKLW6Or0.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>ne(()=>import("./BfB9GJr7.js"),__vite__mapDeps([62,63,61]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>ne(()=>import("./Bc5W3P_y.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>ne(()=>import("./DqnT6WTg.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>ne(()=>import("./BDJi0rE3.js"),__vite__mapDeps([64,3,4,5,11]),import.meta.url)},{id:"llvm",name:"LLVM IR",import:()=>ne(()=>import("./DLpp9LvF.js"),[],import.meta.url)},{id:"log",name:"Log file",import:()=>ne(()=>import("./BPQEJVH-.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>ne(()=>import("./BB0-839A.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>ne(()=>import("./C9lfyjdU.js"),__vite__mapDeps([39,27]),import.meta.url)},{id:"luau",name:"Luau",import:()=>ne(()=>import("./BUGa-R-r.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>ne(()=>import("./BoASPUxF.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>ne(()=>import("./C9sg6759.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>ne(()=>import("./B82-JnRn.js"),__vite__mapDeps([65,5,66,7,4]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>ne(()=>import("./Coy0nst6.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>ne(()=>import("./DREyJzTe.js"),__vite__mapDeps([67,44,40,16,3,4,5]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>ne(()=>import("./DHd_1LBM.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>ne(()=>import("./DfYh35At.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>ne(()=>import("./B7zkapVa.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>ne(()=>import("./DmN1BIHU.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>ne(()=>import("./BkPM1oy1.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>ne(()=>import("./DRg8JJMk.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>ne(()=>import("./BU0udk1K.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>ne(()=>import("./Dykf6cri.js"),__vite__mapDeps([68,39,27]),import.meta.url)},{id:"nim",name:"Nim",import:()=>ne(()=>import("./D_T-aAMc.js"),__vite__mapDeps([69,27,3,4,5,9,10,26,44]),import.meta.url)},{id:"nix",name:"Nix",import:()=>ne(()=>import("./CDCQC_zV.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>ne(()=>import("./DOiXYxxS.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>ne(()=>import("./P9Jyl3kd.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>ne(()=>import("./CFJys5tQ.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>ne(()=>import("./SN78sQLf.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>ne(()=>import("./DLb4zeju.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>ne(()=>import("./G3-HApOe.js"),__vite__mapDeps([70,3,4,5,9,10,17]),import.meta.url)},{id:"php",name:"PHP",import:()=>ne(()=>import("./C8_cZGvL.js"),__vite__mapDeps([71,3,4,5,9,10,17,11]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>ne(()=>import("./DbnbuKy4.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>ne(()=>import("./BTJTHyun.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>ne(()=>import("./C0HS_06l.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>ne(()=>import("./CXtECtnM.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>ne(()=>import("./CEu0bR-o.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>ne(()=>import("./B9QZihn4.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>ne(()=>import("./Dd19v3D-.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>ne(()=>import("./BRGHnwaO.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>ne(()=>import("./DyJlTyXw.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>ne(()=>import("./DJs7a6wl.js"),__vite__mapDeps([72,4,5,3]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>ne(()=>import("./BMWR74SV.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>ne(()=>import("./CtrldY6v.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>ne(()=>import("./CXTBPihj.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>ne(()=>import("./CNgRkp1_.js"),__vite__mapDeps([73,4]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>ne(()=>import("./C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>ne(()=>import("./diaQH6uK.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>ne(()=>import("./Cpx7UCi2.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>ne(()=>import("./BauLn-NW.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>ne(()=>import("./CrUG655c.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>ne(()=>import("./CChMg1-B.js"),__vite__mapDeps([74,3,4,5,75]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>ne(()=>import("./C-SQnVFl.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>ne(()=>import("./CDVJQ6XC.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>ne(()=>import("./C3B-1QV4.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>ne(()=>import("./LUZpk28X.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>ne(()=>import("./B9QVBjCK.js"),__vite__mapDeps([76,16,3,4,5,24,25,26,27,17,21,29,40,77,34,35,9,10,36,13,37,38,39]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>ne(()=>import("./cP9hzipi.js"),__vite__mapDeps([34,3,4,5,35,9,10,17,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>ne(()=>import("./B1yitclQ.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>ne(()=>import("./Bv2DfwTI.js"),__vite__mapDeps([78,17]),import.meta.url)},{id:"sass",name:"Sass",import:()=>ne(()=>import("./Cj5Yp3dK.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>ne(()=>import("./C151Ov-r.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>ne(()=>import("./BlI8fBv_.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>ne(()=>import("./mtNz0_Xw.js"),__vite__mapDeps([7,5]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>ne(()=>import("./DVxCFoDh.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>ne(()=>import("./CeDfCXaY.js"),__vite__mapDeps([79,80]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>ne(()=>import("./enPR0-Fz.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>ne(()=>import("./BIzIjuvV.js"),__vite__mapDeps([81,29]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>ne(()=>import("./BKe6jfpc.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>ne(()=>import("./BbcW6ACK.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>ne(()=>import("./CEizyJ1q.js"),__vite__mapDeps([82,3,4,5]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>ne(()=>import("./BRZ36xJF.js"),__vite__mapDeps([83,84]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>ne(()=>import("./C2pHKz2C.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>ne(()=>import("./Bc-MNOVW.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>ne(()=>import("./_ykCGR6B.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>ne(()=>import("./CFfumueS.js"),__vite__mapDeps([85,17]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>ne(()=>import("./DgWikGMS.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>ne(()=>import("./CrtRcjh8.js"),__vite__mapDeps([86,4,13,5,14]),import.meta.url)},{id:"swift",name:"Swift",import:()=>ne(()=>import("./fve9TYiY.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>ne(()=>import("./CVTao1yP.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>ne(()=>import("./BgWFZNIN.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>ne(()=>import("./Z9sDDOrt.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>ne(()=>import("./QIJgUcNo.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>ne(()=>import("./dwOrl1Do.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>ne(()=>import("./Da4t7zrk.js"),__vite__mapDeps([87,88,4,5]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>ne(()=>import("./lrsjGwJC.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>ne(()=>import("./BAmeXbWa.js"),__vite__mapDeps([63,61]),import.meta.url)},{id:"toml",name:"TOML",import:()=>ne(()=>import("./DpWJAGvS.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>ne(()=>import("./Cc-FHe7z.js"),__vite__mapDeps([89,13,5,4,26,27,3,17,9,10]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>ne(()=>import("./B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>ne(()=>import("./nsowKw4B.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>ne(()=>import("./BsS91CYL.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>ne(()=>import("./GXefNOxV.js"),__vite__mapDeps([90,5,4,7,71,3,9,10,17,11,21,34,35,36,13,37,38,24,25,26,27,29,39,40]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>ne(()=>import("./CYoF9-Z5.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>ne(()=>import("./Df68jz8_.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>ne(()=>import("./C5DMNY_Y.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>ne(()=>import("./Bx8CTVFK.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>ne(()=>import("./wef_wrfO.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>ne(()=>import("./gsC4jtYg.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>ne(()=>import("./BQ8w6xss.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>ne(()=>import("./B-n0qIwP.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>ne(()=>import("./2vEc2rIP.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>ne(()=>import("./C5CPwoy2.js"),__vite__mapDeps([91,5,4,13,11,16,3]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>ne(()=>import("./CKfMBS6n.js"),__vite__mapDeps([92,91,5,4,13,11,16,3]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>ne(()=>import("./BvCpsbMi.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>ne(()=>import("./BIkblFNm.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>ne(()=>import("./BV7otONQ.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>ne(()=>import("./Dx-B1_4e.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>ne(()=>import("./y_XAX2KJ.js"),[],import.meta.url)},{id:"wit",name:"WebAssembly Interface Types",import:()=>ne(()=>import("./5i3qLPDT.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>ne(()=>import("./BdBarL6S.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>ne(()=>import("./CCLpvtro.js"),__vite__mapDeps([9,10]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>ne(()=>import("./Chm2_3hY.js"),__vite__mapDeps([93,9,10]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>ne(()=>import("./Buea-lGh.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>ne(()=>import("./Y7AfTJ_q.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>ne(()=>import("./CK-KhNJq.js"),[],import.meta.url)}],gAt=Object.fromEntries(aMe.map(n=>[n.id,n.import])),pAt=Object.fromEntries(aMe.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),mAt={...gAt,...pAt},_At=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>ne(()=>import("./C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>ne(()=>import("./D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>ne(()=>import("./Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>ne(()=>import("./Btyk0a-E.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>ne(()=>import("./q-j0iyEw.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>ne(()=>import("./brDaU2vB.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>ne(()=>import("./BR7mELCv.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>ne(()=>import("./C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>ne(()=>import("./BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>ne(()=>import("./BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>ne(()=>import("./BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>ne(()=>import("./C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>ne(()=>import("./DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>ne(()=>import("./Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>ne(()=>import("./DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>ne(()=>import("./E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>ne(()=>import("./DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>ne(()=>import("./D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>ne(()=>import("./BfjtVDDH.js"),[],import.meta.url)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>ne(()=>import("./Hhtzho9R.js"),[],import.meta.url)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>ne(()=>import("./DFR6f4Jn.js"),[],import.meta.url)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>ne(()=>import("./BFVdkX1U.js"),[],import.meta.url)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>ne(()=>import("./7i6GEmcB.js"),[],import.meta.url)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>ne(()=>import("./Dcsh5twl.js"),[],import.meta.url)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>ne(()=>import("./leinZj1a.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>ne(()=>import("./DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>ne(()=>import("./CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>ne(()=>import("./CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>ne(()=>import("./DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>ne(()=>import("./DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>ne(()=>import("./B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>ne(()=>import("./D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>ne(()=>import("./BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>ne(()=>import("./B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>ne(()=>import("./CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>ne(()=>import("./Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>ne(()=>import("./CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>ne(()=>import("./CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>ne(()=>import("./D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>ne(()=>import("./C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>ne(()=>import("./Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>ne(()=>import("./DVMEJ2y_.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>ne(()=>import("./PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>ne(()=>import("./3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>ne(()=>import("./CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>ne(()=>import("./bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>ne(()=>import("./BHrmToEH.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>ne(()=>import("./CnK8MTSM.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>ne(()=>import("./NleAzG8P.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>ne(()=>import("./BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>ne(()=>import("./DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>ne(()=>import("./Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>ne(()=>import("./DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>ne(()=>import("./L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>ne(()=>import("./CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>ne(()=>import("./hegEt444.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>ne(()=>import("./DU1UobuO.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>ne(()=>import("./Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>ne(()=>import("./D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>ne(()=>import("./CVO1_9PV.js"),[],import.meta.url)}],vAt=Object.fromEntries(_At.map(n=>[n.id,n.import]));class vne extends Error{constructor(e){super(e),this.name="ShikiError"}}function bAt(){return 2147483648}function SAt(){return typeof performance<"u"?performance.now():Date.now()}const yAt=(n,e)=>n+(e-n%e)%e;async function CAt(n){let e,t;const i={};function s(f){t=f,i.HEAPU8=new Uint8Array(f),i.HEAPU32=new Uint32Array(f)}function r(f,g,p){i.HEAPU8.copyWithin(f,g,g+p)}function o(f){try{return e.grow(f-t.byteLength+65535>>>16),s(e.buffer),1}catch{}}function a(f){const g=i.HEAPU8.length;f=f>>>0;const p=bAt();if(f>p)return!1;for(let m=1;m<=4;m*=2){let _=g*(1+.2/m);_=Math.min(_,f+100663296);const v=Math.min(p,yAt(Math.max(f,_),65536));if(o(v))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,g,p=1024){const m=g+p;let _=g;for(;f[_]&&!(_>=m);)++_;if(_-g>16&&f.buffer&&l)return l.decode(f.subarray(g,_));let v="";for(;g<_;){let b=f[g++];if(!(b&128)){v+=String.fromCharCode(b);continue}const S=f[g++]&63;if((b&224)===192){v+=String.fromCharCode((b&31)<<6|S);continue}const y=f[g++]&63;if((b&240)===224?b=(b&15)<<12|S<<6|y:b=(b&7)<<18|S<<12|y<<6|f[g++]&63,b<65536)v+=String.fromCharCode(b);else{const C=b-65536;v+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return v}function d(f,g){return f?c(i.HEAPU8,f,g):""}const u={emscripten_get_now:SAt,emscripten_memcpy_big:r,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const g=await n({env:u,wasi_snapshot_preview1:u});e=g.memory,s(e.buffer),Object.assign(i,g),i.UTF8ToString=d}return await h(),i}var wAt=Object.defineProperty,EAt=(n,e,t)=>e in n?wAt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Co=(n,e,t)=>EAt(n,typeof e!="symbol"?e+"":e,t);let Wo=null;function TAt(n){throw new vne(n.UTF8ToString(n.getLastOnigError()))}class J4{constructor(e){Co(this,"utf16Length"),Co(this,"utf8Length"),Co(this,"utf16Value"),Co(this,"utf8Value"),Co(this,"utf16OffsetToUtf8"),Co(this,"utf8OffsetToUtf16");const t=e.length,i=J4._utf8ByteLength(e),s=i!==t,r=s?new Uint32Array(t+1):null;s&&(r[t]=i);const o=s?new Uint32Array(i+1):null;s&&(o[i]=t);const a=new Uint8Array(i);let l=0;for(let c=0;c<t;c++){const d=e.charCodeAt(c);let u=d,h=!1;if(d>=55296&&d<=56319&&c+1<t){const f=e.charCodeAt(c+1);f>=56320&&f<=57343&&(u=(d-55296<<10)+65536|f-56320,h=!0)}s&&(r[c]=l,h&&(r[c+1]=l),u<=127?o[l+0]=c:u<=2047?(o[l+0]=c,o[l+1]=c):u<=65535?(o[l+0]=c,o[l+1]=c,o[l+2]=c):(o[l+0]=c,o[l+1]=c,o[l+2]=c,o[l+3]=c)),u<=127?a[l++]=u:u<=2047?(a[l++]=192|(u&1984)>>>6,a[l++]=128|(u&63)>>>0):u<=65535?(a[l++]=224|(u&61440)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0):(a[l++]=240|(u&1835008)>>>18,a[l++]=128|(u&258048)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0),h&&c++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,s=e.length;i<s;i++){const r=e.charCodeAt(i);let o=r,a=!1;if(r>=55296&&r<=56319&&i+1<s){const l=e.charCodeAt(i+1);l>=56320&&l<=57343&&(o=(r-55296<<10)+65536|l-56320,a=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,a&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const e3=class Mh{constructor(e){if(Co(this,"id",++Mh.LAST_ID),Co(this,"_onigBinding"),Co(this,"content"),Co(this,"utf16Length"),Co(this,"utf8Length"),Co(this,"utf16OffsetToUtf8"),Co(this,"utf8OffsetToUtf16"),Co(this,"ptr"),!Wo)throw new vne("Must invoke loadWasm first.");this._onigBinding=Wo,this.content=e;const t=new J4(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Mh._sharedPtrInUse?(Mh._sharedPtr||(Mh._sharedPtr=Wo.omalloc(1e4)),Mh._sharedPtrInUse=!0,Wo.HEAPU8.set(t.utf8Value,Mh._sharedPtr),this.ptr=Mh._sharedPtr):this.ptr=t.createString(Wo)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Mh._sharedPtr?Mh._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Co(e3,"LAST_ID",0);Co(e3,"_sharedPtr",0);Co(e3,"_sharedPtrInUse",!1);let lMe=e3;class IAt{constructor(e){if(Co(this,"_onigBinding"),Co(this,"_ptr"),!Wo)throw new vne("Must invoke loadWasm first.");const t=[],i=[];for(let a=0,l=e.length;a<l;a++){const c=new J4(e[a]);t[a]=c.createString(Wo),i[a]=c.utf8Length}const s=Wo.omalloc(4*e.length);Wo.HEAPU32.set(t,s/4);const r=Wo.omalloc(4*e.length);Wo.HEAPU32.set(i,r/4);const o=Wo.createOnigScanner(s,r,e.length);for(let a=0,l=e.length;a<l;a++)Wo.ofree(t[a]);Wo.ofree(r),Wo.ofree(s),o===0&&TAt(Wo),this._onigBinding=Wo,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let s=0;if(typeof i=="number"&&(s=i),typeof e=="string"){e=new lMe(e);const r=this._findNextMatchSync(e,t,!1,s);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,s)}_findNextMatchSync(e,t,i,s){const r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s);if(o===0)return null;const a=r.HEAPU32;let l=o/4;const c=a[l++],d=a[l++],u=[];for(let h=0;h<d;h++){const f=e.convertUtf8OffsetToUtf16(a[l++]),g=e.convertUtf8OffsetToUtf16(a[l++]);u[h]={start:f,end:g,length:g-f}}return{index:c,captureIndices:u}}}function LAt(n){return typeof n.instantiator=="function"}function xAt(n){return typeof n.default=="function"}function RAt(n){return typeof n.data<"u"}function DAt(n){return typeof Response<"u"&&n instanceof Response}function NAt(n){return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&Buffer.isBuffer?.(n)||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let Ek;function kAt(n){if(Ek)return Ek;async function e(){Wo=await CAt(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),LAt(i)?i=await i.instantiator(t):xAt(i)?i=await i.default(t):(RAt(i)&&(i=i.data),DAt(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await AAt(i)(t):i=await OAt(i)(t):NAt(i)?i=await S8(i)(t):i instanceof WebAssembly.Module?i=await S8(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await S8(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Ek=e(),Ek}function S8(n){return e=>WebAssembly.instantiate(n,e)}function AAt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function OAt(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function MAt(n){return n&&await kAt(n),{createScanner(e){return new IAt(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new lMe(e)}}}const PAt=fAt({langs:mAt,themes:vAt,engine:()=>MAt(ne(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),FAt=await PAt({themes:["dark-plus"],langs:["nix"]});_4.register({id:"nix"});_4.setLanguageConfiguration("nix",{brackets:[["{","}"],["[","]"],["(",")"]]});fNt(FAt,cne);self.MonacoEnvironment={getWorker(n,e){switch(e){case"yaml":return new XRt;default:return new ZRt}}};const tve=new Map,BAt=TDt(cne,{});T7.config({monaco:cne});function ive(n){for(const[e,{schema:t}]of Object.entries(n.args))CF(t)&&(tve.set(`${n.type}.${e}`,{fileMatch:[`${n.type}.${e}`],uri:`library://${n.type}/${e}`,schema:t}),BAt.update({schemas:Array.from(tve.values())}))}function CF(n){return n.type==="object"?!0:n.type==="array"?CF(n.items):"anyOf"in n?CF(n.anyOf[0]):!1}const cMe=Symbol.for("vuetify:selection-control-group"),dMe=It({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:is,trueIcon:is,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Fu},...An(),...lh(),...ea()},"SelectionControlGroup"),HAt=It({...dMe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Li()({name:"VSelectionControlGroup",props:HAt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ys(n,"modelValue"),s=Jd(),r=ue(()=>n.id||`v-selection-control-group-${s}`),o=ue(()=>n.name||r.value),a=new Set;return ur(cMe,{modelValue:i,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),nr(()=>{a.delete(l)})}}),QE({[n.defaultsTarget]:{color:xt(n,"color"),disabled:xt(n,"disabled"),density:xt(n,"density"),error:xt(n,"error"),inline:xt(n,"inline"),modelValue:i,multiple:ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),name:o,falseIcon:xt(n,"falseIcon"),trueIcon:xt(n,"trueIcon"),readonly:xt(n,"readonly"),ripple:xt(n,"ripple"),type:xt(n,"type"),valueComparator:xt(n,"valueComparator")}}),on(()=>K("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":n.inline},n.class],style:n.style,role:n.type==="radio"?"radiogroup":void 0},[t.default?.()])),{}}});const uMe=It({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...An(),...dMe()},"VSelectionControl");function VAt(n){const e=Qn(cMe,void 0),{densityClasses:t}=Pf(n),i=Ys(n,"modelValue"),s=ue(()=>n.trueValue!==void 0?n.trueValue:n.value!==void 0?n.value:!0),r=ue(()=>n.falseValue!==void 0?n.falseValue:!1),o=ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),a=ue({get(){const f=e?e.modelValue.value:i.value;return o.value?fc(f).some(g=>n.valueComparator(g,s.value)):n.valueComparator(f,s.value)},set(f){if(n.readonly)return;const g=f?s.value:r.value;let p=g;o.value&&(p=f?[...fc(i.value),g]:fc(i.value).filter(m=>!n.valueComparator(m,s.value))),e?e.modelValue.value=p:i.value=p}}),{textColorClasses:l,textColorStyles:c}=ju(ue(()=>{if(!(n.error||n.disabled))return a.value?n.color:n.baseColor})),{backgroundColorClasses:d,backgroundColorStyles:u}=Um(ue(()=>a.value&&!n.error&&!n.disabled?n.color:n.baseColor)),h=ue(()=>a.value?n.trueIcon:n.falseIcon);return{group:e,densityClasses:t,trueValue:s,falseValue:r,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,icon:h}}const nve=Li()({name:"VSelectionControl",directives:{Ripple:bR},inheritAttrs:!1,props:uMe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const{group:s,densityClasses:r,icon:o,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,trueValue:h}=VAt(n),f=Jd(),g=Gt(!1),p=Gt(!1),m=Ne(),_=ue(()=>n.id||`input-${f}`),v=ue(()=>!n.disabled&&!n.readonly);s?.onForceUpdate(()=>{m.value&&(m.value.checked=a.value)});function b(T){v.value&&(g.value=!0,lM(T.target,":focus-visible")!==!1&&(p.value=!0))}function S(){g.value=!1,p.value=!1}function y(T){T.stopPropagation()}function C(T){if(!v.value){m.value&&(m.value.checked=a.value);return}n.readonly&&s&&Ki(()=>s.forceUpdate()),a.value=T.target.checked}return on(()=>{const T=i.label?i.label({label:n.label,props:{for:_.value}}):n.label,[E,I]=vB(t),D=K("input",$t({ref:m,checked:a.value,disabled:!!n.disabled,id:_.value,onBlur:S,onFocus:b,onInput:C,"aria-disabled":!!n.disabled,"aria-label":n.label,type:n.type,value:h.value,name:n.name,"aria-checked":n.type==="checkbox"?a.value:void 0},I),null);return K("div",$t({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":n.disabled,"v-selection-control--error":n.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":p.value,"v-selection-control--inline":n.inline},r.value,n.class]},E,{style:n.style}),[K("div",{class:["v-selection-control__wrapper",l.value],style:c.value},[i.default?.({backgroundColorClasses:d,backgroundColorStyles:u}),Ol(K("div",{class:["v-selection-control__input"]},[i.input?.({model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,inputNode:D,icon:o.value,props:{onFocus:b,onBlur:S,id:_.value}})??K(vt,null,[o.value&&K(Vi,{key:"icon",icon:o.value},null),D])]),[[k_("ripple"),n.ripple&&[!n.disabled&&!n.readonly,null,["center","circle"]]]])]),T&&K(u0e,{for:_.value,onClick:y},{default:()=>[T]})])}),{isFocused:g,input:m}}}),hMe=It({indeterminate:Boolean,indeterminateIcon:{type:is,default:"$checkboxIndeterminate"},...uMe({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),wF=Li()({name:"VCheckboxBtn",props:hMe(),emits:{"update:modelValue":n=>!0,"update:indeterminate":n=>!0},setup(n,e){let{slots:t}=e;const i=Ys(n,"indeterminate"),s=Ys(n,"modelValue");function r(l){i.value&&(i.value=!1)}const o=ue(()=>i.value?n.indeterminateIcon:n.falseIcon),a=ue(()=>i.value?n.indeterminateIcon:n.trueIcon);return on(()=>{const l=wp(nve.filterProps(n),["modelValue"]);return K(nve,$t(l,{modelValue:s.value,"onUpdate:modelValue":[c=>s.value=c,r],class:["v-checkbox-btn",n.class],style:n.style,type:"checkbox",falseIcon:o.value,trueIcon:a.value,"aria-checked":i.value?"mixed":void 0}),t)}),{}}}),WAt=It({...RB(),...wp(hMe(),["inline"])},"VCheckbox"),oC=Li()({name:"VCheckbox",inheritAttrs:!1,props:WAt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const s=Ys(n,"modelValue"),{isFocused:r,focus:o,blur:a}=TB(n),l=Jd(),c=ue(()=>n.id||`checkbox-${l}`);return on(()=>{const[d,u]=vB(t),h=Ww.filterProps(n),f=wF.filterProps(n);return K(Ww,$t({class:["v-checkbox",n.class]},d,h,{modelValue:s.value,"onUpdate:modelValue":g=>s.value=g,id:c.value,focused:r.value,style:n.style}),{...i,default:g=>{let{id:p,messagesId:m,isDisabled:_,isReadonly:v,isValid:b}=g;return K(wF,$t(f,{id:p.value,"aria-describedby":m.value,disabled:_.value,readonly:v.value},u,{error:b.value===!1,modelValue:s.value,"onUpdate:modelValue":S=>s.value=S,onFocus:o,onBlur:a}),i)}})}),{}}});function UAt(n){let{selectedElement:e,containerElement:t,isRtl:i,isHorizontal:s}=n;const r=kx(s,t),o=fMe(s,i,t),a=kx(s,e),l=gMe(s,e),c=a*.4;return o>l?l-c:o+r<l+a?l-r+a+c:o}function $At(n){let{selectedElement:e,containerElement:t,isHorizontal:i}=n;const s=kx(i,t),r=gMe(i,e),o=kx(i,e);return r-s/2+o/2}function sve(n,e){return e?.[n?"scrollWidth":"scrollHeight"]||0}function zAt(n,e){return e?.[n?"clientWidth":"clientHeight"]||0}function fMe(n,e,t){if(!t)return 0;const{scrollLeft:i,offsetWidth:s,scrollWidth:r}=t;return n?e?r-s+i:i:t.scrollTop}function kx(n,e){return e?.[n?"offsetWidth":"offsetHeight"]||0}function gMe(n,e){return e?.[n?"offsetLeft":"offsetTop"]||0}const GAt=Symbol.for("vuetify:v-slide-group"),pMe=It({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:GAt},nextIcon:{type:is,default:"$next"},prevIcon:{type:is,default:"$prev"},showArrows:{type:[Boolean,String],validator:n=>typeof n=="boolean"||["always","desktop","mobile"].includes(n)},...An(),...$Ue({mobile:null}),...ta(),...sZ({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),rve=Li()({name:"VSlideGroup",props:pMe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{isRtl:i}=A_(),{displayClasses:s,mobile:r}=VX(n),o=rZ(n,n.symbol),a=Gt(!1),l=Gt(0),c=Gt(0),d=Gt(0),u=ue(()=>n.direction==="horizontal"),{resizeRef:h,contentRect:f}=KI(),{resizeRef:g,contentRect:p}=KI(),m=qUe(),_=ue(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),v=ue(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[0]):-1),b=ue(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[o.selected.value.length-1]):-1);if(ds){let P=-1;rt(()=>[o.selected.value,f.value,p.value,u.value],()=>{cancelAnimationFrame(P),P=requestAnimationFrame(()=>{if(f.value&&p.value){const W=u.value?"width":"height";c.value=f.value[W],d.value=p.value[W],a.value=c.value+1<d.value}if(v.value>=0&&g.el){const W=g.el.children[b.value];y(W,n.centerActive)}})})}const S=Gt(!1);function y(P,W){let j=0;W?j=$At({containerElement:h.el,isHorizontal:u.value,selectedElement:P}):j=UAt({containerElement:h.el,isHorizontal:u.value,isRtl:i.value,selectedElement:P}),C(j)}function C(P){if(!ds||!h.el)return;const W=kx(u.value,h.el),j=fMe(u.value,i.value,h.el);if(!(sve(u.value,h.el)<=W||Math.abs(P-j)<16)){if(u.value&&i.value&&h.el){const{scrollWidth:q,offsetWidth:oe}=h.el;P=q-oe-P}u.value?m.horizontal(P,_.value):m(P,_.value)}}function T(P){const{scrollTop:W,scrollLeft:j}=P.target;l.value=u.value?j:W}function E(P){if(S.value=!0,!(!a.value||!g.el)){for(const W of P.composedPath())for(const j of g.el.children)if(j===W){y(j);return}}}function I(P){S.value=!1}let D=!1;function R(P){!D&&!S.value&&!(P.relatedTarget&&g.el?.contains(P.relatedTarget))&&N(),D=!1}function x(){D=!0}function k(P){if(!g.el)return;function W(j){P.preventDefault(),N(j)}u.value?P.key==="ArrowRight"?W(i.value?"prev":"next"):P.key==="ArrowLeft"&&W(i.value?"next":"prev"):P.key==="ArrowDown"?W("next"):P.key==="ArrowUp"&&W("prev"),P.key==="Home"?W("first"):P.key==="End"&&W("last")}function L(P,W){if(!P)return;let j=P;do j=j?.[W==="next"?"nextElementSibling":"previousElementSibling"];while(j?.hasAttribute("disabled"));return j}function N(P){if(!g.el)return;let W;if(!P)W=UI(g.el)[0];else if(P==="next"){if(W=L(g.el.querySelector(":focus"),P),!W)return N("first")}else if(P==="prev"){if(W=L(g.el.querySelector(":focus"),P),!W)return N("last")}else P==="first"?(W=g.el.firstElementChild,W?.hasAttribute("disabled")&&(W=L(W,"next"))):P==="last"&&(W=g.el.lastElementChild,W?.hasAttribute("disabled")&&(W=L(W,"prev")));W&&W.focus({preventScroll:!0})}function A(P){const W=u.value&&i.value?-1:1,j=(P==="prev"?-W:W)*c.value;let H=l.value+j;if(u.value&&i.value&&h.el){const{scrollWidth:q,offsetWidth:oe}=h.el;H+=q-oe}C(H)}const F=ue(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),B=ue(()=>{switch(n.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return r.value||a.value||Math.abs(l.value)>0;default:return!r.value&&(a.value||Math.abs(l.value)>0)}}),O=ue(()=>Math.abs(l.value)>1),M=ue(()=>{if(!h.value)return!1;const P=sve(u.value,h.el),W=zAt(u.value,h.el);return P-W-Math.abs(l.value)>1});return on(()=>K(n.tag,{class:["v-slide-group",{"v-slide-group--vertical":!u.value,"v-slide-group--has-affixes":B.value,"v-slide-group--is-overflowing":a.value},s.value,n.class],style:n.style,tabindex:S.value||o.selected.value.length?-1:0,onFocus:R},{default:()=>[B.value&&K("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!O.value}],onMousedown:x,onClick:()=>O.value&&A("prev")},[t.prev?.(F.value)??K(woe,null,{default:()=>[K(Vi,{icon:i.value?n.nextIcon:n.prevIcon},null)]})]),K("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:T},[K("div",{ref:g,class:"v-slide-group__content",onFocusin:E,onFocusout:I,onKeydown:k},[t.default?.(F.value)])]),B.value&&K("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}],onMousedown:x,onClick:()=>M.value&&A("next")},[t.next?.(F.value)??K(woe,null,{default:()=>[K(Vi,{icon:i.value?n.prevIcon:n.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:A,scrollOffset:l,focus:N,hasPrev:O,hasNext:M}}}),mMe=Symbol.for("vuetify:v-chip-group"),qAt=It({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Fu},...pMe(),...An(),...sZ({selectedClass:"v-chip--selected"}),...ta(),...ea(),...Ip({variant:"tonal"})},"VChipGroup");Li()({name:"VChipGroup",props:qAt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{themeClasses:i}=Wl(n),{isSelected:s,select:r,next:o,prev:a,selected:l}=rZ(n,mMe);return QE({VChip:{color:xt(n,"color"),disabled:xt(n,"disabled"),filter:xt(n,"filter"),variant:xt(n,"variant")}}),on(()=>{const c=rve.filterProps(n);return K(rve,$t(c,{class:["v-chip-group",{"v-chip-group--column":n.column},i.value,n.class],style:n.style}),{default:()=>[t.default?.({isSelected:s,select:r,next:o,prev:a,selected:l.value})]})}),{}}});const KAt=It({activeClass:String,appendAvatar:String,appendIcon:is,closable:Boolean,closeIcon:{type:is,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:is,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:is,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:gc(),onClickOnce:gc(),...VS(),...An(),...lh(),...US(),...T0e(),...oh(),...kB(),..._R(),...ta({tag:"span"}),...ea(),...Ip({variant:"tonal"})},"VChip"),rf=Li()({name:"VChip",directives:{Ripple:bR},props:KAt(),emits:{"click:close":n=>!0,"update:modelValue":n=>!0,"group:selected":n=>!0,click:n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{t:r}=mR(),{borderClasses:o}=WS(n),{colorClasses:a,colorStyles:l,variantClasses:c}=e0(n),{densityClasses:d}=Pf(n),{elevationClasses:u}=$S(n),{roundedClasses:h}=ah(n),{sizeClasses:f}=vR(n),{themeClasses:g}=Wl(n),p=Ys(n,"modelValue"),m=I0e(n,mMe,!1),_=NB(n,t),v=ue(()=>n.link!==!1&&_.isLink.value),b=ue(()=>!n.disabled&&n.link!==!1&&(!!m||n.link||_.isClickable.value)),S=ue(()=>({"aria-label":r(n.closeLabel),onClick(T){T.preventDefault(),T.stopPropagation(),p.value=!1,i("click:close",T)}}));function y(T){i("click",T),b.value&&(_.navigate?.(T),m?.toggle())}function C(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),y(T))}return()=>{const T=_.isLink.value?"a":n.tag,E=!!(n.appendIcon||n.appendAvatar),I=!!(E||s.append),D=!!(s.close||n.closable),R=!!(s.filter||n.filter)&&m,x=!!(n.prependIcon||n.prependAvatar),k=!!(x||s.prepend),L=!m||m.isSelected.value;return p.value&&Ol(K(T,$t({class:["v-chip",{"v-chip--disabled":n.disabled,"v-chip--label":n.label,"v-chip--link":b.value,"v-chip--filter":R,"v-chip--pill":n.pill,[`${n.activeClass}`]:n.activeClass&&_.isActive?.value},g.value,o.value,L?a.value:void 0,d.value,u.value,h.value,f.value,c.value,m?.selectedClass.value,n.class],style:[L?l.value:void 0,n.style],disabled:n.disabled||void 0,draggable:n.draggable,tabindex:b.value?0:void 0,onClick:y,onKeydown:b.value&&!v.value&&C},_.linkProps),{default:()=>[JE(b.value,"v-chip"),R&&K(c0e,{key:"filter"},{default:()=>[Ol(K("div",{class:"v-chip__filter"},[s.filter?K(Wr,{key:"filter-defaults",disabled:!n.filterIcon,defaults:{VIcon:{icon:n.filterIcon}}},s.filter):K(Vi,{key:"filter-icon",icon:n.filterIcon},null)]),[[jE,m.isSelected.value]])]}),k&&K("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?K(Wr,{key:"prepend-defaults",disabled:!x,defaults:{VAvatar:{image:n.prependAvatar,start:!0},VIcon:{icon:n.prependIcon,start:!0}}},s.prepend):K(vt,null,[n.prependIcon&&K(Vi,{key:"prepend-icon",icon:n.prependIcon,start:!0},null),n.prependAvatar&&K(ip,{key:"prepend-avatar",image:n.prependAvatar,start:!0},null)])]),K("div",{class:"v-chip__content","data-no-activator":""},[s.default?.({isSelected:m?.isSelected.value,selectedClass:m?.selectedClass.value,select:m?.select,toggle:m?.toggle,value:m?.value.value,disabled:n.disabled})??Bi(n.text)]),I&&K("div",{key:"append",class:"v-chip__append"},[s.append?K(Wr,{key:"append-defaults",disabled:!E,defaults:{VAvatar:{end:!0,image:n.appendAvatar},VIcon:{end:!0,icon:n.appendIcon}}},s.append):K(vt,null,[n.appendIcon&&K(Vi,{key:"append-icon",end:!0,icon:n.appendIcon},null),n.appendAvatar&&K(ip,{key:"append-avatar",end:!0,image:n.appendAvatar},null)])]),D&&K("button",$t({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},S.value),[s.close?K(Wr,{key:"close-defaults",defaults:{VIcon:{icon:n.closeIcon,size:"x-small"}}},s.close):K(Vi,{key:"close-icon",icon:n.closeIcon,size:"x-small"},null)])]}),[[k_("ripple"),b.value&&n.ripple,null]])}}}),jAt=It({renderless:Boolean,...An()},"VVirtualScrollItem"),YAt=Li()({name:"VVirtualScrollItem",inheritAttrs:!1,props:jAt(),emits:{"update:height":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{resizeRef:r,contentRect:o}=KI(void 0,"border");rt(()=>o.value?.height,a=>{a!=null&&i("update:height",a)}),on(()=>n.renderless?K(vt,null,[s.default?.({itemRef:r})]):K("div",$t({ref:r,class:["v-virtual-scroll__item",n.class],style:n.style},t),[s.default?.()]))}}),QAt=-1,XAt=1,y8=100,ZAt=It({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function JAt(n,e){const t=VX(),i=Gt(0);Ya(()=>{i.value=parseFloat(n.itemHeight||0)});const s=Gt(0),r=Gt(Math.ceil((parseInt(n.height)||t.height.value)/(i.value||16))||1),o=Gt(0),a=Gt(0),l=Ne(),c=Ne();let d=0;const{resizeRef:u,contentRect:h}=KI();Ya(()=>{u.value=l.value});const f=ue(()=>l.value===document.documentElement?t.height.value:h.value?.height||parseInt(n.height)||0),g=ue(()=>!!(l.value&&c.value&&f.value&&i.value));let p=Array.from({length:e.value.length}),m=Array.from({length:e.value.length});const _=Gt(0);let v=-1;function b(M){return p[M]||i.value}const S=wHe(()=>{const M=performance.now();m[0]=0;const P=e.value.length;for(let W=1;W<=P-1;W++)m[W]=(m[W-1]||0)+b(W-1);_.value=Math.max(_.value,performance.now()-M)},_),y=rt(g,M=>{M&&(y(),d=c.value.offsetTop,S.immediate(),A(),~v&&Ki(()=>{ds&&window.requestAnimationFrame(()=>{B(v),v=-1})}))});nr(()=>{S.clear()});function C(M,P){const W=p[M],j=i.value;i.value=j?Math.min(i.value,P):P,(W!==P||j!==i.value)&&(p[M]=P,S())}function T(M){return M=af(M,0,e.value.length-1),m[M]||0}function E(M){return eOt(m,M)}let I=0,D=0,R=0;rt(f,(M,P)=>{P&&(A(),M<P&&requestAnimationFrame(()=>{D=0,A()}))});let x=-1;function k(){if(!l.value||!c.value)return;const M=l.value.scrollTop,P=performance.now();P-R>500?(D=Math.sign(M-I),d=c.value.offsetTop):D=M-I,I=M,R=P,window.clearTimeout(x),x=window.setTimeout(L,500),A()}function L(){!l.value||!c.value||(D=0,R=0,window.clearTimeout(x),A())}let N=-1;function A(){cancelAnimationFrame(N),N=requestAnimationFrame(F)}function F(){if(!l.value||!f.value)return;const M=I-d,P=Math.sign(D),W=Math.max(0,M-y8),j=af(E(W),0,e.value.length),H=M+f.value+y8,q=af(E(H)+1,j+1,e.value.length);if((P!==QAt||j<s.value)&&(P!==XAt||q>r.value)){const oe=T(s.value)-T(j),X=T(q)-T(r.value);Math.max(oe,X)>y8?(s.value=j,r.value=q):(j<=0&&(s.value=j),q>=e.value.length&&(r.value=q))}o.value=T(s.value),a.value=T(e.value.length)-T(r.value)}function B(M){const P=T(M);!l.value||M&&!P?v=M:l.value.scrollTop=P}const O=ue(()=>e.value.slice(s.value,r.value).map((M,P)=>({raw:M,index:P+s.value,key:iEe(M)&&"value"in M?M.value:P+s.value})));return rt(e,()=>{p=Array.from({length:e.value.length}),m=Array.from({length:e.value.length}),S.immediate(),A()},{deep:!0}),{calculateVisibleItems:A,containerRef:l,markerRef:c,computedItems:O,paddingTop:o,paddingBottom:a,scrollToIndex:B,handleScroll:k,handleScrollend:L,handleItemResize:C}}function eOt(n,e){let t=n.length-1,i=0,s=0,r=null,o=-1;if(n[t]<e)return t;for(;i<=t;)if(s=i+t>>1,r=n[s],r>e)t=s-1;else if(r<e)o=s,i=s+1;else return r===e?s:i;return o}const tOt=It({items:{type:Array,default:()=>[]},renderless:Boolean,...ZAt(),...An(),...Ep()},"VVirtualScroll"),_Me=Li()({name:"VVirtualScroll",props:tOt(),setup(n,e){let{slots:t}=e;const i=go("VVirtualScroll"),{dimensionStyles:s}=Tp(n),{calculateVisibleItems:r,containerRef:o,markerRef:a,handleScroll:l,handleScrollend:c,handleItemResize:d,scrollToIndex:u,paddingTop:h,paddingBottom:f,computedItems:g}=JAt(n,xt(n,"items"));return Qb(()=>n.renderless,()=>{function p(){const _=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[_]("scroll",l,{passive:!0}),document[_]("scrollend",c)):(o.value?.[_]("scroll",l,{passive:!0}),o.value?.[_]("scrollend",c))}sr(()=>{o.value=bEe(i.vnode.el,!0),p(!0)}),nr(p)}),on(()=>{const p=g.value.map(m=>K(YAt,{key:m.key,renderless:n.renderless,"onUpdate:height":_=>d(m.index,_)},{default:_=>t.default?.({item:m.raw,index:m.index,..._})}));return n.renderless?K(vt,null,[K("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:gn(h.value)}},null),p,K("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:gn(f.value)}},null)]):K("div",{ref:o,class:["v-virtual-scroll",n.class],onScrollPassive:l,onScrollend:c,style:[s.value,n.style]},[K("div",{ref:a,class:"v-virtual-scroll__container",style:{paddingTop:gn(h.value),paddingBottom:gn(f.value)}},[p])])}),{calculateVisibleItems:r,scrollToIndex:u}}});function vMe(n,e){const t=Gt(!1);let i;function s(a){cancelAnimationFrame(i),t.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{t.value=!1})})}async function r(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(t.value){const l=rt(t,()=>{l(),a()})}else a()})}async function o(a){if(a.key==="Tab"&&e.value?.focus(),!["PageDown","PageUp","Home","End"].includes(a.key))return;const l=n.value?.$el;if(!l)return;(a.key==="Home"||a.key==="End")&&l.scrollTo({top:a.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await r();const c=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const d=l.getBoundingClientRect().top;for(const u of c)if(u.getBoundingClientRect().top>=d){u.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const u of[...c].reverse())if(u.getBoundingClientRect().bottom<=d){u.focus();break}}}return{onScrollPassive:s,onKeydown:o}}const bMe=It({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:is,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...n1e({itemChildren:!1})},"Select"),iOt=It({...bMe(),...wp(eZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ZE({transition:{component:jX}})},"VSelect"),ove=Li()({name:"VSelect",props:iOt(),emits:{"update:focused":n=>!0,"update:modelValue":n=>!0,"update:menu":n=>!0},setup(n,e){let{slots:t}=e;const{t:i}=mR(),s=Ne(),r=Ne(),o=Ne(),a=Ys(n,"menu"),l=ue({get:()=>a.value,set:O=>{a.value&&!O&&r.value?.ΨopenChildren.size||(a.value=O)}}),{items:c,transformIn:d,transformOut:u}=r1e(n),h=Ys(n,"modelValue",[],O=>d(O===null?[null]:fc(O)),O=>{const M=u(O);return n.multiple?M:M[0]??null}),f=ue(()=>typeof n.counterValue=="function"?n.counterValue(h.value):typeof n.counterValue=="number"?n.counterValue:h.value.length),g=ZX(n),p=ue(()=>h.value.map(O=>O.value)),m=Gt(!1),_=ue(()=>l.value?n.closeText:n.openText);let v="",b;const S=ue(()=>n.hideSelected?c.value.filter(O=>!h.value.some(M=>(n.valueComparator||Fu)(M,O))):c.value),y=ue(()=>n.hideNoData&&!S.value.length||g.isReadonly.value||g.isDisabled.value),C=ue(()=>({...n.menuProps,activatorProps:{...n.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),T=Ne(),E=vMe(T,s);function I(O){n.openOnClear&&(l.value=!0)}function D(){y.value||(l.value=!l.value)}function R(O){cM(O)&&x(O)}function x(O){if(!O.key||g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(O.key)&&O.preventDefault(),["Enter","ArrowDown"," "].includes(O.key)&&(l.value=!0),["Escape","Tab"].includes(O.key)&&(l.value=!1),O.key==="Home"?T.value?.focus("first"):O.key==="End"&&T.value?.focus("last");const M=1e3;if(!cM(O))return;const P=performance.now();P-b>M&&(v=""),v+=O.key.toLowerCase(),b=P;const W=c.value.find(j=>j.title.toLowerCase().startsWith(v));if(W!==void 0){h.value=[W];const j=S.value.indexOf(W);ds&&window.requestAnimationFrame(()=>{j>=0&&o.value?.scrollToIndex(j)})}}function k(O){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!O.props.disabled)if(n.multiple){const P=h.value.findIndex(j=>(n.valueComparator||Fu)(j.value,O.value)),W=M??!~P;if(~P){const j=W?[...h.value,O]:[...h.value];j.splice(P,1),h.value=j}else W&&(h.value=[...h.value,O])}else{const P=M!==!1;h.value=P?[O]:[],Ki(()=>{l.value=!1})}}function L(O){T.value?.$el.contains(O.relatedTarget)||(l.value=!1)}function N(){n.eager&&o.value?.calculateVisibleItems()}function A(){m.value&&s.value?.focus()}function F(O){m.value=!0}function B(O){if(O==null)h.value=[];else if(lM(s.value,":autofill")||lM(s.value,":-webkit-autofill")){const M=c.value.find(P=>P.title===O);M&&k(M)}else s.value&&(s.value.value="")}return rt(l,()=>{if(!n.hideSelected&&l.value&&h.value.length){const O=S.value.findIndex(M=>h.value.some(P=>(n.valueComparator||Fu)(P.value,M.value)));ds&&window.requestAnimationFrame(()=>{O>=0&&o.value?.scrollToIndex(O)})}}),rt(()=>n.items,(O,M)=>{l.value||m.value&&!M.length&&O.length&&(l.value=!0)}),on(()=>{const O=!!(n.chips||t.chip),M=!!(!n.hideNoData||S.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),P=h.value.length>0,W=bf.filterProps(n),j=P||!m.value&&n.label&&!n.persistentPlaceholder?void 0:n.placeholder;return K(bf,$t({ref:s},W,{modelValue:h.value.map(H=>H.props.value).join(", "),"onUpdate:modelValue":B,focused:m.value,"onUpdate:focused":H=>m.value=H,validationValue:h.externalValue,counterValue:f.value,dirty:P,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!n.chips,[`v-select--${n.multiple?"multiple":"single"}`]:!0,"v-select--selected":h.value.length,"v-select--selection-slot":!!t.selection},n.class],style:n.style,inputmode:"none",placeholder:j,"onClick:clear":I,"onMousedown:control":D,onBlur:L,onKeydown:x,"aria-label":i(_.value),title:i(_.value)}),{...t,default:()=>K(vt,null,[K(t0,$t({ref:r,modelValue:l.value,"onUpdate:modelValue":H=>l.value=H,activator:"parent",contentClass:"v-select__content",disabled:y.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:N,onAfterLeave:A},C.value),{default:()=>[M&&K(yR,$t({ref:T,selected:p.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:H=>H.preventDefault(),onKeydown:R,onFocusin:F,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},E,n.listProps),{default:()=>[t["prepend-item"]?.(),!S.value.length&&!n.hideNoData&&(t["no-data"]?.()??K(Sf,{key:"no-data",title:i(n.noDataText)},null)),K(_Me,{ref:o,renderless:!0,items:S.value},{default:H=>{let{item:q,index:oe,itemRef:X}=H;const G=$t(q.props,{ref:X,key:q.value,onClick:()=>k(q,null)});return t.item?.({item:q,index:oe,props:G})??K(Sf,$t(G,{role:"option"}),{prepend:ge=>{let{isSelected:ve}=ge;return K(vt,null,[n.multiple&&!n.hideSelected?K(wF,{key:q.value,modelValue:ve,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&K(ip,{image:q.props.prependAvatar},null),q.props.prependIcon&&K(Vi,{icon:q.props.prependIcon},null)])}})}}),t["append-item"]?.()]})]}),h.value.map((H,q)=>{function oe(ve){ve.stopPropagation(),ve.preventDefault(),k(H,!1)}const X={"onClick:close":oe,onKeydown(ve){ve.key!=="Enter"&&ve.key!==" "||(ve.preventDefault(),ve.stopPropagation(),oe(ve))},onMousedown(ve){ve.preventDefault(),ve.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},G=O?!!t.chip:!!t.selection,ge=G?AX(O?t.chip({item:H,index:q,props:X}):t.selection({item:H,index:q})):void 0;if(!(G&&!ge))return K("div",{key:H.value,class:"v-select__selection"},[O?t.chip?K(Wr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:H.title}}},{default:()=>[ge]}):K(rf,$t({key:"chip",closable:n.closableChips,size:"small",text:H.title,disabled:H.props.disabled},X),null):ge??K("span",{class:"v-select__selection-text"},[H.title,n.multiple&&q<h.value.length-1&&K("span",{class:"v-select__selection-comma"},[ni(",")])])])})]),"append-inner":function(){for(var H=arguments.length,q=new Array(H),oe=0;oe<H;oe++)q[oe]=arguments[oe];return K(vt,null,[t["append-inner"]?.(...q),n.menuIcon?K(Vi,{class:"v-select__menu-icon",icon:n.menuIcon},null):void 0])}})}),O_({isFocused:m,menu:l,select:k},s)}}),nOt=(n,e,t)=>n==null||e==null?-1:n.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),sOt=It({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function rOt(n,e,t){const i=[],s=t?.default??nOt,r=t?.filterKeys?fc(t.filterKeys):!1,o=Object.keys(t?.customKeyFilter??{}).length;if(!n?.length)return i;e:for(let a=0;a<n.length;a++){const[l,c=l]=fc(n[a]),d={},u={};let h=-1;if((e||o>0)&&!t?.noFilter){if(typeof l=="object"){const p=r||Object.keys(c);for(const m of p){const _=Yh(c,m),v=t?.customKeyFilter?.[m];if(h=v?v(_,e,l):s(_,e,l),h!==-1&&h!==!1)v?d[m]=h:u[m]=h;else if(t?.filterMode==="every")continue e}}else h=s(l,e,l),h!==-1&&h!==!1&&(u.title=h);const f=Object.keys(u).length,g=Object.keys(d).length;if(!f&&!g||t?.filterMode==="union"&&g!==o&&!f||t?.filterMode==="intersection"&&(g!==o||!f))continue}i.push({index:a,matches:{...u,...d}})}return i}function oOt(n,e,t,i){const s=Gt([]),r=Gt(new Map),o=ue(()=>se(e));Ya(()=>{const l=typeof t=="function"?t():se(t),c=typeof l!="string"&&typeof l!="number"?"":String(l),d=rOt(o.value,c,{customKeyFilter:{...n.customKeyFilter,...se(i?.customKeyFilter)},default:n.customFilter,filterKeys:n.filterKeys,filterMode:n.filterMode,noFilter:n.noFilter}),u=se(e),h=[],f=new Map;d.forEach(g=>{let{index:p,matches:m}=g;const _=u[p];h.push(_),f.set(_.value,m)}),s.value=h,r.value=f});function a(l){return r.value.get(l.value)}return{filteredItems:s,filteredMatches:r,getMatches:a}}function aOt(n,e,t){if(e==null)return n;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?K(vt,null,[K("span",{class:"v-combobox__unmask"},[n.substr(0,e)]),K("span",{class:"v-combobox__mask"},[n.substr(e,t)]),K("span",{class:"v-combobox__unmask"},[n.substr(e+t)])]):n}const lOt=It({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...sOt({filterKeys:["title"]}),...bMe({hideNoData:!0,returnObject:!0}),...wp(eZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ZE({transition:!1})},"VCombobox"),cOt=Li()({name:"VCombobox",props:lOt(),emits:{"update:focused":n=>!0,"update:modelValue":n=>!0,"update:search":n=>!0,"update:menu":n=>!0},setup(n,e){let{emit:t,slots:i}=e;const{t:s}=mR(),r=Ne(),o=Gt(!1),a=Gt(!0),l=Gt(!1),c=Ne(),d=Ne(),u=Ys(n,"menu"),h=ue({get:()=>u.value,set:ee=>{u.value&&!ee&&c.value?.ΨopenChildren.size||(u.value=ee)}}),f=Gt(-1);let g=!1;const p=ue(()=>r.value?.color),m=ue(()=>h.value?n.closeText:n.openText),{items:_,transformIn:v,transformOut:b}=r1e(n),{textColorClasses:S,textColorStyles:y}=ju(p),C=Ys(n,"modelValue",[],ee=>v(fc(ee)),ee=>{const Y=b(ee);return n.multiple?Y:Y[0]??null}),T=ZX(n),E=ue(()=>!!(n.chips||i.chip)),I=ue(()=>E.value||!!i.selection),D=Gt(!n.multiple&&!I.value?C.value[0]?.title??"":""),R=ue({get:()=>D.value,set:ee=>{if(D.value=ee??"",!n.multiple&&!I.value&&(C.value=[um(n,ee)]),ee&&n.multiple&&n.delimiters?.length){const Y=ee.split(new RegExp(`(?:${n.delimiters.join("|")})+`));Y.length>1&&(Y.forEach(U=>{U=U.trim(),U&&G(um(n,U))}),D.value="")}ee||(f.value=-1),a.value=!ee}}),x=ue(()=>typeof n.counterValue=="function"?n.counterValue(C.value):typeof n.counterValue=="number"?n.counterValue:n.multiple?C.value.length:R.value.length);rt(D,ee=>{g?Ki(()=>g=!1):o.value&&!h.value&&(h.value=!0),t("update:search",ee)}),rt(C,ee=>{!n.multiple&&!I.value&&(D.value=ee[0]?.title??"")});const{filteredItems:k,getMatches:L}=oOt(n,_,()=>a.value?"":R.value),N=ue(()=>n.hideSelected?k.value.filter(ee=>!C.value.some(Y=>Y.value===ee.value)):k.value),A=ue(()=>C.value.map(ee=>ee.value)),F=ue(()=>(n.autoSelectFirst===!0||n.autoSelectFirst==="exact"&&R.value===N.value[0]?.title)&&N.value.length>0&&!a.value&&!l.value),B=ue(()=>n.hideNoData&&!N.value.length||T.isReadonly.value||T.isDisabled.value),O=Ne(),M=vMe(O,r);function P(ee){g=!0,n.openOnClear&&(h.value=!0)}function W(){B.value||(h.value=!0)}function j(ee){B.value||(o.value&&(ee.preventDefault(),ee.stopPropagation()),h.value=!h.value)}function H(ee){ee.key!==" "&&cM(ee)&&r.value?.focus()}function q(ee){if(CHe(ee)||T.isReadonly.value)return;const Y=r.value.selectionStart,U=C.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(ee.key)&&ee.preventDefault(),["Enter","ArrowDown"].includes(ee.key)&&(h.value=!0),["Escape"].includes(ee.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(ee.key)&&(F.value&&["Enter","Tab"].includes(ee.key)&&!C.value.some($=>{let{value:Q}=$;return Q===N.value[0].value})&&G(k.value[0]),a.value=!0),ee.key==="ArrowDown"&&F.value&&O.value?.focus("next"),ee.key==="Enter"&&R.value&&(G(um(n,R.value)),I.value&&(D.value="")),["Backspace","Delete"].includes(ee.key)){if(!n.multiple&&I.value&&C.value.length>0&&!R.value)return G(C.value[0],!1);if(~f.value){ee.preventDefault();const $=f.value;G(C.value[f.value],!1),f.value=$>=U-1?U-2:$}else ee.key==="Backspace"&&!R.value&&(f.value=U-1);return}if(n.multiple)if(ee.key==="ArrowLeft"){if(f.value<0&&Y>0)return;const $=f.value>-1?f.value-1:U-1;C.value[$]?f.value=$:(f.value=-1,r.value.setSelectionRange(R.value.length,R.value.length))}else if(ee.key==="ArrowRight"){if(f.value<0)return;const $=f.value+1;C.value[$]?f.value=$:(f.value=-1,r.value.setSelectionRange(0,0))}else~f.value&&cM(ee)&&(f.value=-1)}function oe(){n.eager&&d.value?.calculateVisibleItems()}function X(){o.value&&(a.value=!0,r.value?.focus())}function G(ee){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!ee||ee.props.disabled))if(n.multiple){const U=C.value.findIndex(Q=>(n.valueComparator||Fu)(Q.value,ee.value)),$=Y??!~U;if(~U){const Q=$?[...C.value,ee]:[...C.value];Q.splice(U,1),C.value=Q}else $&&(C.value=[...C.value,ee]);n.clearOnSelect&&(R.value="")}else{const U=Y!==!1;C.value=U?[ee]:[],D.value=U&&!I.value?ee.title:"",Ki(()=>{h.value=!1,a.value=!0})}}function ge(ee){o.value=!0,setTimeout(()=>{l.value=!0})}function ve(ee){l.value=!1}function le(ee){(ee==null||ee===""&&!n.multiple&&!I.value)&&(C.value=[])}return rt(o,(ee,Y)=>{if(!(ee||ee===Y)&&(f.value=-1,h.value=!1,R.value)){if(n.multiple){G(um(n,R.value));return}if(!I.value)return;C.value.some(U=>{let{title:$}=U;return $===R.value})?D.value="":G(um(n,R.value))}}),rt(h,()=>{if(!n.hideSelected&&h.value&&C.value.length){const ee=N.value.findIndex(Y=>C.value.some(U=>(n.valueComparator||Fu)(U.value,Y.value)));ds&&window.requestAnimationFrame(()=>{ee>=0&&d.value?.scrollToIndex(ee)})}}),rt(()=>n.items,(ee,Y)=>{h.value||o.value&&!Y.length&&ee.length&&(h.value=!0)}),on(()=>{const ee=!!(!n.hideNoData||N.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),Y=C.value.length>0,U=bf.filterProps(n);return K(bf,$t({ref:r},U,{modelValue:R.value,"onUpdate:modelValue":[$=>R.value=$,le],focused:o.value,"onUpdate:focused":$=>o.value=$,validationValue:C.externalValue,counterValue:x.value,dirty:Y,class:["v-combobox",{"v-combobox--active-menu":h.value,"v-combobox--chips":!!n.chips,"v-combobox--selection-slot":!!I.value,"v-combobox--selecting-index":f.value>-1,[`v-combobox--${n.multiple?"multiple":"single"}`]:!0},n.class],style:n.style,readonly:T.isReadonly.value,placeholder:Y?void 0:n.placeholder,"onClick:clear":P,"onMousedown:control":W,onKeydown:q}),{...i,default:()=>K(vt,null,[K(t0,$t({ref:c,modelValue:h.value,"onUpdate:modelValue":$=>h.value=$,activator:"parent",contentClass:"v-combobox__content",disabled:B.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:oe,onAfterLeave:X},n.menuProps),{default:()=>[ee&&K(yR,$t({ref:O,selected:A.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:$=>$.preventDefault(),onKeydown:H,onFocusin:ge,onFocusout:ve,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},M,n.listProps),{default:()=>[i["prepend-item"]?.(),!N.value.length&&!n.hideNoData&&(i["no-data"]?.()??K(Sf,{key:"no-data",title:s(n.noDataText)},null)),K(_Me,{ref:d,renderless:!0,items:N.value},{default:$=>{let{item:Q,index:Z,itemRef:be}=$;const ke=$t(Q.props,{ref:be,key:Q.value,active:F.value&&Z===0?!0:void 0,onClick:()=>G(Q,null)});return i.item?.({item:Q,index:Z,props:ke})??K(Sf,$t(ke,{role:"option"}),{prepend:we=>{let{isSelected:Ce}=we;return K(vt,null,[n.multiple&&!n.hideSelected?K(wF,{key:Q.value,modelValue:Ce,ripple:!1,tabindex:"-1"},null):void 0,Q.props.prependAvatar&&K(ip,{image:Q.props.prependAvatar},null),Q.props.prependIcon&&K(Vi,{icon:Q.props.prependIcon},null)])},title:()=>a.value?Q.title:aOt(Q.title,L(Q)?.title,R.value?.length??0)})}}),i["append-item"]?.()]})]}),C.value.map(($,Q)=>{function Z(Ce){Ce.stopPropagation(),Ce.preventDefault(),G($,!1)}const be={"onClick:close":Z,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),Z(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ke=E.value?!!i.chip:!!i.selection,we=ke?AX(E.value?i.chip({item:$,index:Q,props:be}):i.selection({item:$,index:Q})):void 0;if(!(ke&&!we))return K("div",{key:$.value,class:["v-combobox__selection",Q===f.value&&["v-combobox__selection--selected",S.value]],style:Q===f.value?y.value:{}},[E.value?i.chip?K(Wr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:$.title}}},{default:()=>[we]}):K(rf,$t({key:"chip",closable:n.closableChips,size:"small",text:$.title,disabled:$.props.disabled},be),null):we??K("span",{class:"v-combobox__selection-text"},[$.title,n.multiple&&Q<C.value.length-1&&K("span",{class:"v-combobox__selection-comma"},[ni(",")])])])})]),"append-inner":function(){for(var $=arguments.length,Q=new Array($),Z=0;Z<$;Z++)Q[Z]=arguments[Z];return K(vt,null,[i["append-inner"]?.(...Q),(!n.hideNoData||n.items.length)&&n.menuIcon?K(Vi,{class:"v-combobox__menu-icon",icon:n.menuIcon,onMousedown:j,onClick:THe,"aria-label":s(m.value),title:s(m.value),tabindex:"-1"},null):void 0])}})}),O_({isFocused:o,isPristine:a,menu:h,search:R,selectionIndex:f,filteredItems:k,select:G},r)}}),dOt=It({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:n=>!isNaN(parseFloat(n))},maxRows:{type:[Number,String],validator:n=>!isNaN(parseFloat(n))},suffix:String,modelModifiers:Object,...RB(),...XX()},"VTextarea"),uOt=Li()({name:"VTextarea",directives:{Intersect:JX},inheritAttrs:!1,props:dOt(),emits:{"click:control":n=>!0,"mousedown:control":n=>!0,"update:focused":n=>!0,"update:modelValue":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const r=Ys(n,"modelValue"),{isFocused:o,focus:a,blur:l}=TB(n),c=ue(()=>typeof n.counterValue=="function"?n.counterValue(r.value):(r.value||"").toString().length),d=ue(()=>{if(t.maxlength)return t.maxlength;if(!(!n.counter||typeof n.counter!="number"&&typeof n.counter!="string"))return n.counter});function u(R,x){!n.autofocus||!R||x[0].target?.focus?.()}const h=Ne(),f=Ne(),g=Gt(""),p=Ne(),m=ue(()=>n.persistentPlaceholder||o.value||n.active);function _(){p.value!==document.activeElement&&p.value?.focus(),o.value||a()}function v(R){_(),i("click:control",R)}function b(R){i("mousedown:control",R)}function S(R){R.stopPropagation(),_(),Ki(()=>{r.value="",kX(n["onClick:clear"],R)})}function y(R){const x=R.target;if(r.value=x.value,n.modelModifiers?.trim){const k=[x.selectionStart,x.selectionEnd];Ki(()=>{x.selectionStart=k[0],x.selectionEnd=k[1]})}}const C=Ne(),T=Ne(Number(n.rows)),E=ue(()=>["plain","underlined"].includes(n.variant));Ya(()=>{n.autoGrow||(T.value=Number(n.rows))});function I(){n.autoGrow&&Ki(()=>{if(!C.value||!f.value)return;const R=getComputedStyle(C.value),x=getComputedStyle(f.value.$el),k=parseFloat(R.getPropertyValue("--v-field-padding-top"))+parseFloat(R.getPropertyValue("--v-input-padding-top"))+parseFloat(R.getPropertyValue("--v-field-padding-bottom")),L=C.value.scrollHeight,N=parseFloat(R.lineHeight),A=Math.max(parseFloat(n.rows)*N+k,parseFloat(x.getPropertyValue("--v-input-control-height"))),F=parseFloat(n.maxRows)*N+k||1/0,B=af(L??0,A,F);T.value=Math.floor((B-k)/N),g.value=gn(B)})}sr(I),rt(r,I),rt(()=>n.rows,I),rt(()=>n.maxRows,I),rt(()=>n.density,I);let D;return rt(C,R=>{R?(D=new ResizeObserver(I),D.observe(C.value)):D?.disconnect()}),Jo(()=>{D?.disconnect()}),on(()=>{const R=!!(s.counter||n.counter||n.counterValue),x=!!(R||s.details),[k,L]=vB(t),{modelValue:N,...A}=Ww.filterProps(n),F=bM.filterProps(n);return K(Ww,$t({ref:h,modelValue:r.value,"onUpdate:modelValue":B=>r.value=B,class:["v-textarea v-text-field",{"v-textarea--prefixed":n.prefix,"v-textarea--suffixed":n.suffix,"v-text-field--prefixed":n.prefix,"v-text-field--suffixed":n.suffix,"v-textarea--auto-grow":n.autoGrow,"v-textarea--no-resize":n.noResize||n.autoGrow,"v-input--plain-underlined":E.value},n.class],style:n.style},k,A,{centerAffix:T.value===1&&!E.value,focused:o.value}),{...s,default:B=>{let{id:O,isDisabled:M,isDirty:P,isReadonly:W,isValid:j}=B;return K(bM,$t({ref:f,style:{"--v-textarea-control-height":g.value},onClick:v,onMousedown:b,"onClick:clear":S,"onClick:prependInner":n["onClick:prependInner"],"onClick:appendInner":n["onClick:appendInner"]},F,{id:O.value,active:m.value||P.value,centerAffix:T.value===1&&!E.value,dirty:P.value||n.dirty,disabled:M.value,focused:o.value,error:j.value===!1}),{...s,default:H=>{let{props:{class:q,...oe}}=H;return K(vt,null,[n.prefix&&K("span",{class:"v-text-field__prefix"},[n.prefix]),Ol(K("textarea",$t({ref:p,class:q,value:r.value,onInput:y,autofocus:n.autofocus,readonly:W.value,disabled:M.value,placeholder:n.placeholder,rows:n.rows,name:n.name,onFocus:_,onBlur:l},oe,L),null),[[k_("intersect"),{handler:u},null,{once:!0}]]),n.autoGrow&&Ol(K("textarea",{class:[q,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":X=>r.value=X,ref:C,readonly:!0,"aria-hidden":"true"},null),[[W5e,r.value]]),n.suffix&&K("span",{class:"v-text-field__suffix"},[n.suffix])])}})},details:x?B=>K(vt,null,[s.details?.(B),R&&K(vt,null,[K("span",null,null),K(d0e,{active:n.persistentCounter||o.value,value:c.value,max:d.value,disabled:n.disabled},s.counter)])]):void 0})}),O_({},h,f,p)}}),SMe=Et({__name:"ComponentArgInput",props:BS({name:{},arg:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=_f(n,"modelValue"),t=ue(()=>"type"in n.arg.schema?n.arg.schema.type:"unknown");n.arg.schema.default!==void 0&&e.value===void 0&&(e.value=n.arg.schema.default);const i=Ne(!1),s=ue(()=>n.isSecret?i.value?"text":"password":"text"),r=ue(()=>n.isSecret?i.value?e.value:"*".repeat(e.value?.length??0):e.value),o=ue(()=>t.value==="array"&&(n.arg.schema.items.type==="string"||n.arg.schema.items.type==="number"||"anyOf"in n.arg.schema.items&&n.arg.schema.items.anyOf[0].type==="string")),a=ue(()=>{if("anyOf"in n.arg.schema.items&&n.arg.schema.items.anyOf[0].type==="string")return n.arg.schema.items.anyOf.map(l=>l.const)});return(l,c)=>{const d=O7e,u=Eje,h=WYe;return se(t)==="string"&&l.arg.schema.language?(Te(),Ze(d,{key:0,modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=f=>e.value=f),"component-type":l.instance.type,name:l.name,arg:l.arg},null,8,["modelValue","component-type","name","arg"])):se(t)==="string"&&!l.arg.schema.multiline?(Te(),Ze(bf,{key:1,modelValue:e.value,"onUpdate:modelValue":c[2]||(c[2]=f=>e.value=f),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:se(s),placeholder:l.arg.schema.default},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0),l.isSecret?(Te(),Ze(Vi,{key:1,onClick:c[1]||(c[1]=f=>i.value=!se(i))},{default:Me(()=>[ni(Bi(se(i)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):Rt("",!0)]),_:1},8,["modelValue","label","type","placeholder"])):se(t)==="string"&&l.arg.schema.multiline?(Te(),Ze(uOt,{key:2,"model-value":se(r),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),variant:"outlined",density:"compact",placeholder:l.arg.schema.default,"hide-details":"","onUpdate:modelValue":c[4]||(c[4]=f=>e.value=f)},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0),l.isSecret?(Te(),Ze(Vi,{key:1,onClick:c[3]||(c[3]=f=>i.value=!se(i))},{default:Me(()=>[ni(Bi(se(i)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):Rt("",!0)]),_:1},8,["model-value","label","placeholder"])):se(t)==="number"?(Te(),Ze(bf,{key:3,modelValue:e.value,"onUpdate:modelValue":c[5]||(c[5]=f=>e.value=f),modelModifiers:{number:!0},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:"number",placeholder:l.arg.schema.default,"hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder"])):se(t)==="boolean"?(Te(),Ze(oC,{key:4,modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=f=>e.value=f),style:{"max-height":"40px"},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),density:"compact","hide-details":""},{append:Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description,style:{"margin-right":"12px"}},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label"])):se(o)&&!se(a)?(Te(),Ze(cOt,{key:5,modelValue:e.value,"onUpdate:modelValue":c[7]||(c[7]=f=>e.value=f),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder"])):se(o)?(Te(),Ze(ove,{key:6,modelValue:e.value,"onUpdate:modelValue":c[8]||(c[8]=f=>e.value=f),style:{"max-height":"40px"},label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,items:se(a),variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","label","placeholder","items"])):"anyOf"in l.arg.schema&&l.arg.schema.anyOf[0].type==="string"?(Te(),Ze(ove,{key:7,modelValue:e.value,"onUpdate:modelValue":c[9]||(c[9]=f=>e.value=f),style:{"max-height":"40px"},items:l.arg.schema.anyOf.map(f=>f.const),label:("getDisplayName"in l?l.getDisplayName:se(Oa))(l.name,l.arg.meta),placeholder:l.arg.schema.default,variant:"outlined",density:"compact","hide-details":""},{"append-inner":Me(()=>[l.arg.schema.description?(Te(),Ze(u,{key:0,description:l.arg.schema.description},null,8,["description"])):Rt("",!0)]),_:1},8,["modelValue","items","label","placeholder"])):("isComplexSchema"in l?l.isComplexSchema:se(CF))(l.arg.schema)?(Te(),Ze(h,{key:8,modelValue:e.value,"onUpdate:modelValue":c[10]||(c[10]=f=>e.value=f),"component-type":l.instance.type,name:l.name,arg:l.arg},null,8,["modelValue","component-type","name","arg"])):Rt("",!0)}}});var Yn;(function(n){n.assertEqual=s=>s;function e(s){}n.assertIs=e;function t(s){throw new Error}n.assertNever=t,n.arrayToEnum=s=>{const r={};for(const o of s)r[o]=o;return r},n.getValidEnumValues=s=>{const r=n.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of r)o[a]=s[a];return n.objectValues(o)},n.objectValues=s=>n.objectKeys(s).map(function(r){return s[r]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const r=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&r.push(o);return r},n.find=(s,r)=>{for(const o of s)if(r(o))return o},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function i(s,r=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}n.joinValues=i,n.jsonStringifyReplacer=(s,r)=>typeof r=="bigint"?r.toString():r})(Yn||(Yn={}));var aQ;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(aQ||(aQ={}));const Vt=Yn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Cg=n=>{switch(typeof n){case"undefined":return Vt.undefined;case"string":return Vt.string;case"number":return isNaN(n)?Vt.nan:Vt.number;case"boolean":return Vt.boolean;case"function":return Vt.function;case"bigint":return Vt.bigint;case"symbol":return Vt.symbol;case"object":return Array.isArray(n)?Vt.array:n===null?Vt.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?Vt.promise:typeof Map<"u"&&n instanceof Map?Vt.map:typeof Set<"u"&&n instanceof Set?Vt.set:typeof Date<"u"&&n instanceof Date?Vt.date:Vt.object;default:return Vt.unknown}},ft=Yn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),hOt=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Qc extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(r){return r.message},i={_errors:[]},s=r=>{for(const o of r.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)i._errors.push(t(o));else{let a=i,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),i}static assert(e){if(!(e instanceof Qc))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Yn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):i.push(e(s));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}Qc.create=n=>new Qc(n);const OE=(n,e)=>{let t;switch(n.code){case ft.invalid_type:n.received===Vt.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case ft.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,Yn.jsonStringifyReplacer)}`;break;case ft.unrecognized_keys:t=`Unrecognized key(s) in object: ${Yn.joinValues(n.keys,", ")}`;break;case ft.invalid_union:t="Invalid input";break;case ft.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Yn.joinValues(n.options)}`;break;case ft.invalid_enum_value:t=`Invalid enum value. Expected ${Yn.joinValues(n.options)}, received '${n.received}'`;break;case ft.invalid_arguments:t="Invalid function arguments";break;case ft.invalid_return_type:t="Invalid function return type";break;case ft.invalid_date:t="Invalid date";break;case ft.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:Yn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case ft.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case ft.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case ft.custom:t="Invalid input";break;case ft.invalid_intersection_types:t="Intersection results could not be merged";break;case ft.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case ft.not_finite:t="Number must be finite";break;default:t=e.defaultError,Yn.assertNever(n)}return{message:t}};let yMe=OE;function fOt(n){yMe=n}function EF(){return yMe}const TF=n=>{const{data:e,path:t,errorMaps:i,issueData:s}=n,r=[...t,...s.path||[]],o={...s,path:r};if(s.message!==void 0)return{...s,path:r,message:s.message};let a="";const l=i.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:e,defaultError:a}).message;return{...s,path:r,message:a}},gOt=[];function Ot(n,e){const t=EF(),i=TF({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===OE?void 0:OE].filter(s=>!!s)});n.common.issues.push(i)}class el{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const s of t){if(s.status==="aborted")return Wi;s.status==="dirty"&&e.dirty(),i.push(s.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const s of t){const r=await s.key,o=await s.value;i.push({key:r,value:o})}return el.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const s of t){const{key:r,value:o}=s;if(r.status==="aborted"||o.status==="aborted")return Wi;r.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(i[r.value]=o.value)}return{status:e.value,value:i}}}const Wi=Object.freeze({status:"aborted"}),UC=n=>({status:"dirty",value:n}),Vl=n=>({status:"valid",value:n}),lQ=n=>n.status==="aborted",cQ=n=>n.status==="dirty",LS=n=>n.status==="valid",Ax=n=>typeof Promise<"u"&&n instanceof Promise;function IF(n,e,t,i){if(typeof e=="function"?n!==e||!0:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(n)}function CMe(n,e,t,i,s){if(typeof e=="function"?n!==e||!0:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(n,t),t}var oi;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e?.message})(oi||(oi={}));var ET,TT;class Af{constructor(e,t,i,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ave=(n,e)=>{if(LS(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Qc(n.common.issues);return this._error=t,this._error}}};function ln(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:s}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{var l,c;const{message:d}=n;return o.code==="invalid_enum_value"?{message:d??a.defaultError}:typeof a.data>"u"?{message:(l=d??i)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=d??t)!==null&&c!==void 0?c:a.defaultError}},description:s}}class pn{get description(){return this._def.description}_getType(e){return Cg(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Cg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new el,ctx:{common:e.parent.common,data:e.data,parsedType:Cg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ax(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const s={common:{issues:[],async:(i=t?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)},r=this._parseSync({data:e,path:s.path,parent:s});return ave(s,r)}"~validate"(e){var t,i;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:s});return LS(r)?{value:r.value}:{issues:s.common.issues}}catch(r){!((i=(t=r?.message)===null||t===void 0?void 0:t.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(r=>LS(r)?{value:r.value}:{issues:s.common.issues})}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Cg(e)},s=this._parse({data:e,path:i.path,parent:i}),r=await(Ax(s)?s:Promise.resolve(s));return ave(i,r)}refine(e,t){const i=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,r)=>{const o=e(s),a=()=>r.addIssue({code:ft.custom,...i(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,t){return this._refinement((i,s)=>e(i)?!0:(s.addIssue(typeof t=="function"?t(i,s):t),!1))}_refinement(e){return new nh({schema:this,typeName:Fi.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return ff.create(this,this._def)}nullable(){return I_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gu.create(this)}promise(){return PE.create(this,this._def)}or(e){return Fx.create([this,e],this._def)}and(e){return Bx.create(this,e,this._def)}transform(e){return new nh({...ln(this._def),schema:this,typeName:Fi.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new $x({...ln(this._def),innerType:this,defaultValue:t,typeName:Fi.ZodDefault})}brand(){return new bne({typeName:Fi.ZodBranded,type:this,...ln(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new zx({...ln(this._def),innerType:this,catchValue:t,typeName:Fi.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return wD.create(this,e)}readonly(){return Gx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pOt=/^c[^\s-]{8,}$/i,mOt=/^[0-9a-z]+$/,_Ot=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vOt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bOt=/^[a-z0-9_-]{21}$/i,SOt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yOt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,COt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wOt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let C8;const EOt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,TOt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,IOt=/^(([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]))$/,LOt=/^(([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]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xOt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ROt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wMe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",DOt=new RegExp(`^${wMe}$`);function EMe(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function NOt(n){return new RegExp(`^${EMe(n)}$`)}function TMe(n){let e=`${wMe}T${EMe(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function kOt(n,e){return!!((e==="v4"||!e)&&EOt.test(n)||(e==="v6"||!e)&&IOt.test(n))}function AOt(n,e){if(!SOt.test(n))return!1;try{const[t]=n.split("."),i=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),s=JSON.parse(atob(i));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function OOt(n,e){return!!((e==="v4"||!e)&&TOt.test(n)||(e==="v6"||!e)&&LOt.test(n))}class Ou extends pn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Vt.string){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.string,received:r.parsedType}),Wi}const i=new el;let s;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")e.data.length>r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const o=e.data.length>r.value,a=e.data.length<r.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?Ot(s,{code:ft.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&Ot(s,{code:ft.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")COt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"email",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")C8||(C8=new RegExp(wOt,"u")),C8.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"emoji",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")vOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"uuid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")bOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"nanoid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")pOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cuid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")mOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cuid2",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")_Ot.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"ulid",code:ft.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),Ot(s,{validation:"url",code:ft.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"regex",code:ft.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?e.data=e.data.trim():r.kind==="includes"?e.data.includes(r.value,r.position)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?e.data=e.data.toLowerCase():r.kind==="toUpperCase"?e.data=e.data.toUpperCase():r.kind==="startsWith"?e.data.startsWith(r.value)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?TMe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?DOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?NOt(r).test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?yOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"duration",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?kOt(e.data,r.version)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"ip",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?AOt(e.data,r.alg)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"jwt",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?OOt(e.data,r.version)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"cidr",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?xOt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"base64",code:ft.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?ROt.test(e.data)||(s=this._getOrReturnCtx(e,s),Ot(s,{validation:"base64url",code:ft.invalid_string,message:r.message}),i.dirty()):Yn.assertNever(r);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(s=>e.test(s),{validation:t,code:ft.invalid_string,...oi.errToObj(i)})}_addCheck(e){return new Ou({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...oi.errToObj(e)})}url(e){return this._addCheck({kind:"url",...oi.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...oi.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...oi.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...oi.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...oi.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...oi.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...oi.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...oi.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...oi.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...oi.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...oi.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...oi.errToObj(e)})}datetime(e){var t,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,local:(i=e?.local)!==null&&i!==void 0?i:!1,...oi.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...oi.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...oi.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...oi.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...oi.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...oi.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...oi.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...oi.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...oi.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...oi.errToObj(t)})}nonempty(e){return this.min(1,oi.errToObj(e))}trim(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ou({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Ou.create=n=>{var e;return new Ou({checks:[],typeName:Fi.ZodString,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...ln(n)})};function MOt(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,s=t>i?t:i,r=parseInt(n.toFixed(s).replace(".","")),o=parseInt(e.toFixed(s).replace(".",""));return r%o/Math.pow(10,s)}class w_ extends pn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Vt.number){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.number,received:r.parsedType}),Wi}let i;const s=new el;for(const r of this._def.checks)r.kind==="int"?Yn.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty()):r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?MOt(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_finite,message:r.message}),s.dirty()):Yn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,oi.toString(t))}gt(e,t){return this.setLimit("min",e,!1,oi.toString(t))}lte(e,t){return this.setLimit("max",e,!0,oi.toString(t))}lt(e,t){return this.setLimit("max",e,!1,oi.toString(t))}setLimit(e,t,i,s){return new w_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:oi.toString(s)}]})}_addCheck(e){return new w_({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:oi.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:oi.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:oi.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:oi.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:oi.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:oi.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:oi.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:oi.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:oi.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Yn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}w_.create=n=>new w_({checks:[],typeName:Fi.ZodNumber,coerce:n?.coerce||!1,...ln(n)});class E_ extends pn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Vt.bigint)return this._getInvalidInput(e);let i;const s=new el;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),Ot(i,{code:ft.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):Yn.assertNever(r);return{status:s.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Ot(t,{code:ft.invalid_type,expected:Vt.bigint,received:t.parsedType}),Wi}gte(e,t){return this.setLimit("min",e,!0,oi.toString(t))}gt(e,t){return this.setLimit("min",e,!1,oi.toString(t))}lte(e,t){return this.setLimit("max",e,!0,oi.toString(t))}lt(e,t){return this.setLimit("max",e,!1,oi.toString(t))}setLimit(e,t,i,s){return new E_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:oi.toString(s)}]})}_addCheck(e){return new E_({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:oi.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:oi.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:oi.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:oi.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:oi.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}E_.create=n=>{var e;return new E_({checks:[],typeName:Fi.ZodBigInt,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...ln(n)})};class Ox extends pn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Vt.boolean){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.boolean,received:i.parsedType}),Wi}return Vl(e.data)}}Ox.create=n=>new Ox({typeName:Fi.ZodBoolean,coerce:n?.coerce||!1,...ln(n)});class xS extends pn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Vt.date){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_type,expected:Vt.date,received:r.parsedType}),Wi}if(isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return Ot(r,{code:ft.invalid_date}),Wi}const i=new el;let s;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?e.data.getTime()>r.value&&(s=this._getOrReturnCtx(e,s),Ot(s,{code:ft.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):Yn.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new xS({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:oi.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:oi.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}xS.create=n=>new xS({checks:[],coerce:n?.coerce||!1,typeName:Fi.ZodDate,...ln(n)});class LF extends pn{_parse(e){if(this._getType(e)!==Vt.symbol){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.symbol,received:i.parsedType}),Wi}return Vl(e.data)}}LF.create=n=>new LF({typeName:Fi.ZodSymbol,...ln(n)});class Mx extends pn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.undefined,received:i.parsedType}),Wi}return Vl(e.data)}}Mx.create=n=>new Mx({typeName:Fi.ZodUndefined,...ln(n)});class Px extends pn{_parse(e){if(this._getType(e)!==Vt.null){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.null,received:i.parsedType}),Wi}return Vl(e.data)}}Px.create=n=>new Px({typeName:Fi.ZodNull,...ln(n)});class ME extends pn{constructor(){super(...arguments),this._any=!0}_parse(e){return Vl(e.data)}}ME.create=n=>new ME({typeName:Fi.ZodAny,...ln(n)});class Hb extends pn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Vl(e.data)}}Hb.create=n=>new Hb({typeName:Fi.ZodUnknown,...ln(n)});class mp extends pn{_parse(e){const t=this._getOrReturnCtx(e);return Ot(t,{code:ft.invalid_type,expected:Vt.never,received:t.parsedType}),Wi}}mp.create=n=>new mp({typeName:Fi.ZodNever,...ln(n)});class xF extends pn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.void,received:i.parsedType}),Wi}return Vl(e.data)}}xF.create=n=>new xF({typeName:Fi.ZodVoid,...ln(n)});class Gu extends pn{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==Vt.array)return Ot(t,{code:ft.invalid_type,expected:Vt.array,received:t.parsedType}),Wi;if(s.exactLength!==null){const o=t.data.length>s.exactLength.value,a=t.data.length<s.exactLength.value;(o||a)&&(Ot(t,{code:o?ft.too_big:ft.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(Ot(t,{code:ft.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(Ot(t,{code:ft.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,a)=>s.type._parseAsync(new Af(t,o,t.path,a)))).then(o=>el.mergeArray(i,o));const r=[...t.data].map((o,a)=>s.type._parseSync(new Af(t,o,t.path,a)));return el.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new Gu({...this._def,minLength:{value:e,message:oi.toString(t)}})}max(e,t){return new Gu({...this._def,maxLength:{value:e,message:oi.toString(t)}})}length(e,t){return new Gu({...this._def,exactLength:{value:e,message:oi.toString(t)}})}nonempty(e){return this.min(1,e)}}Gu.create=(n,e)=>new Gu({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Fi.ZodArray,...ln(e)});function aC(n){if(n instanceof mr){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=ff.create(aC(i))}return new mr({...n._def,shape:()=>e})}else return n instanceof Gu?new Gu({...n._def,type:aC(n.element)}):n instanceof ff?ff.create(aC(n.unwrap())):n instanceof I_?I_.create(aC(n.unwrap())):n instanceof Of?Of.create(n.items.map(e=>aC(e))):n}class mr extends pn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=Yn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Vt.object){const c=this._getOrReturnCtx(e);return Ot(c,{code:ft.invalid_type,expected:Vt.object,received:c.parsedType}),Wi}const{status:i,ctx:s}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mp&&this._def.unknownKeys==="strip"))for(const c in s.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const d=r[c],u=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Af(s,u,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof mp){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")a.length>0&&(Ot(s,{code:ft.unrecognized_keys,keys:a}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const u=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Af(s,u,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const u=await d.key,h=await d.value;c.push({key:u,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>el.mergeObjectSync(i,c)):el.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return oi.errToObj,new mr({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var s,r,o,a;const l=(o=(r=(s=this._def).errorMap)===null||r===void 0?void 0:r.call(s,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(a=oi.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new mr({...this._def,unknownKeys:"strip"})}passthrough(){return new mr({...this._def,unknownKeys:"passthrough"})}extend(e){return new mr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new mr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Fi.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new mr({...this._def,catchall:e})}pick(e){const t={};return Yn.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}omit(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}deepPartial(){return aC(this)}partial(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{const s=this.shape[i];e&&!e[i]?t[i]=s:t[i]=s.optional()}),new mr({...this._def,shape:()=>t})}required(e){const t={};return Yn.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof ff;)r=r._def.innerType;t[i]=r}}),new mr({...this._def,shape:()=>t})}keyof(){return IMe(Yn.objectKeys(this.shape))}}mr.create=(n,e)=>new mr({shape:()=>n,unknownKeys:"strip",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});mr.strictCreate=(n,e)=>new mr({shape:()=>n,unknownKeys:"strict",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});mr.lazycreate=(n,e)=>new mr({shape:n,unknownKeys:"strip",catchall:mp.create(),typeName:Fi.ZodObject,...ln(e)});class Fx extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function s(r){for(const a of r)if(a.result.status==="valid")return a.result;for(const a of r)if(a.result.status==="dirty")return t.common.issues.push(...a.ctx.common.issues),a.result;const o=r.map(a=>new Qc(a.ctx.common.issues));return Ot(t,{code:ft.invalid_union,unionErrors:o}),Wi}if(t.common.async)return Promise.all(i.map(async r=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(s);{let r;const o=[];for(const l of i){const c={...t,common:{...t.common,issues:[]},parent:null},d=l._parseSync({data:t.data,path:t.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!r&&(r={result:d,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const a=o.map(l=>new Qc(l));return Ot(t,{code:ft.invalid_union,unionErrors:a}),Wi}}get options(){return this._def.options}}Fx.create=(n,e)=>new Fx({options:n,typeName:Fi.ZodUnion,...ln(e)});const dg=n=>n instanceof Vx?dg(n.schema):n instanceof nh?dg(n.innerType()):n instanceof Wx?[n.value]:n instanceof T_?n.options:n instanceof Ux?Yn.objectValues(n.enum):n instanceof $x?dg(n._def.innerType):n instanceof Mx?[void 0]:n instanceof Px?[null]:n instanceof ff?[void 0,...dg(n.unwrap())]:n instanceof I_?[null,...dg(n.unwrap())]:n instanceof bne||n instanceof Gx?dg(n.unwrap()):n instanceof zx?dg(n._def.innerType):[];class t3 extends pn{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.object)return Ot(t,{code:ft.invalid_type,expected:Vt.object,received:t.parsedType}),Wi;const i=this.discriminator,s=t.data[i],r=this.optionsMap.get(s);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(Ot(t,{code:ft.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Wi)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const s=new Map;for(const r of t){const o=dg(r.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,r)}}return new t3({typeName:Fi.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...ln(i)})}}function dQ(n,e){const t=Cg(n),i=Cg(e);if(n===e)return{valid:!0,data:n};if(t===Vt.object&&i===Vt.object){const s=Yn.objectKeys(e),r=Yn.objectKeys(n).filter(a=>s.indexOf(a)!==-1),o={...n,...e};for(const a of r){const l=dQ(n[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(t===Vt.array&&i===Vt.array){if(n.length!==e.length)return{valid:!1};const s=[];for(let r=0;r<n.length;r++){const o=n[r],a=e[r],l=dQ(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return t===Vt.date&&i===Vt.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Bx extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=(r,o)=>{if(lQ(r)||lQ(o))return Wi;const a=dQ(r.value,o.value);return a.valid?((cQ(r)||cQ(o))&&t.dirty(),{status:t.value,value:a.data}):(Ot(i,{code:ft.invalid_intersection_types}),Wi)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,o])=>s(r,o)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Bx.create=(n,e,t)=>new Bx({left:n,right:e,typeName:Fi.ZodIntersection,...ln(t)});class Of extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.array)return Ot(i,{code:ft.invalid_type,expected:Vt.array,received:i.parsedType}),Wi;if(i.data.length<this._def.items.length)return Ot(i,{code:ft.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Wi;!this._def.rest&&i.data.length>this._def.items.length&&(Ot(i,{code:ft.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...i.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Af(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(r).then(o=>el.mergeArray(t,o)):el.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Of({...this._def,rest:e})}}Of.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Of({items:n,typeName:Fi.ZodTuple,rest:null,...ln(e)})};class Hx extends pn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.object)return Ot(i,{code:ft.invalid_type,expected:Vt.object,received:i.parsedType}),Wi;const s=[],r=this._def.keyType,o=this._def.valueType;for(const a in i.data)s.push({key:r._parse(new Af(i,a,i.path,a)),value:o._parse(new Af(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?el.mergeObjectAsync(t,s):el.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof pn?new Hx({keyType:e,valueType:t,typeName:Fi.ZodRecord,...ln(i)}):new Hx({keyType:Ou.create(),valueType:e,typeName:Fi.ZodRecord,...ln(t)})}}class RF extends pn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.map)return Ot(i,{code:ft.invalid_type,expected:Vt.map,received:i.parsedType}),Wi;const s=this._def.keyType,r=this._def.valueType,o=[...i.data.entries()].map(([a,l],c)=>({key:s._parse(new Af(i,a,i.path,[c,"key"])),value:r._parse(new Af(i,l,i.path,[c,"value"]))}));if(i.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return Wi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return Wi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}}}}RF.create=(n,e,t)=>new RF({valueType:e,keyType:n,typeName:Fi.ZodMap,...ln(t)});class RS extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.set)return Ot(i,{code:ft.invalid_type,expected:Vt.set,received:i.parsedType}),Wi;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(Ot(i,{code:ft.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&i.data.size>s.maxSize.value&&(Ot(i,{code:ft.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const r=this._def.valueType;function o(l){const c=new Set;for(const d of l){if(d.status==="aborted")return Wi;d.status==="dirty"&&t.dirty(),c.add(d.value)}return{status:t.value,value:c}}const a=[...i.data.values()].map((l,c)=>r._parse(new Af(i,l,i.path,c)));return i.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,t){return new RS({...this._def,minSize:{value:e,message:oi.toString(t)}})}max(e,t){return new RS({...this._def,maxSize:{value:e,message:oi.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}RS.create=(n,e)=>new RS({valueType:n,minSize:null,maxSize:null,typeName:Fi.ZodSet,...ln(e)});class Nw extends pn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.function)return Ot(t,{code:ft.invalid_type,expected:Vt.function,received:t.parsedType}),Wi;function i(a,l){return TF({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EF(),OE].filter(c=>!!c),issueData:{code:ft.invalid_arguments,argumentsError:l}})}function s(a,l){return TF({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EF(),OE].filter(c=>!!c),issueData:{code:ft.invalid_return_type,returnTypeError:l}})}const r={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof PE){const a=this;return Vl(async function(...l){const c=new Qc([]),d=await a._def.args.parseAsync(l,r).catch(f=>{throw c.addIssue(i(l,f)),c}),u=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(u,r).catch(f=>{throw c.addIssue(s(u,f)),c})})}else{const a=this;return Vl(function(...l){const c=a._def.args.safeParse(l,r);if(!c.success)throw new Qc([i(l,c.error)]);const d=Reflect.apply(o,this,c.data),u=a._def.returns.safeParse(d,r);if(!u.success)throw new Qc([s(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Nw({...this._def,args:Of.create(e).rest(Hb.create())})}returns(e){return new Nw({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Nw({args:e||Of.create([]).rest(Hb.create()),returns:t||Hb.create(),typeName:Fi.ZodFunction,...ln(i)})}}class Vx extends pn{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Vx.create=(n,e)=>new Vx({getter:n,typeName:Fi.ZodLazy,...ln(e)});class Wx extends pn{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ot(t,{received:t.data,code:ft.invalid_literal,expected:this._def.value}),Wi}return{status:"valid",value:e.data}}get value(){return this._def.value}}Wx.create=(n,e)=>new Wx({value:n,typeName:Fi.ZodLiteral,...ln(e)});function IMe(n,e){return new T_({values:n,typeName:Fi.ZodEnum,...ln(e)})}class T_ extends pn{constructor(){super(...arguments),ET.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return Ot(t,{expected:Yn.joinValues(i),received:t.parsedType,code:ft.invalid_type}),Wi}if(IF(this,ET)||CMe(this,ET,new Set(this._def.values)),!IF(this,ET).has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return Ot(t,{received:t.data,code:ft.invalid_enum_value,options:i}),Wi}return Vl(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return T_.create(e,{...this._def,...t})}exclude(e,t=this._def){return T_.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}ET=new WeakMap;T_.create=IMe;class Ux extends pn{constructor(){super(...arguments),TT.set(this,void 0)}_parse(e){const t=Yn.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==Vt.string&&i.parsedType!==Vt.number){const s=Yn.objectValues(t);return Ot(i,{expected:Yn.joinValues(s),received:i.parsedType,code:ft.invalid_type}),Wi}if(IF(this,TT)||CMe(this,TT,new Set(Yn.getValidEnumValues(this._def.values))),!IF(this,TT).has(e.data)){const s=Yn.objectValues(t);return Ot(i,{received:i.data,code:ft.invalid_enum_value,options:s}),Wi}return Vl(e.data)}get enum(){return this._def.values}}TT=new WeakMap;Ux.create=(n,e)=>new Ux({values:n,typeName:Fi.ZodNativeEnum,...ln(e)});class PE extends pn{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.promise&&t.common.async===!1)return Ot(t,{code:ft.invalid_type,expected:Vt.promise,received:t.parsedType}),Wi;const i=t.parsedType===Vt.promise?t.data:Promise.resolve(t.data);return Vl(i.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}PE.create=(n,e)=>new PE({type:n,typeName:Fi.ZodPromise,...ln(e)});class nh extends pn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fi.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:o=>{Ot(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),s.type==="preprocess"){const o=s.transform(i.data,r);if(i.common.async)return Promise.resolve(o).then(async a=>{if(t.value==="aborted")return Wi;const l=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return l.status==="aborted"?Wi:l.status==="dirty"||t.value==="dirty"?UC(l.value):l});{if(t.value==="aborted")return Wi;const a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Wi:a.status==="dirty"||t.value==="dirty"?UC(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){const a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Wi:(a.status==="dirty"&&t.dirty(),o(a.value),{status:t.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?Wi:(a.status==="dirty"&&t.dirty(),o(a.value).then(()=>({status:t.value,value:a.value}))))}if(s.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!LS(o))return o;const a=s.transform(o.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>LS(o)?Promise.resolve(s.transform(o.value,r)).then(a=>({status:t.value,value:a})):o);Yn.assertNever(s)}}nh.create=(n,e,t)=>new nh({schema:n,typeName:Fi.ZodEffects,effect:e,...ln(t)});nh.createWithPreprocess=(n,e,t)=>new nh({schema:e,effect:{type:"preprocess",transform:n},typeName:Fi.ZodEffects,...ln(t)});class ff extends pn{_parse(e){return this._getType(e)===Vt.undefined?Vl(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ff.create=(n,e)=>new ff({innerType:n,typeName:Fi.ZodOptional,...ln(e)});class I_ extends pn{_parse(e){return this._getType(e)===Vt.null?Vl(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}I_.create=(n,e)=>new I_({innerType:n,typeName:Fi.ZodNullable,...ln(e)});class $x extends pn{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===Vt.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}$x.create=(n,e)=>new $x({innerType:n,typeName:Fi.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ln(e)});class zx extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ax(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Qc(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Qc(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}zx.create=(n,e)=>new zx({innerType:n,typeName:Fi.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ln(e)});class DF extends pn{_parse(e){if(this._getType(e)!==Vt.nan){const i=this._getOrReturnCtx(e);return Ot(i,{code:ft.invalid_type,expected:Vt.nan,received:i.parsedType}),Wi}return{status:"valid",value:e.data}}}DF.create=n=>new DF({typeName:Fi.ZodNaN,...ln(n)});const POt=Symbol("zod_brand");class bne extends pn{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class wD extends pn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Wi:r.status==="dirty"?(t.dirty(),UC(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Wi:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}static create(e,t){return new wD({in:e,out:t,typeName:Fi.ZodPipeline})}}class Gx extends pn{_parse(e){const t=this._def.innerType._parse(e),i=s=>(LS(s)&&(s.value=Object.freeze(s.value)),s);return Ax(t)?t.then(s=>i(s)):i(t)}unwrap(){return this._def.innerType}}Gx.create=(n,e)=>new Gx({innerType:n,typeName:Fi.ZodReadonly,...ln(e)});function lve(n,e){const t=typeof n=="function"?n(e):typeof n=="string"?{message:n}:n;return typeof t=="string"?{message:t}:t}function LMe(n,e={},t){return n?ME.create().superRefine((i,s)=>{var r,o;const a=n(i);if(a instanceof Promise)return a.then(l=>{var c,d;if(!l){const u=lve(e,i),h=(d=(c=u.fatal)!==null&&c!==void 0?c:t)!==null&&d!==void 0?d:!0;s.addIssue({code:"custom",...u,fatal:h})}});if(!a){const l=lve(e,i),c=(o=(r=l.fatal)!==null&&r!==void 0?r:t)!==null&&o!==void 0?o:!0;s.addIssue({code:"custom",...l,fatal:c})}}):ME.create()}const FOt={object:mr.lazycreate};var Fi;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Fi||(Fi={}));const BOt=(n,e={message:`Input not instance of ${n.name}`})=>LMe(t=>t instanceof n,e),xMe=Ou.create,RMe=w_.create,HOt=DF.create,VOt=E_.create,DMe=Ox.create,WOt=xS.create,UOt=LF.create,$Ot=Mx.create,zOt=Px.create,GOt=ME.create,qOt=Hb.create,KOt=mp.create,jOt=xF.create,YOt=Gu.create,QOt=mr.create,XOt=mr.strictCreate,ZOt=Fx.create,JOt=t3.create,eMt=Bx.create,tMt=Of.create,iMt=Hx.create,nMt=RF.create,sMt=RS.create,rMt=Nw.create,oMt=Vx.create,aMt=Wx.create,lMt=T_.create,cMt=Ux.create,dMt=PE.create,cve=nh.create,uMt=ff.create,hMt=I_.create,fMt=nh.createWithPreprocess,gMt=wD.create,pMt=()=>xMe().optional(),mMt=()=>RMe().optional(),_Mt=()=>DMe().optional(),vMt={string:n=>Ou.create({...n,coerce:!0}),number:n=>w_.create({...n,coerce:!0}),boolean:n=>Ox.create({...n,coerce:!0}),bigint:n=>E_.create({...n,coerce:!0}),date:n=>xS.create({...n,coerce:!0})},bMt=Wi;var Ue=Object.freeze({__proto__:null,defaultErrorMap:OE,setErrorMap:fOt,getErrorMap:EF,makeIssue:TF,EMPTY_PATH:gOt,addIssueToContext:Ot,ParseStatus:el,INVALID:Wi,DIRTY:UC,OK:Vl,isAborted:lQ,isDirty:cQ,isValid:LS,isAsync:Ax,get util(){return Yn},get objectUtil(){return aQ},ZodParsedType:Vt,getParsedType:Cg,ZodType:pn,datetimeRegex:TMe,ZodString:Ou,ZodNumber:w_,ZodBigInt:E_,ZodBoolean:Ox,ZodDate:xS,ZodSymbol:LF,ZodUndefined:Mx,ZodNull:Px,ZodAny:ME,ZodUnknown:Hb,ZodNever:mp,ZodVoid:xF,ZodArray:Gu,ZodObject:mr,ZodUnion:Fx,ZodDiscriminatedUnion:t3,ZodIntersection:Bx,ZodTuple:Of,ZodRecord:Hx,ZodMap:RF,ZodSet:RS,ZodFunction:Nw,ZodLazy:Vx,ZodLiteral:Wx,ZodEnum:T_,ZodNativeEnum:Ux,ZodPromise:PE,ZodEffects:nh,ZodTransformer:nh,ZodOptional:ff,ZodNullable:I_,ZodDefault:$x,ZodCatch:zx,ZodNaN:DF,BRAND:POt,ZodBranded:bne,ZodPipeline:wD,ZodReadonly:Gx,custom:LMe,Schema:pn,ZodSchema:pn,late:FOt,get ZodFirstPartyTypeKind(){return Fi},coerce:vMt,any:GOt,array:YOt,bigint:VOt,boolean:DMe,date:WOt,discriminatedUnion:JOt,effect:cve,enum:lMt,function:rMt,instanceof:BOt,intersection:eMt,lazy:oMt,literal:aMt,map:nMt,nan:HOt,nativeEnum:cMt,never:KOt,null:zOt,nullable:hMt,number:RMe,object:QOt,oboolean:_Mt,onumber:mMt,optional:uMt,ostring:pMt,pipeline:gMt,preprocess:fMt,promise:dMt,record:iMt,set:sMt,strictObject:XOt,string:xMe,symbol:UOt,transformer:cve,tuple:tMt,undefined:$Ot,union:ZOt,unknown:qOt,void:jOt,NEVER:bMt,ZodIssueCode:ft,quotelessJson:hOt,ZodError:Qc});const Sne=Ue.object({x:Ue.number(),y:Ue.number()}),kw=Ue.object({instanceId:Ue.string(),output:Ue.string()}),NF=Ue.object({hubId:Ue.string()}),SMt=Ue.object({args:Ue.record(Ue.unknown()).optional(),inputs:Ue.record(Ue.array(kw)).optional(),hubInputs:Ue.record(Ue.array(NF)).optional(),injectionInputs:Ue.array(NF).optional(),position:Sne.optional()}),dve=Ue.object({id:Ue.string(),type:Ue.string(),name:Ue.string(),...SMt.shape,resolvedInputs:Ue.record(Ue.array(kw)).optional(),parentId:Ue.string().optional(),outputs:Ue.record(Ue.array(kw)).optional(),resolvedOutputs:Ue.record(Ue.array(kw)).optional()});Ue.object({instance:dve,children:Ue.array(dve),inputHash:Ue.string().optional()});Ue.object({position:Sne.optional(),inputs:Ue.array(kw).optional(),injectionInputs:Ue.array(NF).optional()});Ue.object({id:Ue.string().nanoid(),position:Sne,inputs:Ue.array(kw).optional(),injectionInputs:Ue.array(NF).optional()});var NMe={done:!1,hasNext:!1};function uQ(n,...e){let t=n,i=e.map(r=>"lazy"in r?yMt(r):void 0),s=0;for(;s<e.length;){if(i[s]===void 0||!CMt(t)){let l=e[s];t=l(t),s+=1;continue}let r=[];for(let l=s;l<e.length;l++){let c=i[l];if(c===void 0||(r.push(c),c.isSingle))break}let o=[];for(let l of t)if(kMe(l,o,r))break;let{isSingle:a}=r.at(-1);t=a?o[0]:o,s+=r.length}return t}function kMe(n,e,t){if(t.length===0)return e.push(n),!1;let i=n,s=NMe,r=!1;for(let[o,a]of t.entries()){let{index:l,items:c}=a;if(c.push(i),s=a(i,l,c),a.index+=1,s.hasNext){if(s.hasMany??!1){for(let d of s.next)if(kMe(d,e,t.slice(o+1)))return!0;return r}i=s.next}if(!s.hasNext)break;s.done&&(r=!0)}return s.hasNext&&e.push(i),r}function yMt(n){let{lazy:e,lazyArgs:t}=n,i=e(...t);return Object.assign(i,{isSingle:e.single??!1,index:0,items:[]})}function CMt(n){return typeof n=="string"||typeof n=="object"&&n!==null&&Symbol.iterator in n}function wMt(n,e){let t=e.length-n.length;if(t===1){let[i,...s]=e;return uQ(i,{lazy:n,lazyArgs:s})}if(t===0){let i={lazy:n,lazyArgs:e};return Object.assign(s=>uQ(s,i),i)}throw new Error("Wrong number of arguments")}function EMt(n,e,t){let i=s=>n(s,...e);return t===void 0?i:Object.assign(i,{lazy:t,lazyArgs:e})}function ED(n,e,t){let i=n.length-e.length;if(i===0)return n(...e);if(i===1)return EMt(n,e,t);throw new Error("Wrong number of arguments")}function AMe(...n){return wMt(TMt,n)}function TMt(){let n=new Set;return e=>n.has(e)?NMe:(n.add(e),{done:!1,hasNext:!0,next:e})}var OMe={asc:(n,e)=>n>e,desc:(n,e)=>n<e};function IMt(n,e){let[t,...i]=e;if(!LMt(t)){let r=hQ(...i);return n(t,r)}let s=hQ(t,...i);return r=>n(r,s)}function hQ(n,e,...t){let i=typeof n=="function"?n:n[0],s=typeof n=="function"?"asc":n[1],{[s]:r}=OMe,o=e===void 0?void 0:hQ(e,...t);return(a,l)=>{let c=i(a),d=i(l);return r(c,d)?1:r(d,c)?-1:o?.(a,l)??0}}function LMt(n){if(uve(n))return!0;if(typeof n!="object"||!Array.isArray(n))return!1;let[e,t,...i]=n;return uve(e)&&typeof t=="string"&&t in OMe&&i.length===0}var uve=n=>typeof n=="function"&&n.length===1;function hve(...n){return IMt(xMt,n)}var xMt=(n,e)=>[...n].sort(e);function fve(...n){return ED(RMt,n)}function RMt(n,e){let t={};for(let i of e)i in n&&(t[i]=n[i]);return t}function DMt(...n){return ED(NMt,n)}function NMt(n,e){let t={};for(let[i,s]of Object.entries(n)){let r=e(s,i,n);t[i]=r}return t}function kMt(...n){return ED(AMt,n,OMt)}var AMt=(n,e)=>n.map(e),OMt=n=>(e,t,i)=>({done:!1,hasNext:!0,next:n(e,t,i)});function MMt(...n){return ED(PMt,n)}var PMt=(n,e)=>{let t=new Map;for(let[i,s]of n.entries()){let r=e(s,i,n);if(r!==void 0){let o=t.get(r);o===void 0&&(o=[],t.set(r,o)),o.push(s)}}return Object.fromEntries(t)};function FMt(...n){return ED(Object.fromEntries,n)}const BMt=Ue.enum(["not_created","updating","previewing","destroying","refreshing","created","error","pending","unknown"]),HMt=Ue.union([Ue.string(),Ue.number(),Ue.boolean(),Ue.array(Ue.string())]),VMt=Ue.object({name:Ue.string(),value:HMt.optional(),displayName:Ue.string().optional(),sensitive:Ue.boolean().optional(),url:Ue.string().optional(),complementaryTo:Ue.string().optional()}),yne=Ue.object({name:Ue.string(),contentType:Ue.string(),size:Ue.number(),isBinary:Ue.boolean().optional()});Ue.object({meta:yne,content:Ue.string()});const WMt=Ue.union([Ue.object({type:Ue.literal("markdown"),content:Ue.string()}),Ue.object({type:Ue.literal("qr"),content:Ue.string(),showContent:Ue.coerce.boolean(),language:Ue.string().optional()}),Ue.object({type:Ue.literal("file"),fileMeta:yne})]),MMe=Ue.object({name:Ue.string(),title:Ue.string()});Ue.object({...MMe.shape,content:Ue.array(WMt)});const PMe=Ue.object({name:Ue.string(),title:Ue.string(),description:Ue.string().optional()}),UMt=Ue.object({content:Ue.string().optional(),isBinary:Ue.boolean().optional(),mode:Ue.number().optional()});Ue.object({...PMe.shape,image:Ue.string(),command:Ue.string().array(),cwd:Ue.string().optional(),env:Ue.record(Ue.string()).optional(),files:Ue.record(UMt).optional()});const $Mt=Ue.union([Ue.object({type:Ue.literal("before-destroy")}),Ue.object({type:Ue.literal("schedule"),schedule:Ue.string()})]),zMt=Ue.object({name:Ue.string(),title:Ue.string(),description:Ue.string().optional(),spec:$Mt});Ue.object({name:Ue.string()});const GMt=Ue.object({id:Ue.string(),parentId:Ue.string().nullable().default(null),status:BMt,dependencyIds:Ue.array(Ue.string()).default(()=>[]),latestOperationId:Ue.string().nullable().default(null),currentResourceCount:Ue.number().nullable().default(null),totalResourceCount:Ue.number().nullable().default(null),inputHash:Ue.string().nullable().default(null),outputHash:Ue.string().nullable().default(null),error:Ue.string().nullable().default(null),evaluationError:Ue.string().nullable().default(null),statusFields:Ue.array(VMt).default(()=>[]),files:Ue.array(yne).default(()=>[]),pages:Ue.array(MMe).default(()=>[]),terminals:Ue.array(PMe).default(()=>[]),triggers:Ue.array(zMt).default(()=>[])});Ue.object({...GMt.shape,secrets:Ue.record(Ue.string()).nullable(),logLine:Ue.string().nullable()}).partial();function FMe(n,e="not_created",t={}){return{id:n,parentId:null,dependencyIds:[],status:e,latestOperationId:null,currentResourceCount:null,totalResourceCount:null,inputHash:null,outputHash:null,error:null,evaluationError:null,statusFields:[],files:[],pages:[],terminals:[],triggers:[],...t}}function qMt(n,e){if(!e.id)throw new Error("The ID of the instance state is required.");let t=n.get(e.id)??FMe(e.id,"unknown");return t={...t,...e},n.set(t.id,t),t}function gve(n){const e=new Map;for(const t of n.values())for(const i of t.dependencyIds){let s=e.get(i);s||(s=[],e.set(i,s)),s.push(t.id)}return e}function KMt(n,e){const t=new Set,i=new Set,s=r=>{if(i.has(r))return;i.add(r);const o=n.get(r);if(o)for(const a of o)t.add(a),s(a)};return s(e),Array.from(t)}const BMe=Ue.enum(["update","preview","destroy","recreate","refresh"]),jMt=Ue.enum(["pending","running","completed","failed","cancelled"]),HMe=Ue.object({forceUpdateDependencies:Ue.boolean().default(!1),forceUpdateChildren:Ue.boolean().default(!1),destroyDependentInstances:Ue.boolean().default(!0),invokeDestroyTriggers:Ue.boolean().default(!0),deleteUnreachableResources:Ue.boolean().default(!1),forceDeleteState:Ue.boolean().default(!1),refresh:Ue.boolean().default(!1)});Ue.object({projectId:Ue.string(),type:BMe,instanceIds:Ue.array(Ue.string()),options:HMe.partial().optional()});Ue.object({id:Ue.string().uuid(),status:jMt,projectId:Ue.string(),type:BMe,requestedInstanceIds:Ue.array(Ue.string()),instanceIdsToUpdate:Ue.array(Ue.string()).default(()=>[]),instanceIdsToDestroy:Ue.array(Ue.string()).default(()=>[]),options:HMe.default(()=>({})),error:Ue.string().nullable(),startedAt:Ue.number(),completedAt:Ue.number().nullable()});function VMe(n){return n==="completed"||n==="failed"||n==="cancelled"}class Cne{constructor(e,t,i){this.nodes=e,this.logger=t,this.outputHandler=i}workset=new Set;dependentMap=new Map;outputMap=new Map;addToWorkset(e){this.workset.add(e)}addAllNodesToWorkset(){for(const e of this.nodes.keys())this.workset.add(e)}get outputs(){return this.outputMap}requireOutput(e){const t=this.outputMap.get(e);if(!t)throw new Error(`Output for node ${e} is not available`);return t}invalidate(e){const t=[e];for(;t.length>0;){const i=t.pop();if(!this.nodes.has(i))continue;this.outputMap.delete(i),this.workset.add(i);const s=this.dependentMap.get(i);if(s){for(const r of s)this.outputMap.has(r)&&t.push(r);this.dependentMap.delete(i)}}}async process(e){for(;this.workset.size>0;){const t=this.workset.values().next().value,i=[{nodeId:t,resolved:!1,dependencies:[]}];for(;i.length>0;){const s=i[i.length-1],{nodeId:r,resolved:o}=s,a=this.nodes.get(r);if(!a){this.logger.warn({nodeId:r},"node not found in the graph, skipping"),i.pop();continue}if(this.outputMap.has(r)){i.pop();continue}if(!o){s.dependencies=AMe(this.getNodeDependencies(a));let c=!1;for(const d of s.dependencies){if(!this.nodes.has(d)){this.logger.warn({depId:d,nodeId:r},"dependency not found in the graph, skipping");continue}this.outputMap.has(d)||(i.push({nodeId:d,resolved:!1,dependencies:[]}),c=!0)}if(c){s.resolved=!0;continue}}const l=await this.processNode(a,this.logger);if(e?.aborted){this.logger.warn({nodeId:r},"processing aborted, skipping output");return}for(const c of s.dependencies){let d=this.dependentMap.get(c);d||(d=new Set,this.dependentMap.set(c,d)),d.add(r)}this.outputMap.set(r,l),this.outputHandler?.(r,l),i.pop()}this.workset.delete(t)}}}function pve(n,e){return`${n}:${e}`}var Tk={exports:{}},w8={},ig={},pv={},E8={},T8={},I8={},mve;function kF(){return mve||(mve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;class e{}n._CodeOrName=e,n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(v){if(super(),!n.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=t;class i extends e{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((b,S)=>(S instanceof t&&(b[S.str]=(b[S.str]||0)+1),b),{})}}n._Code=i,n.nil=new i("");function s(_,...v){const b=[_[0]];let S=0;for(;S<v.length;)a(b,v[S]),b.push(_[++S]);return new i(b)}n._=s;const r=new i("+");function o(_,...v){const b=[f(_[0])];let S=0;for(;S<v.length;)b.push(r),a(b,v[S]),b.push(r,f(_[++S]));return l(b),new i(b)}n.str=o;function a(_,v){v instanceof i?_.push(...v._items):v instanceof t?_.push(v):_.push(u(v))}n.addCodeArg=a;function l(_){let v=1;for(;v<_.length-1;){if(_[v]===r){const b=c(_[v-1],_[v+1]);if(b!==void 0){_.splice(v-1,3,b);continue}_[v++]="+"}v++}}function c(_,v){if(v==='""')return _;if(_==='""')return v;if(typeof _=="string")return v instanceof t||_[_.length-1]!=='"'?void 0:typeof v!="string"?`${_.slice(0,-1)}${v}"`:v[0]==='"'?_.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(_ instanceof t))return`"${_}${v.slice(1)}`}function d(_,v){return v.emptyStr()?_:_.emptyStr()?v:o`${_}${v}`}n.strConcat=d;function u(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:f(Array.isArray(_)?_.join(","):_)}function h(_){return new i(f(_))}n.stringify=h;function f(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.safeStringify=f;function g(_){return typeof _=="string"&&n.IDENTIFIER.test(_)?new i(`.${_}`):s`[${_}]`}n.getProperty=g;function p(_){if(typeof _=="string"&&n.IDENTIFIER.test(_))return new i(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}n.getEsmExportName=p;function m(_){return new i(_.toString())}n.regexpCode=m}(I8)),I8}var L8={},_ve;function vve(){return _ve||(_ve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const e=kF();class t extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(n.UsedValueState=i={})),n.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class s{constructor({prefixes:c,parent:d}={}){this._names={},this._prefixes=c,this._parent=d}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const d=this._names[c]||this._nameGroup(c);return`${c}${d.index++}`}_nameGroup(c){var d,u;if(!((u=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||u===void 0)&&u.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}n.Scope=s;class r extends e.Name{constructor(c,d){super(d),this.prefix=c}setValue(c,{property:d,itemIndex:u}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(d)}[${u}]`}}n.ValueScopeName=r;const o=(0,e._)`\n`;class a extends s{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:e.nil}}get(){return this._scope}name(c){return new r(c,this._newName(c))}value(c,d){var u;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(c),{prefix:f}=h,g=(u=d.key)!==null&&u!==void 0?u:d.ref;let p=this._values[f];if(p){const v=p.get(g);if(v)return v}else p=this._values[f]=new Map;p.set(g,h);const m=this._scope[f]||(this._scope[f]=[]),_=m.length;return m[_]=d.ref,h.setValue(d,{property:f,itemIndex:_}),h}getValue(c,d){const u=this._values[c];if(u)return u.get(d)}scopeRefs(c,d=this._values){return this._reduceValues(d,u=>{if(u.scopePath===void 0)throw new Error(`CodeGen: name "${u}" has no value`);return(0,e._)`${c}${u.scopePath}`})}scopeCode(c=this._values,d,u){return this._reduceValues(c,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,u)}_reduceValues(c,d,u={},h){let f=e.nil;for(const g in c){const p=c[g];if(!p)continue;const m=u[g]=u[g]||new Map;p.forEach(_=>{if(m.has(_))return;m.set(_,i.Started);let v=d(_);if(v){const b=this.opts.es5?n.varKinds.var:n.varKinds.const;f=(0,e._)`${f}${b} ${_} = ${v};${this.opts._n}`}else if(v=h?.(_))f=(0,e._)`${f}${v}${this.opts._n}`;else throw new t(_);m.set(_,i.Completed)})}return f}}n.ValueScope=a}(L8)),L8}var bve;function xn(){return bve||(bve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.or=n.and=n.not=n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0;const e=kF(),t=vve();var i=kF();Object.defineProperty(n,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(n,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(n,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(n,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return i.Name}});var s=vve();Object.defineProperty(n,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(n,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(n,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(n,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),n.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class r{optimizeNodes(){return this}optimizeNames(H,q){return this}}class o extends r{constructor(H,q,oe){super(),this.varKind=H,this.name=q,this.rhs=oe}render({es5:H,_n:q}){const oe=H?t.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${X};`+q}optimizeNames(H,q){if(H[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,H,q)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends r{constructor(H,q,oe){super(),this.lhs=H,this.rhs=q,this.sideEffects=oe}render({_n:H}){return`${this.lhs} = ${this.rhs};`+H}optimizeNames(H,q){if(!(this.lhs instanceof e.Name&&!H[this.lhs.str]&&!this.sideEffects))return this.rhs=L(this.rhs,H,q),this}get names(){const H=this.lhs instanceof e.Name?{}:{...this.lhs.names};return k(H,this.rhs)}}class l extends a{constructor(H,q,oe,X){super(H,oe,X),this.op=q}render({_n:H}){return`${this.lhs} ${this.op}= ${this.rhs};`+H}}class c extends r{constructor(H){super(),this.label=H,this.names={}}render({_n:H}){return`${this.label}:`+H}}class d extends r{constructor(H){super(),this.label=H,this.names={}}render({_n:H}){return`break${this.label?` ${this.label}`:""};`+H}}class u extends r{constructor(H){super(),this.error=H}render({_n:H}){return`throw ${this.error};`+H}get names(){return this.error.names}}class h extends r{constructor(H){super(),this.code=H}render({_n:H}){return`${this.code};`+H}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(H,q){return this.code=L(this.code,H,q),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class f extends r{constructor(H=[]){super(),this.nodes=H}render(H){return this.nodes.reduce((q,oe)=>q+oe.render(H),"")}optimizeNodes(){const{nodes:H}=this;let q=H.length;for(;q--;){const oe=H[q].optimizeNodes();Array.isArray(oe)?H.splice(q,1,...oe):oe?H[q]=oe:H.splice(q,1)}return H.length>0?this:void 0}optimizeNames(H,q){const{nodes:oe}=this;let X=oe.length;for(;X--;){const G=oe[X];G.optimizeNames(H,q)||(N(H,G.names),oe.splice(X,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((H,q)=>x(H,q.names),{})}}class g extends f{render(H){return"{"+H._n+super.render(H)+"}"+H._n}}class p extends f{}class m extends g{}m.kind="else";class _ extends g{constructor(H,q){super(q),this.condition=H}render(H){let q=`if(${this.condition})`+super.render(H);return this.else&&(q+="else "+this.else.render(H)),q}optimizeNodes(){super.optimizeNodes();const H=this.condition;if(H===!0)return this.nodes;let q=this.else;if(q){const oe=q.optimizeNodes();q=this.else=Array.isArray(oe)?new m(oe):oe}if(q)return H===!1?q instanceof _?q:q.nodes:this.nodes.length?this:new _(A(H),q instanceof _?[q]:q.nodes);if(!(H===!1||!this.nodes.length))return this}optimizeNames(H,q){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(H,q),!!(super.optimizeNames(H,q)||this.else))return this.condition=L(this.condition,H,q),this}get names(){const H=super.names;return k(H,this.condition),this.else&&x(H,this.else.names),H}}_.kind="if";class v extends g{}v.kind="for";class b extends v{constructor(H){super(),this.iteration=H}render(H){return`for(${this.iteration})`+super.render(H)}optimizeNames(H,q){if(super.optimizeNames(H,q))return this.iteration=L(this.iteration,H,q),this}get names(){return x(super.names,this.iteration.names)}}class S extends v{constructor(H,q,oe,X){super(),this.varKind=H,this.name=q,this.from=oe,this.to=X}render(H){const q=H.es5?t.varKinds.var:this.varKind,{name:oe,from:X,to:G}=this;return`for(${q} ${oe}=${X}; ${oe}<${G}; ${oe}++)`+super.render(H)}get names(){const H=k(super.names,this.from);return k(H,this.to)}}class y extends v{constructor(H,q,oe,X){super(),this.loop=H,this.varKind=q,this.name=oe,this.iterable=X}render(H){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(H)}optimizeNames(H,q){if(super.optimizeNames(H,q))return this.iterable=L(this.iterable,H,q),this}get names(){return x(super.names,this.iterable.names)}}class C extends g{constructor(H,q,oe){super(),this.name=H,this.args=q,this.async=oe}render(H){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(H)}}C.kind="func";class T extends f{render(H){return"return "+super.render(H)}}T.kind="return";class E extends g{render(H){let q="try"+super.render(H);return this.catch&&(q+=this.catch.render(H)),this.finally&&(q+=this.finally.render(H)),q}optimizeNodes(){var H,q;return super.optimizeNodes(),(H=this.catch)===null||H===void 0||H.optimizeNodes(),(q=this.finally)===null||q===void 0||q.optimizeNodes(),this}optimizeNames(H,q){var oe,X;return super.optimizeNames(H,q),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(H,q),(X=this.finally)===null||X===void 0||X.optimizeNames(H,q),this}get names(){const H=super.names;return this.catch&&x(H,this.catch.names),this.finally&&x(H,this.finally.names),H}}class I extends g{constructor(H){super(),this.error=H}render(H){return`catch(${this.error})`+super.render(H)}}I.kind="catch";class D extends g{render(H){return"finally"+super.render(H)}}D.kind="finally";class R{constructor(H,q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...q,_n:q.lines?`
998
998
  `:""},this._extScope=H,this._scope=new t.Scope({parent:H}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(H){return this._scope.name(H)}scopeName(H){return this._extScope.name(H)}scopeValue(H,q){const oe=this._extScope.value(H,q);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(H,q){return this._extScope.getValue(H,q)}scopeRefs(H){return this._extScope.scopeRefs(H,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(H,q,oe,X){const G=this._scope.toName(q);return oe!==void 0&&X&&(this._constants[G.str]=oe),this._leafNode(new o(H,G,oe)),G}const(H,q,oe){return this._def(t.varKinds.const,H,q,oe)}let(H,q,oe){return this._def(t.varKinds.let,H,q,oe)}var(H,q,oe){return this._def(t.varKinds.var,H,q,oe)}assign(H,q,oe){return this._leafNode(new a(H,q,oe))}add(H,q){return this._leafNode(new l(H,n.operators.ADD,q))}code(H){return typeof H=="function"?H():H!==e.nil&&this._leafNode(new h(H)),this}object(...H){const q=["{"];for(const[oe,X]of H)q.length>1&&q.push(","),q.push(oe),(oe!==X||this.opts.es5)&&(q.push(":"),(0,e.addCodeArg)(q,X));return q.push("}"),new e._Code(q)}if(H,q,oe){if(this._blockNode(new _(H)),q&&oe)this.code(q).else().code(oe).endIf();else if(q)this.code(q).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(H){return this._elseNode(new _(H))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(_,m)}_for(H,q){return this._blockNode(H),q&&this.code(q).endFor(),this}for(H,q){return this._for(new b(H),q)}forRange(H,q,oe,X,G=this.opts.es5?t.varKinds.var:t.varKinds.let){const ge=this._scope.toName(H);return this._for(new S(G,ge,q,oe),()=>X(ge))}forOf(H,q,oe,X=t.varKinds.const){const G=this._scope.toName(H);if(this.opts.es5){const ge=q instanceof e.Name?q:this.var("_arr",q);return this.forRange("_i",0,(0,e._)`${ge}.length`,ve=>{this.var(G,(0,e._)`${ge}[${ve}]`),oe(G)})}return this._for(new y("of",X,G,q),()=>oe(G))}forIn(H,q,oe,X=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(H,(0,e._)`Object.keys(${q})`,oe);const G=this._scope.toName(H);return this._for(new y("in",X,G,q),()=>oe(G))}endFor(){return this._endBlockNode(v)}label(H){return this._leafNode(new c(H))}break(H){return this._leafNode(new d(H))}return(H){const q=new T;if(this._blockNode(q),this.code(H),q.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(H,q,oe){if(!q&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new E;if(this._blockNode(X),this.code(H),q){const G=this.name("e");this._currNode=X.catch=new I(G),q(G)}return oe&&(this._currNode=X.finally=new D,this.code(oe)),this._endBlockNode(I,D)}throw(H){return this._leafNode(new u(H))}block(H,q){return this._blockStarts.push(this._nodes.length),H&&this.code(H).endBlock(q),this}endBlock(H){const q=this._blockStarts.pop();if(q===void 0)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-q;if(oe<0||H!==void 0&&oe!==H)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${H} expected`);return this._nodes.length=q,this}func(H,q=e.nil,oe,X){return this._blockNode(new C(H,q,oe)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(H=1){for(;H-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(H){return this._currNode.nodes.push(H),this}_blockNode(H){this._currNode.nodes.push(H),this._nodes.push(H)}_endBlockNode(H,q){const oe=this._currNode;if(oe instanceof H||q&&oe instanceof q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${q?`${H.kind}/${q.kind}`:H.kind}"`)}_elseNode(H){const q=this._currNode;if(!(q instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=q.else=H,this}get _root(){return this._nodes[0]}get _currNode(){const H=this._nodes;return H[H.length-1]}set _currNode(H){const q=this._nodes;q[q.length-1]=H}}n.CodeGen=R;function x(j,H){for(const q in H)j[q]=(j[q]||0)+(H[q]||0);return j}function k(j,H){return H instanceof e._CodeOrName?x(j,H.names):j}function L(j,H,q){if(j instanceof e.Name)return oe(j);if(!X(j))return j;return new e._Code(j._items.reduce((G,ge)=>(ge instanceof e.Name&&(ge=oe(ge)),ge instanceof e._Code?G.push(...ge._items):G.push(ge),G),[]));function oe(G){const ge=q[G.str];return ge===void 0||H[G.str]!==1?G:(delete H[G.str],ge)}function X(G){return G instanceof e._Code&&G._items.some(ge=>ge instanceof e.Name&&H[ge.str]===1&&q[ge.str]!==void 0)}}function N(j,H){for(const q in H)j[q]=(j[q]||0)-(H[q]||0)}function A(j){return typeof j=="boolean"||typeof j=="number"||j===null?!j:(0,e._)`!${W(j)}`}n.not=A;const F=P(n.operators.AND);function B(...j){return j.reduce(F)}n.and=B;const O=P(n.operators.OR);function M(...j){return j.reduce(O)}n.or=M;function P(j){return(H,q)=>H===e.nil?q:q===e.nil?H:(0,e._)`${W(H)} ${j} ${W(q)}`}function W(j){return j instanceof e.Name?j:(0,e._)`(${j})`}}(T8)),T8}var mn={},Sve;function fs(){if(Sve)return mn;Sve=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.checkStrictMode=mn.getErrorPath=mn.Type=mn.useFunc=mn.setEvaluated=mn.evaluatedPropsToName=mn.mergeEvaluated=mn.eachItem=mn.unescapeJsonPointer=mn.escapeJsonPointer=mn.escapeFragment=mn.unescapeFragment=mn.schemaRefOrVal=mn.schemaHasRulesButRef=mn.schemaHasRules=mn.checkUnknownRules=mn.alwaysValidSchema=mn.toHash=void 0;const n=xn(),e=kF();function t(y){const C={};for(const T of y)C[T]=!0;return C}mn.toHash=t;function i(y,C){return typeof C=="boolean"?C:Object.keys(C).length===0?!0:(s(y,C),!r(C,y.self.RULES.all))}mn.alwaysValidSchema=i;function s(y,C=y.schema){const{opts:T,self:E}=y;if(!T.strictSchema||typeof C=="boolean")return;const I=E.RULES.keywords;for(const D in C)I[D]||S(y,`unknown keyword: "${D}"`)}mn.checkUnknownRules=s;function r(y,C){if(typeof y=="boolean")return!y;for(const T in y)if(C[T])return!0;return!1}mn.schemaHasRules=r;function o(y,C){if(typeof y=="boolean")return!y;for(const T in y)if(T!=="$ref"&&C.all[T])return!0;return!1}mn.schemaHasRulesButRef=o;function a({topSchemaRef:y,schemaPath:C},T,E,I){if(!I){if(typeof T=="number"||typeof T=="boolean")return T;if(typeof T=="string")return(0,n._)`${T}`}return(0,n._)`${y}${C}${(0,n.getProperty)(E)}`}mn.schemaRefOrVal=a;function l(y){return u(decodeURIComponent(y))}mn.unescapeFragment=l;function c(y){return encodeURIComponent(d(y))}mn.escapeFragment=c;function d(y){return typeof y=="number"?`${y}`:y.replace(/~/g,"~0").replace(/\//g,"~1")}mn.escapeJsonPointer=d;function u(y){return y.replace(/~1/g,"/").replace(/~0/g,"~")}mn.unescapeJsonPointer=u;function h(y,C){if(Array.isArray(y))for(const T of y)C(T);else C(y)}mn.eachItem=h;function f({mergeNames:y,mergeToName:C,mergeValues:T,resultToName:E}){return(I,D,R,x)=>{const k=R===void 0?D:R instanceof n.Name?(D instanceof n.Name?y(I,D,R):C(I,D,R),R):D instanceof n.Name?(C(I,R,D),D):T(D,R);return x===n.Name&&!(k instanceof n.Name)?E(I,k):k}}mn.mergeEvaluated={props:f({mergeNames:(y,C,T)=>y.if((0,n._)`${T} !== true && ${C} !== undefined`,()=>{y.if((0,n._)`${C} === true`,()=>y.assign(T,!0),()=>y.assign(T,(0,n._)`${T} || {}`).code((0,n._)`Object.assign(${T}, ${C})`))}),mergeToName:(y,C,T)=>y.if((0,n._)`${T} !== true`,()=>{C===!0?y.assign(T,!0):(y.assign(T,(0,n._)`${T} || {}`),p(y,T,C))}),mergeValues:(y,C)=>y===!0?!0:{...y,...C},resultToName:g}),items:f({mergeNames:(y,C,T)=>y.if((0,n._)`${T} !== true && ${C} !== undefined`,()=>y.assign(T,(0,n._)`${C} === true ? true : ${T} > ${C} ? ${T} : ${C}`)),mergeToName:(y,C,T)=>y.if((0,n._)`${T} !== true`,()=>y.assign(T,C===!0?!0:(0,n._)`${T} > ${C} ? ${T} : ${C}`)),mergeValues:(y,C)=>y===!0?!0:Math.max(y,C),resultToName:(y,C)=>y.var("items",C)})};function g(y,C){if(C===!0)return y.var("props",!0);const T=y.var("props",(0,n._)`{}`);return C!==void 0&&p(y,T,C),T}mn.evaluatedPropsToName=g;function p(y,C,T){Object.keys(T).forEach(E=>y.assign((0,n._)`${C}${(0,n.getProperty)(E)}`,!0))}mn.setEvaluated=p;const m={};function _(y,C){return y.scopeValue("func",{ref:C,code:m[C.code]||(m[C.code]=new e._Code(C.code))})}mn.useFunc=_;var v;(function(y){y[y.Num=0]="Num",y[y.Str=1]="Str"})(v||(mn.Type=v={}));function b(y,C,T){if(y instanceof n.Name){const E=C===v.Num;return T?E?(0,n._)`"[" + ${y} + "]"`:(0,n._)`"['" + ${y} + "']"`:E?(0,n._)`"/" + ${y}`:(0,n._)`"/" + ${y}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return T?(0,n.getProperty)(y).toString():"/"+d(y)}mn.getErrorPath=b;function S(y,C,T=y.opts.strictSchema){if(T){if(C=`strict mode: ${C}`,T===!0)throw new Error(C);y.self.logger.warn(C)}}return mn.checkStrictMode=S,mn}var Ik={},yve;function q_(){if(yve)return Ik;yve=1,Object.defineProperty(Ik,"__esModule",{value:!0});const n=xn(),e={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};return Ik.default=e,Ik}var Cve;function i3(){return Cve||(Cve=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.extendErrors=n.resetErrorsCount=n.reportExtraError=n.reportError=n.keyword$DataError=n.keywordError=void 0;const e=xn(),t=fs(),i=q_();n.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},n.keyword$DataError={message:({keyword:m,schemaType:_})=>_?(0,e.str)`"${m}" keyword must be ${_} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function s(m,_=n.keywordError,v,b){const{it:S}=m,{gen:y,compositeRule:C,allErrors:T}=S,E=u(m,_,v);b??(C||T)?l(y,E):c(S,(0,e._)`[${E}]`)}n.reportError=s;function r(m,_=n.keywordError,v){const{it:b}=m,{gen:S,compositeRule:y,allErrors:C}=b,T=u(m,_,v);l(S,T),y||C||c(b,i.default.vErrors)}n.reportExtraError=r;function o(m,_){m.assign(i.default.errors,_),m.if((0,e._)`${i.default.vErrors} !== null`,()=>m.if(_,()=>m.assign((0,e._)`${i.default.vErrors}.length`,_),()=>m.assign(i.default.vErrors,null)))}n.resetErrorsCount=o;function a({gen:m,keyword:_,schemaValue:v,data:b,errsCount:S,it:y}){if(S===void 0)throw new Error("ajv implementation error");const C=m.name("err");m.forRange("i",S,i.default.errors,T=>{m.const(C,(0,e._)`${i.default.vErrors}[${T}]`),m.if((0,e._)`${C}.instancePath === undefined`,()=>m.assign((0,e._)`${C}.instancePath`,(0,e.strConcat)(i.default.instancePath,y.errorPath))),m.assign((0,e._)`${C}.schemaPath`,(0,e.str)`${y.errSchemaPath}/${_}`),y.opts.verbose&&(m.assign((0,e._)`${C}.schema`,v),m.assign((0,e._)`${C}.data`,b))})}n.extendErrors=a;function l(m,_){const v=m.const("err",_);m.if((0,e._)`${i.default.vErrors} === null`,()=>m.assign(i.default.vErrors,(0,e._)`[${v}]`),(0,e._)`${i.default.vErrors}.push(${v})`),m.code((0,e._)`${i.default.errors}++`)}function c(m,_){const{gen:v,validateName:b,schemaEnv:S}=m;S.$async?v.throw((0,e._)`new ${m.ValidationError}(${_})`):(v.assign((0,e._)`${b}.errors`,_),v.return(!1))}const d={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function u(m,_,v){const{createErrors:b}=m.it;return b===!1?(0,e._)`{}`:h(m,_,v)}function h(m,_,v={}){const{gen:b,it:S}=m,y=[f(S,v),g(m,v)];return p(m,_,y),b.object(...y)}function f({errorPath:m},{instancePath:_}){const v=_?(0,e.str)`${m}${(0,t.getErrorPath)(_,t.Type.Str)}`:m;return[i.default.instancePath,(0,e.strConcat)(i.default.instancePath,v)]}function g({keyword:m,it:{errSchemaPath:_}},{schemaPath:v,parentSchema:b}){let S=b?_:(0,e.str)`${_}/${m}`;return v&&(S=(0,e.str)`${S}${(0,t.getErrorPath)(v,t.Type.Str)}`),[d.schemaPath,S]}function p(m,{params:_,message:v},b){const{keyword:S,data:y,schemaValue:C,it:T}=m,{opts:E,propertyName:I,topSchemaRef:D,schemaPath:R}=T;b.push([d.keyword,S],[d.params,typeof _=="function"?_(m):_||(0,e._)`{}`]),E.messages&&b.push([d.message,typeof v=="function"?v(m):v]),E.verbose&&b.push([d.schema,C],[d.parentSchema,(0,e._)`${D}${R}`],[i.default.data,y]),I&&b.push([d.propertyName,I])}}(E8)),E8}var wve;function YMt(){if(wve)return pv;wve=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.boolOrEmptySchema=pv.topBoolOrEmptySchema=void 0;const n=i3(),e=xn(),t=q_(),i={message:"boolean schema is false"};function s(a){const{gen:l,schema:c,validateName:d}=a;c===!1?o(a,!1):typeof c=="object"&&c.$async===!0?l.return(t.default.data):(l.assign((0,e._)`${d}.errors`,null),l.return(!0))}pv.topBoolOrEmptySchema=s;function r(a,l){const{gen:c,schema:d}=a;d===!1?(c.var(l,!1),o(a)):c.var(l,!0)}pv.boolOrEmptySchema=r;function o(a,l){const{gen:c,data:d}=a,u={gen:c,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,n.reportError)(u,i,void 0,l)}return pv}var ra={},mv={},Eve;function WMe(){if(Eve)return mv;Eve=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.getRules=mv.isJSONType=void 0;const n=["string","number","integer","boolean","null","object","array"],e=new Set(n);function t(s){return typeof s=="string"&&e.has(s)}mv.isJSONType=t;function i(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return mv.getRules=i,mv}var ng={},Tve;function UMe(){if(Tve)return ng;Tve=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.shouldUseRule=ng.shouldUseGroup=ng.schemaHasRulesForType=void 0;function n({schema:i,self:s},r){const o=s.RULES.types[r];return o&&o!==!0&&e(i,o)}ng.schemaHasRulesForType=n;function e(i,s){return s.rules.some(r=>t(i,r))}ng.shouldUseGroup=e;function t(i,s){var r;return i[s.keyword]!==void 0||((r=s.definition.implements)===null||r===void 0?void 0:r.some(o=>i[o]!==void 0))}return ng.shouldUseRule=t,ng}var Ive;function AF(){if(Ive)return ra;Ive=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.reportTypeError=ra.checkDataTypes=ra.checkDataType=ra.coerceAndCheckDataType=ra.getJSONTypes=ra.getSchemaTypes=ra.DataType=void 0;const n=WMe(),e=UMe(),t=i3(),i=xn(),s=fs();var r;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(r||(ra.DataType=r={}));function o(v){const b=a(v.type);if(b.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&b.push("null")}return b}ra.getSchemaTypes=o;function a(v){const b=Array.isArray(v)?v:v?[v]:[];if(b.every(n.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}ra.getJSONTypes=a;function l(v,b){const{gen:S,data:y,opts:C}=v,T=d(b,C.coerceTypes),E=b.length>0&&!(T.length===0&&b.length===1&&(0,e.schemaHasRulesForType)(v,b[0]));if(E){const I=g(b,y,C.strictNumbers,r.Wrong);S.if(I,()=>{T.length?u(v,b,T):m(v)})}return E}ra.coerceAndCheckDataType=l;const c=new Set(["string","number","integer","boolean","null"]);function d(v,b){return b?v.filter(S=>c.has(S)||b==="array"&&S==="array"):[]}function u(v,b,S){const{gen:y,data:C,opts:T}=v,E=y.let("dataType",(0,i._)`typeof ${C}`),I=y.let("coerced",(0,i._)`undefined`);T.coerceTypes==="array"&&y.if((0,i._)`${E} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>y.assign(C,(0,i._)`${C}[0]`).assign(E,(0,i._)`typeof ${C}`).if(g(b,C,T.strictNumbers),()=>y.assign(I,C))),y.if((0,i._)`${I} !== undefined`);for(const R of S)(c.has(R)||R==="array"&&T.coerceTypes==="array")&&D(R);y.else(),m(v),y.endIf(),y.if((0,i._)`${I} !== undefined`,()=>{y.assign(C,I),h(v,I)});function D(R){switch(R){case"string":y.elseIf((0,i._)`${E} == "number" || ${E} == "boolean"`).assign(I,(0,i._)`"" + ${C}`).elseIf((0,i._)`${C} === null`).assign(I,(0,i._)`""`);return;case"number":y.elseIf((0,i._)`${E} == "boolean" || ${C} === null
999
999
  || (${E} == "string" && ${C} && ${C} == +${C})`).assign(I,(0,i._)`+${C}`);return;case"integer":y.elseIf((0,i._)`${E} === "boolean" || ${C} === null
1000
1000
  || (${E} === "string" && ${C} && ${C} == +${C} && !(${C} % 1))`).assign(I,(0,i._)`+${C}`);return;case"boolean":y.elseIf((0,i._)`${C} === "false" || ${C} === 0 || ${C} === null`).assign(I,!1).elseIf((0,i._)`${C} === "true" || ${C} === 1`).assign(I,!0);return;case"null":y.elseIf((0,i._)`${C} === "" || ${C} === 0 || ${C} === false`),y.assign(I,null);return;case"array":y.elseIf((0,i._)`${E} === "string" || ${E} === "number"
@@ -1119,4 +1119,4 @@ ${s}
1119
1119
  a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},-${n.maskBorderRadius}z`);Ya(B=>{if(p.value){const O=Cm(p.value),M=j=>{if(j.sourceEvent.type!=="wheel"||!h.value||!f.value)return;const H=-j.sourceEvent.deltaY*(j.sourceEvent.deltaMode===1?.05:j.sourceEvent.deltaMode?1:.002)*n.zoomStep,q=l.value.zoom*2**H;f.value.scaleTo(h.value,q)},P=j=>{if(j.sourceEvent.type!=="mousemove"||!h.value||!f.value)return;const H=I.value*Math.max(1,l.value.zoom)*(n.inversePan?-1:1),q={x:l.value.x-j.sourceEvent.movementX*H,y:l.value.y-j.sourceEvent.movementY*H},oe=[[0,0],[d.value.width,d.value.height]],X=ise.translate(q.x,q.y).scale(l.value.zoom),G=f.value.constrain()(X,oe,c.value);f.value.transform(h.value,G)},W=E9t().on("zoom",n.pannable?P:()=>{}).on("zoom.wheel",n.zoomable?M:()=>{});O.call(W),B(()=>{O.on("zoom",null)})}},{flush:"post"});function x(B){const[O,M]=Jp(B);e("click",{event:B,position:{x:O,y:M}})}function k(B,O){const M={event:B,node:O,connectedEdges:Jv([O],a.value)};u.miniMapNodeClick(M),e("nodeClick",M)}function L(B,O){const M={event:B,node:O,connectedEdges:Jv([O],a.value)};u.miniMapNodeDoubleClick(M),e("nodeDblclick",M)}function N(B,O){const M={event:B,node:O,connectedEdges:Jv([O],a.value)};u.miniMapNodeMouseEnter(M),e("nodeMouseenter",M)}function A(B,O){const M={event:B,node:O,connectedEdges:Jv([O],a.value)};u.miniMapNodeMouseMove(M),e("nodeMousemove",M)}function F(B,O){const M={event:B,node:O,connectedEdges:Jv([O],a.value)};u.miniMapNodeMouseLeave(M),e("nodeMouseleave",M)}return(B,O)=>(Te(),Ze(se(MQ),{position:B.position,class:ba(["vue-flow__minimap",{pannable:B.pannable,zoomable:B.zoomable}])},{default:Me(()=>[(Te(),lt("svg",{ref_key:"el",ref:p,width:m.value,height:_.value,viewBox:[D.value.x,D.value.y,D.value.width,D.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${se(o)}`,onClick:x},[B.ariaLabel?(Te(),lt("title",{key:0,id:`vue-flow__minimap-${se(o)}`},Bi(B.ariaLabel),9,R9t)):Rt("",!0),(Te(!0),lt(vt,null,Xo(se(g),M=>(Te(),Ze(L9t,{id:M.id,key:M.id,position:M.computedPosition,dimensions:M.dimensions,selected:M.selected,dragging:M.dragging,style:uo(M.style),class:ba(y.value(M)),color:b.value(M),"border-radius":B.nodeBorderRadius,"stroke-color":S.value(M),"stroke-width":B.nodeStrokeWidth,"shape-rendering":se(v),type:M.type,hidden:M.hidden,onClick:P=>k(P,M),onDblclick:P=>L(P,M),onMouseenter:P=>N(P,M),onMousemove:P=>A(P,M),onMouseleave:P=>F(P,M)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","hidden","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),Si("path",{class:"vue-flow__minimap-mask",d:R.value,fill:B.maskColor,stroke:B.maskStrokeColor,"stroke-width":B.maskStrokeWidth,"fill-rule":"evenodd"},null,8,D9t)],8,x9t))]),_:1},8,["position","class"]))}});function _Fe(n,e=!1){const t=xo(new Map),i=xo(new Map),s=L=>{const N=i.get(L.type)??[];i.set(L.type,[...N,L])},r=L=>{const N=i.get(L.type)??[];i.set(L.type,N.filter(A=>A.id!==L.id))},o=()=>({connectable:!e,deletable:!e,selectable:!e}),a=(L,N,A)=>{const F={id:N??TD(),type:A??"component",data:{instance:L},position:L.position??{x:0,y:0},...o()};return n.addNodes(F),t.set(L.id,F.id),s(L),F},l=L=>{n.addNodes({id:L.id,type:"hub",data:{hub:L},position:L.position,...o()})},c=()=>({animated:!0,updatable:!e,deletable:!e,selectable:!1,focusable:!1,data:{}}),d=L=>{const N=t.get(L);return N||K_.warn({msg:"could not find node id for instance",instanceId:L}),N},u=(L,N,A)=>{const F=d(A.instanceId);if(!F)return;const B=d(L.id);B&&n.addEdges({id:`${A.instanceId}:${A.output}->${L.id}:${N}`,type:"custom",source:F,sourceHandle:A.output,target:B,targetHandle:N,...c()})},h=L=>{for(const[N,A]of Object.entries(L.inputs??{}))for(const F of A)u(L,N,F)},f=(L,N,A)=>{const F=d(L.id);F&&n.addEdges({id:`${L.id}:${A.output}->outputs:${N}`,type:"custom",source:F,sourceHandle:A.output,target:"outputs",targetHandle:N,...c()})},g=(L,N,A)=>{const F=d(L.id);F&&n.addEdges({id:`${A.hubId}->${L.id}:${N}`,type:"custom",source:A.hubId,target:F,targetHandle:N,...c()})},p=L=>{for(const[N,A]of Object.entries(L.hubInputs??{}))for(const F of A)g(L,N,F)},m=(L,N)=>{const A=d(L.id);A&&n.addEdges({id:`${N.hubId}->${L.id}`,type:"custom",source:N.hubId,target:A,...c()})},_=L=>{for(const N of L.injectionInputs??[])m(L,N)},v=L=>{h(L),p(L),_(L)},b=(L,N)=>{const A=d(N.instanceId);A&&n.addEdges({id:`${N.instanceId}:${N.output}->${L.id}`,type:"custom",source:A,sourceHandle:N.output,target:L.id,...c()})},S=L=>{for(const N of L.inputs??[])b(L,N)},y=(L,N)=>{n.addEdges({id:`${N.hubId}->${L.id}`,type:"custom",source:N.hubId,target:L.id,...c()})},C=L=>{for(const N of L.injectionInputs??[])y(L,N)};return{instanceIdToNodeIdMap:t,createNodeFromInstance:a,createNodeFromHub:l,createEdgesForInstance:v,createEdgesForHub:L=>{S(L),C(L)},createEdgeForInstanceInput:u,createEdgeForInstanceOutput:f,createEdgeForInstanceHubInput:g,createEdgeForInstanceInjectionInput:m,createEdgeForHubInput:b,createEdgeForHubInjectionInput:y,removeNodeForInstance:L=>{const N=t.get(L.id);N&&(n.removeNodes(N),t.delete(L.id),r(L))},removeEdgeForInstanceInput:(L,N,A)=>{n.removeEdges(`${A.instanceId}:${A.output}->${L.id}:${N}`)},removeEdgeForInstanceHubInput:(L,N,A)=>{n.removeEdges(`${A.hubId}->${L.id}:${N}`)},removeEdgeForInstanceInjectionInput:(L,N)=>{n.removeEdges(`${N.hubId}->${L.id}`)},removeEdgeForHubInput:(L,N)=>{n.removeEdges(`${N.instanceId}:${N.output}->${L.id}`)},removeEdgeForHubInjectionInput:(L,N)=>{n.removeEdges(`${N.hubId}->${L.id}`)}}}function k9t(n){return new Worker(""+new URL("edge-router-BFNVMcBx.js",import.meta.url).href,{type:"module",name:n?.name})}const{onMessage:A9t,postMessage:L9,onError:O9t}=a3(k9t);function vFe(n){const e=TD(),t=Ne(!1),i=async g=>{await lf(t).toBe(!0),L9(g)},s=g=>{const{computedPosition:{x:p,y:m},dimensions:{width:_,height:v}}=g;return!_||!v?null:{id:g.id,x:p,y:m,width:_,height:v}},r=g=>({id:g.id,source:g.source,target:g.target,sourceX:g.sourceX,sourceY:g.sourceY,targetX:g.targetX,targetY:g.targetY}),o=g=>{const p=s(g);p&&i({type:"update-shape",routerId:e,shape:p})},a=g=>{i({type:"remove-shape",routerId:e,shapeId:g})},l=g=>{i({type:"add-edge",routerId:e,edge:r(g)})},c=g=>{i({type:"update-edge",routerId:e,edge:r(g)})},d=g=>{i({type:"remove-edge",routerId:e,edgeId:g})},u=Uw(()=>{i({type:"process-transaction",routerId:e})},100);n.onNodeDrag(g=>{for(const p of g.nodes)o(p);u()}),n.onNodesChange(g=>{let p=!1;const m=new Set;for(const _ of g)if(_.type==="position"||_.type==="dimensions"){const v=n.findNode(_.id);o(v);const b=n.getConnectedEdges(_.id);for(const S of b)c(S);p=!0,m.add(_.id)}else _.type==="remove"&&(a(_.id),p=!0);p&&(u(),Ki(()=>{for(const _ of m){const v=n.findNode(_);o(v);const b=n.getConnectedEdges(_);for(const S of b)c(S)}u()}))}),n.onEdgesChange(g=>{let p=!1;for(const m of g)m.type==="add"?Ki(()=>{const _=n.findEdge(m.item.id);l(_),u()}):m.type==="remove"&&(d(m.id),p=!0);p&&u()}),A9t(g=>{if(g.routerId===e)switch(g.type){case"router-ready":{t.value=!0;break}case"edge-path-updated":{n.updateEdgeData(g.edgeId,{points:g.points});break}}}),O9t(()=>{t.value=!1}),nr(()=>{K_.debug({routerId:e},"disposing edge router"),t.value&&L9({type:"dispose-router",routerId:e})});const h=n.nodes.value.map(g=>s(g)).filter(Boolean),f=n.edges.value.map(g=>r(g));L9({type:"create-router",routerId:e,shapes:h,edges:f})}const bFe=Op({name:"project-panel",getStoreId:n=>`projects/${n}/panel`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Zd(n,()=>{const{instancesStore:s,projectStore:r}=ud(),{$client:o}=Ps(),a=Xn(`projects/${e}`),l=Uw(async L=>{await o.workspace.setProjectViewport.mutate({projectId:e,viewport:L})},1e3);a.onViewportChange(l);const{instanceIdToNodeIdMap:c,createNodeFromInstance:d,createNodeFromHub:u,createEdgesForInstance:h,createEdgesForHub:f,createEdgeForInstanceInput:g,createEdgeForInstanceHubInput:p,createEdgeForInstanceInjectionInput:m,createEdgeForHubInput:_,createEdgeForHubInjectionInput:v,removeEdgeForInstanceInput:b,removeEdgeForInstanceHubInput:S,removeEdgeForInstanceInjectionInput:y,removeEdgeForHubInput:C,removeEdgeForHubInjectionInput:T}=_Fe(a),E=async()=>{const[L]=await Promise.all([o.workspace.getProjectViewport.query({projectId:e}),r.ensureInitialized()]);L&&(a.defaultViewport.value=L);for(const N of s.instances.values())d(N);for(const N of s.hubs.values())u(N);for(const N of s.instances.values())h(N);for(const N of s.hubs.values())f(N);lf(a.areNodesInitialized).toBe(!0).then(()=>vFe(a))},I=L=>{L.data.instance.parentId||L.data.instance.position?.x===L.position.x&&L.data.instance.position?.y===L.position.y||(L.data.instance.position=L.position,s.patchInstance(L.data.instance,["position"]))},D=L=>{L.data.hub.position?.x===L.position.x&&L.data.hub.position?.y===L.position.y||(L.data.hub.position=L.position,s.patchHub(L.data.hub,["position"]))};a.onNodeDragStop(({node:L})=>{L.type==="component"?I(L):L.type==="hub"&&D(L)});const R=L=>{const{inputInstance:N,outputInstance:A,inputHub:F,outputHub:B,outputKey:O,inputKey:M}=XF(a,L);if(N&&A)return s.addInstanceInput(N,M,{instanceId:A.id,output:O});if(B&&N&&M)return s.addInstanceHubInput(N,M,{hubId:B.id});if(B&&N)return s.addInstanceInjectionInput(N,{hubId:B.id});if(A&&F)return s.addHubInput(F,{instanceId:A.id,output:O});if(B&&F)return s.addHubInjectionInput(F,{hubId:B.id});throw t.error({msg:"unexpected connection while adding",connection:L,inputInstance:N,outputInstance:A,inputHub:F,outputHub:B,outputKey:O,inputKey:M}),new Error("Invalid connection")},x=L=>{const{inputInstance:N,outputInstance:A,inputHub:F,outputHub:B,outputKey:O,inputKey:M}=XF(a,L);if(N&&A)return s.removeInstanceInput(N,M,{instanceId:A.id,output:O});if(B&&N&&M)return s.removeInstanceHubInput(N,M,{hubId:B.id});if(B&&N)return s.removeInstanceInjectionInput(N,{hubId:B.id});if(A&&F)return s.removeHubInput(F,{instanceId:A.id,output:O});if(B&&F)return s.removeHubInjectionInput(F,{hubId:B.id});throw t.error({msg:"unexpected connection while removing",edge:L,inputInstance:N,outputInstance:A,inputHub:F,outputHub:B,outputKey:O,inputKey:M}),new Error("Invalid connection")};a.onConnect(R);let k=!1;return a.onEdgeUpdate(async({edge:L,connection:N})=>{k=!0,await x(L),await R(N)}),a.onEdgeUpdateEnd(async({edge:L})=>{try{if(k)return;await x(L)}finally{k=!1}}),s.onInstanceInputAdded(({instance:L,inputName:N,input:A})=>{g(L,N,A)}),s.onInstanceHubInputAdded(({instance:L,inputName:N,input:A})=>{p(L,N,A)}),s.onInstanceInjectionInputAdded(({instance:L,input:N})=>{m(L,N)}),s.onHubInputAdded(({hub:L,input:N})=>{_(L,N)}),s.onHubInjectionInputAdded(({hub:L,input:N})=>{v(L,N)}),s.onInstanceInputRemoved(({instance:L,inputName:N,input:A})=>{b(L,N,A)}),s.onInstanceHubInputRemoved(({instance:L,inputName:N,input:A})=>{S(L,N,A)}),s.onInstanceInjectionInputRemoved(({instance:L,input:N})=>{y(L,N)}),s.onHubInputRemoved(({hub:L,input:N})=>{C(L,N)}),s.onHubInjectionInputRemoved(({hub:L,input:N})=>{T(L,N)}),s.onInstanceNameChanged(({oldId:L,newId:N})=>{const A=c.get(L);c.set(N,A),c.delete(L),a.updateNodeData(A,{})}),s.onInstanceCreated(async L=>{const N=d(L);await lf(a.areNodesInitialized).toBe(!0),a.updateNode(N.id,A=>{const F={x:A.position.x-A.dimensions.width/2,y:A.position.y-A.dimensions.height/2};return L.position=F,{position:F}})}),s.onInstanceDeleted(L=>{const N=c.get(L);N&&(a.removeNodes(N),c.delete(L))}),s.onHubCreated(async L=>{u(L),await lf(a.areNodesInitialized).toBe(!0),a.updateNode(L.id,N=>{const A={x:N.position.x-N.dimensions.width/2,y:N.position.y-N.dimensions.height/2};return L.position=A,{position:A}})}),s.onHubDeleted(L=>{a.removeNodes(L)}),i(()=>{a.$destroy()}),{initialize:E,instanceIdToNodeIdMap:c}})}),M9t=Et({__name:"ProjectCanvas",async setup(n){let e,t;const i=bFe(),{instancesStore:s}=ud();[e,t]=mX(()=>i.initialize()),await e,t();const{screenToFlowCoordinate:r}=Xn(),o=l=>{l.preventDefault(),l.dataTransfer&&(!l.dataTransfer.types.includes("componentType")&&!l.dataTransfer.types.includes("isHub")||(l.dataTransfer.dropEffect="move"))},a=l=>{if(l.preventDefault(),!l.dataTransfer)return;const c=r({x:l.clientX,y:l.clientY});if(l.dataTransfer.getData("isHub")){s.createHub(c);return}const u=l.dataTransfer.getData("componentType");s.createInstance(u,c)};return(l,c)=>{const d=B2e,u=MUt,h=V2e,f=VUt,g=UUt,p=zUt;return Te(),Ze(p,null,{default:Me(()=>[Si("div",{class:"vue-flow-container",onDrop:a},[K(se(_2e),{"min-zoom":.5,"max-zoom":1,"snap-to-grid":!0,onDragover:o},{"node-component":Me(m=>[K(d,$t(m,{editable:!0}),null,16)]),"node-hub":Me(m=>[K(u,OI(WI(m)),null,16)]),"edge-custom":Me(m=>[K(h,OI(WI(m)),null,16)]),default:Me(()=>[K(se($2e),{"pattern-color":"#aaa",gap:32}),K(se(mFe),{position:"top-right"}),K(se(MQ),{position:"bottom-right"},{default:Me(()=>[K(f)]),_:1}),K(se(MQ),{position:"bottom-left"},{default:Me(()=>[K(g)]),_:1})]),_:1})],32)]),_:1})}}}),P9t=Gs(M9t,[["__scopeId","data-v-3691cd45"]]),F9t={key:1,class:"password-prompt-container"},B9t=Et({__name:"ProjectPanel",props:{params:{}},setup(n){const e=hR("passwordField"),t=Ne(!1),i=Ne(!1),s=Ne(""),r=Ne(null),o=Ne(!1),{secretsStore:a}=uPe(n.params.params.projectId);bFe(n.params.params.projectId);const l=async()=>{await a.checkIsLocked()?(t.value=!1,i.value=!0):t.value=!0};sr(async()=>{await l(),e.value?.textField?.focus()}),rt(s,()=>{r.value=null});const c=async()=>{o.value=!0;try{await a.unlock(s.value)?t.value=!0:r.value="The password is incorrect"}catch(u){console.error(u),u instanceof Error?r.value=`Something went wrong: ${u.message}`:r.value="Something went wrong"}finally{o.value=!1}},d=ue(()=>[u=>!!u||"Password is required"]);return(u,h)=>{const f=P9t,g=v0e;return se(t)?(Te(),Ze(bX,{key:0},{default:Me(()=>[K(f)]),_:1})):se(i)?(Te(),lt("div",F9t,[K(ia,{width:"460",variant:"text"},{default:Me(()=>[K(vc,null,{default:Me(()=>[K(lZ,{class:"text-h6 text-center"},{default:Me(()=>h[1]||(h[1]=[ni("The project is locked")])),_:1}),K(g,{ref_key:"passwordField",ref:e,modelValue:se(s),"onUpdate:modelValue":h[0]||(h[0]=p=>hi(s)?s.value=p:null),class:"mt-4",label:"Password",hint:"Enter the password to unlock the project","persistent-hint":"",rules:se(d),"error-messages":se(r)?[se(r)]:[],onKeydown:$5e(c,["enter"])},null,8,["modelValue","rules","error-messages"])]),_:1}),K(ch,null,{default:Me(()=>[K($d),K(as,{loading:se(o),disabled:se(o),click:"unlock"},{default:Me(()=>h[2]||(h[2]=[ni("Unlock")])),_:1},8,["loading","disabled"])]),_:1})]),_:1})])):Rt("",!0)}}}),H9t=Gs(B9t,[["__scopeId","data-v-64442096"]]),SFe=Et({__name:"ContentUpdateOverlay",props:{visible:{type:Boolean},text:{}},setup(n){return(e,t)=>(Te(),Ze(np,{"model-value":e.visible,class:"align-center justify-center",persistent:"",contained:""},{default:Me(()=>[K(ia,null,{default:Me(()=>[K(vc,{class:"text-overline"},{default:Me(()=>[ni(Bi(e.text),1)]),_:1}),K(xB,{indeterminate:"",height:4,color:"primary",class:"w-full"})]),_:1})]),_:1},8,["model-value"]))}}),V9t=Et({__name:"CompositeIONode",props:{instance:{},type:{}},setup(n){const e=Gf(),t=ue(()=>n.type==="inputs"?"Inputs":"Outputs"),i=ue(()=>e.components[n.instance.type]);return(s,r)=>{const o=v2e,a=Kne;return Te(),Ze(a,{component:se(i),subtitle:se(t),style:{overflow:"visible"}},{default:Me(()=>[K(o,{instance:s.instance,type:s.type,mirror:!0},null,8,["instance","type"])]),_:1},8,["component","subtitle"])}}}),W9t=new Error("request for lock canceled");var U9t=function(n,e,t,i){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(d){try{c(i.next(d))}catch(u){o(u)}}function l(d){try{c(i.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class $9t{constructor(e,t=W9t){this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}acquire(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((i,s)=>{const r={resolve:i,reject:s,weight:e,priority:t},o=yFe(this._queue,a=>t<=a.priority);o===-1&&e<=this._value?this._dispatchItem(r):this._queue.splice(o+1,0,r)})}runExclusive(e){return U9t(this,arguments,void 0,function*(t,i=1,s=0){const[r,o]=yield this.acquire(i,s);try{return yield t(r)}finally{o()}})}waitForUnlock(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(i=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),z9t(this._weightedWaiters[e-1],{resolve:i,priority:t})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach(e=>e.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let e=this._value;e>0;e--){const t=this._weightedWaiters[e-1];t&&(t.forEach(i=>i.resolve()),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let t=this._value;t>0;t--){const i=this._weightedWaiters[t-1];if(!i)continue;const s=i.findIndex(r=>r.priority<=e);(s===-1?i:i.splice(0,s)).forEach(r=>r.resolve())}}}_couldLockImmediately(e,t){return(this._queue.length===0||this._queue[0].priority<t)&&e<=this._value}}function z9t(n,e){const t=yFe(n,i=>e.priority<=i.priority);n.splice(t+1,0,e)}function yFe(n,e){for(let t=n.length-1;t>=0;t--)if(e(n[t]))return t;return-1}var G9t=function(n,e,t,i){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(d){try{c(i.next(d))}catch(u){o(u)}}function l(d){try{c(i.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class q9t{constructor(e){this._semaphore=new $9t(1,e)}acquire(){return G9t(this,arguments,void 0,function*(e=0){const[,t]=yield this._semaphore.acquire(1,e);return t})}runExclusive(e,t=0){return this._semaphore.runExclusive(()=>e(),1,t)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(e=0){return this._semaphore.waitForUnlock(1,e)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}const nse=Op({name:"composite-instance",getStoreId:(n,e)=>`projects/${n}/instances/${e}`,create:({storeId:n,id:[e,t],onDeactivated:i})=>Zd(n,()=>{const s=Ne(0),r=ue(()=>a(s.value)),o=ue(()=>a(s.value+1)),a=C=>`projects/${e}/instances/${t}/versions/${C}`,l=Gt(new Map),{$client:c}=Ps(),{instancesStore:d,projectStore:u}=ud(),h=ue(()=>d.isCompositeInstanceEvaluating(t)),f=Ne(!1);rt(h,C=>{C&&(f.value=!0)});const g=ue(()=>d.compositeInstances.get(t)),p=ue(()=>d.instances.get(t)??d.compositeInstances.get(t)?.instance),m=Ne(null),_=new q9t,v=async C=>{const T=Xn(r.value),E=Xn(o.value);m.value&&(E.defaultViewport.value=m.value);const{instanceIdToNodeIdMap:I,createNodeFromInstance:D,createEdgesForInstance:R,createEdgeForInstanceOutput:x}=_Fe(E,!0);l.value=new Map,l.value.set(C.instance.id,C.instance);for(const k of C.children)l.value.set(k.id,k);D(C.instance,"inputs","inputs");for(const k of C.children)D(k,k.id);for(const k of C.children)R(k);if(C.instance.outputs&&Object.keys(C.instance.outputs).length>0){D(C.instance,"outputs","outputs"),I.set(C.instance.id,"inputs");for(const[k,L]of Object.entries(C.instance.outputs))for(const N of L){const A=l.value.get(N.instanceId);A&&x(A,k,N)}}await lf(E.areNodesInitialized).toBe(!0),K_.debug("layouting nodes"),await bUt(E),await Ki(),vFe(E),await Ki(),console.log("nodes",E.nodes.value.map(k=>k.id)),s.value+=1,await Ki(),E.onViewportChange(k=>{m.value=k,y(k)}),T.$destroy(),f.value=!1},b=Uw(async C=>{await _.runExclusive(async()=>{await v(C)})},100),S=async()=>{const[C]=await Promise.all([c.workspace.getInstanceViewport.query({projectId:e,instanceId:t}),u.ensureInitialized()]);C&&(m.value=C);const T=d.compositeInstances.get(t);T&&v(T),d.onCompositeInstanceUpdated(E=>{E.instance.id===t&&b(E)})},y=Uw(async C=>{await c.workspace.setInstanceViewport.mutate({projectId:e,instanceId:t,viewport:C})},1e3);return i(()=>{Xn(r.value).$destroy()}),{initialize:S,compositeInstance:g,instance:p,isEvaluating:f,version:s,currentVueFlowStoreId:r,nextVueFlowStoreId:o}})}),K9t={class:"vue-flow-container"},j9t=Et({__name:"CompositeInstanceCanvas",props:{storeId:{}},setup(n){const{instancesStore:e}=ud(),t=nse();return(i,s)=>{const r=B2e,o=F2e,a=V2e,l=V9t;return Te(),lt("div",K9t,[K(se(_2e),{id:i.storeId,"min-zoom":.5,"max-zoom":1,"snap-to-grid":!0},{"node-component":Me(c=>[K(r,$t(c,{editable:!1}),null,16)]),"node-inputs":Me(c=>[se(t).instance?(Te(),Ze(o,$t({key:0},c,{instance:se(t).instance,editable:se(e).instances.has(se(t).instance.id),"io-type":"inputs","io-mirror":!0,"hide-show-composite":!0}),null,16,["instance","editable"])):Rt("",!0)]),"edge-custom":Me(c=>[K(a,OI(WI(c)),null,16)]),"node-outputs":Me(c=>[se(t).instance?(Te(),Ze(l,$t({key:0},c,{instance:se(t).instance,type:"outputs"}),null,16,["instance"])):Rt("",!0)]),default:Me(()=>[K(se($2e),{"pattern-color":"#aaa",gap:32}),K(se(mFe),{pannable:"",zoomable:"",position:"top-right"})]),_:1},8,["id"])])}}}),Vye=Gs(j9t,[["__scopeId","data-v-83026dae"]]),Y9t=Et({__name:"CompositeInstanceContainer",async setup(n){let e,t;const i=nse();return[e,t]=mX(()=>i.initialize()),await e,t(),(s,r)=>{const o=SFe;return Te(),lt(vt,null,[K(o,{visible:se(i).isEvaluating,text:"Recalculating instance structure"},null,8,["visible"]),(Te(),Ze(Fw(Vye),{key:se(i).currentVueFlowStoreId,"store-id":se(i).currentVueFlowStoreId},null,8,["store-id"])),(Te(),Ze(Fw(Vye),{key:se(i).nextVueFlowStoreId,"store-id":se(i).nextVueFlowStoreId},null,8,["store-id"]))],64)}}}),Q9t=Et({__name:"CompositeInstancePanel",props:{params:{}},setup(n){return uPe(n.params.params.projectId),nse(n.params.params.projectId,n.params.params.instanceId),(e,t)=>{const i=Y9t;return Te(),Ze(bX,null,{default:Me(()=>[K(i)]),_:1})}}}),X9t=Et({__name:"ComponentTemplate",props:{component:{}},setup(n){const e=t=>{t.dataTransfer.setData("componentType",n.component.type)};return(t,i)=>{const s=Kne;return Te(),lt("div",{draggable:"true",style:{cursor:"grab"},onDragstart:e},[K(s,{component:t.component,text:t.component.meta.description},null,8,["component","text"])],32)}}}),Z9t={class:"d-flex flex-column pl-4 pr-4 gr-4 sidebar-container"},J9t={class:"d-flex flex-column align-center gr-4 component-list-container"},e7t={class:"text-uppercase text-disabled"},t7t={key:0,class:"text-center text-uppercase text-disabled"},i7t={key:0,class:"mb-2 text-center text-uppercase text-disabled"},n7t=Et({__name:"ComponentList",setup(n){const e=Gf(),t=ue(()=>uQ(e.filteredComponents,MMt(i=>i.meta.category??"Uncategorized"),i=>Object.entries(i),hve(([i])=>i==="Uncategorized"?"z":i),kMt(([i,s])=>[i,hve(s,r=>r.meta.displayName??r.type)])));return(i,s)=>{const r=SFe,o=X9t;return Te(),lt(vt,null,[K(r,{visible:se(e).isReloading,text:"Reloading library"},null,8,["visible"]),Si("div",Z9t,[K(bf,{modelValue:se(e).search,"onUpdate:modelValue":s[0]||(s[0]=a=>se(e).search=a),class:"search",variant:"outlined",density:"compact",placeholder:"Search components","hide-details":""},null,8,["modelValue"]),Si("div",J9t,[(Te(!0),lt(vt,null,Xo(se(t),([a,l])=>(Te(),lt("div",{key:a,class:"d-flex flex-column gr-4"},[Si("div",e7t,Bi(a)+" ("+Bi(l.length)+")",1),(Te(!0),lt(vt,null,Xo(l,c=>(Te(),Ze(o,{key:c.type,component:c},null,8,["component"]))),128))]))),128)),se(e).filteredComponents.length===0?(Te(),lt("div",t7t," No components found ")):Rt("",!0)]),se(e).filteredComponents.length>0?(Te(),lt("div",i7t," Found "+Bi(se(e).filteredComponents.length)+" component(s) ",1)):Rt("",!0)])],64)}}}),s7t=Gs(n7t,[["__scopeId","data-v-dbbc4689"]]);var x9={exports:{}},Wye;function r7t(){return Wye||(Wye=1,function(n,e){(function(t,i){n.exports=i()})(self,()=>(()=>{var t={};return(()=>{var i=t;function s(r,o,a){return r.addEventListener(o,a),{dispose:()=>{a&&r.removeEventListener(o,a)}}}Object.defineProperty(i,"__esModule",{value:!0}),i.AttachAddon=void 0,i.AttachAddon=class{constructor(r,o){this._disposables=[],this._socket=r,this._socket.binaryType="arraybuffer",this._bidirectional=!(o&&o.bidirectional===!1)}activate(r){this._disposables.push(s(this._socket,"message",o=>{const a=o.data;r.write(typeof a=="string"?a:new Uint8Array(a))})),this._bidirectional&&(this._disposables.push(r.onData(o=>this._sendData(o))),this._disposables.push(r.onBinary(o=>this._sendBinary(o)))),this._disposables.push(s(this._socket,"close",()=>this.dispose())),this._disposables.push(s(this._socket,"error",()=>this.dispose()))}dispose(){for(const r of this._disposables)r.dispose()}_sendData(r){this._checkOpenSocket()&&this._socket.send(r)}_sendBinary(r){if(!this._checkOpenSocket())return;const o=new Uint8Array(r.length);for(let a=0;a<r.length;++a)o[a]=255&r.charCodeAt(a);this._socket.send(o)}_checkOpenSocket(){switch(this._socket.readyState){case WebSocket.OPEN:return!0;case WebSocket.CONNECTING:throw new Error("Attach addon was loaded before socket was open");case WebSocket.CLOSING:return console.warn("Attach addon socket is closing"),!1;case WebSocket.CLOSED:throw new Error("Attach addon socket is closed");default:throw new Error("Unexpected socket state")}}}})(),t})())}(x9)),x9.exports}var o7t=r7t(),R9={exports:{}},Uye;function a7t(){return Uye||(Uye=1,function(n,e){(function(t,i){n.exports=i()})(self,()=>(()=>{var t={6:(o,a)=>{function l(d){try{const u=new URL(d),h=u.password&&u.username?`${u.protocol}//${u.username}:${u.password}@${u.host}`:u.username?`${u.protocol}//${u.username}@${u.host}`:`${u.protocol}//${u.host}`;return d.toLocaleLowerCase().startsWith(h.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(a,"__esModule",{value:!0}),a.LinkComputer=a.WebLinkProvider=void 0,a.WebLinkProvider=class{constructor(d,u,h,f={}){this._terminal=d,this._regex=u,this._handler=h,this._options=f}provideLinks(d,u){const h=c.computeLink(d,this._regex,this._terminal,this._handler);u(this._addCallbacks(h))}_addCallbacks(d){return d.map(u=>(u.leave=this._options.leave,u.hover=(h,f)=>{if(this._options.hover){const{range:g}=u;this._options.hover(h,f,g)}},u))}};class c{static computeLink(u,h,f,g){const p=new RegExp(h.source,(h.flags||"")+"g"),[m,_]=c._getWindowedLineStrings(u-1,f),v=m.join("");let b;const S=[];for(;b=p.exec(v);){const y=b[0];if(!l(y))continue;const[C,T]=c._mapStrIdx(f,_,0,b.index),[E,I]=c._mapStrIdx(f,C,T,y.length);if(C===-1||T===-1||E===-1||I===-1)continue;const D={start:{x:T+1,y:C+1},end:{x:I,y:E+1}};S.push({range:D,text:y,activate:g})}return S}static _getWindowedLineStrings(u,h){let f,g=u,p=u,m=0,_="";const v=[];if(f=h.buffer.active.getLine(u)){const b=f.translateToString(!0);if(f.isWrapped&&b[0]!==" "){for(m=0;(f=h.buffer.active.getLine(--g))&&m<2048&&(_=f.translateToString(!0),m+=_.length,v.push(_),f.isWrapped&&_.indexOf(" ")===-1););v.reverse()}for(v.push(b),m=0;(f=h.buffer.active.getLine(++p))&&f.isWrapped&&m<2048&&(_=f.translateToString(!0),m+=_.length,v.push(_),_.indexOf(" ")===-1););}return[v,g]}static _mapStrIdx(u,h,f,g){const p=u.buffer.active,m=p.getNullCell();let _=f;for(;g;){const v=p.getLine(h);if(!v)return[-1,-1];for(let b=_;b<v.length;++b){v.getCell(b,m);const S=m.getChars();if(m.getWidth()&&(g-=S.length||1,b===v.length-1&&S==="")){const y=p.getLine(h+1);y&&y.isWrapped&&(y.getCell(0,m),m.getWidth()===2&&(g+=1))}if(g<0)return[h,b]}h++,_=0}return[h,_]}}a.LinkComputer=c}},i={};function s(o){var a=i[o];if(a!==void 0)return a.exports;var l=i[o]={exports:{}};return t[o](l,l.exports,s),l.exports}var r={};return(()=>{var o=r;Object.defineProperty(o,"__esModule",{value:!0}),o.WebLinksAddon=void 0;const a=s(6),l=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function c(d,u){const h=window.open();if(h){try{h.opener=null}catch{}h.location.href=u}else console.warn("Opening link blocked as opener could not be cleared")}o.WebLinksAddon=class{constructor(d=c,u={}){this._handler=d,this._options=u}activate(d){this._terminal=d;const u=this._options,h=u.urlRegex||l;this._linkProvider=this._terminal.registerLinkProvider(new a.WebLinkProvider(this._terminal,h,this._handler,u))}dispose(){this._linkProvider?.dispose()}}})(),r})())}(R9)),R9.exports}var l7t=a7t();function c7t(){return navigator.userAgent.includes("Mac")}const d7t=Op({name:"terminal",getStoreId:(n,e,t)=>`projects/${n}/instances/${e}/terminalSessions/${t}`,create:({storeId:n,id:[e,t,i],onDeactivated:s})=>Zd(n,()=>{const r=Gt(null),o=Gt(null),a=Ne(!1),{$client:l}=Ps(),c=M_(),d=async f=>{r.value=f;async function g(v,b){if(b==="restart"){if(a.value)return;a.value=!0,r.value.writeln(">>> Restarting terminal session... <<<");const S=await l.terminal.getOrCreateSession.mutate({projectId:e,instanceId:t,terminalName:o.value.terminalName});c.closeTerminalPanel(o.value.id),c.openTerminalPanel(MF.parse(S))}else(c7t()?v.metaKey:v.ctrlKey)&&window.open(b,"_blank")}const p={activate:(v,b)=>{g(v,b)},hover:(v,b,S)=>{},leave:(v,b,S)=>{},allowNonHttpProtocols:!0},m=new l7t.WebLinksAddon(g,p);r.value.loadAddon(m),r.value.options.linkHandler=p,await u();const{unsubscribe:_}=l.terminal.watchSession.subscribe({projectId:e,instanceId:t,sessionId:i},{onData(v){if(o.value=MF.parse(v),v.finishedAt){const y=`\x1B[1m\x1B[33m${`>>> Terminal session finished at ${new Date(v.finishedAt).toLocaleString("en-US")} <<<`}\x1B[0m`,T="\x1B]8;;restart\x1B\\>>> Click here to restart <<<\x1B]8;;\x1B\\";r.value.writeln(""),r.value.writeln(y),r.value.writeln(T),_()}}});s(_),await lf(o).not.toBeNull(),o.value.finishedAt||(h(),r.value.focus())},u=async()=>{const f=await l.terminal.getSessionHistory.query({sessionId:i});for(const g of f)r.value.write(g)},h=()=>{const g=`${location.protocol==="https:"?"wss":"ws"}://${location.host}`,p=new WebSocket(`${g}/api/projects/${e}/instances/${t}/terminalSessions/${i}?screenSize=${r.value.cols}x${r.value.rows}`),m=new o7t.AttachAddon(p);r.value.loadAddon(m),s(()=>p.close())};return{initialize:d,session:o}})}),u7t=Et({__name:"InstanceTerminal",props:{projectId:{},instanceId:{},sessionId:{}},setup(n){const e=d7t(n.projectId,n.instanceId,n.sessionId),t=i=>{e.initialize(i)};return(i,s)=>{const r=$ne;return Te(),Ze(r,{onLoad:t})}}}),h7t=Et({__name:"TerminalPanel",props:{params:{}},setup(n){return(e,t)=>{const i=u7t;return Te(),Ze(i,{"project-id":e.params.params.projectId,"instance-id":e.params.params.instanceId,"session-id":e.params.params.sessionId},null,8,["project-id","instance-id","session-id"])}}}),f7t=Op({name:"logs",getStoreId:(n,e)=>`operations/${n}/instances/${e}/logs`,create:({storeId:n,id:[e,t],onDeactivated:i})=>Zd(n,()=>{const{$client:s}=Ps(),r=Ne([]);return{lines:r,loadLogsToTerminal:async a=>{const l=d=>{for(const u of d.split(`
1120
1120
  `))a.writeln(u)};r.value=await s.logs.getInstanceLogs.query({operationId:e,instanceId:t});for(const d of r.value)l(d);const{unsubscribe:c}=s.logs.watchInstanceLogs.subscribe({operationId:e,instanceId:t},{onData(d){r.value.push(d),l(d)}});i(c)}}})}),g7t=Et({__name:"LogsTerminal",props:{operationId:{},instanceId:{}},setup(n){const e=f7t(n.operationId,n.instanceId),t=i=>{e.loadLogsToTerminal(i)};return(i,s)=>{const r=$ne;return Te(),Ze(r,{onLoad:t})}}}),p7t=Et({__name:"LogsPanel",props:{params:{}},setup(n){return(e,t)=>{const i=g7t;return Te(),Ze(i,{"operation-id":e.params.params.operationId,"instance-id":e.params.params.instanceId},null,8,["operation-id","instance-id"])}}});function m7t(n){return n.status!=="completed"&&n.status!=="failed"&&n.status!=="cancelled"}const _7t={class:"d-flex w-100"},v7t={class:"d-flex"},b7t={class:"d-flex ml-auto"},S7t=Et({__name:"OperationCard",props:{operation:{}},setup(n){const e=ue(()=>{switch(n.operation.status){case"completed":return"mdi-check";case"failed":case"cancelled":return"mdi-close";default:return""}}),t=ue(()=>{switch(n.operation.status){case"pending":return"primary";case"running":return"info";case"completed":return"success";case"failed":case"cancelled":return"error";default:return""}}),i=ue(()=>{switch(n.operation.type){case"update":return"success";case"destroy":return"error";case"recreate":return"warning";case"refresh":case"preview":return"secondary";default:return""}});return(s,r)=>(Te(),Ze(ia,{subtitle:s.operation.status,width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"}},{title:Me(()=>[Si("div",_7t,[Si("div",v7t,Bi(s.operation.id.slice(0,8)),1),Si("div",b7t,[K(rf,{color:se(i)},{default:Me(()=>[ni(Bi(s.operation.type),1)]),_:1},8,["color"])])])]),prepend:Me(()=>[("isOperationRunning"in s?s.isOperationRunning:se(m7t))(s.operation)?(Te(),Ze(R0e,{key:0,class:"mr-1",color:se(t),indeterminate:"",size:"24"},null,8,["color"])):(Te(),Ze(Vi,{key:1,color:se(t)},{default:Me(()=>[ni(Bi(se(e)),1)]),_:1},8,["color"]))]),_:1},8,["subtitle"]))}}),y7t=Gs(S7t,[["__scopeId","data-v-1871cc04"]]),C7t={key:0,class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},w7t={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},E7t={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},T7t={class:"d-flex flex-column gr-4 operation-list-container"},I7t={key:1,class:"mt-4 text-center text-uppercase text-disabled"},L7t=Et({__name:"OperationList",props:{projectId:{}},setup(n){const{stateStore:e,operationsStore:t,secretsStore:i}=F2t(n.projectId),s=async()=>{await t.launchOperation({projectId:n.projectId,type:"update",instanceIds:e.instancesToAutoUpdate.map(r=>r.id)})};return(r,o)=>{const a=y7t;return se(i).isLocked?(Te(),lt("div",I7t,"The project is locked")):(Te(),lt("div",C7t,[K(as,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:se(e).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:s},{default:Me(()=>[Si("div",null,[o[0]||(o[0]=Si("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),se(e).instancesToAutoUpdate.length>0?(Te(),lt("div",w7t,Bi(se(e).instancesToAutoUpdate.length)+" component(s) ",1)):(Te(),lt("div",E7t," nothing to update "))])]),_:1},8,["disabled"]),Si("div",T7t,[(Te(!0),lt(vt,null,Xo(se(t).operations,l=>(Te(),Ze(a,{key:l.id,operation:l},null,8,["operation"]))),128))])]))}}}),x7t=Gs(L7t,[["__scopeId","data-v-ee91812e"]]),R7t={key:1,class:"mt-4 text-center text-uppercase text-disabled"},D7t=Et({__name:"OperationListPanel",setup(n){const e=DB();return(t,i)=>{const s=x7t;return se(e).focusedProjectId?(Te(),Ze(s,{key:se(e).focusedProjectId,"project-id":se(e).focusedProjectId},null,8,["project-id"])):(Te(),lt("div",R7t,"No active project"))}}}),N7t={class:"dv-default-tab"},k7t={class:"dv-default-tab-content"},A7t=Et({__name:"CustomTab",props:{params:{}},setup(n){return(e,t)=>(Te(),lt("div",N7t,[e.params.params.icon?(Te(),Ze(Vi,{key:0,class:"mr-2"},{default:Me(()=>[ni(Bi(e.params.params.icon),1)]),_:1})):Rt("",!0),Si("div",k7t,Bi(e.params.params.title),1),e.params.params.closable?(Te(),lt("div",{key:1,class:"dv-default-tab-action",onClick:t[0]||(t[0]=i=>e.params.api.close())},t[1]||(t[1]=[Si("svg",{height:"11",width:"11",viewBox:"0 0 28 28","aria-hidden":"false",focusable:"false",class:"dv-svg"},[Si("path",{d:"M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z"})],-1)]))):Rt("",!0)]))}}),O7t=Et({__name:"LayoutResetButton",props:{params:{}},setup(n){const e=M_(),t=Ne(!1);return Ki(()=>{t.value=n.params.group.model.panels.some(i=>i.id==="project-list")}),(i,s)=>se(t)?(Te(),Ze(as,{key:0,variant:"text",size:"small",class:"toolbar-button ma-1",onClick:s[0]||(s[0]=r=>se(e).resetLayout())},{default:Me(()=>[K(Vi,null,{default:Me(()=>s[1]||(s[1]=[ni("mdi-window-restore")])),_:1}),K(fPe,{activator:"parent",location:"bottom"},{default:Me(()=>s[2]||(s[2]=[ni("Reset Layout")])),_:1})]),_:1})):Rt("",!0)}}),M7t=Gs(O7t,[["__scopeId","data-v-6df1353d"]]),P7t=Et({components:{ProjectListPanel:I9e,ProjectPanel:H9t,ComponentList:s7t,TerminalPanel:h7t,LogsPanel:p7t,OperationListPanel:D7t,CompositeInstancePanel:Q9t,CustomTab:A7t,LayoutResetButton:M7t},__name:"app",async setup(n){let e,t;const i=Gf();[e,t]=mX(()=>i.initialize()),await e,t();const s=M_(),r=Ne(!1),o=a=>{s.init(a.api),s.loadLayout().finally(()=>{r.value=!0})};return(a,l)=>(Te(),lt("div",{style:uo({display:se(r)?"block":"none"})},[K(se(v6e),{class:"dockview-container",theme:se(t6e),"right-header-actions-component":"LayoutResetButton",onReady:o},null,8,["theme"])],4))}}),F7t=Gs(P7t,[["__scopeId","data-v-b8883e61"]]),B7t={__name:"nuxt-error-page",props:{error:Object},setup(n){const t=n.error;t.stack&&t.stack.split(`
1121
1121
  `).splice(1).map(u=>({text:u.replace("webpack:/","").replace(".vue",".js").trim(),internal:u.includes("node_modules")&&!u.includes(".cache")||u.includes("internal")||u.includes("new Promise")})).map(u=>`<span class="stack${u.internal?" internal":""}">${u.text}</span>`).join(`
1122
- `);const i=Number(t.statusCode||500),s=i===404,r=t.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=t.message||t.toString(),a=void 0,d=s?Sse(()=>ne(()=>import("./DIaU0ifL.js"),__vite__mapDeps([94,95,96]),import.meta.url)):Sse(()=>ne(()=>import("./s4Nkp2ux.js"),__vite__mapDeps([97,95,98]),import.meta.url));return(u,h)=>(Te(),Ze(se(d),OI(WI({statusCode:se(i),statusMessage:se(r),description:se(o),stack:se(a)})),null,16))}},H7t={key:0},$ye={__name:"nuxt-root",setup(n){const e=()=>null,t=Ps(),i=t.deferHydration();if(t.isHydrating){const l=t.hooks.hookOnce("app:error",i);Yb().beforeEach(l)}const s=!1;ur(Uwe,$we()),t.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const r=IX(),o=!1;OCe((l,c,d)=>{if(t.hooks.callHook("vue:error",l,c,d).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),b3e(l)&&(l.fatal||l.unhandled))return t.runWithContext(()=>_3e(l)),!1});const a=!1;return(l,c)=>(Te(),Ze(bX,{onResolve:se(i)},{default:Me(()=>[se(o)?(Te(),lt("div",H7t)):se(r)?(Te(),Ze(se(B7t),{key:1,error:se(r)},null,8,["error"])):se(a)?(Te(),Ze(se(e),{key:2,context:se(a)},null,8,["context"])):se(s)?(Te(),Ze(Fw(se(s)),{key:3})):(Te(),Ze(se(F7t),{key:4}))]),_:1},8,["onResolve"]))}};let zye;{let n;zye=async function(){if(n)return n;const i=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?q5e($ye):G5e($ye),s=e3e({vueApp:i});async function r(o){await s.callHook("app:error",o),s.payload.error||=pB(o)}i.config.errorHandler=r,s.hook("app:suspense:resolve",()=>{i.config.errorHandler===r&&(i.config.errorHandler=void 0)});try{await n3e(s,JUe)}catch(o){r(o)}try{await s.hooks.callHook("app:created",i),await s.hooks.callHook("app:beforeMount",i),i.mount(X4e),await s.hooks.callHook("app:mounted",i),await Ki()}catch(o){r(o)}return i},n=zye().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{Me as A,ni as B,U7t as C,r3e as D,gR as E,Qn as F,Ywe as G,rD as H,ANe as I,Gs as _,Ps as a,HX as b,Ore as c,Et as d,Jo as e,$7t as f,MCe as g,rn as h,m3e as i,ue as j,YE as k,gB as l,jb as m,p3e as n,sr as o,wX as p,EX as q,Ne as r,W7t as s,lt as t,Yb as u,Te as v,Y9 as w,Si as x,Bi as y,K as z};
1122
+ `);const i=Number(t.statusCode||500),s=i===404,r=t.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=t.message||t.toString(),a=void 0,d=s?Sse(()=>ne(()=>import("./DUxl0u_w.js"),__vite__mapDeps([94,95,96]),import.meta.url)):Sse(()=>ne(()=>import("./D52Pciua.js"),__vite__mapDeps([97,95,98]),import.meta.url));return(u,h)=>(Te(),Ze(se(d),OI(WI({statusCode:se(i),statusMessage:se(r),description:se(o),stack:se(a)})),null,16))}},H7t={key:0},$ye={__name:"nuxt-root",setup(n){const e=()=>null,t=Ps(),i=t.deferHydration();if(t.isHydrating){const l=t.hooks.hookOnce("app:error",i);Yb().beforeEach(l)}const s=!1;ur(Uwe,$we()),t.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const r=IX(),o=!1;OCe((l,c,d)=>{if(t.hooks.callHook("vue:error",l,c,d).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),b3e(l)&&(l.fatal||l.unhandled))return t.runWithContext(()=>_3e(l)),!1});const a=!1;return(l,c)=>(Te(),Ze(bX,{onResolve:se(i)},{default:Me(()=>[se(o)?(Te(),lt("div",H7t)):se(r)?(Te(),Ze(se(B7t),{key:1,error:se(r)},null,8,["error"])):se(a)?(Te(),Ze(se(e),{key:2,context:se(a)},null,8,["context"])):se(s)?(Te(),Ze(Fw(se(s)),{key:3})):(Te(),Ze(se(F7t),{key:4}))]),_:1},8,["onResolve"]))}};let zye;{let n;zye=async function(){if(n)return n;const i=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?q5e($ye):G5e($ye),s=e3e({vueApp:i});async function r(o){await s.callHook("app:error",o),s.payload.error||=pB(o)}i.config.errorHandler=r,s.hook("app:suspense:resolve",()=>{i.config.errorHandler===r&&(i.config.errorHandler=void 0)});try{await n3e(s,JUe)}catch(o){r(o)}try{await s.hooks.callHook("app:created",i),await s.hooks.callHook("app:beforeMount",i),i.mount(X4e),await s.hooks.callHook("app:mounted",i),await Ki()}catch(o){r(o)}return i},n=zye().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{Me as A,ni as B,U7t as C,r3e as D,gR as E,Qn as F,Ywe as G,rD as H,ANe as I,Gs as _,Ps as a,HX as b,Ore as c,Et as d,Jo as e,$7t as f,MCe as g,rn as h,m3e as i,ue as j,YE as k,gB as l,jb as m,p3e as n,sr as o,wX as p,EX as q,Ne as r,W7t as s,lt as t,Yb as u,Te as v,Y9 as w,Si as x,Bi as y,K as z};