@highstate/designer 0.7.11 → 0.8.0

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 (28) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BLd8IW8T.js → 49Byon_C.js} +1 -1
  3. package/.output/public/_nuxt/{uHc1f6MD.js → AC-cbere.js} +1 -1
  4. package/.output/public/_nuxt/{DXKg-ox3.js → B2xWwrcf.js} +1 -1
  5. package/.output/public/_nuxt/{CK8ePFDQ.js → BBbUbsmH.js} +1 -1
  6. package/.output/public/_nuxt/{CqTVw56w.js → BYgEQs-R.js} +1 -1
  7. package/.output/public/_nuxt/{CcyNJcA_.js → CBnxroLO.js} +1 -1
  8. package/.output/public/_nuxt/{vqG04Fyl.js → CIrl0N3t.js} +1 -1
  9. package/.output/public/_nuxt/{DPtlu6sh.js → CODnyShH.js} +1 -1
  10. package/.output/public/_nuxt/{5IdGydij.js → C_n9LE99.js} +1 -1
  11. package/.output/public/_nuxt/{BI8HP03X.js → D3U7RFHT.js} +1 -1
  12. package/.output/public/_nuxt/{C_tv3AJD.js → D8NOhxV1.js} +1 -1
  13. package/.output/public/_nuxt/{Dt6vQC-u.js → DJxFwZ8e.js} +1 -1
  14. package/.output/public/_nuxt/{Pz3eYrcg.js → DNegoBzK.js} +1 -1
  15. package/.output/public/_nuxt/{Dgb_-ErM.js → MPrxSj4v.js} +1 -1
  16. package/.output/public/_nuxt/{BOTRF40-.js → __nihD3z.js} +1 -1
  17. package/.output/public/_nuxt/builds/latest.json +1 -1
  18. package/.output/public/_nuxt/builds/meta/b669e4f8-ac13-4649-8aa2-1ae645243b1e.json +1 -0
  19. package/.output/public/_nuxt/{Bmx9zwya.js → bxb_NGy4.js} +1 -1
  20. package/.output/public/_nuxt/{entry.ZPmVNav5.css → entry.ClkVUmUZ.css} +1 -1
  21. package/.output/public/_nuxt/{graph-resolver-LVQiD89a.js → graph-resolver-CY8ix4Bk.js} +1 -1
  22. package/.output/public/_nuxt/{C2tp2lCn.js → hcK6w2WN.js} +11 -11
  23. package/.output/public/_nuxt/{BYXRUxKk.js → stTwOcRx.js} +1 -1
  24. package/.output/public/_nuxt/{DoC5dTPz.js → zXTedGBg.js} +1 -1
  25. package/.output/server/index.mjs +545 -545
  26. package/.output/server/package.json +1 -1
  27. package/package.json +4 -4
  28. package/.output/public/_nuxt/builds/meta/bd595428-3019-45bd-9d1f-f1ee086d4f6f.json +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BLd8IW8T.js","./DXKg-ox3.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","./C_tv3AJD.js","./Bmx9zwya.js","./error-404.D7tj2jQK.css","./DPtlu6sh.js","./error-500.TOCKLquH.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./49Byon_C.js","./B2xWwrcf.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","./D8NOhxV1.js","./bxb_NGy4.js","./error-404.D7tj2jQK.css","./CODnyShH.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
@@ -35,7 +35,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
35
35
  monaco.config({ paths: { vs: '...' } })
36
36
 
37
37
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
38
- `},Oae=$ze(Kze)(GTe),jze={config:Gze},Yze=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(s){return t.reduceRight(function(r,o){return o(r)},s)}};function qTe(n,e){return Object.keys(e).forEach(function(t){e[t]instanceof Object&&n[t]&&Object.assign(e[t],qTe(n[t],e[t]))}),Dae(Dae({},n),e)}var Qze={type:"cancelation",msg:"operation is manually canceled"};function uV(n){var e=!1,t=new Promise(function(i,s){n.then(function(r){return e?s(Qze):i(r)}),n.catch(s)});return t.cancel=function(){return e=!0},t}var Xze=Wze.create({config:Uze,isInitialized:!1,resolve:null,reject:null,monaco:null}),KTe=Cze(Xze,2),yR=KTe[0],NB=KTe[1];function Zze(n){var e=jze.config(n),t=e.monaco,i=yze(e,["monaco"]);NB(function(s){return{config:qTe(s.config,i),monaco:t}})}function Jze(){var n=yR(function(e){var t=e.monaco,i=e.isInitialized,s=e.resolve;return{monaco:t,isInitialized:i,resolve:s}});if(!n.isInitialized){if(NB({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),uV(hV);if(window.monaco&&window.monaco.editor)return jTe(window.monaco),n.resolve(window.monaco),uV(hV);Yze(eGe,iGe)(nGe)}return uV(hV)}function eGe(n){return document.body.appendChild(n)}function tGe(n){var e=document.createElement("script");return n&&(e.src=n),e}function iGe(n){var e=yR(function(i){var s=i.config,r=i.reject;return{config:s,reject:r}}),t=tGe("".concat(e.config.paths.vs,"/loader.js"));return t.onload=function(){return n()},t.onerror=e.reject,t}function nGe(){var n=yR(function(t){var i=t.config,s=t.resolve,r=t.reject;return{config:i,resolve:s,reject:r}}),e=window.require;e.config(n.config),e(["vs/editor/editor.main"],function(t){jTe(t),n.resolve(t)},function(t){n.reject(t)})}function jTe(n){yR().monaco||NB({monaco:n})}function sGe(){return yR(function(n){var e=n.monaco;return e})}var hV=new Promise(function(n,e){return NB({resolve:n,reject:e})}),_z={config:Zze,init:Jze,__getMonacoInstance:sGe},rGe=Object.defineProperty,oGe=Object.defineProperties,aGe=Object.getOwnPropertyDescriptors,Mae=Object.getOwnPropertySymbols,lGe=Object.prototype.hasOwnProperty,cGe=Object.prototype.propertyIsEnumerable,Pae=(n,e,t)=>e in n?rGe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fV=(n,e)=>{for(var t in e||(e={}))lGe.call(e,t)&&Pae(n,t,e[t]);if(Mae)for(var t of Mae(e))cGe.call(e,t)&&Pae(n,t,e[t]);return n},dGe=(n,e)=>oGe(n,aGe(e));const gV={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function uGe(n,e){const t=ue(()=>{const{width:s,height:r}=n;return dGe(fV({},gV.wrapper),{width:s,height:r})}),i=ue(()=>fV(fV({},gV.fullWidth),!e.value&&gV.hide));return{wrapperStyle:t,containerStyle:i}}function hGe(){const n=$t(_z.__getMonacoInstance()),e=Me(!1);let t;return nr(()=>{n.value||(t=_z.init(),t.then(s=>n.value=s).catch(s=>{s?.type!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",s))}))}),{monacoRef:n,unload:()=>t?.cancel(),isLoadFailed:e}}function Fae(n){return typeof n=="function"?n():n}function vz(n){return n===void 0}function YTe(n,e,t,i){return fGe(n,i)||gGe(n,e,t,i)}function fGe(n,e){return n.editor.getModel(QTe(n,e))}function gGe(n,e,t,i){return n.editor.createModel(e,t,i?QTe(n,i):void 0)}function QTe(n,e){return n.Uri.parse(e)}var pGe=Object.defineProperty,Bae=Object.getOwnPropertySymbols,mGe=Object.prototype.hasOwnProperty,_Ge=Object.prototype.propertyIsEnumerable,Vae=(n,e,t)=>e in n?pGe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,vGe=(n,e)=>{for(var t in e||(e={}))mGe.call(e,t)&&Vae(n,t,e[t]);if(Bae)for(var t of Bae(e))_Ge.call(e,t)&&Vae(n,t,e[t]);return n};const bGe={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var XTe=Dt({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(n,e){const t=new Map,i=$t(null),{monacoRef:s,unload:r,isLoadFailed:o}=hGe(),{editorRef:a}=SGe(e,n,s,i),{disposeValidator:l}=yGe(e,n,s,a),c=ue(()=>!!s.value&&!!a.value),{wrapperStyle:d,containerStyle:u}=uGe(n,c);return yp(()=>{var h,f;(h=l.value)==null||h.call(l),a.value?((f=a.value.getModel())==null||f.dispose(),a.value.dispose()):r()}),rt([()=>n.path,()=>n.value,()=>n.language,()=>n.line],([h,f,g,p],[m,v,_,b])=>{if(c.value){if(h!==m){const S=YTe(s.value,f||n.defaultValue||"",g||n.defaultLanguage||"",h||n.defaultPath||"");n.saveViewState&&t.set(m,a.value.saveViewState()),a.value.setModel(S),n.saveViewState&&a.value.restoreViewState(t.get(h)),vz(p)||a.value.revealLine(p);return}a.value.getValue()!==f&&a.value.setValue(f),g!==_&&s.value.editor.setModelLanguage(a.value.getModel(),g),!vz(p)&&p!==b&&a.value.revealLine(p)}}),rt(()=>n.options,h=>a.value&&a.value.updateOptions(h),{deep:!0}),rt(()=>n.theme,h=>s.value&&s.value.editor.setTheme(h)),{containerRef:i,isEditorReady:c,isLoadFailed:o,wrapperStyle:d,containerStyle:u}},render(){const{$slots:n,isEditorReady:e,isLoadFailed:t,wrapperStyle:i,containerStyle:s,className:r}=this;return en("div",{style:i},[!e&&en("div",{style:bGe},t?n.failure?Fae(n.failure):"load failed":n.default?Fae(n.default):"loading..."),en("div",{ref:"containerRef",key:"monaco_editor_container",style:s,class:r})])}});function SGe({emit:n},e,t,i){const s=$t(null);nr(()=>{const o=rt(t,()=>{i.value&&t.value&&(Vi(()=>o()),r())},{immediate:!0})});function r(){var o;if(!i.value||!t.value||s.value)return;n("beforeMount",t.value);const a=e.path||e.defaultPath,l=YTe(t.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",a||"");s.value=t.value.editor.create(i.value,vGe({model:l,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(o=s.value)==null||o.onDidChangeModelContent(c=>{const d=s.value.getValue();d!==e.value&&(n("update:value",d),n("change",d,c))}),s.value&&!vz(e.line)&&s.value.revealLine(e.line),n("mount",s.value,t.value)}return{editorRef:s}}function yGe({emit:n},e,t,i){const s=Me(null),r=rt([t,i],()=>{if(t.value&&i.value){Vi(()=>r());const o=t.value.editor.onDidChangeMarkers(a=>{var l,c;const d=(c=(l=i.value)==null?void 0:l.getModel())==null?void 0:c.uri;if(d&&a.find(h=>h.path===d.path)){const h=t.value.editor.getModelMarkers({resource:d});n("validate",h)}});s.value=()=>o?.dispose()}});return{disposeValidator:s}}const CGe={class:"editor-container"},wGe=["title"],EGe=Dt({__name:"ComplexTextEditor",props:WS({componentType:{},name:{},arg:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=n.arg.schema.default??"",i=Me(!1),s=Me(null),r=Me(e.value??t),o=()=>{i.value=!1,r.value=t,s.value=null},a=()=>{try{e.value=r.value,i.value=!1,s.value=null}catch(l){s.value=l instanceof Error?l.message:String(l)}};return(l,c)=>(xe(),ot(SR,{modelValue:le(i),"onUpdate:modelValue":c[1]||(c[1]=d=>pi(i)?i.value=d:null),class:"dialog"},{activator:We(({props:d})=>[K(ps,qt(d,{variant:"outlined"}),{default:We(()=>[gi(rn(("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta)),1)]),_:2},1040)]),default:We(()=>[K(wc,{title:("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta),variant:"flat",color:"#1e1e1e"},{default:We(()=>[Fi("div",CGe,[K(le(XTe),{value:le(r),"onUpdate:value":c[0]||(c[0]=d=>pi(r)?r.value=d:null),class:"editor",theme:"dark-plus",language:l.arg.schema.language??"text",path:`${l.componentType}.${l.name}`,options:{tabSize:2}},null,8,["value","language","path"])]),K(ch,null,{default:We(()=>[le(s)?(xe(),gt("div",{key:0,class:"text-error text-truncate",title:le(s)},rn(le(s)),9,wGe)):ei("",!0),K(Ud),K(ps,{onClick:o},{default:We(()=>c[2]||(c[2]=[gi("Cancel")])),_:1}),K(ps,{onClick:a},{default:We(()=>c[3]||(c[3]=[gi("Save")])),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),TGe=Xs(EGe,[["__scopeId","data-v-cfe7a690"]]),tJ=Symbol.for("yaml.alias"),bz=Symbol.for("yaml.document"),$m=Symbol.for("yaml.map"),ZTe=Symbol.for("yaml.pair"),bf=Symbol.for("yaml.scalar"),i0=Symbol.for("yaml.seq"),$d=Symbol.for("yaml.node.type"),n0=n=>!!n&&typeof n=="object"&&n[$d]===tJ,CR=n=>!!n&&typeof n=="object"&&n[$d]===bz,wR=n=>!!n&&typeof n=="object"&&n[$d]===$m,Gr=n=>!!n&&typeof n=="object"&&n[$d]===ZTe,Ys=n=>!!n&&typeof n=="object"&&n[$d]===bf,ER=n=>!!n&&typeof n=="object"&&n[$d]===i0;function Vr(n){if(n&&typeof n=="object")switch(n[$d]){case $m:case i0:return!0}return!1}function Wr(n){if(n&&typeof n=="object")switch(n[$d]){case tJ:case $m:case bf:case i0:return!0}return!1}const IGe=n=>(Ys(n)||Vr(n))&&!!n.anchor,yv=Symbol("break visit"),LGe=Symbol("skip children"),UT=Symbol("remove node");function Jb(n,e){const t=xGe(e);CR(n)?gC(null,n.contents,t,Object.freeze([n]))===UT&&(n.contents=null):gC(null,n,t,Object.freeze([]))}Jb.BREAK=yv;Jb.SKIP=LGe;Jb.REMOVE=UT;function gC(n,e,t,i){const s=RGe(n,e,t,i);if(Wr(s)||Gr(s))return DGe(n,i,s),gC(n,s,t,i);if(typeof s!="symbol"){if(Vr(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){const o=gC(r,e.items[r],t,i);if(typeof o=="number")r=o-1;else{if(o===yv)return yv;o===UT&&(e.items.splice(r,1),r-=1)}}}else if(Gr(e)){i=Object.freeze(i.concat(e));const r=gC("key",e.key,t,i);if(r===yv)return yv;r===UT&&(e.key=null);const o=gC("value",e.value,t,i);if(o===yv)return yv;o===UT&&(e.value=null)}}return s}function xGe(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function RGe(n,e,t,i){if(typeof t=="function")return t(n,e,i);if(wR(e))return t.Map?.(n,e,i);if(ER(e))return t.Seq?.(n,e,i);if(Gr(e))return t.Pair?.(n,e,i);if(Ys(e))return t.Scalar?.(n,e,i);if(n0(e))return t.Alias?.(n,e,i)}function DGe(n,e,t){const i=e[e.length-1];if(Vr(i))i.items[n]=t;else if(Gr(i))n==="key"?i.key=t:i.value=t;else if(CR(i))i.contents=t;else{const s=n0(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const NGe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},kGe=n=>n.replace(/[!,[\]{}]/g,e=>NGe[e]);class gl{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},gl.defaultYaml,e),this.tags=Object.assign({},gl.defaultTags,t)}clone(){const e=new gl(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new gl(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:gl.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},gl.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:gl.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},gl.defaultTags),this.atNextDocument=!1);const i=e.trim().split(/[ \t]+/),s=i.shift();switch(s){case"%TAG":{if(i.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[r,o]=i;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=i;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,i,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);const r=this.tags[i];if(r)try{return r+decodeURIComponent(s)}catch(o){return t(String(o)),null}return i==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+kGe(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let s;if(e&&i.length>0&&Wr(e.contents)){const r={};Jb(e.contents,(o,a)=>{Wr(a)&&a.tag&&(r[a.tag]=!0)}),s=Object.keys(r)}else s=[];for(const[r,o]of i)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
38
+ `},Oae=$ze(Kze)(GTe),jze={config:Gze},Yze=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(s){return t.reduceRight(function(r,o){return o(r)},s)}};function qTe(n,e){return Object.keys(e).forEach(function(t){e[t]instanceof Object&&n[t]&&Object.assign(e[t],qTe(n[t],e[t]))}),Dae(Dae({},n),e)}var Qze={type:"cancelation",msg:"operation is manually canceled"};function uV(n){var e=!1,t=new Promise(function(i,s){n.then(function(r){return e?s(Qze):i(r)}),n.catch(s)});return t.cancel=function(){return e=!0},t}var Xze=Wze.create({config:Uze,isInitialized:!1,resolve:null,reject:null,monaco:null}),KTe=Cze(Xze,2),yR=KTe[0],NB=KTe[1];function Zze(n){var e=jze.config(n),t=e.monaco,i=yze(e,["monaco"]);NB(function(s){return{config:qTe(s.config,i),monaco:t}})}function Jze(){var n=yR(function(e){var t=e.monaco,i=e.isInitialized,s=e.resolve;return{monaco:t,isInitialized:i,resolve:s}});if(!n.isInitialized){if(NB({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),uV(hV);if(window.monaco&&window.monaco.editor)return jTe(window.monaco),n.resolve(window.monaco),uV(hV);Yze(eGe,iGe)(nGe)}return uV(hV)}function eGe(n){return document.body.appendChild(n)}function tGe(n){var e=document.createElement("script");return n&&(e.src=n),e}function iGe(n){var e=yR(function(i){var s=i.config,r=i.reject;return{config:s,reject:r}}),t=tGe("".concat(e.config.paths.vs,"/loader.js"));return t.onload=function(){return n()},t.onerror=e.reject,t}function nGe(){var n=yR(function(t){var i=t.config,s=t.resolve,r=t.reject;return{config:i,resolve:s,reject:r}}),e=window.require;e.config(n.config),e(["vs/editor/editor.main"],function(t){jTe(t),n.resolve(t)},function(t){n.reject(t)})}function jTe(n){yR().monaco||NB({monaco:n})}function sGe(){return yR(function(n){var e=n.monaco;return e})}var hV=new Promise(function(n,e){return NB({resolve:n,reject:e})}),_z={config:Zze,init:Jze,__getMonacoInstance:sGe},rGe=Object.defineProperty,oGe=Object.defineProperties,aGe=Object.getOwnPropertyDescriptors,Mae=Object.getOwnPropertySymbols,lGe=Object.prototype.hasOwnProperty,cGe=Object.prototype.propertyIsEnumerable,Pae=(n,e,t)=>e in n?rGe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fV=(n,e)=>{for(var t in e||(e={}))lGe.call(e,t)&&Pae(n,t,e[t]);if(Mae)for(var t of Mae(e))cGe.call(e,t)&&Pae(n,t,e[t]);return n},dGe=(n,e)=>oGe(n,aGe(e));const gV={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function uGe(n,e){const t=ue(()=>{const{width:s,height:r}=n;return dGe(fV({},gV.wrapper),{width:s,height:r})}),i=ue(()=>fV(fV({},gV.fullWidth),!e.value&&gV.hide));return{wrapperStyle:t,containerStyle:i}}function hGe(){const n=$t(_z.__getMonacoInstance()),e=Me(!1);let t;return nr(()=>{n.value||(t=_z.init(),t.then(s=>n.value=s).catch(s=>{s?.type!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",s))}))}),{monacoRef:n,unload:()=>t?.cancel(),isLoadFailed:e}}function Fae(n){return typeof n=="function"?n():n}function vz(n){return n===void 0}function YTe(n,e,t,i){return fGe(n,i)||gGe(n,e,t,i)}function fGe(n,e){return n.editor.getModel(QTe(n,e))}function gGe(n,e,t,i){return n.editor.createModel(e,t,i?QTe(n,i):void 0)}function QTe(n,e){return n.Uri.parse(e)}var pGe=Object.defineProperty,Bae=Object.getOwnPropertySymbols,mGe=Object.prototype.hasOwnProperty,_Ge=Object.prototype.propertyIsEnumerable,Vae=(n,e,t)=>e in n?pGe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,vGe=(n,e)=>{for(var t in e||(e={}))mGe.call(e,t)&&Vae(n,t,e[t]);if(Bae)for(var t of Bae(e))_Ge.call(e,t)&&Vae(n,t,e[t]);return n};const bGe={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var XTe=Dt({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(n,e){const t=new Map,i=$t(null),{monacoRef:s,unload:r,isLoadFailed:o}=hGe(),{editorRef:a}=SGe(e,n,s,i),{disposeValidator:l}=yGe(e,n,s,a),c=ue(()=>!!s.value&&!!a.value),{wrapperStyle:d,containerStyle:u}=uGe(n,c);return yp(()=>{var h,f;(h=l.value)==null||h.call(l),a.value?((f=a.value.getModel())==null||f.dispose(),a.value.dispose()):r()}),rt([()=>n.path,()=>n.value,()=>n.language,()=>n.line],([h,f,g,p],[m,v,_,b])=>{if(c.value){if(h!==m){const S=YTe(s.value,f||n.defaultValue||"",g||n.defaultLanguage||"",h||n.defaultPath||"");n.saveViewState&&t.set(m,a.value.saveViewState()),a.value.setModel(S),n.saveViewState&&a.value.restoreViewState(t.get(h)),vz(p)||a.value.revealLine(p);return}a.value.getValue()!==f&&a.value.setValue(f),g!==_&&s.value.editor.setModelLanguage(a.value.getModel(),g),!vz(p)&&p!==b&&a.value.revealLine(p)}}),rt(()=>n.options,h=>a.value&&a.value.updateOptions(h),{deep:!0}),rt(()=>n.theme,h=>s.value&&s.value.editor.setTheme(h)),{containerRef:i,isEditorReady:c,isLoadFailed:o,wrapperStyle:d,containerStyle:u}},render(){const{$slots:n,isEditorReady:e,isLoadFailed:t,wrapperStyle:i,containerStyle:s,className:r}=this;return en("div",{style:i},[!e&&en("div",{style:bGe},t?n.failure?Fae(n.failure):"load failed":n.default?Fae(n.default):"loading..."),en("div",{ref:"containerRef",key:"monaco_editor_container",style:s,class:r})])}});function SGe({emit:n},e,t,i){const s=$t(null);nr(()=>{const o=rt(t,()=>{i.value&&t.value&&(Vi(()=>o()),r())},{immediate:!0})});function r(){var o;if(!i.value||!t.value||s.value)return;n("beforeMount",t.value);const a=e.path||e.defaultPath,l=YTe(t.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",a||"");s.value=t.value.editor.create(i.value,vGe({model:l,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(o=s.value)==null||o.onDidChangeModelContent(c=>{const d=s.value.getValue();d!==e.value&&(n("update:value",d),n("change",d,c))}),s.value&&!vz(e.line)&&s.value.revealLine(e.line),n("mount",s.value,t.value)}return{editorRef:s}}function yGe({emit:n},e,t,i){const s=Me(null),r=rt([t,i],()=>{if(t.value&&i.value){Vi(()=>r());const o=t.value.editor.onDidChangeMarkers(a=>{var l,c;const d=(c=(l=i.value)==null?void 0:l.getModel())==null?void 0:c.uri;if(d&&a.find(h=>h.path===d.path)){const h=t.value.editor.getModelMarkers({resource:d});n("validate",h)}});s.value=()=>o?.dispose()}});return{disposeValidator:s}}const CGe={class:"editor-container"},wGe=["title"],EGe=Dt({__name:"ComplexTextEditor",props:WS({componentType:{},name:{},arg:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=n.arg.schema.default??"",i=Me(!1),s=Me(null),r=Me(e.value??t),o=()=>{i.value=!1,r.value=t,s.value=null},a=()=>{try{e.value=r.value,i.value=!1,s.value=null}catch(l){s.value=l instanceof Error?l.message:String(l)}};return(l,c)=>(xe(),ot(SR,{modelValue:le(i),"onUpdate:modelValue":c[1]||(c[1]=d=>pi(i)?i.value=d:null),class:"dialog"},{activator:We(({props:d})=>[K(ps,qt(d,{variant:"outlined"}),{default:We(()=>[gi(rn(("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta)),1)]),_:2},1040)]),default:We(()=>[K(wc,{title:("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta),variant:"flat",color:"#1e1e1e"},{default:We(()=>[Fi("div",CGe,[K(le(XTe),{value:le(r),"onUpdate:value":c[0]||(c[0]=d=>pi(r)?r.value=d:null),class:"editor",theme:"dark-plus",language:l.arg.schema.language??"text",options:{tabSize:2}},null,8,["value","language"])]),K(ch,null,{default:We(()=>[le(s)?(xe(),gt("div",{key:0,class:"text-error text-truncate",title:le(s)},rn(le(s)),9,wGe)):ei("",!0),K(Ud),K(ps,{onClick:o},{default:We(()=>c[2]||(c[2]=[gi("Cancel")])),_:1}),K(ps,{onClick:a},{default:We(()=>c[3]||(c[3]=[gi("Save")])),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),TGe=Xs(EGe,[["__scopeId","data-v-1ff01341"]]),tJ=Symbol.for("yaml.alias"),bz=Symbol.for("yaml.document"),$m=Symbol.for("yaml.map"),ZTe=Symbol.for("yaml.pair"),bf=Symbol.for("yaml.scalar"),i0=Symbol.for("yaml.seq"),$d=Symbol.for("yaml.node.type"),n0=n=>!!n&&typeof n=="object"&&n[$d]===tJ,CR=n=>!!n&&typeof n=="object"&&n[$d]===bz,wR=n=>!!n&&typeof n=="object"&&n[$d]===$m,Gr=n=>!!n&&typeof n=="object"&&n[$d]===ZTe,Ys=n=>!!n&&typeof n=="object"&&n[$d]===bf,ER=n=>!!n&&typeof n=="object"&&n[$d]===i0;function Vr(n){if(n&&typeof n=="object")switch(n[$d]){case $m:case i0:return!0}return!1}function Wr(n){if(n&&typeof n=="object")switch(n[$d]){case tJ:case $m:case bf:case i0:return!0}return!1}const IGe=n=>(Ys(n)||Vr(n))&&!!n.anchor,yv=Symbol("break visit"),LGe=Symbol("skip children"),UT=Symbol("remove node");function Jb(n,e){const t=xGe(e);CR(n)?gC(null,n.contents,t,Object.freeze([n]))===UT&&(n.contents=null):gC(null,n,t,Object.freeze([]))}Jb.BREAK=yv;Jb.SKIP=LGe;Jb.REMOVE=UT;function gC(n,e,t,i){const s=RGe(n,e,t,i);if(Wr(s)||Gr(s))return DGe(n,i,s),gC(n,s,t,i);if(typeof s!="symbol"){if(Vr(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){const o=gC(r,e.items[r],t,i);if(typeof o=="number")r=o-1;else{if(o===yv)return yv;o===UT&&(e.items.splice(r,1),r-=1)}}}else if(Gr(e)){i=Object.freeze(i.concat(e));const r=gC("key",e.key,t,i);if(r===yv)return yv;r===UT&&(e.key=null);const o=gC("value",e.value,t,i);if(o===yv)return yv;o===UT&&(e.value=null)}}return s}function xGe(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function RGe(n,e,t,i){if(typeof t=="function")return t(n,e,i);if(wR(e))return t.Map?.(n,e,i);if(ER(e))return t.Seq?.(n,e,i);if(Gr(e))return t.Pair?.(n,e,i);if(Ys(e))return t.Scalar?.(n,e,i);if(n0(e))return t.Alias?.(n,e,i)}function DGe(n,e,t){const i=e[e.length-1];if(Vr(i))i.items[n]=t;else if(Gr(i))n==="key"?i.key=t:i.value=t;else if(CR(i))i.contents=t;else{const s=n0(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const NGe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},kGe=n=>n.replace(/[!,[\]{}]/g,e=>NGe[e]);class gl{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},gl.defaultYaml,e),this.tags=Object.assign({},gl.defaultTags,t)}clone(){const e=new gl(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new gl(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:gl.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},gl.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:gl.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},gl.defaultTags),this.atNextDocument=!1);const i=e.trim().split(/[ \t]+/),s=i.shift();switch(s){case"%TAG":{if(i.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[r,o]=i;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=i;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,i,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);const r=this.tags[i];if(r)try{return r+decodeURIComponent(s)}catch(o){return t(String(o)),null}return i==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+kGe(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let s;if(e&&i.length>0&&Wr(e.contents)){const r={};Jb(e.contents,(o,a)=>{Wr(a)&&a.tag&&(r[a.tag]=!0)}),s=Object.keys(r)}else s=[];for(const[r,o]of i)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
39
39
  `)}}gl.defaultYaml={explicit:!1,version:"1.2"};gl.defaultTags={"!!":"tag:yaml.org,2002:"};function JTe(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function eIe(n){const e=new Set;return Jb(n,{Value(t,i){i.anchor&&e.add(i.anchor)}}),e}function tIe(n,e){for(let t=1;;++t){const i=`${n}${t}`;if(!e.has(i))return i}}function AGe(n,e){const t=[],i=new Map;let s=null;return{onAnchor:r=>{t.push(r),s||(s=eIe(n));const o=tIe(e,s);return s.add(o),o},setAnchors:()=>{for(const r of t){const o=i.get(r);if(typeof o=="object"&&o.anchor&&(Ys(o.node)||Vr(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:i}}function pC(n,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let s=0,r=i.length;s<r;++s){const o=i[s],a=pC(n,i,String(s),o);a===void 0?delete i[s]:a!==o&&(i[s]=a)}else if(i instanceof Map)for(const s of Array.from(i.keys())){const r=i.get(s),o=pC(n,i,s,r);o===void 0?i.delete(s):o!==r&&i.set(s,o)}else if(i instanceof Set)for(const s of Array.from(i)){const r=pC(n,i,s,s);r===void 0?i.delete(s):r!==s&&(i.delete(s),i.add(r))}else for(const[s,r]of Object.entries(i)){const o=pC(n,i,s,r);o===void 0?delete i[s]:o!==r&&(i[s]=o)}return n.call(e,t,i)}function Bd(n,e,t){if(Array.isArray(n))return n.map((i,s)=>Bd(i,String(s),t));if(n&&typeof n.toJSON=="function"){if(!t||!IGe(n))return n.toJSON(e,t);const i={aliasCount:0,count:1,res:void 0};t.anchors.set(n,i),t.onCreate=r=>{i.res=r,delete t.onCreate};const s=n.toJSON(e,t);return t.onCreate&&t.onCreate(s),s}return typeof n=="bigint"&&!t?.keep?Number(n):n}class iJ{constructor(e){Object.defineProperty(this,$d,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:s,reviver:r}={}){if(!CR(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=Bd(this,"",o);if(typeof s=="function")for(const{count:l,res:c}of o.anchors.values())s(c,l);return typeof r=="function"?pC(r,{"":a},"",a):a}}class nJ extends iJ{constructor(e){super(tJ),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Jb(e,{Node:(i,s)=>{if(s===this)return Jb.BREAK;s.anchor===this.source&&(t=s)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:i,doc:s,maxAliasCount:r}=t,o=this.resolve(s);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=i.get(o);if(a||(Bd(o,null,t),a=i.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=DA(s,o,i)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,i){const s=`*${this.source}`;if(e){if(JTe(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${s} `}return s}}function DA(n,e,t){if(n0(e)){const i=e.resolve(n),s=t&&i&&t.get(i);return s?s.count*s.aliasCount:0}else if(Vr(e)){let i=0;for(const s of e.items){const r=DA(n,s,t);r>i&&(i=r)}return i}else if(Gr(e)){const i=DA(n,e.key,t),s=DA(n,e.value,t);return Math.max(i,s)}return 1}const iIe=n=>!n||typeof n!="function"&&typeof n!="object";class Ji extends iJ{constructor(e){super(bf),this.value=e}toJSON(e,t){return t?.keep?this.value:Bd(this.value,e,t)}toString(){return String(this.value)}}Ji.BLOCK_FOLDED="BLOCK_FOLDED";Ji.BLOCK_LITERAL="BLOCK_LITERAL";Ji.PLAIN="PLAIN";Ji.QUOTE_DOUBLE="QUOTE_DOUBLE";Ji.QUOTE_SINGLE="QUOTE_SINGLE";const OGe="tag:yaml.org,2002:";function MGe(n,e,t){if(e){const i=t.filter(r=>r.tag===e),s=i.find(r=>!r.format)??i[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return t.find(i=>i.identify?.(n)&&!i.format)}function eL(n,e,t){if(CR(n)&&(n=n.contents),Wr(n))return n;if(Gr(n)){const u=t.schema[$m].createNode?.(t.schema,null,t);return u.items.push(n),u}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:i,onAnchor:s,onTagObj:r,schema:o,sourceObjects:a}=t;let l;if(i&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor||(l.anchor=s(n)),new nJ(l.anchor);l={anchor:null,node:null},a.set(n,l)}e?.startsWith("!!")&&(e=OGe+e.slice(2));let c=MGe(n,e,o.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const u=new Ji(n);return l&&(l.node=u),u}c=n instanceof Map?o[$m]:Symbol.iterator in Object(n)?o[i0]:o[$m]}r&&(r(c),delete t.onTagObj);const d=c?.createNode?c.createNode(t.schema,n,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,n,t):new Ji(n);return e?d.tag=e:c.default||(d.tag=c.tag),l&&(l.node=d),d}function SM(n,e,t){let i=t;for(let s=e.length-1;s>=0;--s){const r=e[s];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=i,i=o}else i=new Map([[r,i]])}return eL(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const Y1=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class nIe extends iJ{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(i=>Wr(i)||Gr(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Y1(e))this.add(t);else{const[i,...s]=e,r=this.get(i,!0);if(Vr(r))r.addIn(s,t);else if(r===void 0&&this.schema)this.set(i,SM(this.schema,s,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}}deleteIn(e){const[t,...i]=e;if(i.length===0)return this.delete(t);const s=this.get(t,!0);if(Vr(s))return s.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){const[i,...s]=e,r=this.get(i,!0);return s.length===0?!t&&Ys(r)?r.value:r:Vr(r)?r.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Gr(t))return!1;const i=t.value;return i==null||e&&Ys(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){const[t,...i]=e;if(i.length===0)return this.has(t);const s=this.get(t,!0);return Vr(s)?s.hasIn(i):!1}setIn(e,t){const[i,...s]=e;if(s.length===0)this.set(i,t);else{const r=this.get(i,!0);if(Vr(r))r.setIn(s,t);else if(r===void 0&&this.schema)this.set(i,SM(this.schema,s,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}}}const PGe=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function Ng(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const sb=(n,e,t)=>n.endsWith(`
40
40
  `)?Ng(t,e):t.includes(`
41
41
  `)?`
@@ -165,14 +165,14 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
165
165
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
166
166
  `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const i=!this.onKeyLine&&this.indent===e.indent,s=i&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(s&&t.sep&&!t.value){const o=[];for(let a=0;a<t.sep.length;++a){const l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):s||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Pv(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(MIe(t.key)&&!Pv(t.sep,"newline")){const o=Ey(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(Pv(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const o=Ey(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:r,key:null,sep:[this.sourceToken]}):Pv(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);s||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){i&&o.type!=="block-seq"&&e.items.push({start:r}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Pv(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){const i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:s,sep:[]}):t.sep?this.stack.push(s):Object.assign(t,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const s=eN(i),r=Ey(s);Qae(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
167
167
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
168
- `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=eN(e),i=Ey(t);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=eN(e),i=Ey(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function Mqe(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new Aqe||null,prettyErrors:e}}function Pqe(n,e={}){const{lineCounter:t,prettyErrors:i}=Mqe(e),s=new Oqe(t?.addNewLine),r=new xqe(e);let o=null;for(const a of r.compose(s.parse(n),!0,n.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Q1(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&t&&(o.errors.forEach(Gae(n,t)),o.warnings.forEach(Gae(n,t))),o}function Fqe(n,e,t){let i;const s=Pqe(n,t);if(!s)return null;if(s.warnings.forEach(r=>oIe(s.options.logLevel,r)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:i},t))}function Xae(n,e,t){let i=null;if(Array.isArray(e)?i=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const s=Math.round(t);t=s<1?void 0:s>8?{indent:8}:{indent:s}}if(n===void 0){const{keepUndefined:s}=t??e??{};if(!s)return}return CR(n)&&!i?n.toString(t):new gJ(n,i,t).toString(t)}const Bqe={class:"editor-container"},Vqe=["title"],Hqe=Dt({__name:"ComplexEditor",props:WS({componentType:{},name:{},arg:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=n.arg.schema.default??(n.arg.schema.type==="object"?{}:[]),i=Me(!1),s=Me(null),r=Me(Xae(e.value||t,null,2)),o=()=>{i.value=!1,r.value=Xae(e.value,null,2),s.value=null},a=()=>{try{e.value=Fqe(r.value),i.value=!1,s.value=null}catch(l){s.value=l instanceof Error?l.message:String(l)}};return(l,c)=>(xe(),ot(SR,{modelValue:le(i),"onUpdate:modelValue":c[1]||(c[1]=d=>pi(i)?i.value=d:null),class:"dialog"},{activator:We(({props:d})=>[K(ps,qt(d,{variant:"outlined"}),{default:We(()=>[gi(rn(("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta)),1)]),_:2},1040)]),default:We(()=>[K(wc,{title:("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta),variant:"flat",color:"#1e1e1e"},{default:We(()=>[Fi("div",Bqe,[K(le(XTe),{value:le(r),"onUpdate:value":c[0]||(c[0]=d=>pi(r)?r.value=d:null),class:"editor",theme:"vs-dark",language:"yaml",path:`${l.componentType}.${l.name}`},null,8,["value","path"])]),K(ch,null,{default:We(()=>[le(s)?(xe(),gt("div",{key:0,class:"text-error text-truncate",title:le(s)},rn(le(s)),9,Vqe)):ei("",!0),K(Ud),K(ps,{onClick:o},{default:We(()=>c[2]||(c[2]=[gi("Cancel")])),_:1}),K(ps,{onClick:a},{default:We(()=>c[3]||(c[3]=[gi("Save")])),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),Wqe=Xs(Hqe,[["__scopeId","data-v-80932053"]]),PIe=Symbol.for("vuetify:selection-control-group"),FIe=Tt({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ts,trueIcon:ts,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:Pu},...kn(),...lh(),...Jo()},"SelectionControlGroup"),Uqe=Tt({...FIe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Ei()({name:"VSelectionControlGroup",props:Uqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),s=Zd(),r=ue(()=>n.id||`v-selection-control-group-${s}`),o=ue(()=>n.name||r.value),a=new Set;return ur(PIe,{modelValue:i,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),ir(()=>{a.delete(l)})}}),XE({[n.defaultsTarget]:{color:Lt(n,"color"),disabled:Lt(n,"disabled"),density:Lt(n,"density"),error:Lt(n,"error"),inline:Lt(n,"inline"),modelValue:i,multiple:ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),name:o,falseIcon:Lt(n,"falseIcon"),trueIcon:Lt(n,"trueIcon"),readonly:Lt(n,"readonly"),ripple:Lt(n,"ripple"),type:Lt(n,"type"),valueComparator:Lt(n,"valueComparator")}}),tn(()=>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 BIe=Tt({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...kn(),...FIe()},"VSelectionControl");function $qe(n){const e=Yn(PIe,void 0),{densityClasses:t}=Of(n),i=Ks(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?hc(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?[...hc(i.value),g]:hc(i.value).filter(m=>!n.valueComparator(m,s.value))),e?e.modelValue.value=p:i.value=p}}),{textColorClasses:l,textColorStyles:c}=Ku(ue(()=>{if(!(n.error||n.disabled))return a.value?n.color:n.baseColor})),{backgroundColorClasses:d,backgroundColorStyles:u}=Wm(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 Zae=Ei()({name:"VSelectionControl",directives:{Ripple:bR},inheritAttrs:!1,props:BIe(),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}=$qe(n),f=Zd(),g=$t(!1),p=$t(!1),m=Me(),v=ue(()=>n.id||`input-${f}`),_=ue(()=>!n.disabled&&!n.readonly);s?.onForceUpdate(()=>{m.value&&(m.value.checked=a.value)});function b(T){_.value&&(g.value=!0,sM(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(!_.value){m.value&&(m.value.checked=a.value);return}n.readonly&&s&&Vi(()=>s.forceUpdate()),a.value=T.target.checked}return tn(()=>{const T=i.label?i.label({label:n.label,props:{for:v.value}}):n.label,[w,I]=gB(t),R=K("input",qt({ref:m,checked:a.value,disabled:!!n.disabled,id:v.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",qt({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]},w,{style:n.style}),[K("div",{class:["v-selection-control__wrapper",l.value],style:c.value},[i.default?.({backgroundColorClasses:d,backgroundColorStyles:u}),Al(K("div",{class:["v-selection-control__input"]},[i.input?.({model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,inputNode:R,icon:o.value,props:{onFocus:b,onBlur:S,id:v.value}})??K(Ct,null,[o.value&&K(Ui,{key:"icon",icon:o.value},null),R])]),[[A_("ripple"),n.ripple&&[!n.disabled&&!n.readonly,null,["center","circle"]]]])]),T&&K(Y1e,{for:v.value,onClick:y},{default:()=>[T]})])}),{isFocused:g,input:m}}}),VIe=Tt({indeterminate:Boolean,indeterminateIcon:{type:ts,default:"$checkboxIndeterminate"},...BIe({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),CM=Ei()({name:"VCheckboxBtn",props:VIe(),emits:{"update:modelValue":n=>!0,"update:indeterminate":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"indeterminate"),s=Ks(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 tn(()=>{const l=Cp(Zae.filterProps(n),["modelValue"]);return K(Zae,qt(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)}),{}}}),zqe=Tt({...EB(),...Cp(VIe(),["inline"])},"VCheckbox"),X1=Ei()({name:"VCheckbox",inheritAttrs:!1,props:zqe(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const s=Ks(n,"modelValue"),{isFocused:r,focus:o,blur:a}=yB(n),l=Zd(),c=ue(()=>n.id||`checkbox-${l}`);return tn(()=>{const[d,u]=gB(t),h=$w.filterProps(n),f=CM.filterProps(n);return K($w,qt({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:v,isReadonly:_,isValid:b}=g;return K(CM,qt(f,{id:p.value,"aria-describedby":m.value,disabled:v.value,readonly:_.value},u,{error:b.value===!1,modelValue:s.value,"onUpdate:modelValue":S=>s.value=S,onFocus:o,onBlur:a}),i)}})}),{}}});function Gqe(n){let{selectedElement:e,containerElement:t,isRtl:i,isHorizontal:s}=n;const r=iL(s,t),o=HIe(s,i,t),a=iL(s,e),l=WIe(s,e),c=a*.4;return o>l?l-c:o+r<l+a?l-r+a+c:o}function qqe(n){let{selectedElement:e,containerElement:t,isHorizontal:i}=n;const s=iL(i,t),r=WIe(i,e),o=iL(i,e);return r-s/2+o/2}function Jae(n,e){return e?.[n?"scrollWidth":"scrollHeight"]||0}function Kqe(n,e){return e?.[n?"clientWidth":"clientHeight"]||0}function HIe(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 iL(n,e){return e?.[n?"offsetWidth":"offsetHeight"]||0}function WIe(n,e){return e?.[n?"offsetLeft":"offsetTop"]||0}const jqe=Symbol.for("vuetify:v-slide-group"),UIe=Tt({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:jqe},nextIcon:{type:ts,default:"$next"},prevIcon:{type:ts,default:"$prev"},showArrows:{type:[Boolean,String],validator:n=>typeof n=="boolean"||["always","desktop","mobile"].includes(n)},...kn(),...k6e({mobile:null}),...ea(),...KZ({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ele=Ei()({name:"VSlideGroup",props:UIe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{isRtl:i}=O_(),{displayClasses:s,mobile:r}=RZ(n),o=jZ(n,n.symbol),a=$t(!1),l=$t(0),c=$t(0),d=$t(0),u=ue(()=>n.direction==="horizontal"),{resizeRef:h,contentRect:f}=jI(),{resizeRef:g,contentRect:p}=jI(),m=M6e(),v=ue(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),_=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(cs){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(_.value>=0&&g.el){const W=g.el.children[b.value];y(W,n.centerActive)}})})}const S=$t(!1);function y(P,W){let H=0;W?H=qqe({containerElement:h.el,isHorizontal:u.value,selectedElement:P}):H=Gqe({containerElement:h.el,isHorizontal:u.value,isRtl:i.value,selectedElement:P}),C(H)}function C(P){if(!cs||!h.el)return;const W=iL(u.value,h.el),H=HIe(u.value,i.value,h.el);if(!(Jae(u.value,h.el)<=W||Math.abs(P-H)<16)){if(u.value&&i.value&&h.el){const{scrollWidth:U,offsetWidth:Z}=h.el;P=U-Z-P}u.value?m.horizontal(P,v.value):m(P,v.value)}}function T(P){const{scrollTop:W,scrollLeft:H}=P.target;l.value=u.value?H:W}function w(P){if(S.value=!0,!(!a.value||!g.el)){for(const W of P.composedPath())for(const H of g.el.children)if(H===W){y(H);return}}}function I(P){S.value=!1}let R=!1;function D(P){!R&&!S.value&&!(P.relatedTarget&&g.el?.contains(P.relatedTarget))&&N(),R=!1}function L(){R=!0}function k(P){if(!g.el)return;function W(H){P.preventDefault(),N(H)}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 x(P,W){if(!P)return;let H=P;do H=H?.[W==="next"?"nextElementSibling":"previousElementSibling"];while(H?.hasAttribute("disabled"));return H}function N(P){if(!g.el)return;let W;if(!P)W=$I(g.el)[0];else if(P==="next"){if(W=x(g.el.querySelector(":focus"),P),!W)return N("first")}else if(P==="prev"){if(W=x(g.el.querySelector(":focus"),P),!W)return N("last")}else P==="first"?(W=g.el.firstElementChild,W?.hasAttribute("disabled")&&(W=x(W,"next"))):P==="last"&&(W=g.el.lastElementChild,W?.hasAttribute("disabled")&&(W=x(W,"prev")));W&&W.focus({preventScroll:!0})}function A(P){const W=u.value&&i.value?-1:1,H=(P==="prev"?-W:W)*c.value;let F=l.value+H;if(u.value&&i.value&&h.el){const{scrollWidth:U,offsetWidth:Z}=h.el;F+=U-Z}C(F)}const B=ue(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),V=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=Jae(u.value,h.el),W=Kqe(u.value,h.el);return P-W-Math.abs(l.value)>1});return tn(()=>K(n.tag,{class:["v-slide-group",{"v-slide-group--vertical":!u.value,"v-slide-group--has-affixes":V.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:D},{default:()=>[V.value&&K("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!O.value}],onMousedown:L,onClick:()=>O.value&&A("prev")},[t.prev?.(B.value)??K(gae,null,{default:()=>[K(Ui,{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:w,onFocusout:I,onKeydown:k},[t.default?.(B.value)])]),V.value&&K("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}],onMousedown:L,onClick:()=>M.value&&A("next")},[t.next?.(B.value)??K(gae,null,{default:()=>[K(Ui,{icon:i.value?n.prevIcon:n.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:A,scrollOffset:l,focus:N,hasPrev:O,hasNext:M}}}),$Ie=Symbol.for("vuetify:v-chip-group"),Yqe=Tt({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Pu},...UIe(),...kn(),...KZ({selectedClass:"v-chip--selected"}),...ea(),...Jo(),...Tp({variant:"tonal"})},"VChipGroup");Ei()({name:"VChipGroup",props:Yqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{themeClasses:i}=Hl(n),{isSelected:s,select:r,next:o,prev:a,selected:l}=jZ(n,$Ie);return XE({VChip:{color:Lt(n,"color"),disabled:Lt(n,"disabled"),filter:Lt(n,"filter"),variant:Lt(n,"variant")}}),tn(()=>{const c=ele.filterProps(n);return K(ele,qt(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 Qqe=Tt({activeClass:String,appendAvatar:String,appendIcon:ts,closable:Boolean,closeIcon:{type:ts,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:ts,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ts,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:fc(),onClickOnce:fc(),...$S(),...kn(),...lh(),...GS(),...cTe(),...oh(),...LB(),..._R(),...ea({tag:"span"}),...Jo(),...Tp({variant:"tonal"})},"VChip"),qg=Ei()({name:"VChip",directives:{Ripple:bR},props:Qqe(),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}=zS(n),{colorClasses:a,colorStyles:l,variantClasses:c}=t0(n),{densityClasses:d}=Of(n),{elevationClasses:u}=qS(n),{roundedClasses:h}=ah(n),{sizeClasses:f}=vR(n),{themeClasses:g}=Hl(n),p=Ks(n,"modelValue"),m=dTe(n,$Ie,!1),v=IB(n,t),_=ue(()=>n.link!==!1&&v.isLink.value),b=ue(()=>!n.disabled&&n.link!==!1&&(!!m||n.link||v.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&&(v.navigate?.(T),m?.toggle())}function C(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),y(T))}return()=>{const T=v.isLink.value?"a":n.tag,w=!!(n.appendIcon||n.appendAvatar),I=!!(w||s.append),R=!!(s.close||n.closable),D=!!(s.filter||n.filter)&&m,L=!!(n.prependIcon||n.prependAvatar),k=!!(L||s.prepend),x=!m||m.isSelected.value;return p.value&&Al(K(T,qt({class:["v-chip",{"v-chip--disabled":n.disabled,"v-chip--label":n.label,"v-chip--link":b.value,"v-chip--filter":D,"v-chip--pill":n.pill,[`${n.activeClass}`]:n.activeClass&&v.isActive?.value},g.value,o.value,x?a.value:void 0,d.value,u.value,h.value,f.value,c.value,m?.selectedClass.value,n.class],style:[x?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&&!_.value&&C},v.linkProps),{default:()=>[e0(b.value,"v-chip"),D&&K(K1e,{key:"filter"},{default:()=>[Al(K("div",{class:"v-chip__filter"},[s.filter?K(Hr,{key:"filter-defaults",disabled:!n.filterIcon,defaults:{VIcon:{icon:n.filterIcon}}},s.filter):K(Ui,{key:"filter-icon",icon:n.filterIcon},null)]),[[YE,m.isSelected.value]])]}),k&&K("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?K(Hr,{key:"prepend-defaults",disabled:!L,defaults:{VAvatar:{image:n.prependAvatar,start:!0},VIcon:{icon:n.prependIcon,start:!0}}},s.prepend):K(Ct,null,[n.prependIcon&&K(Ui,{key:"prepend-icon",icon:n.prependIcon,start:!0},null),n.prependAvatar&&K(tp,{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})??rn(n.text)]),I&&K("div",{key:"append",class:"v-chip__append"},[s.append?K(Hr,{key:"append-defaults",disabled:!w,defaults:{VAvatar:{end:!0,image:n.appendAvatar},VIcon:{end:!0,icon:n.appendIcon}}},s.append):K(Ct,null,[n.appendIcon&&K(Ui,{key:"append-icon",end:!0,icon:n.appendIcon},null),n.appendAvatar&&K(tp,{key:"append-avatar",end:!0,image:n.appendAvatar},null)])]),R&&K("button",qt({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},S.value),[s.close?K(Hr,{key:"close-defaults",defaults:{VIcon:{icon:n.closeIcon,size:"x-small"}}},s.close):K(Ui,{key:"close-icon",icon:n.closeIcon,size:"x-small"},null)])]}),[[A_("ripple"),b.value&&n.ripple,null]])}}}),Xqe=Tt({id:String,submenu:Boolean,...Cp(RB({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:FZ}}),["absolute"])},"VMenu"),HB=Ei()({name:"VMenu",props:Xqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),{scopeId:s}=xB(),{isRtl:r}=O_(),o=Zd(),a=ue(()=>n.id||`v-menu-${o}`),l=Me(),c=Yn(pz,null),d=$t(new Set);ur(pz,{register(){d.value.add(o)},unregister(){d.value.delete(o)},closeParents(m){setTimeout(()=>{!d.value.size&&!n.persistent&&(m==null||l.value?.contentEl&&!mWe(m,l.value.contentEl))&&(i.value=!1,c?.closeParents())},40)}}),Zo(()=>{c?.unregister(),document.removeEventListener("focusin",u)}),eZ(()=>i.value=!1);async function u(m){const v=m.relatedTarget,_=m.target;await Vi(),i.value&&v!==_&&l.value?.contentEl&&l.value?.globalTop&&![document,l.value.contentEl].includes(_)&&!l.value.contentEl.contains(_)&&$I(l.value.contentEl)[0]?.focus()}rt(i,m=>{m?(c?.register(),cs&&document.addEventListener("focusin",u,{once:!0})):(c?.unregister(),cs&&document.removeEventListener("focusin",u))},{immediate:!0});function h(m){c?.closeParents(m)}function f(m){if(!n.disabled)if(m.key==="Tab"||m.key==="Enter"&&!n.closeOnContentClick){if(m.key==="Enter"&&(m.target instanceof HTMLTextAreaElement||m.target instanceof HTMLInputElement&&m.target.closest("form")))return;m.key==="Enter"&&m.preventDefault(),q0e($I(l.value?.contentEl,!1),m.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(i.value=!1,l.value?.activatorEl?.focus())}else n.submenu&&m.key===(r.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,l.value?.activatorEl?.focus())}function g(m){if(n.disabled)return;const v=l.value?.contentEl;v&&i.value?m.key==="ArrowDown"?(m.preventDefault(),m.stopImmediatePropagation(),WT(v,"next")):m.key==="ArrowUp"?(m.preventDefault(),m.stopImmediatePropagation(),WT(v,"prev")):n.submenu&&(m.key===(r.value?"ArrowRight":"ArrowLeft")?i.value=!1:m.key===(r.value?"ArrowLeft":"ArrowRight")&&(m.preventDefault(),WT(v,"first"))):(n.submenu?m.key===(r.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(m.key))&&(i.value=!0,m.preventDefault(),setTimeout(()=>setTimeout(()=>g(m))))}const p=ue(()=>qt({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-controls":a.value,onKeydown:g},n.activatorProps));return tn(()=>{const m=i_.filterProps(n);return K(i_,qt({ref:l,id:a.value,class:["v-menu",n.class],style:n.style},m,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,absolute:!0,activatorProps:p.value,location:n.location??(n.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:f},s),{activator:t.activator,default:function(){for(var v=arguments.length,_=new Array(v),b=0;b<v;b++)_[b]=arguments[b];return K(Hr,{root:"VMenu"},{default:()=>[t.default?.(..._)]})}})}),M_({id:a,ΨopenChildren:d},l)}}),Zqe=Tt({renderless:Boolean,...kn()},"VVirtualScrollItem"),Jqe=Ei()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Zqe(),emits:{"update:height":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{resizeRef:r,contentRect:o}=jI(void 0,"border");rt(()=>o.value?.height,a=>{a!=null&&i("update:height",a)}),tn(()=>n.renderless?K(Ct,null,[s.default?.({itemRef:r})]):K("div",qt({ref:r,class:["v-virtual-scroll__item",n.class],style:n.style},t),[s.default?.()]))}}),eKe=-1,tKe=1,yV=100,iKe=Tt({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function nKe(n,e){const t=RZ(),i=$t(0);ja(()=>{i.value=parseFloat(n.itemHeight||0)});const s=$t(0),r=$t(Math.ceil((parseInt(n.height)||t.height.value)/(i.value||16))||1),o=$t(0),a=$t(0),l=Me(),c=Me();let d=0;const{resizeRef:u,contentRect:h}=jI();ja(()=>{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 v=$t(0);let _=-1;function b(M){return p[M]||i.value}const S=hWe(()=>{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);v.value=Math.max(v.value,performance.now()-M)},v),y=rt(g,M=>{M&&(y(),d=c.value.offsetTop,S.immediate(),A(),~_&&Vi(()=>{cs&&window.requestAnimationFrame(()=>{V(_),_=-1})}))});ir(()=>{S.clear()});function C(M,P){const W=p[M],H=i.value;i.value=H?Math.min(i.value,P):P,(W!==P||H!==i.value)&&(p[M]=P,S())}function T(M){return M=of(M,0,e.value.length-1),m[M]||0}function w(M){return sKe(m,M)}let I=0,R=0,D=0;rt(f,(M,P)=>{P&&(A(),M<P&&requestAnimationFrame(()=>{R=0,A()}))});let L=-1;function k(){if(!l.value||!c.value)return;const M=l.value.scrollTop,P=performance.now();P-D>500?(R=Math.sign(M-I),d=c.value.offsetTop):R=M-I,I=M,D=P,window.clearTimeout(L),L=window.setTimeout(x,500),A()}function x(){!l.value||!c.value||(R=0,D=0,window.clearTimeout(L),A())}let N=-1;function A(){cancelAnimationFrame(N),N=requestAnimationFrame(B)}function B(){if(!l.value||!f.value)return;const M=I-d,P=Math.sign(R),W=Math.max(0,M-yV),H=of(w(W),0,e.value.length),F=M+f.value+yV,U=of(w(F)+1,H+1,e.value.length);if((P!==eKe||H<s.value)&&(P!==tKe||U>r.value)){const Z=T(s.value)-T(H),X=T(U)-T(r.value);Math.max(Z,X)>yV?(s.value=H,r.value=U):(H<=0&&(s.value=H),U>=e.value.length&&(r.value=U))}o.value=T(s.value),a.value=T(e.value.length)-T(r.value)}function V(M){const P=T(M);!l.value||M&&!P?_=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:H0e(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:V,handleScroll:k,handleScrollend:x,handleItemResize:C}}function sKe(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 rKe=Tt({items:{type:Array,default:()=>[]},renderless:Boolean,...iKe(),...kn(),...wp()},"VVirtualScroll"),zIe=Ei()({name:"VVirtualScroll",props:rKe(),setup(n,e){let{slots:t}=e;const i=mo("VVirtualScroll"),{dimensionStyles:s}=Ep(n),{calculateVisibleItems:r,containerRef:o,markerRef:a,handleScroll:l,handleScrollend:c,handleItemResize:d,scrollToIndex:u,paddingTop:h,paddingBottom:f,computedItems:g}=nKe(n,Lt(n,"items"));return Zb(()=>n.renderless,()=>{function p(){const v=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[v]("scroll",l,{passive:!0}),document[v]("scrollend",c)):(o.value?.[v]("scroll",l,{passive:!0}),o.value?.[v]("scrollend",c))}nr(()=>{o.value=n1e(i.vnode.el,!0),p(!0)}),ir(p)}),tn(()=>{const p=g.value.map(m=>K(Jqe,{key:m.key,renderless:n.renderless,"onUpdate:height":v=>d(m.index,v)},{default:v=>t.default?.({item:m.raw,index:m.index,...v})}));return n.renderless?K(Ct,null,[K("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:un(h.value)}},null),p,K("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:un(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:un(h.value),paddingBottom:un(f.value)}},[p])])}),{calculateVisibleItems:r,scrollToIndex:u}}});function GIe(n,e){const t=$t(!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 qIe=Tt({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:ts,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...WTe({itemChildren:!1})},"Select"),oKe=Tt({...qIe(),...Cp($Z({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...JE({transition:{component:FZ}})},"VSelect"),aKe=Ei()({name:"VSelect",props:oKe(),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=Me(),r=Me(),o=Me(),a=Ks(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}=$Te(n),h=Ks(n,"modelValue",[],O=>d(O===null?[null]:hc(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=WZ(n),p=ue(()=>h.value.map(O=>O.value)),m=$t(!1),v=ue(()=>l.value?n.closeText:n.openText);let _="",b;const S=ue(()=>n.hideSelected?c.value.filter(O=>!h.value.some(M=>(n.valueComparator||Pu)(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=Me(),w=GIe(T,s);function I(O){n.openOnClear&&(l.value=!0)}function R(){y.value||(l.value=!l.value)}function D(O){rM(O)&&L(O)}function L(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(!rM(O))return;const P=performance.now();P-b>M&&(_=""),_+=O.key.toLowerCase(),b=P;const W=c.value.find(H=>H.title.toLowerCase().startsWith(_));if(W!==void 0){h.value=[W];const H=S.value.indexOf(W);cs&&window.requestAnimationFrame(()=>{H>=0&&o.value?.scrollToIndex(H)})}}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(H=>(n.valueComparator||Pu)(H.value,O.value)),W=M??!~P;if(~P){const H=W?[...h.value,O]:[...h.value];H.splice(P,1),h.value=H}else W&&(h.value=[...h.value,O])}else{const P=M!==!1;h.value=P?[O]:[],Vi(()=>{l.value=!1})}}function x(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 B(O){m.value=!0}function V(O){if(O==null)h.value=[];else if(sM(s.value,":autofill")||sM(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||Pu)(P.value,M.value)));cs&&window.requestAnimationFrame(()=>{O>=0&&o.value?.scrollToIndex(O)})}}),rt(()=>n.items,(O,M)=>{l.value||m.value&&!M.length&&O.length&&(l.value=!0)}),tn(()=>{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=_f.filterProps(n),H=P||!m.value&&n.label&&!n.persistentPlaceholder?void 0:n.placeholder;return K(_f,qt({ref:s},W,{modelValue:h.value.map(F=>F.props.value).join(", "),"onUpdate:modelValue":V,focused:m.value,"onUpdate:focused":F=>m.value=F,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:H,"onClick:clear":I,"onMousedown:control":R,onBlur:x,onKeydown:L,"aria-label":i(v.value),title:i(v.value)}),{...t,default:()=>K(Ct,null,[K(HB,qt({ref:r,modelValue:l.value,"onUpdate:modelValue":F=>l.value=F,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(DB,qt({ref:T,selected:p.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:F=>F.preventDefault(),onKeydown:D,onFocusin:B,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},w,n.listProps),{default:()=>[t["prepend-item"]?.(),!S.value.length&&!n.hideNoData&&(t["no-data"]?.()??K(ip,{key:"no-data",title:i(n.noDataText)},null)),K(zIe,{ref:o,renderless:!0,items:S.value},{default:F=>{let{item:U,index:Z,itemRef:X}=F;const G=qt(U.props,{ref:X,key:U.value,onClick:()=>k(U,null)});return t.item?.({item:U,index:Z,props:G})??K(ip,qt(G,{role:"option"}),{prepend:he=>{let{isSelected:_e}=he;return K(Ct,null,[n.multiple&&!n.hideSelected?K(CM,{key:U.value,modelValue:_e,ripple:!1,tabindex:"-1"},null):void 0,U.props.prependAvatar&&K(tp,{image:U.props.prependAvatar},null),U.props.prependIcon&&K(Ui,{icon:U.props.prependIcon},null)])}})}}),t["append-item"]?.()]})]}),h.value.map((F,U)=>{function Z(_e){_e.stopPropagation(),_e.preventDefault(),k(F,!1)}const X={"onClick:close":Z,onKeydown(_e){_e.key!=="Enter"&&_e.key!==" "||(_e.preventDefault(),_e.stopPropagation(),Z(_e))},onMousedown(_e){_e.preventDefault(),_e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},G=O?!!t.chip:!!t.selection,he=G?CZ(O?t.chip({item:F,index:U,props:X}):t.selection({item:F,index:U})):void 0;if(!(G&&!he))return K("div",{key:F.value,class:"v-select__selection"},[O?t.chip?K(Hr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:F.title}}},{default:()=>[he]}):K(qg,qt({key:"chip",closable:n.closableChips,size:"small",text:F.title,disabled:F.props.disabled},X),null):he??K("span",{class:"v-select__selection-text"},[F.title,n.multiple&&U<h.value.length-1&&K("span",{class:"v-select__selection-comma"},[gi(",")])])])})]),"append-inner":function(){for(var F=arguments.length,U=new Array(F),Z=0;Z<F;Z++)U[Z]=arguments[Z];return K(Ct,null,[t["append-inner"]?.(...U),n.menuIcon?K(Ui,{class:"v-select__menu-icon",icon:n.menuIcon},null):void 0])}})}),M_({isFocused:m,menu:l,select:k},s)}}),lKe=(n,e,t)=>n==null||e==null?-1:n.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),cKe=Tt({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function dKe(n,e,t){const i=[],s=t?.default??lKe,r=t?.filterKeys?hc(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]=hc(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 v=Qh(c,m),_=t?.customKeyFilter?.[m];if(h=_?_(v,e,l):s(v,e,l),h!==-1&&h!==!1)_?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 uKe(n,e,t,i){const s=$t([]),r=$t(new Map),o=ue(()=>le(e));ja(()=>{const l=typeof t=="function"?t():le(t),c=typeof l!="string"&&typeof l!="number"?"":String(l),d=dKe(o.value,c,{customKeyFilter:{...n.customKeyFilter,...le(i?.customKeyFilter)},default:n.customFilter,filterKeys:n.filterKeys,filterMode:n.filterMode,noFilter:n.noFilter}),u=le(e),h=[],f=new Map;d.forEach(g=>{let{index:p,matches:m}=g;const v=u[p];h.push(v),f.set(v.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 hKe(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(Ct,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 fKe=Tt({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...cKe({filterKeys:["title"]}),...qIe({hideNoData:!0,returnObject:!0}),...Cp($Z({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...JE({transition:!1})},"VCombobox"),gKe=Ei()({name:"VCombobox",props:fKe(),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=Me(),o=$t(!1),a=$t(!0),l=$t(!1),c=Me(),d=Me(),u=Ks(n,"menu"),h=ue({get:()=>u.value,set:Q=>{u.value&&!Q&&c.value?.ΨopenChildren.size||(u.value=Q)}}),f=$t(-1);let g=!1;const p=ue(()=>r.value?.color),m=ue(()=>h.value?n.closeText:n.openText),{items:v,transformIn:_,transformOut:b}=$Te(n),{textColorClasses:S,textColorStyles:y}=Ku(p),C=Ks(n,"modelValue",[],Q=>_(hc(Q)),Q=>{const Y=b(Q);return n.multiple?Y:Y[0]??null}),T=WZ(n),w=ue(()=>!!(n.chips||i.chip)),I=ue(()=>w.value||!!i.selection),R=$t(!n.multiple&&!I.value?C.value[0]?.title??"":""),D=ue({get:()=>R.value,set:Q=>{if(R.value=Q??"",!n.multiple&&!I.value&&(C.value=[dm(n,Q)]),Q&&n.multiple&&n.delimiters?.length){const Y=Q.split(new RegExp(`(?:${n.delimiters.join("|")})+`));Y.length>1&&(Y.forEach(z=>{z=z.trim(),z&&G(dm(n,z))}),R.value="")}Q||(f.value=-1),a.value=!Q}}),L=ue(()=>typeof n.counterValue=="function"?n.counterValue(C.value):typeof n.counterValue=="number"?n.counterValue:n.multiple?C.value.length:D.value.length);rt(R,Q=>{g?Vi(()=>g=!1):o.value&&!h.value&&(h.value=!0),t("update:search",Q)}),rt(C,Q=>{!n.multiple&&!I.value&&(R.value=Q[0]?.title??"")});const{filteredItems:k,getMatches:x}=uKe(n,v,()=>a.value?"":D.value),N=ue(()=>n.hideSelected?k.value.filter(Q=>!C.value.some(Y=>Y.value===Q.value)):k.value),A=ue(()=>C.value.map(Q=>Q.value)),B=ue(()=>(n.autoSelectFirst===!0||n.autoSelectFirst==="exact"&&D.value===N.value[0]?.title)&&N.value.length>0&&!a.value&&!l.value),V=ue(()=>n.hideNoData&&!N.value.length||T.isReadonly.value||T.isDisabled.value),O=Me(),M=GIe(O,r);function P(Q){g=!0,n.openOnClear&&(h.value=!0)}function W(){V.value||(h.value=!0)}function H(Q){V.value||(o.value&&(Q.preventDefault(),Q.stopPropagation()),h.value=!h.value)}function F(Q){Q.key!==" "&&rM(Q)&&r.value?.focus()}function U(Q){if(uWe(Q)||T.isReadonly.value)return;const Y=r.value.selectionStart,z=C.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(Q.key)&&Q.preventDefault(),["Enter","ArrowDown"].includes(Q.key)&&(h.value=!0),["Escape"].includes(Q.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(Q.key)&&(B.value&&["Enter","Tab"].includes(Q.key)&&!C.value.some(j=>{let{value:ie}=j;return ie===N.value[0].value})&&G(k.value[0]),a.value=!0),Q.key==="ArrowDown"&&B.value&&O.value?.focus("next"),Q.key==="Enter"&&D.value&&(G(dm(n,D.value)),I.value&&(R.value="")),["Backspace","Delete"].includes(Q.key)){if(!n.multiple&&I.value&&C.value.length>0&&!D.value)return G(C.value[0],!1);if(~f.value){Q.preventDefault();const j=f.value;G(C.value[f.value],!1),f.value=j>=z-1?z-2:j}else Q.key==="Backspace"&&!D.value&&(f.value=z-1);return}if(n.multiple)if(Q.key==="ArrowLeft"){if(f.value<0&&Y>0)return;const j=f.value>-1?f.value-1:z-1;C.value[j]?f.value=j:(f.value=-1,r.value.setSelectionRange(D.value.length,D.value.length))}else if(Q.key==="ArrowRight"){if(f.value<0)return;const j=f.value+1;C.value[j]?f.value=j:(f.value=-1,r.value.setSelectionRange(0,0))}else~f.value&&rM(Q)&&(f.value=-1)}function Z(){n.eager&&d.value?.calculateVisibleItems()}function X(){o.value&&(a.value=!0,r.value?.focus())}function G(Q){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!Q||Q.props.disabled))if(n.multiple){const z=C.value.findIndex(ie=>(n.valueComparator||Pu)(ie.value,Q.value)),j=Y??!~z;if(~z){const ie=j?[...C.value,Q]:[...C.value];ie.splice(z,1),C.value=ie}else j&&(C.value=[...C.value,Q]);n.clearOnSelect&&(D.value="")}else{const z=Y!==!1;C.value=z?[Q]:[],R.value=z&&!I.value?Q.title:"",Vi(()=>{h.value=!1,a.value=!0})}}function he(Q){o.value=!0,setTimeout(()=>{l.value=!0})}function _e(Q){l.value=!1}function ee(Q){(Q==null||Q===""&&!n.multiple&&!I.value)&&(C.value=[])}return rt(o,(Q,Y)=>{if(!(Q||Q===Y)&&(f.value=-1,h.value=!1,D.value)){if(n.multiple){G(dm(n,D.value));return}if(!I.value)return;C.value.some(z=>{let{title:j}=z;return j===D.value})?R.value="":G(dm(n,D.value))}}),rt(h,()=>{if(!n.hideSelected&&h.value&&C.value.length){const Q=N.value.findIndex(Y=>C.value.some(z=>(n.valueComparator||Pu)(z.value,Y.value)));cs&&window.requestAnimationFrame(()=>{Q>=0&&d.value?.scrollToIndex(Q)})}}),rt(()=>n.items,(Q,Y)=>{h.value||o.value&&!Y.length&&Q.length&&(h.value=!0)}),tn(()=>{const Q=!!(!n.hideNoData||N.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),Y=C.value.length>0,z=_f.filterProps(n);return K(_f,qt({ref:r},z,{modelValue:D.value,"onUpdate:modelValue":[j=>D.value=j,ee],focused:o.value,"onUpdate:focused":j=>o.value=j,validationValue:C.externalValue,counterValue:L.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:U}),{...i,default:()=>K(Ct,null,[K(HB,qt({ref:c,modelValue:h.value,"onUpdate:modelValue":j=>h.value=j,activator:"parent",contentClass:"v-combobox__content",disabled:V.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:Z,onAfterLeave:X},n.menuProps),{default:()=>[Q&&K(DB,qt({ref:O,selected:A.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:j=>j.preventDefault(),onKeydown:F,onFocusin:he,onFocusout:_e,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(ip,{key:"no-data",title:s(n.noDataText)},null)),K(zIe,{ref:d,renderless:!0,items:N.value},{default:j=>{let{item:ie,index:J,itemRef:ve}=j;const Ne=qt(ie.props,{ref:ve,key:ie.value,active:B.value&&J===0?!0:void 0,onClick:()=>G(ie,null)});return i.item?.({item:ie,index:J,props:Ne})??K(ip,qt(Ne,{role:"option"}),{prepend:Te=>{let{isSelected:Ce}=Te;return K(Ct,null,[n.multiple&&!n.hideSelected?K(CM,{key:ie.value,modelValue:Ce,ripple:!1,tabindex:"-1"},null):void 0,ie.props.prependAvatar&&K(tp,{image:ie.props.prependAvatar},null),ie.props.prependIcon&&K(Ui,{icon:ie.props.prependIcon},null)])},title:()=>a.value?ie.title:hKe(ie.title,x(ie)?.title,D.value?.length??0)})}}),i["append-item"]?.()]})]}),C.value.map((j,ie)=>{function J(Ce){Ce.stopPropagation(),Ce.preventDefault(),G(j,!1)}const ve={"onClick:close":J,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),J(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Ne=w.value?!!i.chip:!!i.selection,Te=Ne?CZ(w.value?i.chip({item:j,index:ie,props:ve}):i.selection({item:j,index:ie})):void 0;if(!(Ne&&!Te))return K("div",{key:j.value,class:["v-combobox__selection",ie===f.value&&["v-combobox__selection--selected",S.value]],style:ie===f.value?y.value:{}},[w.value?i.chip?K(Hr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:j.title}}},{default:()=>[Te]}):K(qg,qt({key:"chip",closable:n.closableChips,size:"small",text:j.title,disabled:j.props.disabled},ve),null):Te??K("span",{class:"v-combobox__selection-text"},[j.title,n.multiple&&ie<C.value.length-1&&K("span",{class:"v-combobox__selection-comma"},[gi(",")])])])})]),"append-inner":function(){for(var j=arguments.length,ie=new Array(j),J=0;J<j;J++)ie[J]=arguments[J];return K(Ct,null,[i["append-inner"]?.(...ie),(!n.hideNoData||n.items.length)&&n.menuIcon?K(Ui,{class:"v-combobox__menu-icon",icon:n.menuIcon,onMousedown:H,onClick:gWe,"aria-label":s(m.value),title:s(m.value),tabindex:"-1"},null):void 0])}})}),M_({isFocused:o,isPristine:a,menu:h,search:D,selectionIndex:f,filteredItems:k,select:G},r)}}),pKe=Tt({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,...EB(),...HZ()},"VTextarea"),mKe=Ei()({name:"VTextarea",directives:{Intersect:UZ},inheritAttrs:!1,props:pKe(),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=Ks(n,"modelValue"),{isFocused:o,focus:a,blur:l}=yB(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(D,L){!n.autofocus||!D||L[0].target?.focus?.()}const h=Me(),f=Me(),g=$t(""),p=Me(),m=ue(()=>n.persistentPlaceholder||o.value||n.active);function v(){p.value!==document.activeElement&&p.value?.focus(),o.value||a()}function _(D){v(),i("click:control",D)}function b(D){i("mousedown:control",D)}function S(D){D.stopPropagation(),v(),Vi(()=>{r.value="",yZ(n["onClick:clear"],D)})}function y(D){const L=D.target;if(r.value=L.value,n.modelModifiers?.trim){const k=[L.selectionStart,L.selectionEnd];Vi(()=>{L.selectionStart=k[0],L.selectionEnd=k[1]})}}const C=Me(),T=Me(Number(n.rows)),w=ue(()=>["plain","underlined"].includes(n.variant));ja(()=>{n.autoGrow||(T.value=Number(n.rows))});function I(){n.autoGrow&&Vi(()=>{if(!C.value||!f.value)return;const D=getComputedStyle(C.value),L=getComputedStyle(f.value.$el),k=parseFloat(D.getPropertyValue("--v-field-padding-top"))+parseFloat(D.getPropertyValue("--v-input-padding-top"))+parseFloat(D.getPropertyValue("--v-field-padding-bottom")),x=C.value.scrollHeight,N=parseFloat(D.lineHeight),A=Math.max(parseFloat(n.rows)*N+k,parseFloat(L.getPropertyValue("--v-input-control-height"))),B=parseFloat(n.maxRows)*N+k||1/0,V=of(x??0,A,B);T.value=Math.floor((V-k)/N),g.value=un(V)})}nr(I),rt(r,I),rt(()=>n.rows,I),rt(()=>n.maxRows,I),rt(()=>n.density,I);let R;return rt(C,D=>{D?(R=new ResizeObserver(I),R.observe(C.value)):R?.disconnect()}),Zo(()=>{R?.disconnect()}),tn(()=>{const D=!!(s.counter||n.counter||n.counterValue),L=!!(D||s.details),[k,x]=gB(t),{modelValue:N,...A}=$w.filterProps(n),B=pM.filterProps(n);return K($w,qt({ref:h,modelValue:r.value,"onUpdate:modelValue":V=>r.value=V,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":w.value},n.class],style:n.style},k,A,{centerAffix:T.value===1&&!w.value,focused:o.value}),{...s,default:V=>{let{id:O,isDisabled:M,isDirty:P,isReadonly:W,isValid:H}=V;return K(pM,qt({ref:f,style:{"--v-textarea-control-height":g.value},onClick:_,onMousedown:b,"onClick:clear":S,"onClick:prependInner":n["onClick:prependInner"],"onClick:appendInner":n["onClick:appendInner"]},B,{id:O.value,active:m.value||P.value,centerAffix:T.value===1&&!w.value,dirty:P.value||n.dirty,disabled:M.value,focused:o.value,error:H.value===!1}),{...s,default:F=>{let{props:{class:U,...Z}}=F;return K(Ct,null,[n.prefix&&K("span",{class:"v-text-field__prefix"},[n.prefix]),Al(K("textarea",qt({ref:p,class:U,value:r.value,onInput:y,autofocus:n.autofocus,readonly:W.value,disabled:M.value,placeholder:n.placeholder,rows:n.rows,name:n.name,onFocus:v,onBlur:l},Z,x),null),[[A_("intersect"),{handler:u},null,{once:!0}]]),n.autoGrow&&Al(K("textarea",{class:[U,"v-textarea__sizer"],id:`${Z.id}-sizer`,"onUpdate:modelValue":X=>r.value=X,ref:C,readonly:!0,"aria-hidden":"true"},null),[[D3e,r.value]]),n.suffix&&K("span",{class:"v-text-field__suffix"},[n.suffix])])}})},details:L?V=>K(Ct,null,[s.details?.(V),D&&K(Ct,null,[K("span",null,null),K(j1e,{active:n.persistentCounter||o.value,value:c.value,max:d.value,disabled:n.disabled},s.counter)])]):void 0})}),M_({},h,f,p)}}),KIe=Dt({__name:"ComponentArgInput",props:WS({name:{},arg:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=Me(!1),i=ue(()=>n.isSecret?t.value?"text":"password":"text"),s=ue(()=>n.isSecret?t.value?e.value:"*".repeat(e.value?.length??0):e.value),r=ue(()=>"type"in n.arg.schema?n.arg.schema.type:"unknown"),o=ue(()=>r.value==="array"&&(n.arg.schema.items.type==="string"||n.arg.schema.items.type==="number"));return(a,l)=>{const c=TGe,d=Wqe;return le(r)==="string"&&a.arg.schema.language?(xe(),ot(c,{key:0,modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=u=>e.value=u),"component-type":a.instance.type,name:a.name,arg:a.arg},null,8,["modelValue","component-type","name","arg"])):le(r)==="string"&&!a.arg.schema.multiline?(xe(),ot(_f,{key:1,modelValue:e.value,"onUpdate:modelValue":l[2]||(l[2]=u=>e.value=u),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:le(i),placeholder:a.arg.schema.default},I7({_:2},[a.isSecret?{name:"append-inner",fn:We(()=>[K(Ui,{onClick:l[1]||(l[1]=u=>t.value=!le(t))},{default:We(()=>[gi(rn(le(t)?"mdi-eye-off":"mdi-eye"),1)]),_:1})]),key:"0"}:void 0]),1032,["modelValue","label","type","placeholder"])):le(r)==="string"&&a.arg.schema.multiline?(xe(),ot(mKe,{key:2,"model-value":le(s),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),variant:"outlined",density:"compact",placeholder:a.arg.schema.default,"hide-details":"","onUpdate:modelValue":l[4]||(l[4]=u=>e.value=u)},I7({_:2},[a.isSecret?{name:"append-inner",fn:We(()=>[K(Ui,{onClick:l[3]||(l[3]=u=>t.value=!le(t))},{default:We(()=>[gi(rn(le(t)?"mdi-eye-off":"mdi-eye"),1)]),_:1})]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])):le(r)==="number"?(xe(),ot(_f,{key:3,modelValue:e.value,"onUpdate:modelValue":l[5]||(l[5]=u=>e.value=u),modelModifiers:{number:!0},label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:"number",placeholder:a.arg.schema.default,"hide-details":""},null,8,["modelValue","label","placeholder"])):le(r)==="boolean"?(xe(),ot(X1,{key:4,modelValue:e.value,"onUpdate:modelValue":l[6]||(l[6]=u=>e.value=u),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),density:"compact","hide-details":""},null,8,["modelValue","label"])):le(o)?(xe(),ot(gKe,{key:5,modelValue:e.value,"onUpdate:modelValue":l[7]||(l[7]=u=>e.value=u),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),placeholder:a.arg.schema.default,variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},null,8,["modelValue","label","placeholder"])):"anyOf"in a.arg.schema?(xe(),ot(aKe,{key:6,modelValue:e.value,"onUpdate:modelValue":l[8]||(l[8]=u=>e.value=u),items:a.arg.schema.anyOf.map(u=>u.const),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),placeholder:a.arg.schema.default,variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","items","label","placeholder"])):le(r)==="object"||le(r)==="array"?(xe(),ot(d,{key:7,modelValue:e.value,"onUpdate:modelValue":l[9]||(l[9]=u=>e.value=u),"component-type":a.instance.type,name:a.name,arg:a.arg},null,8,["modelValue","component-type","name","arg"])):ei("",!0)}}});var jn;(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})(jn||(jn={}));var Tz;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Tz||(Tz={}));const Vt=jn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pg=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}},ht=jn.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"]),_Ke=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Kc 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 Kc))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,jn.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()}}Kc.create=n=>new Kc(n);const qw=(n,e)=>{let t;switch(n.code){case ht.invalid_type:n.received===Vt.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case ht.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,jn.jsonStringifyReplacer)}`;break;case ht.unrecognized_keys:t=`Unrecognized key(s) in object: ${jn.joinValues(n.keys,", ")}`;break;case ht.invalid_union:t="Invalid input";break;case ht.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${jn.joinValues(n.options)}`;break;case ht.invalid_enum_value:t=`Invalid enum value. Expected ${jn.joinValues(n.options)}, received '${n.received}'`;break;case ht.invalid_arguments:t="Invalid function arguments";break;case ht.invalid_return_type:t="Invalid function return type";break;case ht.invalid_date:t="Invalid date";break;case ht.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}"`:jn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case ht.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 ht.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 ht.custom:t="Invalid input";break;case ht.invalid_intersection_types:t="Intersection results could not be merged";break;case ht.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case ht.not_finite:t="Number must be finite";break;default:t=e.defaultError,jn.assertNever(n)}return{message:t}};let jIe=qw;function vKe(n){jIe=n}function wM(){return jIe}const EM=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}},bKe=[];function At(n,e){const t=wM(),i=EM({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===qw?void 0:qw].filter(s=>!!s)});n.common.issues.push(i)}class Ya{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 Pi;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 Ya.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 Pi;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 Pi=Object.freeze({status:"aborted"}),_C=n=>({status:"dirty",value:n}),Ol=n=>({status:"valid",value:n}),Iz=n=>n.status==="aborted",Lz=n=>n.status==="dirty",tS=n=>n.status==="valid",nL=n=>typeof Promise<"u"&&n instanceof Promise;function TM(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 YIe(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 ni;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e?.message})(ni||(ni={}));var Z1,J1;class Sf{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 tle=(n,e)=>{if(tS(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 Kc(n.common.issues);return this._error=t,this._error}}};function on(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 hn{get description(){return this._def.description}_getType(e){return pg(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:pg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ya,ctx:{common:e.parent.common,data:e.data,parsedType:pg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(nL(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:pg(e)},r=this._parseSync({data:e,path:s.path,parent:s});return tle(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:pg(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:s});return tS(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=>tS(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:pg(e)},s=this._parse({data:e,path:i.path,parent:i}),r=await(nL(s)?s:Promise.resolve(s));return tle(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:ht.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 ju({schema:this,typeName:Oi.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 af.create(this,this._def)}nullable(){return o_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fu.create(this)}promise(){return jw.create(this,this._def)}or(e){return aL.create([this,e],this._def)}and(e){return lL.create(this,e,this._def)}transform(e){return new ju({...on(this._def),schema:this,typeName:Oi.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new fL({...on(this._def),innerType:this,defaultValue:t,typeName:Oi.ZodDefault})}brand(){return new mJ({typeName:Oi.ZodBranded,type:this,...on(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new gL({...on(this._def),innerType:this,catchValue:t,typeName:Oi.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return LR.create(this,e)}readonly(){return pL.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SKe=/^c[^\s-]{8,}$/i,yKe=/^[0-9a-z]+$/,CKe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wKe=/^[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,EKe=/^[a-z0-9_-]{21}$/i,TKe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,IKe=/^[-+]?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)?)??$/,LKe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xKe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let CV;const RKe=/^(?:(?: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])$/,DKe=/^(?:(?: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])$/,NKe=/^(([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]))$/,kKe=/^(([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])$/,AKe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OKe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,QIe="((\\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])))",MKe=new RegExp(`^${QIe}$`);function XIe(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 PKe(n){return new RegExp(`^${XIe(n)}$`)}function ZIe(n){let e=`${QIe}T${XIe(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 FKe(n,e){return!!((e==="v4"||!e)&&RKe.test(n)||(e==="v6"||!e)&&NKe.test(n))}function BKe(n,e){if(!TKe.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 VKe(n,e){return!!((e==="v4"||!e)&&DKe.test(n)||(e==="v6"||!e)&&kKe.test(n))}class Du extends hn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Vt.string){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_type,expected:Vt.string,received:r.parsedType}),Pi}const i=new Ya;let s;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(s=this._getOrReturnCtx(e,s),At(s,{code:ht.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),At(s,{code:ht.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?At(s,{code:ht.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&At(s,{code:ht.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")LKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"email",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")CV||(CV=new RegExp(xKe,"u")),CV.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"emoji",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")wKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"uuid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")EKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"nanoid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")SKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cuid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")yKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cuid2",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")CKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"ulid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),At(s,{validation:"url",code:ht.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),At(s,{validation:"regex",code:ht.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),At(s,{code:ht.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),At(s,{code:ht.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?ZIe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?MKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?PKe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?IKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"duration",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?FKe(e.data,r.version)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"ip",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?BKe(e.data,r.alg)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"jwt",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?VKe(e.data,r.version)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cidr",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?AKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"base64",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?OKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"base64url",code:ht.invalid_string,message:r.message}),i.dirty()):jn.assertNever(r);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(s=>e.test(s),{validation:t,code:ht.invalid_string,...ni.errToObj(i)})}_addCheck(e){return new Du({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ni.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ni.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ni.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ni.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ni.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ni.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ni.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ni.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ni.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ni.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ni.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ni.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ni.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,...ni.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,...ni.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ni.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ni.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...ni.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ni.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ni.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ni.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ni.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ni.errToObj(t)})}nonempty(e){return this.min(1,ni.errToObj(e))}trim(){return new Du({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Du({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Du({...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}}Du.create=n=>{var e;return new Du({checks:[],typeName:Oi.ZodString,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...on(n)})};function HKe(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 n_ extends hn{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 At(r,{code:ht.invalid_type,expected:Vt.number,received:r.parsedType}),Pi}let i;const s=new Ya;for(const r of this._def.checks)r.kind==="int"?jn.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),At(i,{code:ht.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),At(i,{code:ht.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),At(i,{code:ht.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?HKe(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),At(i,{code:ht.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),At(i,{code:ht.not_finite,message:r.message}),s.dirty()):jn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ni.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ni.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ni.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ni.toString(t))}setLimit(e,t,i,s){return new n_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:ni.toString(s)}]})}_addCheck(e){return new n_({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ni.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ni.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ni.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ni.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ni.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ni.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ni.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ni.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ni.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"&&jn.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)}}n_.create=n=>new n_({checks:[],typeName:Oi.ZodNumber,coerce:n?.coerce||!1,...on(n)});class s_ extends hn{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 Ya;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),At(i,{code:ht.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),At(i,{code:ht.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),At(i,{code:ht.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):jn.assertNever(r);return{status:s.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return At(t,{code:ht.invalid_type,expected:Vt.bigint,received:t.parsedType}),Pi}gte(e,t){return this.setLimit("min",e,!0,ni.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ni.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ni.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ni.toString(t))}setLimit(e,t,i,s){return new s_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:ni.toString(s)}]})}_addCheck(e){return new s_({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ni.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ni.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ni.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ni.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ni.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}}s_.create=n=>{var e;return new s_({checks:[],typeName:Oi.ZodBigInt,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...on(n)})};class sL extends hn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Vt.boolean){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.boolean,received:i.parsedType}),Pi}return Ol(e.data)}}sL.create=n=>new sL({typeName:Oi.ZodBoolean,coerce:n?.coerce||!1,...on(n)});class iS extends hn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Vt.date){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_type,expected:Vt.date,received:r.parsedType}),Pi}if(isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_date}),Pi}const i=new Ya;let s;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(s=this._getOrReturnCtx(e,s),At(s,{code:ht.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),At(s,{code:ht.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):jn.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new iS({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ni.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ni.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}}iS.create=n=>new iS({checks:[],coerce:n?.coerce||!1,typeName:Oi.ZodDate,...on(n)});class IM extends hn{_parse(e){if(this._getType(e)!==Vt.symbol){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.symbol,received:i.parsedType}),Pi}return Ol(e.data)}}IM.create=n=>new IM({typeName:Oi.ZodSymbol,...on(n)});class rL extends hn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.undefined,received:i.parsedType}),Pi}return Ol(e.data)}}rL.create=n=>new rL({typeName:Oi.ZodUndefined,...on(n)});class oL extends hn{_parse(e){if(this._getType(e)!==Vt.null){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.null,received:i.parsedType}),Pi}return Ol(e.data)}}oL.create=n=>new oL({typeName:Oi.ZodNull,...on(n)});class Kw extends hn{constructor(){super(...arguments),this._any=!0}_parse(e){return Ol(e.data)}}Kw.create=n=>new Kw({typeName:Oi.ZodAny,...on(n)});class Ib extends hn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ol(e.data)}}Ib.create=n=>new Ib({typeName:Oi.ZodUnknown,...on(n)});class np extends hn{_parse(e){const t=this._getOrReturnCtx(e);return At(t,{code:ht.invalid_type,expected:Vt.never,received:t.parsedType}),Pi}}np.create=n=>new np({typeName:Oi.ZodNever,...on(n)});class LM extends hn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.void,received:i.parsedType}),Pi}return Ol(e.data)}}LM.create=n=>new LM({typeName:Oi.ZodVoid,...on(n)});class Fu extends hn{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==Vt.array)return At(t,{code:ht.invalid_type,expected:Vt.array,received:t.parsedType}),Pi;if(s.exactLength!==null){const o=t.data.length>s.exactLength.value,a=t.data.length<s.exactLength.value;(o||a)&&(At(t,{code:o?ht.too_big:ht.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&&(At(t,{code:ht.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&&(At(t,{code:ht.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 Sf(t,o,t.path,a)))).then(o=>Ya.mergeArray(i,o));const r=[...t.data].map((o,a)=>s.type._parseSync(new Sf(t,o,t.path,a)));return Ya.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new Fu({...this._def,minLength:{value:e,message:ni.toString(t)}})}max(e,t){return new Fu({...this._def,maxLength:{value:e,message:ni.toString(t)}})}length(e,t){return new Fu({...this._def,exactLength:{value:e,message:ni.toString(t)}})}nonempty(e){return this.min(1,e)}}Fu.create=(n,e)=>new Fu({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Oi.ZodArray,...on(e)});function iC(n){if(n instanceof mr){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=af.create(iC(i))}return new mr({...n._def,shape:()=>e})}else return n instanceof Fu?new Fu({...n._def,type:iC(n.element)}):n instanceof af?af.create(iC(n.unwrap())):n instanceof o_?o_.create(iC(n.unwrap())):n instanceof yf?yf.create(n.items.map(e=>iC(e))):n}class mr extends hn{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=jn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Vt.object){const c=this._getOrReturnCtx(e);return At(c,{code:ht.invalid_type,expected:Vt.object,received:c.parsedType}),Pi}const{status:i,ctx:s}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof np&&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 Sf(s,u,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof np){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&&(At(s,{code:ht.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 Sf(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=>Ya.mergeObjectSync(i,c)):Ya.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return ni.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=ni.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:Oi.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new mr({...this._def,catchall:e})}pick(e){const t={};return jn.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 jn.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}deepPartial(){return iC(this)}partial(e){const t={};return jn.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 jn.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof af;)r=r._def.innerType;t[i]=r}}),new mr({...this._def,shape:()=>t})}keyof(){return JIe(jn.objectKeys(this.shape))}}mr.create=(n,e)=>new mr({shape:()=>n,unknownKeys:"strip",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});mr.strictCreate=(n,e)=>new mr({shape:()=>n,unknownKeys:"strict",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});mr.lazycreate=(n,e)=>new mr({shape:n,unknownKeys:"strip",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});class aL extends hn{_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 Kc(a.ctx.common.issues));return At(t,{code:ht.invalid_union,unionErrors:o}),Pi}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 Kc(l));return At(t,{code:ht.invalid_union,unionErrors:a}),Pi}}get options(){return this._def.options}}aL.create=(n,e)=>new aL({options:n,typeName:Oi.ZodUnion,...on(e)});const rg=n=>n instanceof dL?rg(n.schema):n instanceof ju?rg(n.innerType()):n instanceof uL?[n.value]:n instanceof r_?n.options:n instanceof hL?jn.objectValues(n.enum):n instanceof fL?rg(n._def.innerType):n instanceof rL?[void 0]:n instanceof oL?[null]:n instanceof af?[void 0,...rg(n.unwrap())]:n instanceof o_?[null,...rg(n.unwrap())]:n instanceof mJ||n instanceof pL?rg(n.unwrap()):n instanceof gL?rg(n._def.innerType):[];class WB extends hn{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.object)return At(t,{code:ht.invalid_type,expected:Vt.object,received:t.parsedType}),Pi;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}):(At(t,{code:ht.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Pi)}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=rg(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 WB({typeName:Oi.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...on(i)})}}function xz(n,e){const t=pg(n),i=pg(e);if(n===e)return{valid:!0,data:n};if(t===Vt.object&&i===Vt.object){const s=jn.objectKeys(e),r=jn.objectKeys(n).filter(a=>s.indexOf(a)!==-1),o={...n,...e};for(const a of r){const l=xz(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=xz(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 lL extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=(r,o)=>{if(Iz(r)||Iz(o))return Pi;const a=xz(r.value,o.value);return a.valid?((Lz(r)||Lz(o))&&t.dirty(),{status:t.value,value:a.data}):(At(i,{code:ht.invalid_intersection_types}),Pi)};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}))}}lL.create=(n,e,t)=>new lL({left:n,right:e,typeName:Oi.ZodIntersection,...on(t)});class yf extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.array)return At(i,{code:ht.invalid_type,expected:Vt.array,received:i.parsedType}),Pi;if(i.data.length<this._def.items.length)return At(i,{code:ht.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pi;!this._def.rest&&i.data.length>this._def.items.length&&(At(i,{code:ht.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 Sf(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(r).then(o=>Ya.mergeArray(t,o)):Ya.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new yf({...this._def,rest:e})}}yf.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yf({items:n,typeName:Oi.ZodTuple,rest:null,...on(e)})};class cL extends hn{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 At(i,{code:ht.invalid_type,expected:Vt.object,received:i.parsedType}),Pi;const s=[],r=this._def.keyType,o=this._def.valueType;for(const a in i.data)s.push({key:r._parse(new Sf(i,a,i.path,a)),value:o._parse(new Sf(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?Ya.mergeObjectAsync(t,s):Ya.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof hn?new cL({keyType:e,valueType:t,typeName:Oi.ZodRecord,...on(i)}):new cL({keyType:Du.create(),valueType:e,typeName:Oi.ZodRecord,...on(t)})}}class xM extends hn{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 At(i,{code:ht.invalid_type,expected:Vt.map,received:i.parsedType}),Pi;const s=this._def.keyType,r=this._def.valueType,o=[...i.data.entries()].map(([a,l],c)=>({key:s._parse(new Sf(i,a,i.path,[c,"key"])),value:r._parse(new Sf(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 Pi;(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 Pi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}}}}xM.create=(n,e,t)=>new xM({valueType:e,keyType:n,typeName:Oi.ZodMap,...on(t)});class nS extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.set)return At(i,{code:ht.invalid_type,expected:Vt.set,received:i.parsedType}),Pi;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(At(i,{code:ht.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&&(At(i,{code:ht.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 Pi;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 Sf(i,l,i.path,c)));return i.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,t){return new nS({...this._def,minSize:{value:e,message:ni.toString(t)}})}max(e,t){return new nS({...this._def,maxSize:{value:e,message:ni.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}nS.create=(n,e)=>new nS({valueType:n,minSize:null,maxSize:null,typeName:Oi.ZodSet,...on(e)});class tw extends hn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.function)return At(t,{code:ht.invalid_type,expected:Vt.function,received:t.parsedType}),Pi;function i(a,l){return EM({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,wM(),qw].filter(c=>!!c),issueData:{code:ht.invalid_arguments,argumentsError:l}})}function s(a,l){return EM({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,wM(),qw].filter(c=>!!c),issueData:{code:ht.invalid_return_type,returnTypeError:l}})}const r={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof jw){const a=this;return Ol(async function(...l){const c=new Kc([]),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 Ol(function(...l){const c=a._def.args.safeParse(l,r);if(!c.success)throw new Kc([i(l,c.error)]);const d=Reflect.apply(o,this,c.data),u=a._def.returns.safeParse(d,r);if(!u.success)throw new Kc([s(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new tw({...this._def,args:yf.create(e).rest(Ib.create())})}returns(e){return new tw({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new tw({args:e||yf.create([]).rest(Ib.create()),returns:t||Ib.create(),typeName:Oi.ZodFunction,...on(i)})}}class dL extends hn{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})}}dL.create=(n,e)=>new dL({getter:n,typeName:Oi.ZodLazy,...on(e)});class uL extends hn{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return At(t,{received:t.data,code:ht.invalid_literal,expected:this._def.value}),Pi}return{status:"valid",value:e.data}}get value(){return this._def.value}}uL.create=(n,e)=>new uL({value:n,typeName:Oi.ZodLiteral,...on(e)});function JIe(n,e){return new r_({values:n,typeName:Oi.ZodEnum,...on(e)})}class r_ extends hn{constructor(){super(...arguments),Z1.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return At(t,{expected:jn.joinValues(i),received:t.parsedType,code:ht.invalid_type}),Pi}if(TM(this,Z1)||YIe(this,Z1,new Set(this._def.values)),!TM(this,Z1).has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return At(t,{received:t.data,code:ht.invalid_enum_value,options:i}),Pi}return Ol(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 r_.create(e,{...this._def,...t})}exclude(e,t=this._def){return r_.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Z1=new WeakMap;r_.create=JIe;class hL extends hn{constructor(){super(...arguments),J1.set(this,void 0)}_parse(e){const t=jn.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==Vt.string&&i.parsedType!==Vt.number){const s=jn.objectValues(t);return At(i,{expected:jn.joinValues(s),received:i.parsedType,code:ht.invalid_type}),Pi}if(TM(this,J1)||YIe(this,J1,new Set(jn.getValidEnumValues(this._def.values))),!TM(this,J1).has(e.data)){const s=jn.objectValues(t);return At(i,{received:i.data,code:ht.invalid_enum_value,options:s}),Pi}return Ol(e.data)}get enum(){return this._def.values}}J1=new WeakMap;hL.create=(n,e)=>new hL({values:n,typeName:Oi.ZodNativeEnum,...on(e)});class jw extends hn{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.promise&&t.common.async===!1)return At(t,{code:ht.invalid_type,expected:Vt.promise,received:t.parsedType}),Pi;const i=t.parsedType===Vt.promise?t.data:Promise.resolve(t.data);return Ol(i.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}jw.create=(n,e)=>new jw({type:n,typeName:Oi.ZodPromise,...on(e)});class ju extends hn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oi.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=>{At(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 Pi;const l=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return l.status==="aborted"?Pi:l.status==="dirty"||t.value==="dirty"?_C(l.value):l});{if(t.value==="aborted")return Pi;const a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Pi:a.status==="dirty"||t.value==="dirty"?_C(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"?Pi:(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"?Pi:(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(!tS(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=>tS(o)?Promise.resolve(s.transform(o.value,r)).then(a=>({status:t.value,value:a})):o);jn.assertNever(s)}}ju.create=(n,e,t)=>new ju({schema:n,typeName:Oi.ZodEffects,effect:e,...on(t)});ju.createWithPreprocess=(n,e,t)=>new ju({schema:e,effect:{type:"preprocess",transform:n},typeName:Oi.ZodEffects,...on(t)});class af extends hn{_parse(e){return this._getType(e)===Vt.undefined?Ol(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}af.create=(n,e)=>new af({innerType:n,typeName:Oi.ZodOptional,...on(e)});class o_ extends hn{_parse(e){return this._getType(e)===Vt.null?Ol(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}o_.create=(n,e)=>new o_({innerType:n,typeName:Oi.ZodNullable,...on(e)});class fL extends hn{_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}}fL.create=(n,e)=>new fL({innerType:n,typeName:Oi.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...on(e)});class gL extends hn{_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 nL(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Kc(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Kc(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}gL.create=(n,e)=>new gL({innerType:n,typeName:Oi.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...on(e)});class RM extends hn{_parse(e){if(this._getType(e)!==Vt.nan){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.nan,received:i.parsedType}),Pi}return{status:"valid",value:e.data}}}RM.create=n=>new RM({typeName:Oi.ZodNaN,...on(n)});const WKe=Symbol("zod_brand");class mJ extends hn{_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 LR extends hn{_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"?Pi:r.status==="dirty"?(t.dirty(),_C(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"?Pi: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 LR({in:e,out:t,typeName:Oi.ZodPipeline})}}class pL extends hn{_parse(e){const t=this._def.innerType._parse(e),i=s=>(tS(s)&&(s.value=Object.freeze(s.value)),s);return nL(t)?t.then(s=>i(s)):i(t)}unwrap(){return this._def.innerType}}pL.create=(n,e)=>new pL({innerType:n,typeName:Oi.ZodReadonly,...on(e)});function ile(n,e){const t=typeof n=="function"?n(e):typeof n=="string"?{message:n}:n;return typeof t=="string"?{message:t}:t}function eLe(n,e={},t){return n?Kw.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=ile(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=ile(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})}}):Kw.create()}const UKe={object:mr.lazycreate};var Oi;(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"})(Oi||(Oi={}));const $Ke=(n,e={message:`Input not instance of ${n.name}`})=>eLe(t=>t instanceof n,e),tLe=Du.create,iLe=n_.create,zKe=RM.create,GKe=s_.create,nLe=sL.create,qKe=iS.create,KKe=IM.create,jKe=rL.create,YKe=oL.create,QKe=Kw.create,XKe=Ib.create,ZKe=np.create,JKe=LM.create,eje=Fu.create,tje=mr.create,ije=mr.strictCreate,nje=aL.create,sje=WB.create,rje=lL.create,oje=yf.create,aje=cL.create,lje=xM.create,cje=nS.create,dje=tw.create,uje=dL.create,hje=uL.create,fje=r_.create,gje=hL.create,pje=jw.create,nle=ju.create,mje=af.create,_je=o_.create,vje=ju.createWithPreprocess,bje=LR.create,Sje=()=>tLe().optional(),yje=()=>iLe().optional(),Cje=()=>nLe().optional(),wje={string:n=>Du.create({...n,coerce:!0}),number:n=>n_.create({...n,coerce:!0}),boolean:n=>sL.create({...n,coerce:!0}),bigint:n=>s_.create({...n,coerce:!0}),date:n=>iS.create({...n,coerce:!0})},Eje=Pi;var qe=Object.freeze({__proto__:null,defaultErrorMap:qw,setErrorMap:vKe,getErrorMap:wM,makeIssue:EM,EMPTY_PATH:bKe,addIssueToContext:At,ParseStatus:Ya,INVALID:Pi,DIRTY:_C,OK:Ol,isAborted:Iz,isDirty:Lz,isValid:tS,isAsync:nL,get util(){return jn},get objectUtil(){return Tz},ZodParsedType:Vt,getParsedType:pg,ZodType:hn,datetimeRegex:ZIe,ZodString:Du,ZodNumber:n_,ZodBigInt:s_,ZodBoolean:sL,ZodDate:iS,ZodSymbol:IM,ZodUndefined:rL,ZodNull:oL,ZodAny:Kw,ZodUnknown:Ib,ZodNever:np,ZodVoid:LM,ZodArray:Fu,ZodObject:mr,ZodUnion:aL,ZodDiscriminatedUnion:WB,ZodIntersection:lL,ZodTuple:yf,ZodRecord:cL,ZodMap:xM,ZodSet:nS,ZodFunction:tw,ZodLazy:dL,ZodLiteral:uL,ZodEnum:r_,ZodNativeEnum:hL,ZodPromise:jw,ZodEffects:ju,ZodTransformer:ju,ZodOptional:af,ZodNullable:o_,ZodDefault:fL,ZodCatch:gL,ZodNaN:RM,BRAND:WKe,ZodBranded:mJ,ZodPipeline:LR,ZodReadonly:pL,custom:eLe,Schema:hn,ZodSchema:hn,late:UKe,get ZodFirstPartyTypeKind(){return Oi},coerce:wje,any:QKe,array:eje,bigint:GKe,boolean:nLe,date:qKe,discriminatedUnion:sje,effect:nle,enum:fje,function:dje,instanceof:$Ke,intersection:rje,lazy:uje,literal:hje,map:lje,nan:zKe,nativeEnum:gje,never:ZKe,null:YKe,nullable:_je,number:iLe,object:tje,oboolean:Cje,onumber:yje,optional:mje,ostring:Sje,pipeline:bje,preprocess:vje,promise:pje,record:aje,set:cje,strictObject:ije,string:tLe,symbol:KKe,transformer:nle,tuple:oje,undefined:jKe,union:nje,unknown:XKe,void:JKe,NEVER:Eje,ZodIssueCode:ht,quotelessJson:_Ke,ZodError:Kc});const _J=qe.object({x:qe.number(),y:qe.number()}),iw=qe.object({instanceId:qe.string(),output:qe.string()}),DM=qe.object({hubId:qe.string()}),Tje=qe.object({args:qe.record(qe.unknown()).optional(),inputs:qe.record(qe.array(iw)).optional(),hubInputs:qe.record(qe.array(DM)).optional(),injectionInputs:qe.array(DM).optional(),position:_J.optional()}),sle=qe.object({id:qe.string(),type:qe.string(),name:qe.string(),...Tje.shape,resolvedInputs:qe.record(qe.array(iw)).optional(),parentId:qe.string().optional(),outputs:qe.record(qe.array(iw)).optional(),resolvedOutputs:qe.record(qe.array(iw)).optional()});qe.object({instance:sle,children:qe.array(sle),inputHash:qe.string().optional()});qe.object({position:_J.optional(),inputs:qe.array(iw).optional(),injectionInputs:qe.array(DM).optional()});qe.object({id:qe.string().nanoid(),position:_J,inputs:qe.array(iw).optional(),injectionInputs:qe.array(DM).optional()});var sLe={done:!1,hasNext:!1};function rle(n,...e){let t=n,i=e.map(r=>"lazy"in r?Ije(r):void 0),s=0;for(;s<e.length;){if(i[s]===void 0||!Lje(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(rLe(l,o,r))break;let{isSingle:a}=r.at(-1);t=a?o[0]:o,s+=r.length}return t}function rLe(n,e,t){if(t.length===0)return e.push(n),!1;let i=n,s=sLe,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(rLe(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 Ije(n){let{lazy:e,lazyArgs:t}=n,i=e(...t);return Object.assign(i,{isSingle:e.single??!1,index:0,items:[]})}function Lje(n){return typeof n=="string"||typeof n=="object"&&n!==null&&Symbol.iterator in n}function xje(n,e){let t=e.length-n.length;if(t===1){let[i,...s]=e;return rle(i,{lazy:n,lazyArgs:s})}if(t===0){let i={lazy:n,lazyArgs:e};return Object.assign(s=>rle(s,i),i)}throw new Error("Wrong number of arguments")}function Rje(n,e,t){let i=s=>n(s,...e);return t===void 0?i:Object.assign(i,{lazy:t,lazyArgs:e})}function vJ(n,e,t){let i=n.length-e.length;if(i===0)return n(...e);if(i===1)return Rje(n,e,t);throw new Error("Wrong number of arguments")}function oLe(...n){return xje(Dje,n)}function Dje(){let n=new Set;return e=>n.has(e)?sLe:(n.add(e),{done:!1,hasNext:!0,next:e})}function ole(...n){return vJ(Nje,n)}function Nje(n,e){let t={};for(let i of e)i in n&&(t[i]=n[i]);return t}function kje(...n){return vJ(Aje,n)}function Aje(n,e){let t={};for(let[i,s]of Object.entries(n)){let r=e(s,i,n);t[i]=r}return t}function Oje(...n){return vJ(Object.fromEntries,n)}const Mje=qe.enum(["not_created","updating","previewing","destroying","refreshing","created","error","pending","unknown"]),Pje=qe.object({name:qe.string(),value:qe.string().optional(),displayName:qe.string().optional(),sensitive:qe.boolean().optional(),url:qe.string().optional(),complementaryTo:qe.string().optional()}),bJ=qe.object({name:qe.string(),contentType:qe.string(),size:qe.number(),isBinary:qe.boolean().optional()});qe.object({meta:bJ,content:qe.string()});const Fje=qe.union([qe.object({type:qe.literal("markdown"),content:qe.string()}),qe.object({type:qe.literal("qr"),content:qe.string(),showContent:qe.coerce.boolean(),language:qe.string().optional()}),qe.object({type:qe.literal("file"),fileMeta:bJ})]),aLe=qe.object({name:qe.string(),title:qe.string()});qe.object({...aLe.shape,content:qe.array(Fje)});const lLe=qe.object({name:qe.string(),title:qe.string(),description:qe.string().optional()}),Bje=qe.object({content:qe.string().optional(),isBinary:qe.boolean().optional(),mode:qe.number().optional()});qe.object({...lLe.shape,image:qe.string(),command:qe.string().array(),cwd:qe.string().optional(),env:qe.record(qe.string()).optional(),files:qe.record(Bje).optional()});const Vje=qe.union([qe.object({type:qe.literal("before-destroy")}),qe.object({type:qe.literal("schedule"),schedule:qe.string()})]),Hje=qe.object({name:qe.string(),title:qe.string(),description:qe.string().optional(),spec:Vje});qe.object({name:qe.string()});const Wje=qe.object({id:qe.string(),parentId:qe.string().nullable().default(null),status:Mje,dependencyIds:qe.array(qe.string()).default(()=>[]),latestOperationId:qe.string().nullable().default(null),currentResourceCount:qe.number().nullable().default(null),totalResourceCount:qe.number().nullable().default(null),inputHash:qe.string().nullable().default(null),outputHash:qe.string().nullable().default(null),error:qe.string().nullable().default(null),evaluationError:qe.string().nullable().default(null),statusFields:qe.array(Pje).default(()=>[]),files:qe.array(bJ).default(()=>[]),pages:qe.array(aLe).default(()=>[]),terminals:qe.array(lLe).default(()=>[]),triggers:qe.array(Hje).default(()=>[])});qe.object({...Wje.shape,secrets:qe.record(qe.string()).nullable(),logLine:qe.string().nullable()}).partial();function cLe(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 Uje(n,e){if(!e.id)throw new Error("The ID of the instance state is required.");let t=n.get(e.id)??cLe(e.id,"unknown");return t={...t,...e},n.set(t.id,t),t}function ale(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 $je(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 dLe=qe.enum(["update","preview","destroy","recreate","refresh"]),zje=qe.enum(["pending","running","completed","failed","cancelled"]),uLe=qe.object({forceUpdateDependencies:qe.boolean().default(!1),destroyDependentInstances:qe.boolean().default(!0),invokeDestroyTriggers:qe.boolean().default(!0),deleteUnreachableResources:qe.boolean().default(!1),refresh:qe.boolean().default(!1)});qe.object({projectId:qe.string(),type:dLe,instanceIds:qe.array(qe.string()),options:uLe.partial().optional()});qe.object({id:qe.string().uuid(),status:zje,projectId:qe.string(),type:dLe,instanceIds:qe.array(qe.string()),affectedInstanceIds:qe.array(qe.string()).default(()=>[]),options:uLe.default(()=>({})),error:qe.string().nullable(),startedAt:qe.number(),completedAt:qe.number().nullable()});function Rz(n){return n==="completed"||n==="failed"||n==="cancelled"}class Gje extends Error{constructor(e){super(`Circular dependency detected: ${e.join(" -> ")}`),this.name="CircularDependencyError"}}function qje(){return{promiseCache:new Map}}function SJ(n){const e=(t,i,s)=>{s??=qje(),i=i.child({resolver:n.name});const r=new Map,o=(a,l)=>{i.trace({itemId:a},"resolving item");const c=s.promiseCache.get(a);if(c)return c;if(l.includes(a))throw new Gje([...l,a]);const d=t.get(a);if(!d)return Promise.resolve(void 0);const h=(async()=>{const f=oLe(n.getNodeDependencies(d));s.setDependencies?.(a,f),i.trace({itemId:a,dependencies:f},"resolving item dependencies");const g=[...l,a];for(const p of f)await o(p,g);return await n.process(d,r,i)})().then(f=>(s.promiseCache.get(a)===h&&(s.setOutput?.(a,f),r.set(a,f)),f));return s.promiseCache.set(a,h),h};return a=>o(a,[])};return e.factoryName=n.name,e}function lle(n,e){return`${n}:${e}`}function yJ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tN={exports:{}},wV={},Yf={},sv={},EV={},TV={},IV={},cle;function NM(){return cle||(cle=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(_){if(super(),!n.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=t;class i extends e{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_: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=[v[0]];let S=0;for(;S<_.length;)a(b,_[S]),b.push(v[++S]);return new i(b)}n._=s;const r=new i("+");function o(v,..._){const b=[f(v[0])];let S=0;for(;S<_.length;)b.push(r),a(b,_[S]),b.push(r,f(v[++S]));return l(b),new i(b)}n.str=o;function a(v,_){_ instanceof i?v.push(..._._items):_ instanceof t?v.push(_):v.push(u(_))}n.addCodeArg=a;function l(v){let _=1;for(;_<v.length-1;){if(v[_]===r){const b=c(v[_-1],v[_+1]);if(b!==void 0){v.splice(_-1,3,b);continue}v[_++]="+"}_++}}function c(v,_){if(_==='""')return v;if(v==='""')return _;if(typeof v=="string")return _ instanceof t||v[v.length-1]!=='"'?void 0:typeof _!="string"?`${v.slice(0,-1)}${_}"`:_[0]==='"'?v.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(v instanceof t))return`"${v}${_.slice(1)}`}function d(v,_){return _.emptyStr()?v:v.emptyStr()?_:o`${v}${_}`}n.strConcat=d;function u(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:f(Array.isArray(v)?v.join(","):v)}function h(v){return new i(f(v))}n.stringify=h;function f(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.safeStringify=f;function g(v){return typeof v=="string"&&n.IDENTIFIER.test(v)?new i(`.${v}`):s`[${v}]`}n.getProperty=g;function p(v){if(typeof v=="string"&&n.IDENTIFIER.test(v))return new i(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}n.getEsmExportName=p;function m(v){return new i(v.toString())}n.regexpCode=m}(IV)),IV}var LV={},dle;function ule(){return dle||(dle=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const e=NM();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 _=p.get(g);if(_)return _}else p=this._values[f]=new Map;p.set(g,h);const m=this._scope[f]||(this._scope[f]=[]),v=m.length;return m[v]=d.ref,h.setValue(d,{property:f,itemIndex:v}),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(v=>{if(m.has(v))return;m.set(v,i.Started);let _=d(v);if(_){const b=this.opts.es5?n.varKinds.var:n.varKinds.const;f=(0,e._)`${f}${b} ${v} = ${_};${this.opts._n}`}else if(_=h?.(v))f=(0,e._)`${f}${_}${this.opts._n}`;else throw new t(v);m.set(v,i.Completed)})}return f}}n.ValueScope=a}(LV)),LV}var hle;function xn(){return hle||(hle=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=NM(),t=ule();var i=NM();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=ule();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(F,U){return this}}class o extends r{constructor(F,U,Z){super(),this.varKind=F,this.name=U,this.rhs=Z}render({es5:F,_n:U}){const Z=F?t.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${Z} ${this.name}${X};`+U}optimizeNames(F,U){if(F[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,F,U)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends r{constructor(F,U,Z){super(),this.lhs=F,this.rhs=U,this.sideEffects=Z}render({_n:F}){return`${this.lhs} = ${this.rhs};`+F}optimizeNames(F,U){if(!(this.lhs instanceof e.Name&&!F[this.lhs.str]&&!this.sideEffects))return this.rhs=x(this.rhs,F,U),this}get names(){const F=this.lhs instanceof e.Name?{}:{...this.lhs.names};return k(F,this.rhs)}}class l extends a{constructor(F,U,Z,X){super(F,Z,X),this.op=U}render({_n:F}){return`${this.lhs} ${this.op}= ${this.rhs};`+F}}class c extends r{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`${this.label}:`+F}}class d extends r{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`break${this.label?` ${this.label}`:""};`+F}}class u extends r{constructor(F){super(),this.error=F}render({_n:F}){return`throw ${this.error};`+F}get names(){return this.error.names}}class h extends r{constructor(F){super(),this.code=F}render({_n:F}){return`${this.code};`+F}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(F,U){return this.code=x(this.code,F,U),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class f extends r{constructor(F=[]){super(),this.nodes=F}render(F){return this.nodes.reduce((U,Z)=>U+Z.render(F),"")}optimizeNodes(){const{nodes:F}=this;let U=F.length;for(;U--;){const Z=F[U].optimizeNodes();Array.isArray(Z)?F.splice(U,1,...Z):Z?F[U]=Z:F.splice(U,1)}return F.length>0?this:void 0}optimizeNames(F,U){const{nodes:Z}=this;let X=Z.length;for(;X--;){const G=Z[X];G.optimizeNames(F,U)||(N(F,G.names),Z.splice(X,1))}return Z.length>0?this:void 0}get names(){return this.nodes.reduce((F,U)=>L(F,U.names),{})}}class g extends f{render(F){return"{"+F._n+super.render(F)+"}"+F._n}}class p extends f{}class m extends g{}m.kind="else";class v extends g{constructor(F,U){super(U),this.condition=F}render(F){let U=`if(${this.condition})`+super.render(F);return this.else&&(U+="else "+this.else.render(F)),U}optimizeNodes(){super.optimizeNodes();const F=this.condition;if(F===!0)return this.nodes;let U=this.else;if(U){const Z=U.optimizeNodes();U=this.else=Array.isArray(Z)?new m(Z):Z}if(U)return F===!1?U instanceof v?U:U.nodes:this.nodes.length?this:new v(A(F),U instanceof v?[U]:U.nodes);if(!(F===!1||!this.nodes.length))return this}optimizeNames(F,U){var Z;if(this.else=(Z=this.else)===null||Z===void 0?void 0:Z.optimizeNames(F,U),!!(super.optimizeNames(F,U)||this.else))return this.condition=x(this.condition,F,U),this}get names(){const F=super.names;return k(F,this.condition),this.else&&L(F,this.else.names),F}}v.kind="if";class _ extends g{}_.kind="for";class b extends _{constructor(F){super(),this.iteration=F}render(F){return`for(${this.iteration})`+super.render(F)}optimizeNames(F,U){if(super.optimizeNames(F,U))return this.iteration=x(this.iteration,F,U),this}get names(){return L(super.names,this.iteration.names)}}class S extends _{constructor(F,U,Z,X){super(),this.varKind=F,this.name=U,this.from=Z,this.to=X}render(F){const U=F.es5?t.varKinds.var:this.varKind,{name:Z,from:X,to:G}=this;return`for(${U} ${Z}=${X}; ${Z}<${G}; ${Z}++)`+super.render(F)}get names(){const F=k(super.names,this.from);return k(F,this.to)}}class y extends _{constructor(F,U,Z,X){super(),this.loop=F,this.varKind=U,this.name=Z,this.iterable=X}render(F){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(F)}optimizeNames(F,U){if(super.optimizeNames(F,U))return this.iterable=x(this.iterable,F,U),this}get names(){return L(super.names,this.iterable.names)}}class C extends g{constructor(F,U,Z){super(),this.name=F,this.args=U,this.async=Z}render(F){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(F)}}C.kind="func";class T extends f{render(F){return"return "+super.render(F)}}T.kind="return";class w extends g{render(F){let U="try"+super.render(F);return this.catch&&(U+=this.catch.render(F)),this.finally&&(U+=this.finally.render(F)),U}optimizeNodes(){var F,U;return super.optimizeNodes(),(F=this.catch)===null||F===void 0||F.optimizeNodes(),(U=this.finally)===null||U===void 0||U.optimizeNodes(),this}optimizeNames(F,U){var Z,X;return super.optimizeNames(F,U),(Z=this.catch)===null||Z===void 0||Z.optimizeNames(F,U),(X=this.finally)===null||X===void 0||X.optimizeNames(F,U),this}get names(){const F=super.names;return this.catch&&L(F,this.catch.names),this.finally&&L(F,this.finally.names),F}}class I extends g{constructor(F){super(),this.error=F}render(F){return`catch(${this.error})`+super.render(F)}}I.kind="catch";class R extends g{render(F){return"finally"+super.render(F)}}R.kind="finally";class D{constructor(F,U={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...U,_n:U.lines?`
168
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=eN(e),i=Ey(t);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=eN(e),i=Ey(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function Mqe(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new Aqe||null,prettyErrors:e}}function Pqe(n,e={}){const{lineCounter:t,prettyErrors:i}=Mqe(e),s=new Oqe(t?.addNewLine),r=new xqe(e);let o=null;for(const a of r.compose(s.parse(n),!0,n.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Q1(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&t&&(o.errors.forEach(Gae(n,t)),o.warnings.forEach(Gae(n,t))),o}function Fqe(n,e,t){let i;const s=Pqe(n,t);if(!s)return null;if(s.warnings.forEach(r=>oIe(s.options.logLevel,r)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:i},t))}function Xae(n,e,t){let i=null;if(Array.isArray(e)?i=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const s=Math.round(t);t=s<1?void 0:s>8?{indent:8}:{indent:s}}if(n===void 0){const{keepUndefined:s}=t??e??{};if(!s)return}return CR(n)&&!i?n.toString(t):new gJ(n,i,t).toString(t)}const Bqe={class:"editor-container"},Vqe=["title"],Hqe=Dt({__name:"ComplexEditor",props:WS({componentType:{},name:{},arg:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=n.arg.schema.default??(n.arg.schema.type==="object"?{}:[]),i=Me(!1),s=Me(null),r=Me(Xae(e.value||t,null,2)),o=()=>{i.value=!1,r.value=Xae(e.value,null,2),s.value=null},a=()=>{try{e.value=Fqe(r.value),i.value=!1,s.value=null}catch(l){s.value=l instanceof Error?l.message:String(l)}};return(l,c)=>(xe(),ot(SR,{modelValue:le(i),"onUpdate:modelValue":c[1]||(c[1]=d=>pi(i)?i.value=d:null),class:"dialog"},{activator:We(({props:d})=>[K(ps,qt(d,{variant:"outlined"}),{default:We(()=>[gi(rn(("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta)),1)]),_:2},1040)]),default:We(()=>[K(wc,{title:("getDisplayName"in l?l.getDisplayName:le(Sl))(l.name,l.arg.meta),variant:"flat",color:"#1e1e1e"},{default:We(()=>[Fi("div",Bqe,[K(le(XTe),{value:le(r),"onUpdate:value":c[0]||(c[0]=d=>pi(r)?r.value=d:null),class:"editor",theme:"vs-dark",language:"yaml",path:`${l.componentType}.${l.name}`,options:{tabSize:2}},null,8,["value","path"])]),K(ch,null,{default:We(()=>[le(s)?(xe(),gt("div",{key:0,class:"text-error text-truncate",title:le(s)},rn(le(s)),9,Vqe)):ei("",!0),K(Ud),K(ps,{onClick:o},{default:We(()=>c[2]||(c[2]=[gi("Cancel")])),_:1}),K(ps,{onClick:a},{default:We(()=>c[3]||(c[3]=[gi("Save")])),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"]))}}),Wqe=Xs(Hqe,[["__scopeId","data-v-132f44a5"]]),PIe=Symbol.for("vuetify:selection-control-group"),FIe=Tt({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ts,trueIcon:ts,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:Pu},...kn(),...lh(),...Jo()},"SelectionControlGroup"),Uqe=Tt({...FIe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Ei()({name:"VSelectionControlGroup",props:Uqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),s=Zd(),r=ue(()=>n.id||`v-selection-control-group-${s}`),o=ue(()=>n.name||r.value),a=new Set;return ur(PIe,{modelValue:i,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),ir(()=>{a.delete(l)})}}),XE({[n.defaultsTarget]:{color:Lt(n,"color"),disabled:Lt(n,"disabled"),density:Lt(n,"density"),error:Lt(n,"error"),inline:Lt(n,"inline"),modelValue:i,multiple:ue(()=>!!n.multiple||n.multiple==null&&Array.isArray(i.value)),name:o,falseIcon:Lt(n,"falseIcon"),trueIcon:Lt(n,"trueIcon"),readonly:Lt(n,"readonly"),ripple:Lt(n,"ripple"),type:Lt(n,"type"),valueComparator:Lt(n,"valueComparator")}}),tn(()=>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 BIe=Tt({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...kn(),...FIe()},"VSelectionControl");function $qe(n){const e=Yn(PIe,void 0),{densityClasses:t}=Of(n),i=Ks(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?hc(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?[...hc(i.value),g]:hc(i.value).filter(m=>!n.valueComparator(m,s.value))),e?e.modelValue.value=p:i.value=p}}),{textColorClasses:l,textColorStyles:c}=Ku(ue(()=>{if(!(n.error||n.disabled))return a.value?n.color:n.baseColor})),{backgroundColorClasses:d,backgroundColorStyles:u}=Wm(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 Zae=Ei()({name:"VSelectionControl",directives:{Ripple:bR},inheritAttrs:!1,props:BIe(),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}=$qe(n),f=Zd(),g=$t(!1),p=$t(!1),m=Me(),v=ue(()=>n.id||`input-${f}`),_=ue(()=>!n.disabled&&!n.readonly);s?.onForceUpdate(()=>{m.value&&(m.value.checked=a.value)});function b(T){_.value&&(g.value=!0,sM(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(!_.value){m.value&&(m.value.checked=a.value);return}n.readonly&&s&&Vi(()=>s.forceUpdate()),a.value=T.target.checked}return tn(()=>{const T=i.label?i.label({label:n.label,props:{for:v.value}}):n.label,[w,I]=gB(t),R=K("input",qt({ref:m,checked:a.value,disabled:!!n.disabled,id:v.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",qt({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]},w,{style:n.style}),[K("div",{class:["v-selection-control__wrapper",l.value],style:c.value},[i.default?.({backgroundColorClasses:d,backgroundColorStyles:u}),Al(K("div",{class:["v-selection-control__input"]},[i.input?.({model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:d,backgroundColorStyles:u,inputNode:R,icon:o.value,props:{onFocus:b,onBlur:S,id:v.value}})??K(Ct,null,[o.value&&K(Ui,{key:"icon",icon:o.value},null),R])]),[[A_("ripple"),n.ripple&&[!n.disabled&&!n.readonly,null,["center","circle"]]]])]),T&&K(Y1e,{for:v.value,onClick:y},{default:()=>[T]})])}),{isFocused:g,input:m}}}),VIe=Tt({indeterminate:Boolean,indeterminateIcon:{type:ts,default:"$checkboxIndeterminate"},...BIe({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),CM=Ei()({name:"VCheckboxBtn",props:VIe(),emits:{"update:modelValue":n=>!0,"update:indeterminate":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"indeterminate"),s=Ks(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 tn(()=>{const l=Cp(Zae.filterProps(n),["modelValue"]);return K(Zae,qt(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)}),{}}}),zqe=Tt({...EB(),...Cp(VIe(),["inline"])},"VCheckbox"),X1=Ei()({name:"VCheckbox",inheritAttrs:!1,props:zqe(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:t,slots:i}=e;const s=Ks(n,"modelValue"),{isFocused:r,focus:o,blur:a}=yB(n),l=Zd(),c=ue(()=>n.id||`checkbox-${l}`);return tn(()=>{const[d,u]=gB(t),h=$w.filterProps(n),f=CM.filterProps(n);return K($w,qt({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:v,isReadonly:_,isValid:b}=g;return K(CM,qt(f,{id:p.value,"aria-describedby":m.value,disabled:v.value,readonly:_.value},u,{error:b.value===!1,modelValue:s.value,"onUpdate:modelValue":S=>s.value=S,onFocus:o,onBlur:a}),i)}})}),{}}});function Gqe(n){let{selectedElement:e,containerElement:t,isRtl:i,isHorizontal:s}=n;const r=iL(s,t),o=HIe(s,i,t),a=iL(s,e),l=WIe(s,e),c=a*.4;return o>l?l-c:o+r<l+a?l-r+a+c:o}function qqe(n){let{selectedElement:e,containerElement:t,isHorizontal:i}=n;const s=iL(i,t),r=WIe(i,e),o=iL(i,e);return r-s/2+o/2}function Jae(n,e){return e?.[n?"scrollWidth":"scrollHeight"]||0}function Kqe(n,e){return e?.[n?"clientWidth":"clientHeight"]||0}function HIe(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 iL(n,e){return e?.[n?"offsetWidth":"offsetHeight"]||0}function WIe(n,e){return e?.[n?"offsetLeft":"offsetTop"]||0}const jqe=Symbol.for("vuetify:v-slide-group"),UIe=Tt({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:jqe},nextIcon:{type:ts,default:"$next"},prevIcon:{type:ts,default:"$prev"},showArrows:{type:[Boolean,String],validator:n=>typeof n=="boolean"||["always","desktop","mobile"].includes(n)},...kn(),...k6e({mobile:null}),...ea(),...KZ({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ele=Ei()({name:"VSlideGroup",props:UIe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{isRtl:i}=O_(),{displayClasses:s,mobile:r}=RZ(n),o=jZ(n,n.symbol),a=$t(!1),l=$t(0),c=$t(0),d=$t(0),u=ue(()=>n.direction==="horizontal"),{resizeRef:h,contentRect:f}=jI(),{resizeRef:g,contentRect:p}=jI(),m=M6e(),v=ue(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),_=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(cs){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(_.value>=0&&g.el){const W=g.el.children[b.value];y(W,n.centerActive)}})})}const S=$t(!1);function y(P,W){let H=0;W?H=qqe({containerElement:h.el,isHorizontal:u.value,selectedElement:P}):H=Gqe({containerElement:h.el,isHorizontal:u.value,isRtl:i.value,selectedElement:P}),C(H)}function C(P){if(!cs||!h.el)return;const W=iL(u.value,h.el),H=HIe(u.value,i.value,h.el);if(!(Jae(u.value,h.el)<=W||Math.abs(P-H)<16)){if(u.value&&i.value&&h.el){const{scrollWidth:U,offsetWidth:Z}=h.el;P=U-Z-P}u.value?m.horizontal(P,v.value):m(P,v.value)}}function T(P){const{scrollTop:W,scrollLeft:H}=P.target;l.value=u.value?H:W}function w(P){if(S.value=!0,!(!a.value||!g.el)){for(const W of P.composedPath())for(const H of g.el.children)if(H===W){y(H);return}}}function I(P){S.value=!1}let R=!1;function D(P){!R&&!S.value&&!(P.relatedTarget&&g.el?.contains(P.relatedTarget))&&N(),R=!1}function L(){R=!0}function k(P){if(!g.el)return;function W(H){P.preventDefault(),N(H)}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 x(P,W){if(!P)return;let H=P;do H=H?.[W==="next"?"nextElementSibling":"previousElementSibling"];while(H?.hasAttribute("disabled"));return H}function N(P){if(!g.el)return;let W;if(!P)W=$I(g.el)[0];else if(P==="next"){if(W=x(g.el.querySelector(":focus"),P),!W)return N("first")}else if(P==="prev"){if(W=x(g.el.querySelector(":focus"),P),!W)return N("last")}else P==="first"?(W=g.el.firstElementChild,W?.hasAttribute("disabled")&&(W=x(W,"next"))):P==="last"&&(W=g.el.lastElementChild,W?.hasAttribute("disabled")&&(W=x(W,"prev")));W&&W.focus({preventScroll:!0})}function A(P){const W=u.value&&i.value?-1:1,H=(P==="prev"?-W:W)*c.value;let F=l.value+H;if(u.value&&i.value&&h.el){const{scrollWidth:U,offsetWidth:Z}=h.el;F+=U-Z}C(F)}const B=ue(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),V=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=Jae(u.value,h.el),W=Kqe(u.value,h.el);return P-W-Math.abs(l.value)>1});return tn(()=>K(n.tag,{class:["v-slide-group",{"v-slide-group--vertical":!u.value,"v-slide-group--has-affixes":V.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:D},{default:()=>[V.value&&K("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!O.value}],onMousedown:L,onClick:()=>O.value&&A("prev")},[t.prev?.(B.value)??K(gae,null,{default:()=>[K(Ui,{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:w,onFocusout:I,onKeydown:k},[t.default?.(B.value)])]),V.value&&K("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}],onMousedown:L,onClick:()=>M.value&&A("next")},[t.next?.(B.value)??K(gae,null,{default:()=>[K(Ui,{icon:i.value?n.prevIcon:n.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:A,scrollOffset:l,focus:N,hasPrev:O,hasNext:M}}}),$Ie=Symbol.for("vuetify:v-chip-group"),Yqe=Tt({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Pu},...UIe(),...kn(),...KZ({selectedClass:"v-chip--selected"}),...ea(),...Jo(),...Tp({variant:"tonal"})},"VChipGroup");Ei()({name:"VChipGroup",props:Yqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const{themeClasses:i}=Hl(n),{isSelected:s,select:r,next:o,prev:a,selected:l}=jZ(n,$Ie);return XE({VChip:{color:Lt(n,"color"),disabled:Lt(n,"disabled"),filter:Lt(n,"filter"),variant:Lt(n,"variant")}}),tn(()=>{const c=ele.filterProps(n);return K(ele,qt(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 Qqe=Tt({activeClass:String,appendAvatar:String,appendIcon:ts,closable:Boolean,closeIcon:{type:ts,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:ts,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ts,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:fc(),onClickOnce:fc(),...$S(),...kn(),...lh(),...GS(),...cTe(),...oh(),...LB(),..._R(),...ea({tag:"span"}),...Jo(),...Tp({variant:"tonal"})},"VChip"),qg=Ei()({name:"VChip",directives:{Ripple:bR},props:Qqe(),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}=zS(n),{colorClasses:a,colorStyles:l,variantClasses:c}=t0(n),{densityClasses:d}=Of(n),{elevationClasses:u}=qS(n),{roundedClasses:h}=ah(n),{sizeClasses:f}=vR(n),{themeClasses:g}=Hl(n),p=Ks(n,"modelValue"),m=dTe(n,$Ie,!1),v=IB(n,t),_=ue(()=>n.link!==!1&&v.isLink.value),b=ue(()=>!n.disabled&&n.link!==!1&&(!!m||n.link||v.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&&(v.navigate?.(T),m?.toggle())}function C(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),y(T))}return()=>{const T=v.isLink.value?"a":n.tag,w=!!(n.appendIcon||n.appendAvatar),I=!!(w||s.append),R=!!(s.close||n.closable),D=!!(s.filter||n.filter)&&m,L=!!(n.prependIcon||n.prependAvatar),k=!!(L||s.prepend),x=!m||m.isSelected.value;return p.value&&Al(K(T,qt({class:["v-chip",{"v-chip--disabled":n.disabled,"v-chip--label":n.label,"v-chip--link":b.value,"v-chip--filter":D,"v-chip--pill":n.pill,[`${n.activeClass}`]:n.activeClass&&v.isActive?.value},g.value,o.value,x?a.value:void 0,d.value,u.value,h.value,f.value,c.value,m?.selectedClass.value,n.class],style:[x?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&&!_.value&&C},v.linkProps),{default:()=>[e0(b.value,"v-chip"),D&&K(K1e,{key:"filter"},{default:()=>[Al(K("div",{class:"v-chip__filter"},[s.filter?K(Hr,{key:"filter-defaults",disabled:!n.filterIcon,defaults:{VIcon:{icon:n.filterIcon}}},s.filter):K(Ui,{key:"filter-icon",icon:n.filterIcon},null)]),[[YE,m.isSelected.value]])]}),k&&K("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?K(Hr,{key:"prepend-defaults",disabled:!L,defaults:{VAvatar:{image:n.prependAvatar,start:!0},VIcon:{icon:n.prependIcon,start:!0}}},s.prepend):K(Ct,null,[n.prependIcon&&K(Ui,{key:"prepend-icon",icon:n.prependIcon,start:!0},null),n.prependAvatar&&K(tp,{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})??rn(n.text)]),I&&K("div",{key:"append",class:"v-chip__append"},[s.append?K(Hr,{key:"append-defaults",disabled:!w,defaults:{VAvatar:{end:!0,image:n.appendAvatar},VIcon:{end:!0,icon:n.appendIcon}}},s.append):K(Ct,null,[n.appendIcon&&K(Ui,{key:"append-icon",end:!0,icon:n.appendIcon},null),n.appendAvatar&&K(tp,{key:"append-avatar",end:!0,image:n.appendAvatar},null)])]),R&&K("button",qt({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},S.value),[s.close?K(Hr,{key:"close-defaults",defaults:{VIcon:{icon:n.closeIcon,size:"x-small"}}},s.close):K(Ui,{key:"close-icon",icon:n.closeIcon,size:"x-small"},null)])]}),[[A_("ripple"),b.value&&n.ripple,null]])}}}),Xqe=Tt({id:String,submenu:Boolean,...Cp(RB({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:FZ}}),["absolute"])},"VMenu"),HB=Ei()({name:"VMenu",props:Xqe(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),{scopeId:s}=xB(),{isRtl:r}=O_(),o=Zd(),a=ue(()=>n.id||`v-menu-${o}`),l=Me(),c=Yn(pz,null),d=$t(new Set);ur(pz,{register(){d.value.add(o)},unregister(){d.value.delete(o)},closeParents(m){setTimeout(()=>{!d.value.size&&!n.persistent&&(m==null||l.value?.contentEl&&!mWe(m,l.value.contentEl))&&(i.value=!1,c?.closeParents())},40)}}),Zo(()=>{c?.unregister(),document.removeEventListener("focusin",u)}),eZ(()=>i.value=!1);async function u(m){const v=m.relatedTarget,_=m.target;await Vi(),i.value&&v!==_&&l.value?.contentEl&&l.value?.globalTop&&![document,l.value.contentEl].includes(_)&&!l.value.contentEl.contains(_)&&$I(l.value.contentEl)[0]?.focus()}rt(i,m=>{m?(c?.register(),cs&&document.addEventListener("focusin",u,{once:!0})):(c?.unregister(),cs&&document.removeEventListener("focusin",u))},{immediate:!0});function h(m){c?.closeParents(m)}function f(m){if(!n.disabled)if(m.key==="Tab"||m.key==="Enter"&&!n.closeOnContentClick){if(m.key==="Enter"&&(m.target instanceof HTMLTextAreaElement||m.target instanceof HTMLInputElement&&m.target.closest("form")))return;m.key==="Enter"&&m.preventDefault(),q0e($I(l.value?.contentEl,!1),m.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(i.value=!1,l.value?.activatorEl?.focus())}else n.submenu&&m.key===(r.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,l.value?.activatorEl?.focus())}function g(m){if(n.disabled)return;const v=l.value?.contentEl;v&&i.value?m.key==="ArrowDown"?(m.preventDefault(),m.stopImmediatePropagation(),WT(v,"next")):m.key==="ArrowUp"?(m.preventDefault(),m.stopImmediatePropagation(),WT(v,"prev")):n.submenu&&(m.key===(r.value?"ArrowRight":"ArrowLeft")?i.value=!1:m.key===(r.value?"ArrowLeft":"ArrowRight")&&(m.preventDefault(),WT(v,"first"))):(n.submenu?m.key===(r.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(m.key))&&(i.value=!0,m.preventDefault(),setTimeout(()=>setTimeout(()=>g(m))))}const p=ue(()=>qt({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-controls":a.value,onKeydown:g},n.activatorProps));return tn(()=>{const m=i_.filterProps(n);return K(i_,qt({ref:l,id:a.value,class:["v-menu",n.class],style:n.style},m,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,absolute:!0,activatorProps:p.value,location:n.location??(n.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:f},s),{activator:t.activator,default:function(){for(var v=arguments.length,_=new Array(v),b=0;b<v;b++)_[b]=arguments[b];return K(Hr,{root:"VMenu"},{default:()=>[t.default?.(..._)]})}})}),M_({id:a,ΨopenChildren:d},l)}}),Zqe=Tt({renderless:Boolean,...kn()},"VVirtualScrollItem"),Jqe=Ei()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Zqe(),emits:{"update:height":n=>!0},setup(n,e){let{attrs:t,emit:i,slots:s}=e;const{resizeRef:r,contentRect:o}=jI(void 0,"border");rt(()=>o.value?.height,a=>{a!=null&&i("update:height",a)}),tn(()=>n.renderless?K(Ct,null,[s.default?.({itemRef:r})]):K("div",qt({ref:r,class:["v-virtual-scroll__item",n.class],style:n.style},t),[s.default?.()]))}}),eKe=-1,tKe=1,yV=100,iKe=Tt({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function nKe(n,e){const t=RZ(),i=$t(0);ja(()=>{i.value=parseFloat(n.itemHeight||0)});const s=$t(0),r=$t(Math.ceil((parseInt(n.height)||t.height.value)/(i.value||16))||1),o=$t(0),a=$t(0),l=Me(),c=Me();let d=0;const{resizeRef:u,contentRect:h}=jI();ja(()=>{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 v=$t(0);let _=-1;function b(M){return p[M]||i.value}const S=hWe(()=>{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);v.value=Math.max(v.value,performance.now()-M)},v),y=rt(g,M=>{M&&(y(),d=c.value.offsetTop,S.immediate(),A(),~_&&Vi(()=>{cs&&window.requestAnimationFrame(()=>{V(_),_=-1})}))});ir(()=>{S.clear()});function C(M,P){const W=p[M],H=i.value;i.value=H?Math.min(i.value,P):P,(W!==P||H!==i.value)&&(p[M]=P,S())}function T(M){return M=of(M,0,e.value.length-1),m[M]||0}function w(M){return sKe(m,M)}let I=0,R=0,D=0;rt(f,(M,P)=>{P&&(A(),M<P&&requestAnimationFrame(()=>{R=0,A()}))});let L=-1;function k(){if(!l.value||!c.value)return;const M=l.value.scrollTop,P=performance.now();P-D>500?(R=Math.sign(M-I),d=c.value.offsetTop):R=M-I,I=M,D=P,window.clearTimeout(L),L=window.setTimeout(x,500),A()}function x(){!l.value||!c.value||(R=0,D=0,window.clearTimeout(L),A())}let N=-1;function A(){cancelAnimationFrame(N),N=requestAnimationFrame(B)}function B(){if(!l.value||!f.value)return;const M=I-d,P=Math.sign(R),W=Math.max(0,M-yV),H=of(w(W),0,e.value.length),F=M+f.value+yV,U=of(w(F)+1,H+1,e.value.length);if((P!==eKe||H<s.value)&&(P!==tKe||U>r.value)){const Z=T(s.value)-T(H),X=T(U)-T(r.value);Math.max(Z,X)>yV?(s.value=H,r.value=U):(H<=0&&(s.value=H),U>=e.value.length&&(r.value=U))}o.value=T(s.value),a.value=T(e.value.length)-T(r.value)}function V(M){const P=T(M);!l.value||M&&!P?_=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:H0e(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:V,handleScroll:k,handleScrollend:x,handleItemResize:C}}function sKe(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 rKe=Tt({items:{type:Array,default:()=>[]},renderless:Boolean,...iKe(),...kn(),...wp()},"VVirtualScroll"),zIe=Ei()({name:"VVirtualScroll",props:rKe(),setup(n,e){let{slots:t}=e;const i=mo("VVirtualScroll"),{dimensionStyles:s}=Ep(n),{calculateVisibleItems:r,containerRef:o,markerRef:a,handleScroll:l,handleScrollend:c,handleItemResize:d,scrollToIndex:u,paddingTop:h,paddingBottom:f,computedItems:g}=nKe(n,Lt(n,"items"));return Zb(()=>n.renderless,()=>{function p(){const v=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[v]("scroll",l,{passive:!0}),document[v]("scrollend",c)):(o.value?.[v]("scroll",l,{passive:!0}),o.value?.[v]("scrollend",c))}nr(()=>{o.value=n1e(i.vnode.el,!0),p(!0)}),ir(p)}),tn(()=>{const p=g.value.map(m=>K(Jqe,{key:m.key,renderless:n.renderless,"onUpdate:height":v=>d(m.index,v)},{default:v=>t.default?.({item:m.raw,index:m.index,...v})}));return n.renderless?K(Ct,null,[K("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:un(h.value)}},null),p,K("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:un(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:un(h.value),paddingBottom:un(f.value)}},[p])])}),{calculateVisibleItems:r,scrollToIndex:u}}});function GIe(n,e){const t=$t(!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 qIe=Tt({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:ts,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...WTe({itemChildren:!1})},"Select"),oKe=Tt({...qIe(),...Cp($Z({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...JE({transition:{component:FZ}})},"VSelect"),aKe=Ei()({name:"VSelect",props:oKe(),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=Me(),r=Me(),o=Me(),a=Ks(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}=$Te(n),h=Ks(n,"modelValue",[],O=>d(O===null?[null]:hc(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=WZ(n),p=ue(()=>h.value.map(O=>O.value)),m=$t(!1),v=ue(()=>l.value?n.closeText:n.openText);let _="",b;const S=ue(()=>n.hideSelected?c.value.filter(O=>!h.value.some(M=>(n.valueComparator||Pu)(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=Me(),w=GIe(T,s);function I(O){n.openOnClear&&(l.value=!0)}function R(){y.value||(l.value=!l.value)}function D(O){rM(O)&&L(O)}function L(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(!rM(O))return;const P=performance.now();P-b>M&&(_=""),_+=O.key.toLowerCase(),b=P;const W=c.value.find(H=>H.title.toLowerCase().startsWith(_));if(W!==void 0){h.value=[W];const H=S.value.indexOf(W);cs&&window.requestAnimationFrame(()=>{H>=0&&o.value?.scrollToIndex(H)})}}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(H=>(n.valueComparator||Pu)(H.value,O.value)),W=M??!~P;if(~P){const H=W?[...h.value,O]:[...h.value];H.splice(P,1),h.value=H}else W&&(h.value=[...h.value,O])}else{const P=M!==!1;h.value=P?[O]:[],Vi(()=>{l.value=!1})}}function x(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 B(O){m.value=!0}function V(O){if(O==null)h.value=[];else if(sM(s.value,":autofill")||sM(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||Pu)(P.value,M.value)));cs&&window.requestAnimationFrame(()=>{O>=0&&o.value?.scrollToIndex(O)})}}),rt(()=>n.items,(O,M)=>{l.value||m.value&&!M.length&&O.length&&(l.value=!0)}),tn(()=>{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=_f.filterProps(n),H=P||!m.value&&n.label&&!n.persistentPlaceholder?void 0:n.placeholder;return K(_f,qt({ref:s},W,{modelValue:h.value.map(F=>F.props.value).join(", "),"onUpdate:modelValue":V,focused:m.value,"onUpdate:focused":F=>m.value=F,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:H,"onClick:clear":I,"onMousedown:control":R,onBlur:x,onKeydown:L,"aria-label":i(v.value),title:i(v.value)}),{...t,default:()=>K(Ct,null,[K(HB,qt({ref:r,modelValue:l.value,"onUpdate:modelValue":F=>l.value=F,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(DB,qt({ref:T,selected:p.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:F=>F.preventDefault(),onKeydown:D,onFocusin:B,tabindex:"-1","aria-live":"polite",color:n.itemColor??n.color},w,n.listProps),{default:()=>[t["prepend-item"]?.(),!S.value.length&&!n.hideNoData&&(t["no-data"]?.()??K(ip,{key:"no-data",title:i(n.noDataText)},null)),K(zIe,{ref:o,renderless:!0,items:S.value},{default:F=>{let{item:U,index:Z,itemRef:X}=F;const G=qt(U.props,{ref:X,key:U.value,onClick:()=>k(U,null)});return t.item?.({item:U,index:Z,props:G})??K(ip,qt(G,{role:"option"}),{prepend:he=>{let{isSelected:_e}=he;return K(Ct,null,[n.multiple&&!n.hideSelected?K(CM,{key:U.value,modelValue:_e,ripple:!1,tabindex:"-1"},null):void 0,U.props.prependAvatar&&K(tp,{image:U.props.prependAvatar},null),U.props.prependIcon&&K(Ui,{icon:U.props.prependIcon},null)])}})}}),t["append-item"]?.()]})]}),h.value.map((F,U)=>{function Z(_e){_e.stopPropagation(),_e.preventDefault(),k(F,!1)}const X={"onClick:close":Z,onKeydown(_e){_e.key!=="Enter"&&_e.key!==" "||(_e.preventDefault(),_e.stopPropagation(),Z(_e))},onMousedown(_e){_e.preventDefault(),_e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},G=O?!!t.chip:!!t.selection,he=G?CZ(O?t.chip({item:F,index:U,props:X}):t.selection({item:F,index:U})):void 0;if(!(G&&!he))return K("div",{key:F.value,class:"v-select__selection"},[O?t.chip?K(Hr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:F.title}}},{default:()=>[he]}):K(qg,qt({key:"chip",closable:n.closableChips,size:"small",text:F.title,disabled:F.props.disabled},X),null):he??K("span",{class:"v-select__selection-text"},[F.title,n.multiple&&U<h.value.length-1&&K("span",{class:"v-select__selection-comma"},[gi(",")])])])})]),"append-inner":function(){for(var F=arguments.length,U=new Array(F),Z=0;Z<F;Z++)U[Z]=arguments[Z];return K(Ct,null,[t["append-inner"]?.(...U),n.menuIcon?K(Ui,{class:"v-select__menu-icon",icon:n.menuIcon},null):void 0])}})}),M_({isFocused:m,menu:l,select:k},s)}}),lKe=(n,e,t)=>n==null||e==null?-1:n.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),cKe=Tt({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function dKe(n,e,t){const i=[],s=t?.default??lKe,r=t?.filterKeys?hc(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]=hc(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 v=Qh(c,m),_=t?.customKeyFilter?.[m];if(h=_?_(v,e,l):s(v,e,l),h!==-1&&h!==!1)_?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 uKe(n,e,t,i){const s=$t([]),r=$t(new Map),o=ue(()=>le(e));ja(()=>{const l=typeof t=="function"?t():le(t),c=typeof l!="string"&&typeof l!="number"?"":String(l),d=dKe(o.value,c,{customKeyFilter:{...n.customKeyFilter,...le(i?.customKeyFilter)},default:n.customFilter,filterKeys:n.filterKeys,filterMode:n.filterMode,noFilter:n.noFilter}),u=le(e),h=[],f=new Map;d.forEach(g=>{let{index:p,matches:m}=g;const v=u[p];h.push(v),f.set(v.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 hKe(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(Ct,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 fKe=Tt({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...cKe({filterKeys:["title"]}),...qIe({hideNoData:!0,returnObject:!0}),...Cp($Z({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...JE({transition:!1})},"VCombobox"),gKe=Ei()({name:"VCombobox",props:fKe(),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=Me(),o=$t(!1),a=$t(!0),l=$t(!1),c=Me(),d=Me(),u=Ks(n,"menu"),h=ue({get:()=>u.value,set:Q=>{u.value&&!Q&&c.value?.ΨopenChildren.size||(u.value=Q)}}),f=$t(-1);let g=!1;const p=ue(()=>r.value?.color),m=ue(()=>h.value?n.closeText:n.openText),{items:v,transformIn:_,transformOut:b}=$Te(n),{textColorClasses:S,textColorStyles:y}=Ku(p),C=Ks(n,"modelValue",[],Q=>_(hc(Q)),Q=>{const Y=b(Q);return n.multiple?Y:Y[0]??null}),T=WZ(n),w=ue(()=>!!(n.chips||i.chip)),I=ue(()=>w.value||!!i.selection),R=$t(!n.multiple&&!I.value?C.value[0]?.title??"":""),D=ue({get:()=>R.value,set:Q=>{if(R.value=Q??"",!n.multiple&&!I.value&&(C.value=[dm(n,Q)]),Q&&n.multiple&&n.delimiters?.length){const Y=Q.split(new RegExp(`(?:${n.delimiters.join("|")})+`));Y.length>1&&(Y.forEach(z=>{z=z.trim(),z&&G(dm(n,z))}),R.value="")}Q||(f.value=-1),a.value=!Q}}),L=ue(()=>typeof n.counterValue=="function"?n.counterValue(C.value):typeof n.counterValue=="number"?n.counterValue:n.multiple?C.value.length:D.value.length);rt(R,Q=>{g?Vi(()=>g=!1):o.value&&!h.value&&(h.value=!0),t("update:search",Q)}),rt(C,Q=>{!n.multiple&&!I.value&&(R.value=Q[0]?.title??"")});const{filteredItems:k,getMatches:x}=uKe(n,v,()=>a.value?"":D.value),N=ue(()=>n.hideSelected?k.value.filter(Q=>!C.value.some(Y=>Y.value===Q.value)):k.value),A=ue(()=>C.value.map(Q=>Q.value)),B=ue(()=>(n.autoSelectFirst===!0||n.autoSelectFirst==="exact"&&D.value===N.value[0]?.title)&&N.value.length>0&&!a.value&&!l.value),V=ue(()=>n.hideNoData&&!N.value.length||T.isReadonly.value||T.isDisabled.value),O=Me(),M=GIe(O,r);function P(Q){g=!0,n.openOnClear&&(h.value=!0)}function W(){V.value||(h.value=!0)}function H(Q){V.value||(o.value&&(Q.preventDefault(),Q.stopPropagation()),h.value=!h.value)}function F(Q){Q.key!==" "&&rM(Q)&&r.value?.focus()}function U(Q){if(uWe(Q)||T.isReadonly.value)return;const Y=r.value.selectionStart,z=C.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(Q.key)&&Q.preventDefault(),["Enter","ArrowDown"].includes(Q.key)&&(h.value=!0),["Escape"].includes(Q.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(Q.key)&&(B.value&&["Enter","Tab"].includes(Q.key)&&!C.value.some(j=>{let{value:ie}=j;return ie===N.value[0].value})&&G(k.value[0]),a.value=!0),Q.key==="ArrowDown"&&B.value&&O.value?.focus("next"),Q.key==="Enter"&&D.value&&(G(dm(n,D.value)),I.value&&(R.value="")),["Backspace","Delete"].includes(Q.key)){if(!n.multiple&&I.value&&C.value.length>0&&!D.value)return G(C.value[0],!1);if(~f.value){Q.preventDefault();const j=f.value;G(C.value[f.value],!1),f.value=j>=z-1?z-2:j}else Q.key==="Backspace"&&!D.value&&(f.value=z-1);return}if(n.multiple)if(Q.key==="ArrowLeft"){if(f.value<0&&Y>0)return;const j=f.value>-1?f.value-1:z-1;C.value[j]?f.value=j:(f.value=-1,r.value.setSelectionRange(D.value.length,D.value.length))}else if(Q.key==="ArrowRight"){if(f.value<0)return;const j=f.value+1;C.value[j]?f.value=j:(f.value=-1,r.value.setSelectionRange(0,0))}else~f.value&&rM(Q)&&(f.value=-1)}function Z(){n.eager&&d.value?.calculateVisibleItems()}function X(){o.value&&(a.value=!0,r.value?.focus())}function G(Q){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!Q||Q.props.disabled))if(n.multiple){const z=C.value.findIndex(ie=>(n.valueComparator||Pu)(ie.value,Q.value)),j=Y??!~z;if(~z){const ie=j?[...C.value,Q]:[...C.value];ie.splice(z,1),C.value=ie}else j&&(C.value=[...C.value,Q]);n.clearOnSelect&&(D.value="")}else{const z=Y!==!1;C.value=z?[Q]:[],R.value=z&&!I.value?Q.title:"",Vi(()=>{h.value=!1,a.value=!0})}}function he(Q){o.value=!0,setTimeout(()=>{l.value=!0})}function _e(Q){l.value=!1}function ee(Q){(Q==null||Q===""&&!n.multiple&&!I.value)&&(C.value=[])}return rt(o,(Q,Y)=>{if(!(Q||Q===Y)&&(f.value=-1,h.value=!1,D.value)){if(n.multiple){G(dm(n,D.value));return}if(!I.value)return;C.value.some(z=>{let{title:j}=z;return j===D.value})?R.value="":G(dm(n,D.value))}}),rt(h,()=>{if(!n.hideSelected&&h.value&&C.value.length){const Q=N.value.findIndex(Y=>C.value.some(z=>(n.valueComparator||Pu)(z.value,Y.value)));cs&&window.requestAnimationFrame(()=>{Q>=0&&d.value?.scrollToIndex(Q)})}}),rt(()=>n.items,(Q,Y)=>{h.value||o.value&&!Y.length&&Q.length&&(h.value=!0)}),tn(()=>{const Q=!!(!n.hideNoData||N.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),Y=C.value.length>0,z=_f.filterProps(n);return K(_f,qt({ref:r},z,{modelValue:D.value,"onUpdate:modelValue":[j=>D.value=j,ee],focused:o.value,"onUpdate:focused":j=>o.value=j,validationValue:C.externalValue,counterValue:L.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:U}),{...i,default:()=>K(Ct,null,[K(HB,qt({ref:c,modelValue:h.value,"onUpdate:modelValue":j=>h.value=j,activator:"parent",contentClass:"v-combobox__content",disabled:V.value,eager:n.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:n.transition,onAfterEnter:Z,onAfterLeave:X},n.menuProps),{default:()=>[Q&&K(DB,qt({ref:O,selected:A.value,selectStrategy:n.multiple?"independent":"single-independent",onMousedown:j=>j.preventDefault(),onKeydown:F,onFocusin:he,onFocusout:_e,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(ip,{key:"no-data",title:s(n.noDataText)},null)),K(zIe,{ref:d,renderless:!0,items:N.value},{default:j=>{let{item:ie,index:J,itemRef:ve}=j;const Ne=qt(ie.props,{ref:ve,key:ie.value,active:B.value&&J===0?!0:void 0,onClick:()=>G(ie,null)});return i.item?.({item:ie,index:J,props:Ne})??K(ip,qt(Ne,{role:"option"}),{prepend:Te=>{let{isSelected:Ce}=Te;return K(Ct,null,[n.multiple&&!n.hideSelected?K(CM,{key:ie.value,modelValue:Ce,ripple:!1,tabindex:"-1"},null):void 0,ie.props.prependAvatar&&K(tp,{image:ie.props.prependAvatar},null),ie.props.prependIcon&&K(Ui,{icon:ie.props.prependIcon},null)])},title:()=>a.value?ie.title:hKe(ie.title,x(ie)?.title,D.value?.length??0)})}}),i["append-item"]?.()]})]}),C.value.map((j,ie)=>{function J(Ce){Ce.stopPropagation(),Ce.preventDefault(),G(j,!1)}const ve={"onClick:close":J,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),J(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Ne=w.value?!!i.chip:!!i.selection,Te=Ne?CZ(w.value?i.chip({item:j,index:ie,props:ve}):i.selection({item:j,index:ie})):void 0;if(!(Ne&&!Te))return K("div",{key:j.value,class:["v-combobox__selection",ie===f.value&&["v-combobox__selection--selected",S.value]],style:ie===f.value?y.value:{}},[w.value?i.chip?K(Hr,{key:"chip-defaults",defaults:{VChip:{closable:n.closableChips,size:"small",text:j.title}}},{default:()=>[Te]}):K(qg,qt({key:"chip",closable:n.closableChips,size:"small",text:j.title,disabled:j.props.disabled},ve),null):Te??K("span",{class:"v-combobox__selection-text"},[j.title,n.multiple&&ie<C.value.length-1&&K("span",{class:"v-combobox__selection-comma"},[gi(",")])])])})]),"append-inner":function(){for(var j=arguments.length,ie=new Array(j),J=0;J<j;J++)ie[J]=arguments[J];return K(Ct,null,[i["append-inner"]?.(...ie),(!n.hideNoData||n.items.length)&&n.menuIcon?K(Ui,{class:"v-combobox__menu-icon",icon:n.menuIcon,onMousedown:H,onClick:gWe,"aria-label":s(m.value),title:s(m.value),tabindex:"-1"},null):void 0])}})}),M_({isFocused:o,isPristine:a,menu:h,search:D,selectionIndex:f,filteredItems:k,select:G},r)}}),pKe=Tt({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,...EB(),...HZ()},"VTextarea"),mKe=Ei()({name:"VTextarea",directives:{Intersect:UZ},inheritAttrs:!1,props:pKe(),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=Ks(n,"modelValue"),{isFocused:o,focus:a,blur:l}=yB(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(D,L){!n.autofocus||!D||L[0].target?.focus?.()}const h=Me(),f=Me(),g=$t(""),p=Me(),m=ue(()=>n.persistentPlaceholder||o.value||n.active);function v(){p.value!==document.activeElement&&p.value?.focus(),o.value||a()}function _(D){v(),i("click:control",D)}function b(D){i("mousedown:control",D)}function S(D){D.stopPropagation(),v(),Vi(()=>{r.value="",yZ(n["onClick:clear"],D)})}function y(D){const L=D.target;if(r.value=L.value,n.modelModifiers?.trim){const k=[L.selectionStart,L.selectionEnd];Vi(()=>{L.selectionStart=k[0],L.selectionEnd=k[1]})}}const C=Me(),T=Me(Number(n.rows)),w=ue(()=>["plain","underlined"].includes(n.variant));ja(()=>{n.autoGrow||(T.value=Number(n.rows))});function I(){n.autoGrow&&Vi(()=>{if(!C.value||!f.value)return;const D=getComputedStyle(C.value),L=getComputedStyle(f.value.$el),k=parseFloat(D.getPropertyValue("--v-field-padding-top"))+parseFloat(D.getPropertyValue("--v-input-padding-top"))+parseFloat(D.getPropertyValue("--v-field-padding-bottom")),x=C.value.scrollHeight,N=parseFloat(D.lineHeight),A=Math.max(parseFloat(n.rows)*N+k,parseFloat(L.getPropertyValue("--v-input-control-height"))),B=parseFloat(n.maxRows)*N+k||1/0,V=of(x??0,A,B);T.value=Math.floor((V-k)/N),g.value=un(V)})}nr(I),rt(r,I),rt(()=>n.rows,I),rt(()=>n.maxRows,I),rt(()=>n.density,I);let R;return rt(C,D=>{D?(R=new ResizeObserver(I),R.observe(C.value)):R?.disconnect()}),Zo(()=>{R?.disconnect()}),tn(()=>{const D=!!(s.counter||n.counter||n.counterValue),L=!!(D||s.details),[k,x]=gB(t),{modelValue:N,...A}=$w.filterProps(n),B=pM.filterProps(n);return K($w,qt({ref:h,modelValue:r.value,"onUpdate:modelValue":V=>r.value=V,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":w.value},n.class],style:n.style},k,A,{centerAffix:T.value===1&&!w.value,focused:o.value}),{...s,default:V=>{let{id:O,isDisabled:M,isDirty:P,isReadonly:W,isValid:H}=V;return K(pM,qt({ref:f,style:{"--v-textarea-control-height":g.value},onClick:_,onMousedown:b,"onClick:clear":S,"onClick:prependInner":n["onClick:prependInner"],"onClick:appendInner":n["onClick:appendInner"]},B,{id:O.value,active:m.value||P.value,centerAffix:T.value===1&&!w.value,dirty:P.value||n.dirty,disabled:M.value,focused:o.value,error:H.value===!1}),{...s,default:F=>{let{props:{class:U,...Z}}=F;return K(Ct,null,[n.prefix&&K("span",{class:"v-text-field__prefix"},[n.prefix]),Al(K("textarea",qt({ref:p,class:U,value:r.value,onInput:y,autofocus:n.autofocus,readonly:W.value,disabled:M.value,placeholder:n.placeholder,rows:n.rows,name:n.name,onFocus:v,onBlur:l},Z,x),null),[[A_("intersect"),{handler:u},null,{once:!0}]]),n.autoGrow&&Al(K("textarea",{class:[U,"v-textarea__sizer"],id:`${Z.id}-sizer`,"onUpdate:modelValue":X=>r.value=X,ref:C,readonly:!0,"aria-hidden":"true"},null),[[D3e,r.value]]),n.suffix&&K("span",{class:"v-text-field__suffix"},[n.suffix])])}})},details:L?V=>K(Ct,null,[s.details?.(V),D&&K(Ct,null,[K("span",null,null),K(j1e,{active:n.persistentCounter||o.value,value:c.value,max:d.value,disabled:n.disabled},s.counter)])]):void 0})}),M_({},h,f,p)}}),KIe=Dt({__name:"ComponentArgInput",props:WS({name:{},arg:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=pf(n,"modelValue"),t=Me(!1),i=ue(()=>n.isSecret?t.value?"text":"password":"text"),s=ue(()=>n.isSecret?t.value?e.value:"*".repeat(e.value?.length??0):e.value),r=ue(()=>"type"in n.arg.schema?n.arg.schema.type:"unknown"),o=ue(()=>r.value==="array"&&(n.arg.schema.items.type==="string"||n.arg.schema.items.type==="number"));return(a,l)=>{const c=TGe,d=Wqe;return le(r)==="string"&&a.arg.schema.language?(xe(),ot(c,{key:0,modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=u=>e.value=u),"component-type":a.instance.type,name:a.name,arg:a.arg},null,8,["modelValue","component-type","name","arg"])):le(r)==="string"&&!a.arg.schema.multiline?(xe(),ot(_f,{key:1,modelValue:e.value,"onUpdate:modelValue":l[2]||(l[2]=u=>e.value=u),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:le(i),placeholder:a.arg.schema.default},I7({_:2},[a.isSecret?{name:"append-inner",fn:We(()=>[K(Ui,{onClick:l[1]||(l[1]=u=>t.value=!le(t))},{default:We(()=>[gi(rn(le(t)?"mdi-eye-off":"mdi-eye"),1)]),_:1})]),key:"0"}:void 0]),1032,["modelValue","label","type","placeholder"])):le(r)==="string"&&a.arg.schema.multiline?(xe(),ot(mKe,{key:2,"model-value":le(s),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),variant:"outlined",density:"compact",placeholder:a.arg.schema.default,"hide-details":"","onUpdate:modelValue":l[4]||(l[4]=u=>e.value=u)},I7({_:2},[a.isSecret?{name:"append-inner",fn:We(()=>[K(Ui,{onClick:l[3]||(l[3]=u=>t.value=!le(t))},{default:We(()=>[gi(rn(le(t)?"mdi-eye-off":"mdi-eye"),1)]),_:1})]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])):le(r)==="number"?(xe(),ot(_f,{key:3,modelValue:e.value,"onUpdate:modelValue":l[5]||(l[5]=u=>e.value=u),modelModifiers:{number:!0},label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),style:{"max-height":"40px"},variant:"outlined",density:"compact",type:"number",placeholder:a.arg.schema.default,"hide-details":""},null,8,["modelValue","label","placeholder"])):le(r)==="boolean"?(xe(),ot(X1,{key:4,modelValue:e.value,"onUpdate:modelValue":l[6]||(l[6]=u=>e.value=u),style:{"max-height":"40px"},label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),density:"compact","hide-details":""},null,8,["modelValue","label"])):le(o)?(xe(),ot(gKe,{key:5,modelValue:e.value,"onUpdate:modelValue":l[7]||(l[7]=u=>e.value=u),style:{"max-height":"40px"},label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),placeholder:a.arg.schema.default,variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},null,8,["modelValue","label","placeholder"])):"anyOf"in a.arg.schema?(xe(),ot(aKe,{key:6,modelValue:e.value,"onUpdate:modelValue":l[8]||(l[8]=u=>e.value=u),style:{"max-height":"40px"},items:a.arg.schema.anyOf.map(u=>u.const),label:("getDisplayName"in a?a.getDisplayName:le(Sl))(a.name,a.arg.meta),placeholder:a.arg.schema.default,variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","items","label","placeholder"])):le(r)==="object"||le(r)==="array"?(xe(),ot(d,{key:7,modelValue:e.value,"onUpdate:modelValue":l[9]||(l[9]=u=>e.value=u),"component-type":a.instance.type,name:a.name,arg:a.arg},null,8,["modelValue","component-type","name","arg"])):ei("",!0)}}});var jn;(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})(jn||(jn={}));var Tz;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Tz||(Tz={}));const Vt=jn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pg=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}},ht=jn.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"]),_Ke=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Kc 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 Kc))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,jn.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()}}Kc.create=n=>new Kc(n);const qw=(n,e)=>{let t;switch(n.code){case ht.invalid_type:n.received===Vt.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case ht.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,jn.jsonStringifyReplacer)}`;break;case ht.unrecognized_keys:t=`Unrecognized key(s) in object: ${jn.joinValues(n.keys,", ")}`;break;case ht.invalid_union:t="Invalid input";break;case ht.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${jn.joinValues(n.options)}`;break;case ht.invalid_enum_value:t=`Invalid enum value. Expected ${jn.joinValues(n.options)}, received '${n.received}'`;break;case ht.invalid_arguments:t="Invalid function arguments";break;case ht.invalid_return_type:t="Invalid function return type";break;case ht.invalid_date:t="Invalid date";break;case ht.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}"`:jn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case ht.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 ht.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 ht.custom:t="Invalid input";break;case ht.invalid_intersection_types:t="Intersection results could not be merged";break;case ht.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case ht.not_finite:t="Number must be finite";break;default:t=e.defaultError,jn.assertNever(n)}return{message:t}};let jIe=qw;function vKe(n){jIe=n}function wM(){return jIe}const EM=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}},bKe=[];function At(n,e){const t=wM(),i=EM({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===qw?void 0:qw].filter(s=>!!s)});n.common.issues.push(i)}class Ya{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 Pi;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 Ya.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 Pi;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 Pi=Object.freeze({status:"aborted"}),_C=n=>({status:"dirty",value:n}),Ol=n=>({status:"valid",value:n}),Iz=n=>n.status==="aborted",Lz=n=>n.status==="dirty",tS=n=>n.status==="valid",nL=n=>typeof Promise<"u"&&n instanceof Promise;function TM(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 YIe(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 ni;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e?.message})(ni||(ni={}));var Z1,J1;class Sf{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 tle=(n,e)=>{if(tS(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 Kc(n.common.issues);return this._error=t,this._error}}};function on(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 hn{get description(){return this._def.description}_getType(e){return pg(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:pg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ya,ctx:{common:e.parent.common,data:e.data,parsedType:pg(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(nL(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:pg(e)},r=this._parseSync({data:e,path:s.path,parent:s});return tle(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:pg(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:s});return tS(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=>tS(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:pg(e)},s=this._parse({data:e,path:i.path,parent:i}),r=await(nL(s)?s:Promise.resolve(s));return tle(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:ht.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 ju({schema:this,typeName:Oi.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 af.create(this,this._def)}nullable(){return o_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fu.create(this)}promise(){return jw.create(this,this._def)}or(e){return aL.create([this,e],this._def)}and(e){return lL.create(this,e,this._def)}transform(e){return new ju({...on(this._def),schema:this,typeName:Oi.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new fL({...on(this._def),innerType:this,defaultValue:t,typeName:Oi.ZodDefault})}brand(){return new mJ({typeName:Oi.ZodBranded,type:this,...on(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new gL({...on(this._def),innerType:this,catchValue:t,typeName:Oi.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return LR.create(this,e)}readonly(){return pL.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SKe=/^c[^\s-]{8,}$/i,yKe=/^[0-9a-z]+$/,CKe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wKe=/^[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,EKe=/^[a-z0-9_-]{21}$/i,TKe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,IKe=/^[-+]?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)?)??$/,LKe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xKe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let CV;const RKe=/^(?:(?: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])$/,DKe=/^(?:(?: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])$/,NKe=/^(([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]))$/,kKe=/^(([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])$/,AKe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OKe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,QIe="((\\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])))",MKe=new RegExp(`^${QIe}$`);function XIe(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 PKe(n){return new RegExp(`^${XIe(n)}$`)}function ZIe(n){let e=`${QIe}T${XIe(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 FKe(n,e){return!!((e==="v4"||!e)&&RKe.test(n)||(e==="v6"||!e)&&NKe.test(n))}function BKe(n,e){if(!TKe.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 VKe(n,e){return!!((e==="v4"||!e)&&DKe.test(n)||(e==="v6"||!e)&&kKe.test(n))}class Du extends hn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Vt.string){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_type,expected:Vt.string,received:r.parsedType}),Pi}const i=new Ya;let s;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(s=this._getOrReturnCtx(e,s),At(s,{code:ht.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),At(s,{code:ht.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?At(s,{code:ht.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&At(s,{code:ht.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")LKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"email",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")CV||(CV=new RegExp(xKe,"u")),CV.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"emoji",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")wKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"uuid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")EKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"nanoid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")SKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cuid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")yKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cuid2",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")CKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"ulid",code:ht.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),At(s,{validation:"url",code:ht.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),At(s,{validation:"regex",code:ht.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),At(s,{code:ht.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),At(s,{code:ht.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?ZIe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?MKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?PKe(r).test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{code:ht.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?IKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"duration",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?FKe(e.data,r.version)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"ip",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?BKe(e.data,r.alg)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"jwt",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?VKe(e.data,r.version)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"cidr",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?AKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"base64",code:ht.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?OKe.test(e.data)||(s=this._getOrReturnCtx(e,s),At(s,{validation:"base64url",code:ht.invalid_string,message:r.message}),i.dirty()):jn.assertNever(r);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(s=>e.test(s),{validation:t,code:ht.invalid_string,...ni.errToObj(i)})}_addCheck(e){return new Du({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ni.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ni.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ni.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ni.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ni.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ni.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ni.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ni.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ni.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ni.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ni.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ni.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ni.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,...ni.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,...ni.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ni.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ni.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...ni.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ni.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ni.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ni.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ni.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ni.errToObj(t)})}nonempty(e){return this.min(1,ni.errToObj(e))}trim(){return new Du({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Du({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Du({...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}}Du.create=n=>{var e;return new Du({checks:[],typeName:Oi.ZodString,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...on(n)})};function HKe(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 n_ extends hn{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 At(r,{code:ht.invalid_type,expected:Vt.number,received:r.parsedType}),Pi}let i;const s=new Ya;for(const r of this._def.checks)r.kind==="int"?jn.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),At(i,{code:ht.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),At(i,{code:ht.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),At(i,{code:ht.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?HKe(e.data,r.value)!==0&&(i=this._getOrReturnCtx(e,i),At(i,{code:ht.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),At(i,{code:ht.not_finite,message:r.message}),s.dirty()):jn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ni.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ni.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ni.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ni.toString(t))}setLimit(e,t,i,s){return new n_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:ni.toString(s)}]})}_addCheck(e){return new n_({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ni.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ni.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ni.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ni.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ni.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ni.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ni.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ni.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ni.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"&&jn.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)}}n_.create=n=>new n_({checks:[],typeName:Oi.ZodNumber,coerce:n?.coerce||!1,...on(n)});class s_ extends hn{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 Ya;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),At(i,{code:ht.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),At(i,{code:ht.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),At(i,{code:ht.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):jn.assertNever(r);return{status:s.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return At(t,{code:ht.invalid_type,expected:Vt.bigint,received:t.parsedType}),Pi}gte(e,t){return this.setLimit("min",e,!0,ni.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ni.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ni.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ni.toString(t))}setLimit(e,t,i,s){return new s_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:ni.toString(s)}]})}_addCheck(e){return new s_({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ni.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ni.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ni.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ni.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ni.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}}s_.create=n=>{var e;return new s_({checks:[],typeName:Oi.ZodBigInt,coerce:(e=n?.coerce)!==null&&e!==void 0?e:!1,...on(n)})};class sL extends hn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Vt.boolean){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.boolean,received:i.parsedType}),Pi}return Ol(e.data)}}sL.create=n=>new sL({typeName:Oi.ZodBoolean,coerce:n?.coerce||!1,...on(n)});class iS extends hn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Vt.date){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_type,expected:Vt.date,received:r.parsedType}),Pi}if(isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return At(r,{code:ht.invalid_date}),Pi}const i=new Ya;let s;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(s=this._getOrReturnCtx(e,s),At(s,{code:ht.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),At(s,{code:ht.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):jn.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new iS({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ni.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ni.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}}iS.create=n=>new iS({checks:[],coerce:n?.coerce||!1,typeName:Oi.ZodDate,...on(n)});class IM extends hn{_parse(e){if(this._getType(e)!==Vt.symbol){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.symbol,received:i.parsedType}),Pi}return Ol(e.data)}}IM.create=n=>new IM({typeName:Oi.ZodSymbol,...on(n)});class rL extends hn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.undefined,received:i.parsedType}),Pi}return Ol(e.data)}}rL.create=n=>new rL({typeName:Oi.ZodUndefined,...on(n)});class oL extends hn{_parse(e){if(this._getType(e)!==Vt.null){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.null,received:i.parsedType}),Pi}return Ol(e.data)}}oL.create=n=>new oL({typeName:Oi.ZodNull,...on(n)});class Kw extends hn{constructor(){super(...arguments),this._any=!0}_parse(e){return Ol(e.data)}}Kw.create=n=>new Kw({typeName:Oi.ZodAny,...on(n)});class Ib extends hn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ol(e.data)}}Ib.create=n=>new Ib({typeName:Oi.ZodUnknown,...on(n)});class np extends hn{_parse(e){const t=this._getOrReturnCtx(e);return At(t,{code:ht.invalid_type,expected:Vt.never,received:t.parsedType}),Pi}}np.create=n=>new np({typeName:Oi.ZodNever,...on(n)});class LM extends hn{_parse(e){if(this._getType(e)!==Vt.undefined){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.void,received:i.parsedType}),Pi}return Ol(e.data)}}LM.create=n=>new LM({typeName:Oi.ZodVoid,...on(n)});class Fu extends hn{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==Vt.array)return At(t,{code:ht.invalid_type,expected:Vt.array,received:t.parsedType}),Pi;if(s.exactLength!==null){const o=t.data.length>s.exactLength.value,a=t.data.length<s.exactLength.value;(o||a)&&(At(t,{code:o?ht.too_big:ht.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&&(At(t,{code:ht.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&&(At(t,{code:ht.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 Sf(t,o,t.path,a)))).then(o=>Ya.mergeArray(i,o));const r=[...t.data].map((o,a)=>s.type._parseSync(new Sf(t,o,t.path,a)));return Ya.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new Fu({...this._def,minLength:{value:e,message:ni.toString(t)}})}max(e,t){return new Fu({...this._def,maxLength:{value:e,message:ni.toString(t)}})}length(e,t){return new Fu({...this._def,exactLength:{value:e,message:ni.toString(t)}})}nonempty(e){return this.min(1,e)}}Fu.create=(n,e)=>new Fu({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Oi.ZodArray,...on(e)});function iC(n){if(n instanceof mr){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=af.create(iC(i))}return new mr({...n._def,shape:()=>e})}else return n instanceof Fu?new Fu({...n._def,type:iC(n.element)}):n instanceof af?af.create(iC(n.unwrap())):n instanceof o_?o_.create(iC(n.unwrap())):n instanceof yf?yf.create(n.items.map(e=>iC(e))):n}class mr extends hn{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=jn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Vt.object){const c=this._getOrReturnCtx(e);return At(c,{code:ht.invalid_type,expected:Vt.object,received:c.parsedType}),Pi}const{status:i,ctx:s}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof np&&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 Sf(s,u,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof np){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&&(At(s,{code:ht.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 Sf(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=>Ya.mergeObjectSync(i,c)):Ya.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return ni.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=ni.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:Oi.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new mr({...this._def,catchall:e})}pick(e){const t={};return jn.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 jn.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new mr({...this._def,shape:()=>t})}deepPartial(){return iC(this)}partial(e){const t={};return jn.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 jn.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof af;)r=r._def.innerType;t[i]=r}}),new mr({...this._def,shape:()=>t})}keyof(){return JIe(jn.objectKeys(this.shape))}}mr.create=(n,e)=>new mr({shape:()=>n,unknownKeys:"strip",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});mr.strictCreate=(n,e)=>new mr({shape:()=>n,unknownKeys:"strict",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});mr.lazycreate=(n,e)=>new mr({shape:n,unknownKeys:"strip",catchall:np.create(),typeName:Oi.ZodObject,...on(e)});class aL extends hn{_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 Kc(a.ctx.common.issues));return At(t,{code:ht.invalid_union,unionErrors:o}),Pi}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 Kc(l));return At(t,{code:ht.invalid_union,unionErrors:a}),Pi}}get options(){return this._def.options}}aL.create=(n,e)=>new aL({options:n,typeName:Oi.ZodUnion,...on(e)});const rg=n=>n instanceof dL?rg(n.schema):n instanceof ju?rg(n.innerType()):n instanceof uL?[n.value]:n instanceof r_?n.options:n instanceof hL?jn.objectValues(n.enum):n instanceof fL?rg(n._def.innerType):n instanceof rL?[void 0]:n instanceof oL?[null]:n instanceof af?[void 0,...rg(n.unwrap())]:n instanceof o_?[null,...rg(n.unwrap())]:n instanceof mJ||n instanceof pL?rg(n.unwrap()):n instanceof gL?rg(n._def.innerType):[];class WB extends hn{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.object)return At(t,{code:ht.invalid_type,expected:Vt.object,received:t.parsedType}),Pi;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}):(At(t,{code:ht.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Pi)}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=rg(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 WB({typeName:Oi.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...on(i)})}}function xz(n,e){const t=pg(n),i=pg(e);if(n===e)return{valid:!0,data:n};if(t===Vt.object&&i===Vt.object){const s=jn.objectKeys(e),r=jn.objectKeys(n).filter(a=>s.indexOf(a)!==-1),o={...n,...e};for(const a of r){const l=xz(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=xz(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 lL extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),s=(r,o)=>{if(Iz(r)||Iz(o))return Pi;const a=xz(r.value,o.value);return a.valid?((Lz(r)||Lz(o))&&t.dirty(),{status:t.value,value:a.data}):(At(i,{code:ht.invalid_intersection_types}),Pi)};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}))}}lL.create=(n,e,t)=>new lL({left:n,right:e,typeName:Oi.ZodIntersection,...on(t)});class yf extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.array)return At(i,{code:ht.invalid_type,expected:Vt.array,received:i.parsedType}),Pi;if(i.data.length<this._def.items.length)return At(i,{code:ht.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pi;!this._def.rest&&i.data.length>this._def.items.length&&(At(i,{code:ht.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 Sf(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(r).then(o=>Ya.mergeArray(t,o)):Ya.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new yf({...this._def,rest:e})}}yf.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yf({items:n,typeName:Oi.ZodTuple,rest:null,...on(e)})};class cL extends hn{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 At(i,{code:ht.invalid_type,expected:Vt.object,received:i.parsedType}),Pi;const s=[],r=this._def.keyType,o=this._def.valueType;for(const a in i.data)s.push({key:r._parse(new Sf(i,a,i.path,a)),value:o._parse(new Sf(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?Ya.mergeObjectAsync(t,s):Ya.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof hn?new cL({keyType:e,valueType:t,typeName:Oi.ZodRecord,...on(i)}):new cL({keyType:Du.create(),valueType:e,typeName:Oi.ZodRecord,...on(t)})}}class xM extends hn{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 At(i,{code:ht.invalid_type,expected:Vt.map,received:i.parsedType}),Pi;const s=this._def.keyType,r=this._def.valueType,o=[...i.data.entries()].map(([a,l],c)=>({key:s._parse(new Sf(i,a,i.path,[c,"key"])),value:r._parse(new Sf(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 Pi;(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 Pi;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),a.set(c.value,d.value)}return{status:t.value,value:a}}}}xM.create=(n,e,t)=>new xM({valueType:e,keyType:n,typeName:Oi.ZodMap,...on(t)});class nS extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Vt.set)return At(i,{code:ht.invalid_type,expected:Vt.set,received:i.parsedType}),Pi;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(At(i,{code:ht.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&&(At(i,{code:ht.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 Pi;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 Sf(i,l,i.path,c)));return i.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,t){return new nS({...this._def,minSize:{value:e,message:ni.toString(t)}})}max(e,t){return new nS({...this._def,maxSize:{value:e,message:ni.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}nS.create=(n,e)=>new nS({valueType:n,minSize:null,maxSize:null,typeName:Oi.ZodSet,...on(e)});class tw extends hn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.function)return At(t,{code:ht.invalid_type,expected:Vt.function,received:t.parsedType}),Pi;function i(a,l){return EM({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,wM(),qw].filter(c=>!!c),issueData:{code:ht.invalid_arguments,argumentsError:l}})}function s(a,l){return EM({data:a,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,wM(),qw].filter(c=>!!c),issueData:{code:ht.invalid_return_type,returnTypeError:l}})}const r={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof jw){const a=this;return Ol(async function(...l){const c=new Kc([]),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 Ol(function(...l){const c=a._def.args.safeParse(l,r);if(!c.success)throw new Kc([i(l,c.error)]);const d=Reflect.apply(o,this,c.data),u=a._def.returns.safeParse(d,r);if(!u.success)throw new Kc([s(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new tw({...this._def,args:yf.create(e).rest(Ib.create())})}returns(e){return new tw({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new tw({args:e||yf.create([]).rest(Ib.create()),returns:t||Ib.create(),typeName:Oi.ZodFunction,...on(i)})}}class dL extends hn{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})}}dL.create=(n,e)=>new dL({getter:n,typeName:Oi.ZodLazy,...on(e)});class uL extends hn{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return At(t,{received:t.data,code:ht.invalid_literal,expected:this._def.value}),Pi}return{status:"valid",value:e.data}}get value(){return this._def.value}}uL.create=(n,e)=>new uL({value:n,typeName:Oi.ZodLiteral,...on(e)});function JIe(n,e){return new r_({values:n,typeName:Oi.ZodEnum,...on(e)})}class r_ extends hn{constructor(){super(...arguments),Z1.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return At(t,{expected:jn.joinValues(i),received:t.parsedType,code:ht.invalid_type}),Pi}if(TM(this,Z1)||YIe(this,Z1,new Set(this._def.values)),!TM(this,Z1).has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return At(t,{received:t.data,code:ht.invalid_enum_value,options:i}),Pi}return Ol(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 r_.create(e,{...this._def,...t})}exclude(e,t=this._def){return r_.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Z1=new WeakMap;r_.create=JIe;class hL extends hn{constructor(){super(...arguments),J1.set(this,void 0)}_parse(e){const t=jn.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==Vt.string&&i.parsedType!==Vt.number){const s=jn.objectValues(t);return At(i,{expected:jn.joinValues(s),received:i.parsedType,code:ht.invalid_type}),Pi}if(TM(this,J1)||YIe(this,J1,new Set(jn.getValidEnumValues(this._def.values))),!TM(this,J1).has(e.data)){const s=jn.objectValues(t);return At(i,{received:i.data,code:ht.invalid_enum_value,options:s}),Pi}return Ol(e.data)}get enum(){return this._def.values}}J1=new WeakMap;hL.create=(n,e)=>new hL({values:n,typeName:Oi.ZodNativeEnum,...on(e)});class jw extends hn{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Vt.promise&&t.common.async===!1)return At(t,{code:ht.invalid_type,expected:Vt.promise,received:t.parsedType}),Pi;const i=t.parsedType===Vt.promise?t.data:Promise.resolve(t.data);return Ol(i.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}jw.create=(n,e)=>new jw({type:n,typeName:Oi.ZodPromise,...on(e)});class ju extends hn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oi.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=>{At(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 Pi;const l=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return l.status==="aborted"?Pi:l.status==="dirty"||t.value==="dirty"?_C(l.value):l});{if(t.value==="aborted")return Pi;const a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Pi:a.status==="dirty"||t.value==="dirty"?_C(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"?Pi:(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"?Pi:(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(!tS(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=>tS(o)?Promise.resolve(s.transform(o.value,r)).then(a=>({status:t.value,value:a})):o);jn.assertNever(s)}}ju.create=(n,e,t)=>new ju({schema:n,typeName:Oi.ZodEffects,effect:e,...on(t)});ju.createWithPreprocess=(n,e,t)=>new ju({schema:e,effect:{type:"preprocess",transform:n},typeName:Oi.ZodEffects,...on(t)});class af extends hn{_parse(e){return this._getType(e)===Vt.undefined?Ol(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}af.create=(n,e)=>new af({innerType:n,typeName:Oi.ZodOptional,...on(e)});class o_ extends hn{_parse(e){return this._getType(e)===Vt.null?Ol(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}o_.create=(n,e)=>new o_({innerType:n,typeName:Oi.ZodNullable,...on(e)});class fL extends hn{_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}}fL.create=(n,e)=>new fL({innerType:n,typeName:Oi.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...on(e)});class gL extends hn{_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 nL(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Kc(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Kc(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}gL.create=(n,e)=>new gL({innerType:n,typeName:Oi.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...on(e)});class RM extends hn{_parse(e){if(this._getType(e)!==Vt.nan){const i=this._getOrReturnCtx(e);return At(i,{code:ht.invalid_type,expected:Vt.nan,received:i.parsedType}),Pi}return{status:"valid",value:e.data}}}RM.create=n=>new RM({typeName:Oi.ZodNaN,...on(n)});const WKe=Symbol("zod_brand");class mJ extends hn{_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 LR extends hn{_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"?Pi:r.status==="dirty"?(t.dirty(),_C(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"?Pi: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 LR({in:e,out:t,typeName:Oi.ZodPipeline})}}class pL extends hn{_parse(e){const t=this._def.innerType._parse(e),i=s=>(tS(s)&&(s.value=Object.freeze(s.value)),s);return nL(t)?t.then(s=>i(s)):i(t)}unwrap(){return this._def.innerType}}pL.create=(n,e)=>new pL({innerType:n,typeName:Oi.ZodReadonly,...on(e)});function ile(n,e){const t=typeof n=="function"?n(e):typeof n=="string"?{message:n}:n;return typeof t=="string"?{message:t}:t}function eLe(n,e={},t){return n?Kw.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=ile(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=ile(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})}}):Kw.create()}const UKe={object:mr.lazycreate};var Oi;(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"})(Oi||(Oi={}));const $Ke=(n,e={message:`Input not instance of ${n.name}`})=>eLe(t=>t instanceof n,e),tLe=Du.create,iLe=n_.create,zKe=RM.create,GKe=s_.create,nLe=sL.create,qKe=iS.create,KKe=IM.create,jKe=rL.create,YKe=oL.create,QKe=Kw.create,XKe=Ib.create,ZKe=np.create,JKe=LM.create,eje=Fu.create,tje=mr.create,ije=mr.strictCreate,nje=aL.create,sje=WB.create,rje=lL.create,oje=yf.create,aje=cL.create,lje=xM.create,cje=nS.create,dje=tw.create,uje=dL.create,hje=uL.create,fje=r_.create,gje=hL.create,pje=jw.create,nle=ju.create,mje=af.create,_je=o_.create,vje=ju.createWithPreprocess,bje=LR.create,Sje=()=>tLe().optional(),yje=()=>iLe().optional(),Cje=()=>nLe().optional(),wje={string:n=>Du.create({...n,coerce:!0}),number:n=>n_.create({...n,coerce:!0}),boolean:n=>sL.create({...n,coerce:!0}),bigint:n=>s_.create({...n,coerce:!0}),date:n=>iS.create({...n,coerce:!0})},Eje=Pi;var qe=Object.freeze({__proto__:null,defaultErrorMap:qw,setErrorMap:vKe,getErrorMap:wM,makeIssue:EM,EMPTY_PATH:bKe,addIssueToContext:At,ParseStatus:Ya,INVALID:Pi,DIRTY:_C,OK:Ol,isAborted:Iz,isDirty:Lz,isValid:tS,isAsync:nL,get util(){return jn},get objectUtil(){return Tz},ZodParsedType:Vt,getParsedType:pg,ZodType:hn,datetimeRegex:ZIe,ZodString:Du,ZodNumber:n_,ZodBigInt:s_,ZodBoolean:sL,ZodDate:iS,ZodSymbol:IM,ZodUndefined:rL,ZodNull:oL,ZodAny:Kw,ZodUnknown:Ib,ZodNever:np,ZodVoid:LM,ZodArray:Fu,ZodObject:mr,ZodUnion:aL,ZodDiscriminatedUnion:WB,ZodIntersection:lL,ZodTuple:yf,ZodRecord:cL,ZodMap:xM,ZodSet:nS,ZodFunction:tw,ZodLazy:dL,ZodLiteral:uL,ZodEnum:r_,ZodNativeEnum:hL,ZodPromise:jw,ZodEffects:ju,ZodTransformer:ju,ZodOptional:af,ZodNullable:o_,ZodDefault:fL,ZodCatch:gL,ZodNaN:RM,BRAND:WKe,ZodBranded:mJ,ZodPipeline:LR,ZodReadonly:pL,custom:eLe,Schema:hn,ZodSchema:hn,late:UKe,get ZodFirstPartyTypeKind(){return Oi},coerce:wje,any:QKe,array:eje,bigint:GKe,boolean:nLe,date:qKe,discriminatedUnion:sje,effect:nle,enum:fje,function:dje,instanceof:$Ke,intersection:rje,lazy:uje,literal:hje,map:lje,nan:zKe,nativeEnum:gje,never:ZKe,null:YKe,nullable:_je,number:iLe,object:tje,oboolean:Cje,onumber:yje,optional:mje,ostring:Sje,pipeline:bje,preprocess:vje,promise:pje,record:aje,set:cje,strictObject:ije,string:tLe,symbol:KKe,transformer:nle,tuple:oje,undefined:jKe,union:nje,unknown:XKe,void:JKe,NEVER:Eje,ZodIssueCode:ht,quotelessJson:_Ke,ZodError:Kc});const _J=qe.object({x:qe.number(),y:qe.number()}),iw=qe.object({instanceId:qe.string(),output:qe.string()}),DM=qe.object({hubId:qe.string()}),Tje=qe.object({args:qe.record(qe.unknown()).optional(),inputs:qe.record(qe.array(iw)).optional(),hubInputs:qe.record(qe.array(DM)).optional(),injectionInputs:qe.array(DM).optional(),position:_J.optional()}),sle=qe.object({id:qe.string(),type:qe.string(),name:qe.string(),...Tje.shape,resolvedInputs:qe.record(qe.array(iw)).optional(),parentId:qe.string().optional(),outputs:qe.record(qe.array(iw)).optional(),resolvedOutputs:qe.record(qe.array(iw)).optional()});qe.object({instance:sle,children:qe.array(sle),inputHash:qe.string().optional()});qe.object({position:_J.optional(),inputs:qe.array(iw).optional(),injectionInputs:qe.array(DM).optional()});qe.object({id:qe.string().nanoid(),position:_J,inputs:qe.array(iw).optional(),injectionInputs:qe.array(DM).optional()});var sLe={done:!1,hasNext:!1};function rle(n,...e){let t=n,i=e.map(r=>"lazy"in r?Ije(r):void 0),s=0;for(;s<e.length;){if(i[s]===void 0||!Lje(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(rLe(l,o,r))break;let{isSingle:a}=r.at(-1);t=a?o[0]:o,s+=r.length}return t}function rLe(n,e,t){if(t.length===0)return e.push(n),!1;let i=n,s=sLe,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(rLe(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 Ije(n){let{lazy:e,lazyArgs:t}=n,i=e(...t);return Object.assign(i,{isSingle:e.single??!1,index:0,items:[]})}function Lje(n){return typeof n=="string"||typeof n=="object"&&n!==null&&Symbol.iterator in n}function xje(n,e){let t=e.length-n.length;if(t===1){let[i,...s]=e;return rle(i,{lazy:n,lazyArgs:s})}if(t===0){let i={lazy:n,lazyArgs:e};return Object.assign(s=>rle(s,i),i)}throw new Error("Wrong number of arguments")}function Rje(n,e,t){let i=s=>n(s,...e);return t===void 0?i:Object.assign(i,{lazy:t,lazyArgs:e})}function vJ(n,e,t){let i=n.length-e.length;if(i===0)return n(...e);if(i===1)return Rje(n,e,t);throw new Error("Wrong number of arguments")}function oLe(...n){return xje(Dje,n)}function Dje(){let n=new Set;return e=>n.has(e)?sLe:(n.add(e),{done:!1,hasNext:!0,next:e})}function ole(...n){return vJ(Nje,n)}function Nje(n,e){let t={};for(let i of e)i in n&&(t[i]=n[i]);return t}function kje(...n){return vJ(Aje,n)}function Aje(n,e){let t={};for(let[i,s]of Object.entries(n)){let r=e(s,i,n);t[i]=r}return t}function Oje(...n){return vJ(Object.fromEntries,n)}const Mje=qe.enum(["not_created","updating","previewing","destroying","refreshing","created","error","pending","unknown"]),Pje=qe.object({name:qe.string(),value:qe.string().optional(),displayName:qe.string().optional(),sensitive:qe.boolean().optional(),url:qe.string().optional(),complementaryTo:qe.string().optional()}),bJ=qe.object({name:qe.string(),contentType:qe.string(),size:qe.number(),isBinary:qe.boolean().optional()});qe.object({meta:bJ,content:qe.string()});const Fje=qe.union([qe.object({type:qe.literal("markdown"),content:qe.string()}),qe.object({type:qe.literal("qr"),content:qe.string(),showContent:qe.coerce.boolean(),language:qe.string().optional()}),qe.object({type:qe.literal("file"),fileMeta:bJ})]),aLe=qe.object({name:qe.string(),title:qe.string()});qe.object({...aLe.shape,content:qe.array(Fje)});const lLe=qe.object({name:qe.string(),title:qe.string(),description:qe.string().optional()}),Bje=qe.object({content:qe.string().optional(),isBinary:qe.boolean().optional(),mode:qe.number().optional()});qe.object({...lLe.shape,image:qe.string(),command:qe.string().array(),cwd:qe.string().optional(),env:qe.record(qe.string()).optional(),files:qe.record(Bje).optional()});const Vje=qe.union([qe.object({type:qe.literal("before-destroy")}),qe.object({type:qe.literal("schedule"),schedule:qe.string()})]),Hje=qe.object({name:qe.string(),title:qe.string(),description:qe.string().optional(),spec:Vje});qe.object({name:qe.string()});const Wje=qe.object({id:qe.string(),parentId:qe.string().nullable().default(null),status:Mje,dependencyIds:qe.array(qe.string()).default(()=>[]),latestOperationId:qe.string().nullable().default(null),currentResourceCount:qe.number().nullable().default(null),totalResourceCount:qe.number().nullable().default(null),inputHash:qe.string().nullable().default(null),outputHash:qe.string().nullable().default(null),error:qe.string().nullable().default(null),evaluationError:qe.string().nullable().default(null),statusFields:qe.array(Pje).default(()=>[]),files:qe.array(bJ).default(()=>[]),pages:qe.array(aLe).default(()=>[]),terminals:qe.array(lLe).default(()=>[]),triggers:qe.array(Hje).default(()=>[])});qe.object({...Wje.shape,secrets:qe.record(qe.string()).nullable(),logLine:qe.string().nullable()}).partial();function cLe(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 Uje(n,e){if(!e.id)throw new Error("The ID of the instance state is required.");let t=n.get(e.id)??cLe(e.id,"unknown");return t={...t,...e},n.set(t.id,t),t}function ale(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 $je(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 dLe=qe.enum(["update","preview","destroy","recreate","refresh"]),zje=qe.enum(["pending","running","completed","failed","cancelled"]),uLe=qe.object({forceUpdateDependencies:qe.boolean().default(!1),destroyDependentInstances:qe.boolean().default(!0),invokeDestroyTriggers:qe.boolean().default(!0),deleteUnreachableResources:qe.boolean().default(!1),refresh:qe.boolean().default(!1)});qe.object({projectId:qe.string(),type:dLe,instanceIds:qe.array(qe.string()),options:uLe.partial().optional()});qe.object({id:qe.string().uuid(),status:zje,projectId:qe.string(),type:dLe,instanceIds:qe.array(qe.string()),affectedInstanceIds:qe.array(qe.string()).default(()=>[]),options:uLe.default(()=>({})),error:qe.string().nullable(),startedAt:qe.number(),completedAt:qe.number().nullable()});function Rz(n){return n==="completed"||n==="failed"||n==="cancelled"}class Gje extends Error{constructor(e){super(`Circular dependency detected: ${e.join(" -> ")}`),this.name="CircularDependencyError"}}function qje(){return{promiseCache:new Map}}function SJ(n){const e=(t,i,s)=>{s??=qje(),i=i.child({resolver:n.name});const r=new Map,o=(a,l)=>{i.trace({itemId:a},"resolving item");const c=s.promiseCache.get(a);if(c)return c;if(l.includes(a))throw new Gje([...l,a]);const d=t.get(a);if(!d)return Promise.resolve(void 0);const h=(async()=>{const f=oLe(n.getNodeDependencies(d));s.setDependencies?.(a,f),i.trace({itemId:a,dependencies:f},"resolving item dependencies");const g=[...l,a];for(const p of f)await o(p,g);return await n.process(d,r,i)})().then(f=>(s.promiseCache.get(a)===h&&(s.setOutput?.(a,f),r.set(a,f)),f));return s.promiseCache.set(a,h),h};return a=>o(a,[])};return e.factoryName=n.name,e}function lle(n,e){return`${n}:${e}`}function yJ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tN={exports:{}},wV={},Yf={},sv={},EV={},TV={},IV={},cle;function NM(){return cle||(cle=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(_){if(super(),!n.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=t;class i extends e{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_: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=[v[0]];let S=0;for(;S<_.length;)a(b,_[S]),b.push(v[++S]);return new i(b)}n._=s;const r=new i("+");function o(v,..._){const b=[f(v[0])];let S=0;for(;S<_.length;)b.push(r),a(b,_[S]),b.push(r,f(v[++S]));return l(b),new i(b)}n.str=o;function a(v,_){_ instanceof i?v.push(..._._items):_ instanceof t?v.push(_):v.push(u(_))}n.addCodeArg=a;function l(v){let _=1;for(;_<v.length-1;){if(v[_]===r){const b=c(v[_-1],v[_+1]);if(b!==void 0){v.splice(_-1,3,b);continue}v[_++]="+"}_++}}function c(v,_){if(_==='""')return v;if(v==='""')return _;if(typeof v=="string")return _ instanceof t||v[v.length-1]!=='"'?void 0:typeof _!="string"?`${v.slice(0,-1)}${_}"`:_[0]==='"'?v.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(v instanceof t))return`"${v}${_.slice(1)}`}function d(v,_){return _.emptyStr()?v:v.emptyStr()?_:o`${v}${_}`}n.strConcat=d;function u(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:f(Array.isArray(v)?v.join(","):v)}function h(v){return new i(f(v))}n.stringify=h;function f(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.safeStringify=f;function g(v){return typeof v=="string"&&n.IDENTIFIER.test(v)?new i(`.${v}`):s`[${v}]`}n.getProperty=g;function p(v){if(typeof v=="string"&&n.IDENTIFIER.test(v))return new i(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}n.getEsmExportName=p;function m(v){return new i(v.toString())}n.regexpCode=m}(IV)),IV}var LV={},dle;function ule(){return dle||(dle=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const e=NM();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 _=p.get(g);if(_)return _}else p=this._values[f]=new Map;p.set(g,h);const m=this._scope[f]||(this._scope[f]=[]),v=m.length;return m[v]=d.ref,h.setValue(d,{property:f,itemIndex:v}),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(v=>{if(m.has(v))return;m.set(v,i.Started);let _=d(v);if(_){const b=this.opts.es5?n.varKinds.var:n.varKinds.const;f=(0,e._)`${f}${b} ${v} = ${_};${this.opts._n}`}else if(_=h?.(v))f=(0,e._)`${f}${_}${this.opts._n}`;else throw new t(v);m.set(v,i.Completed)})}return f}}n.ValueScope=a}(LV)),LV}var hle;function xn(){return hle||(hle=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=NM(),t=ule();var i=NM();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=ule();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(F,U){return this}}class o extends r{constructor(F,U,Z){super(),this.varKind=F,this.name=U,this.rhs=Z}render({es5:F,_n:U}){const Z=F?t.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${Z} ${this.name}${X};`+U}optimizeNames(F,U){if(F[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,F,U)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends r{constructor(F,U,Z){super(),this.lhs=F,this.rhs=U,this.sideEffects=Z}render({_n:F}){return`${this.lhs} = ${this.rhs};`+F}optimizeNames(F,U){if(!(this.lhs instanceof e.Name&&!F[this.lhs.str]&&!this.sideEffects))return this.rhs=x(this.rhs,F,U),this}get names(){const F=this.lhs instanceof e.Name?{}:{...this.lhs.names};return k(F,this.rhs)}}class l extends a{constructor(F,U,Z,X){super(F,Z,X),this.op=U}render({_n:F}){return`${this.lhs} ${this.op}= ${this.rhs};`+F}}class c extends r{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`${this.label}:`+F}}class d extends r{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`break${this.label?` ${this.label}`:""};`+F}}class u extends r{constructor(F){super(),this.error=F}render({_n:F}){return`throw ${this.error};`+F}get names(){return this.error.names}}class h extends r{constructor(F){super(),this.code=F}render({_n:F}){return`${this.code};`+F}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(F,U){return this.code=x(this.code,F,U),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class f extends r{constructor(F=[]){super(),this.nodes=F}render(F){return this.nodes.reduce((U,Z)=>U+Z.render(F),"")}optimizeNodes(){const{nodes:F}=this;let U=F.length;for(;U--;){const Z=F[U].optimizeNodes();Array.isArray(Z)?F.splice(U,1,...Z):Z?F[U]=Z:F.splice(U,1)}return F.length>0?this:void 0}optimizeNames(F,U){const{nodes:Z}=this;let X=Z.length;for(;X--;){const G=Z[X];G.optimizeNames(F,U)||(N(F,G.names),Z.splice(X,1))}return Z.length>0?this:void 0}get names(){return this.nodes.reduce((F,U)=>L(F,U.names),{})}}class g extends f{render(F){return"{"+F._n+super.render(F)+"}"+F._n}}class p extends f{}class m extends g{}m.kind="else";class v extends g{constructor(F,U){super(U),this.condition=F}render(F){let U=`if(${this.condition})`+super.render(F);return this.else&&(U+="else "+this.else.render(F)),U}optimizeNodes(){super.optimizeNodes();const F=this.condition;if(F===!0)return this.nodes;let U=this.else;if(U){const Z=U.optimizeNodes();U=this.else=Array.isArray(Z)?new m(Z):Z}if(U)return F===!1?U instanceof v?U:U.nodes:this.nodes.length?this:new v(A(F),U instanceof v?[U]:U.nodes);if(!(F===!1||!this.nodes.length))return this}optimizeNames(F,U){var Z;if(this.else=(Z=this.else)===null||Z===void 0?void 0:Z.optimizeNames(F,U),!!(super.optimizeNames(F,U)||this.else))return this.condition=x(this.condition,F,U),this}get names(){const F=super.names;return k(F,this.condition),this.else&&L(F,this.else.names),F}}v.kind="if";class _ extends g{}_.kind="for";class b extends _{constructor(F){super(),this.iteration=F}render(F){return`for(${this.iteration})`+super.render(F)}optimizeNames(F,U){if(super.optimizeNames(F,U))return this.iteration=x(this.iteration,F,U),this}get names(){return L(super.names,this.iteration.names)}}class S extends _{constructor(F,U,Z,X){super(),this.varKind=F,this.name=U,this.from=Z,this.to=X}render(F){const U=F.es5?t.varKinds.var:this.varKind,{name:Z,from:X,to:G}=this;return`for(${U} ${Z}=${X}; ${Z}<${G}; ${Z}++)`+super.render(F)}get names(){const F=k(super.names,this.from);return k(F,this.to)}}class y extends _{constructor(F,U,Z,X){super(),this.loop=F,this.varKind=U,this.name=Z,this.iterable=X}render(F){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(F)}optimizeNames(F,U){if(super.optimizeNames(F,U))return this.iterable=x(this.iterable,F,U),this}get names(){return L(super.names,this.iterable.names)}}class C extends g{constructor(F,U,Z){super(),this.name=F,this.args=U,this.async=Z}render(F){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(F)}}C.kind="func";class T extends f{render(F){return"return "+super.render(F)}}T.kind="return";class w extends g{render(F){let U="try"+super.render(F);return this.catch&&(U+=this.catch.render(F)),this.finally&&(U+=this.finally.render(F)),U}optimizeNodes(){var F,U;return super.optimizeNodes(),(F=this.catch)===null||F===void 0||F.optimizeNodes(),(U=this.finally)===null||U===void 0||U.optimizeNodes(),this}optimizeNames(F,U){var Z,X;return super.optimizeNames(F,U),(Z=this.catch)===null||Z===void 0||Z.optimizeNames(F,U),(X=this.finally)===null||X===void 0||X.optimizeNames(F,U),this}get names(){const F=super.names;return this.catch&&L(F,this.catch.names),this.finally&&L(F,this.finally.names),F}}class I extends g{constructor(F){super(),this.error=F}render(F){return`catch(${this.error})`+super.render(F)}}I.kind="catch";class R extends g{render(F){return"finally"+super.render(F)}}R.kind="finally";class D{constructor(F,U={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...U,_n:U.lines?`
169
169
  `:""},this._extScope=F,this._scope=new t.Scope({parent:F}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(F){return this._scope.name(F)}scopeName(F){return this._extScope.name(F)}scopeValue(F,U){const Z=this._extScope.value(F,U);return(this._values[Z.prefix]||(this._values[Z.prefix]=new Set)).add(Z),Z}getScopeValue(F,U){return this._extScope.getValue(F,U)}scopeRefs(F){return this._extScope.scopeRefs(F,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(F,U,Z,X){const G=this._scope.toName(U);return Z!==void 0&&X&&(this._constants[G.str]=Z),this._leafNode(new o(F,G,Z)),G}const(F,U,Z){return this._def(t.varKinds.const,F,U,Z)}let(F,U,Z){return this._def(t.varKinds.let,F,U,Z)}var(F,U,Z){return this._def(t.varKinds.var,F,U,Z)}assign(F,U,Z){return this._leafNode(new a(F,U,Z))}add(F,U){return this._leafNode(new l(F,n.operators.ADD,U))}code(F){return typeof F=="function"?F():F!==e.nil&&this._leafNode(new h(F)),this}object(...F){const U=["{"];for(const[Z,X]of F)U.length>1&&U.push(","),U.push(Z),(Z!==X||this.opts.es5)&&(U.push(":"),(0,e.addCodeArg)(U,X));return U.push("}"),new e._Code(U)}if(F,U,Z){if(this._blockNode(new v(F)),U&&Z)this.code(U).else().code(Z).endIf();else if(U)this.code(U).endIf();else if(Z)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(F){return this._elseNode(new v(F))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(v,m)}_for(F,U){return this._blockNode(F),U&&this.code(U).endFor(),this}for(F,U){return this._for(new b(F),U)}forRange(F,U,Z,X,G=this.opts.es5?t.varKinds.var:t.varKinds.let){const he=this._scope.toName(F);return this._for(new S(G,he,U,Z),()=>X(he))}forOf(F,U,Z,X=t.varKinds.const){const G=this._scope.toName(F);if(this.opts.es5){const he=U instanceof e.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,e._)`${he}.length`,_e=>{this.var(G,(0,e._)`${he}[${_e}]`),Z(G)})}return this._for(new y("of",X,G,U),()=>Z(G))}forIn(F,U,Z,X=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(F,(0,e._)`Object.keys(${U})`,Z);const G=this._scope.toName(F);return this._for(new y("in",X,G,U),()=>Z(G))}endFor(){return this._endBlockNode(_)}label(F){return this._leafNode(new c(F))}break(F){return this._leafNode(new d(F))}return(F){const U=new T;if(this._blockNode(U),this.code(F),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(F,U,Z){if(!U&&!Z)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new w;if(this._blockNode(X),this.code(F),U){const G=this.name("e");this._currNode=X.catch=new I(G),U(G)}return Z&&(this._currNode=X.finally=new R,this.code(Z)),this._endBlockNode(I,R)}throw(F){return this._leafNode(new u(F))}block(F,U){return this._blockStarts.push(this._nodes.length),F&&this.code(F).endBlock(U),this}endBlock(F){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const Z=this._nodes.length-U;if(Z<0||F!==void 0&&Z!==F)throw new Error(`CodeGen: wrong number of nodes: ${Z} vs ${F} expected`);return this._nodes.length=U,this}func(F,U=e.nil,Z,X){return this._blockNode(new C(F,U,Z)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(F=1){for(;F-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(F){return this._currNode.nodes.push(F),this}_blockNode(F){this._currNode.nodes.push(F),this._nodes.push(F)}_endBlockNode(F,U){const Z=this._currNode;if(Z instanceof F||U&&Z instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${U?`${F.kind}/${U.kind}`:F.kind}"`)}_elseNode(F){const U=this._currNode;if(!(U instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=F,this}get _root(){return this._nodes[0]}get _currNode(){const F=this._nodes;return F[F.length-1]}set _currNode(F){const U=this._nodes;U[U.length-1]=F}}n.CodeGen=D;function L(H,F){for(const U in F)H[U]=(H[U]||0)+(F[U]||0);return H}function k(H,F){return F instanceof e._CodeOrName?L(H,F.names):H}function x(H,F,U){if(H instanceof e.Name)return Z(H);if(!X(H))return H;return new e._Code(H._items.reduce((G,he)=>(he instanceof e.Name&&(he=Z(he)),he instanceof e._Code?G.push(...he._items):G.push(he),G),[]));function Z(G){const he=U[G.str];return he===void 0||F[G.str]!==1?G:(delete F[G.str],he)}function X(G){return G instanceof e._Code&&G._items.some(he=>he instanceof e.Name&&F[he.str]===1&&U[he.str]!==void 0)}}function N(H,F){for(const U in F)H[U]=(H[U]||0)-(F[U]||0)}function A(H){return typeof H=="boolean"||typeof H=="number"||H===null?!H:(0,e._)`!${W(H)}`}n.not=A;const B=P(n.operators.AND);function V(...H){return H.reduce(B)}n.and=V;const O=P(n.operators.OR);function M(...H){return H.reduce(O)}n.or=M;function P(H){return(F,U)=>F===e.nil?U:U===e.nil?F:(0,e._)`${W(F)} ${H} ${W(U)}`}function W(H){return H instanceof e.Name?H:(0,e._)`(${H})`}}(TV)),TV}var fn={},fle;function us(){if(fle)return fn;fle=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.checkStrictMode=fn.getErrorPath=fn.Type=fn.useFunc=fn.setEvaluated=fn.evaluatedPropsToName=fn.mergeEvaluated=fn.eachItem=fn.unescapeJsonPointer=fn.escapeJsonPointer=fn.escapeFragment=fn.unescapeFragment=fn.schemaRefOrVal=fn.schemaHasRulesButRef=fn.schemaHasRules=fn.checkUnknownRules=fn.alwaysValidSchema=fn.toHash=void 0;const n=xn(),e=NM();function t(y){const C={};for(const T of y)C[T]=!0;return C}fn.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))}fn.alwaysValidSchema=i;function s(y,C=y.schema){const{opts:T,self:w}=y;if(!T.strictSchema||typeof C=="boolean")return;const I=w.RULES.keywords;for(const R in C)I[R]||S(y,`unknown keyword: "${R}"`)}fn.checkUnknownRules=s;function r(y,C){if(typeof y=="boolean")return!y;for(const T in y)if(C[T])return!0;return!1}fn.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}fn.schemaHasRulesButRef=o;function a({topSchemaRef:y,schemaPath:C},T,w,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)(w)}`}fn.schemaRefOrVal=a;function l(y){return u(decodeURIComponent(y))}fn.unescapeFragment=l;function c(y){return encodeURIComponent(d(y))}fn.escapeFragment=c;function d(y){return typeof y=="number"?`${y}`:y.replace(/~/g,"~0").replace(/\//g,"~1")}fn.escapeJsonPointer=d;function u(y){return y.replace(/~1/g,"/").replace(/~0/g,"~")}fn.unescapeJsonPointer=u;function h(y,C){if(Array.isArray(y))for(const T of y)C(T);else C(y)}fn.eachItem=h;function f({mergeNames:y,mergeToName:C,mergeValues:T,resultToName:w}){return(I,R,D,L)=>{const k=D===void 0?R:D instanceof n.Name?(R instanceof n.Name?y(I,R,D):C(I,R,D),D):R instanceof n.Name?(C(I,D,R),R):T(R,D);return L===n.Name&&!(k instanceof n.Name)?w(I,k):k}}fn.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}fn.evaluatedPropsToName=g;function p(y,C,T){Object.keys(T).forEach(w=>y.assign((0,n._)`${C}${(0,n.getProperty)(w)}`,!0))}fn.setEvaluated=p;const m={};function v(y,C){return y.scopeValue("func",{ref:C,code:m[C.code]||(m[C.code]=new e._Code(C.code))})}fn.useFunc=v;var _;(function(y){y[y.Num=0]="Num",y[y.Str=1]="Str"})(_||(fn.Type=_={}));function b(y,C,T){if(y instanceof n.Name){const w=C===_.Num;return T?w?(0,n._)`"[" + ${y} + "]"`:(0,n._)`"['" + ${y} + "']"`:w?(0,n._)`"/" + ${y}`:(0,n._)`"/" + ${y}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return T?(0,n.getProperty)(y).toString():"/"+d(y)}fn.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 fn.checkStrictMode=S,fn}var iN={},gle;function F_(){if(gle)return iN;gle=1,Object.defineProperty(iN,"__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 iN.default=e,iN}var ple;function UB(){return ple||(ple=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=us(),i=F_();n.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},n.keyword$DataError={message:({keyword:m,schemaType:v})=>v?(0,e.str)`"${m}" keyword must be ${v} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function s(m,v=n.keywordError,_,b){const{it:S}=m,{gen:y,compositeRule:C,allErrors:T}=S,w=u(m,v,_);b??(C||T)?l(y,w):c(S,(0,e._)`[${w}]`)}n.reportError=s;function r(m,v=n.keywordError,_){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,v){m.assign(i.default.errors,v),m.if((0,e._)`${i.default.vErrors} !== null`,()=>m.if(v,()=>m.assign((0,e._)`${i.default.vErrors}.length`,v),()=>m.assign(i.default.vErrors,null)))}n.resetErrorsCount=o;function a({gen:m,keyword:v,schemaValue:_,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}/${v}`),y.opts.verbose&&(m.assign((0,e._)`${C}.schema`,_),m.assign((0,e._)`${C}.data`,b))})}n.extendErrors=a;function l(m,v){const _=m.const("err",v);m.if((0,e._)`${i.default.vErrors} === null`,()=>m.assign(i.default.vErrors,(0,e._)`[${_}]`),(0,e._)`${i.default.vErrors}.push(${_})`),m.code((0,e._)`${i.default.errors}++`)}function c(m,v){const{gen:_,validateName:b,schemaEnv:S}=m;S.$async?_.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,_),g(m,_)];return p(m,v,y),b.object(...y)}function f({errorPath:m},{instancePath:v}){const _=v?(0,e.str)`${m}${(0,t.getErrorPath)(v,t.Type.Str)}`:m;return[i.default.instancePath,(0,e.strConcat)(i.default.instancePath,_)]}function g({keyword:m,it:{errSchemaPath:v}},{schemaPath:_,parentSchema:b}){let S=b?v:(0,e.str)`${v}/${m}`;return _&&(S=(0,e.str)`${S}${(0,t.getErrorPath)(_,t.Type.Str)}`),[d.schemaPath,S]}function p(m,{params:v,message:_},b){const{keyword:S,data:y,schemaValue:C,it:T}=m,{opts:w,propertyName:I,topSchemaRef:R,schemaPath:D}=T;b.push([d.keyword,S],[d.params,typeof v=="function"?v(m):v||(0,e._)`{}`]),w.messages&&b.push([d.message,typeof _=="function"?_(m):_]),w.verbose&&b.push([d.schema,C],[d.parentSchema,(0,e._)`${R}${D}`],[i.default.data,y]),I&&b.push([d.propertyName,I])}}(EV)),EV}var mle;function Kje(){if(mle)return sv;mle=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.boolOrEmptySchema=sv.topBoolOrEmptySchema=void 0;const n=UB(),e=xn(),t=F_(),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))}sv.topBoolOrEmptySchema=s;function r(a,l){const{gen:c,schema:d}=a;d===!1?(c.var(l,!1),o(a)):c.var(l,!0)}sv.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 sv}var ia={},rv={},_le;function hLe(){if(_le)return rv;_le=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.getRules=rv.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)}rv.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 rv.getRules=i,rv}var Qf={},vle;function fLe(){if(vle)return Qf;vle=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.shouldUseRule=Qf.shouldUseGroup=Qf.schemaHasRulesForType=void 0;function n({schema:i,self:s},r){const o=s.RULES.types[r];return o&&o!==!0&&e(i,o)}Qf.schemaHasRulesForType=n;function e(i,s){return s.rules.some(r=>t(i,r))}Qf.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 Qf.shouldUseRule=t,Qf}var ble;function kM(){if(ble)return ia;ble=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.reportTypeError=ia.checkDataTypes=ia.checkDataType=ia.coerceAndCheckDataType=ia.getJSONTypes=ia.getSchemaTypes=ia.DataType=void 0;const n=hLe(),e=fLe(),t=UB(),i=xn(),s=us();var r;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(r||(ia.DataType=r={}));function o(_){const b=a(_.type);if(b.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&b.push("null")}return b}ia.getSchemaTypes=o;function a(_){const b=Array.isArray(_)?_:_?[_]:[];if(b.every(n.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}ia.getJSONTypes=a;function l(_,b){const{gen:S,data:y,opts:C}=_,T=d(b,C.coerceTypes),w=b.length>0&&!(T.length===0&&b.length===1&&(0,e.schemaHasRulesForType)(_,b[0]));if(w){const I=g(b,y,C.strictNumbers,r.Wrong);S.if(I,()=>{T.length?u(_,b,T):m(_)})}return w}ia.coerceAndCheckDataType=l;const c=new Set(["string","number","integer","boolean","null"]);function d(_,b){return b?_.filter(S=>c.has(S)||b==="array"&&S==="array"):[]}function u(_,b,S){const{gen:y,data:C,opts:T}=_,w=y.let("dataType",(0,i._)`typeof ${C}`),I=y.let("coerced",(0,i._)`undefined`);T.coerceTypes==="array"&&y.if((0,i._)`${w} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>y.assign(C,(0,i._)`${C}[0]`).assign(w,(0,i._)`typeof ${C}`).if(g(b,C,T.strictNumbers),()=>y.assign(I,C))),y.if((0,i._)`${I} !== undefined`);for(const D of S)(c.has(D)||D==="array"&&T.coerceTypes==="array")&&R(D);y.else(),m(_),y.endIf(),y.if((0,i._)`${I} !== undefined`,()=>{y.assign(C,I),h(_,I)});function R(D){switch(D){case"string":y.elseIf((0,i._)`${w} == "number" || ${w} == "boolean"`).assign(I,(0,i._)`"" + ${C}`).elseIf((0,i._)`${C} === null`).assign(I,(0,i._)`""`);return;case"number":y.elseIf((0,i._)`${w} == "boolean" || ${C} === null
170
170
  || (${w} == "string" && ${C} && ${C} == +${C})`).assign(I,(0,i._)`+${C}`);return;case"integer":y.elseIf((0,i._)`${w} === "boolean" || ${C} === null
171
171
  || (${w} === "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._)`${w} === "string" || ${w} === "number"
172
172
  || ${w} === "boolean" || ${C} === null`).assign(I,(0,i._)`[${C}]`)}}}function h({gen:_,parentData:b,parentDataProperty:S},y){_.if((0,i._)`${b} !== undefined`,()=>_.assign((0,i._)`${b}[${S}]`,y))}function f(_,b,S,y=r.Correct){const C=y===r.Correct?i.operators.EQ:i.operators.NEQ;let T;switch(_){case"null":return(0,i._)`${b} ${C} null`;case"array":T=(0,i._)`Array.isArray(${b})`;break;case"object":T=(0,i._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":T=w((0,i._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":T=w();break;default:return(0,i._)`typeof ${b} ${C} ${_}`}return y===r.Correct?T:(0,i.not)(T);function w(I=i.nil){return(0,i.and)((0,i._)`typeof ${b} == "number"`,I,S?(0,i._)`isFinite(${b})`:i.nil)}}ia.checkDataType=f;function g(_,b,S,y){if(_.length===1)return f(_[0],b,S,y);let C;const T=(0,s.toHash)(_);if(T.array&&T.object){const w=(0,i._)`typeof ${b} != "object"`;C=T.null?w:(0,i._)`!${b} || ${w}`,delete T.null,delete T.array,delete T.object}else C=i.nil;T.number&&delete T.integer;for(const w in T)C=(0,i.and)(C,f(w,b,S,y));return C}ia.checkDataTypes=g;const p={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:b})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${b}}`};function m(_){const b=v(_);(0,t.reportError)(b,p)}ia.reportTypeError=m;function v(_){const{gen:b,data:S,schema:y}=_,C=(0,s.schemaRefOrVal)(_,y,"type");return{gen:b,keyword:"type",data:S,schema:y.type,schemaCode:C,schemaValue:C,parentSchema:y,params:{},it:_}}return ia}var j0={},Sle;function jje(){if(Sle)return j0;Sle=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.assignDefaults=void 0;const n=xn(),e=us();function t(s,r){const{properties:o,items:a}=s.schema;if(r==="object"&&o)for(const l in o)i(s,l,o[l].default);else r==="array"&&Array.isArray(a)&&a.forEach((l,c)=>i(s,c,l.default))}j0.assignDefaults=t;function i(s,r,o){const{gen:a,compositeRule:l,data:c,opts:d}=s;if(o===void 0)return;const u=(0,n._)`${c}${(0,n.getProperty)(r)}`;if(l){(0,e.checkStrictMode)(s,`default is ignored for: ${u}`);return}let h=(0,n._)`${u} === undefined`;d.useDefaults==="empty"&&(h=(0,n._)`${h} || ${u} === null || ${u} === ""`),a.if(h,(0,n._)`${u} = ${(0,n.stringify)(o)}`)}return j0}var ou={},Is={},yle;function uh(){if(yle)return Is;yle=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.validateUnion=Is.validateArray=Is.usePattern=Is.callValidateCode=Is.schemaProperties=Is.allSchemaProperties=Is.noPropertyInData=Is.propertyInData=Is.isOwnProperty=Is.hasPropFunc=Is.reportMissingProp=Is.checkMissingProp=Is.checkReportMissingProp=void 0;const n=xn(),e=us(),t=F_(),i=us();function s(_,b){const{gen:S,data:y,it:C}=_;S.if(d(S,y,b,C.opts.ownProperties),()=>{_.setParams({missingProperty:(0,n._)`${b}`},!0),_.error()})}Is.checkReportMissingProp=s;function r({gen:_,data:b,it:{opts:S}},y,C){return(0,n.or)(...y.map(T=>(0,n.and)(d(_,b,T,S.ownProperties),(0,n._)`${C} = ${T}`)))}Is.checkMissingProp=r;function o(_,b){_.setParams({missingProperty:b},!0),_.error()}Is.reportMissingProp=o;function a(_){return _.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}Is.hasPropFunc=a;function l(_,b,S){return(0,n._)`${a(_)}.call(${b}, ${S})`}Is.isOwnProperty=l;function c(_,b,S,y){const C=(0,n._)`${b}${(0,n.getProperty)(S)} !== undefined`;return y?(0,n._)`${C} && ${l(_,b,S)}`:C}Is.propertyInData=c;function d(_,b,S,y){const C=(0,n._)`${b}${(0,n.getProperty)(S)} === undefined`;return y?(0,n.or)(C,(0,n.not)(l(_,b,S))):C}Is.noPropertyInData=d;function u(_){return _?Object.keys(_).filter(b=>b!=="__proto__"):[]}Is.allSchemaProperties=u;function h(_,b){return u(b).filter(S=>!(0,e.alwaysValidSchema)(_,b[S]))}Is.schemaProperties=h;function f({schemaCode:_,data:b,it:{gen:S,topSchemaRef:y,schemaPath:C,errorPath:T},it:w},I,R,D){const L=D?(0,n._)`${_}, ${b}, ${y}${C}`:b,k=[[t.default.instancePath,(0,n.strConcat)(t.default.instancePath,T)],[t.default.parentData,w.parentData],[t.default.parentDataProperty,w.parentDataProperty],[t.default.rootData,t.default.rootData]];w.opts.dynamicRef&&k.push([t.default.dynamicAnchors,t.default.dynamicAnchors]);const x=(0,n._)`${L}, ${S.object(...k)}`;return R!==n.nil?(0,n._)`${I}.call(${R}, ${x})`:(0,n._)`${I}(${x})`}Is.callValidateCode=f;const g=(0,n._)`new RegExp`;function p({gen:_,it:{opts:b}},S){const y=b.unicodeRegExp?"u":"",{regExp:C}=b.code,T=C(S,y);return _.scopeValue("pattern",{key:T.toString(),ref:T,code:(0,n._)`${C.code==="new RegExp"?g:(0,i.useFunc)(_,C)}(${S}, ${y})`})}Is.usePattern=p;function m(_){const{gen:b,data:S,keyword:y,it:C}=_,T=b.name("valid");if(C.allErrors){const I=b.let("valid",!0);return w(()=>b.assign(I,!1)),I}return b.var(T,!0),w(()=>b.break()),T;function w(I){const R=b.const("len",(0,n._)`${S}.length`);b.forRange("i",0,R,D=>{_.subschema({keyword:y,dataProp:D,dataPropType:e.Type.Num},T),b.if((0,n.not)(T),I)})}}Is.validateArray=m;function v(_){const{gen:b,schema:S,keyword:y,it:C}=_;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(R=>(0,e.alwaysValidSchema)(C,R))&&!C.opts.unevaluated)return;const w=b.let("valid",!1),I=b.name("_valid");b.block(()=>S.forEach((R,D)=>{const L=_.subschema({keyword:y,schemaProp:D,compositeRule:!0},I);b.assign(w,(0,n._)`${w} || ${I}`),_.mergeValidEvaluated(L,I)||b.if((0,n.not)(w))})),_.result(w,()=>_.reset(),()=>_.error(!0))}return Is.validateUnion=v,Is}var Cle;function Yje(){if(Cle)return ou;Cle=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.validateKeywordUsage=ou.validSchemaType=ou.funcKeywordCode=ou.macroKeywordCode=void 0;const n=xn(),e=F_(),t=uh(),i=UB();function s(h,f){const{gen:g,keyword:p,schema:m,parentSchema:v,it:_}=h,b=f.macro.call(_.self,m,v,_),S=c(g,p,b);_.opts.validateSchema!==!1&&_.self.validateSchema(b,!0);const y=g.name("valid");h.subschema({schema:b,schemaPath:n.nil,errSchemaPath:`${_.errSchemaPath}/${p}`,topSchemaRef:S,compositeRule:!0},y),h.pass(y,()=>h.error(!0))}ou.macroKeywordCode=s;function r(h,f){var g;const{gen:p,keyword:m,schema:v,parentSchema:_,$data:b,it:S}=h;l(S,f);const y=!b&&f.compile?f.compile.call(S.self,v,_,S):f.validate,C=c(p,m,y),T=p.let("valid");h.block$data(T,w),h.ok((g=f.valid)!==null&&g!==void 0?g:T);function w(){if(f.errors===!1)D(),f.modifying&&o(h),L(()=>h.error());else{const k=f.async?I():R();f.modifying&&o(h),L(()=>a(h,k))}}function I(){const k=p.let("ruleErrs",null);return p.try(()=>D((0,n._)`await `),x=>p.assign(T,!1).if((0,n._)`${x} instanceof ${S.ValidationError}`,()=>p.assign(k,(0,n._)`${x}.errors`),()=>p.throw(x))),k}function R(){const k=(0,n._)`${C}.errors`;return p.assign(k,null),D(n.nil),k}function D(k=f.async?(0,n._)`await `:n.nil){const x=S.opts.passContext?e.default.this:e.default.self,N=!("compile"in f&&!b||f.schema===!1);p.assign(T,(0,n._)`${k}${(0,t.callValidateCode)(h,C,x,N)}`,f.modifying)}function L(k){var x;p.if((0,n.not)((x=f.valid)!==null&&x!==void 0?x:T),k)}}ou.funcKeywordCode=r;function o(h){const{gen:f,data:g,it:p}=h;f.if(p.parentData,()=>f.assign(g,(0,n._)`${p.parentData}[${p.parentDataProperty}]`))}function a(h,f){const{gen:g}=h;g.if((0,n._)`Array.isArray(${f})`,()=>{g.assign(e.default.vErrors,(0,n._)`${e.default.vErrors} === null ? ${f} : ${e.default.vErrors}.concat(${f})`).assign(e.default.errors,(0,n._)`${e.default.vErrors}.length`),(0,i.extendErrors)(h)},()=>h.error())}function l({schemaEnv:h},f){if(f.async&&!h.$async)throw new Error("async keyword in sync schema")}function c(h,f,g){if(g===void 0)throw new Error(`keyword "${f}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,n.stringify)(g)})}function d(h,f,g=!1){return!f.length||f.some(p=>p==="array"?Array.isArray(h):p==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==p||g&&typeof h>"u")}ou.validSchemaType=d;function u({schema:h,opts:f,self:g,errSchemaPath:p},m,v){if(Array.isArray(m.keyword)?!m.keyword.includes(v):m.keyword!==v)throw new Error("ajv implementation error");const _=m.dependencies;if(_?.some(b=>!Object.prototype.hasOwnProperty.call(h,b)))throw new Error(`parent schema must have dependencies of ${v}: ${_.join(",")}`);if(m.validateSchema&&!m.validateSchema(h[v])){const S=`keyword "${v}" value is invalid at path "${p}": `+g.errorsText(m.validateSchema.errors);if(f.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return ou.validateKeywordUsage=u,ou}var Xf={},wle;function Qje(){if(wle)return Xf;wle=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.extendSubschemaMode=Xf.extendSubschemaData=Xf.getSubschema=void 0;const n=xn(),e=us();function t(r,{keyword:o,schemaProp:a,schema:l,schemaPath:c,errSchemaPath:d,topSchemaRef:u}){if(o!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const h=r.schema[o];return a===void 0?{schema:h,schemaPath:(0,n._)`${r.schemaPath}${(0,n.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${o}`}:{schema:h[a],schemaPath:(0,n._)`${r.schemaPath}${(0,n.getProperty)(o)}${(0,n.getProperty)(a)}`,errSchemaPath:`${r.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(l!==void 0){if(c===void 0||d===void 0||u===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:c,topSchemaRef:u,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Xf.getSubschema=t;function i(r,o,{dataProp:a,dataPropType:l,data:c,dataTypes:d,propertyName:u}){if(c!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=o;if(a!==void 0){const{errorPath:g,dataPathArr:p,opts:m}=o,v=h.let("data",(0,n._)`${o.data}${(0,n.getProperty)(a)}`,!0);f(v),r.errorPath=(0,n.str)`${g}${(0,e.getErrorPath)(a,l,m.jsPropertySyntax)}`,r.parentDataProperty=(0,n._)`${a}`,r.dataPathArr=[...p,r.parentDataProperty]}if(c!==void 0){const g=c instanceof n.Name?c:h.let("data",c,!0);f(g),u!==void 0&&(r.propertyName=u)}d&&(r.dataTypes=d);function f(g){r.data=g,r.dataLevel=o.dataLevel+1,r.dataTypes=[],o.definedProperties=new Set,r.parentData=o.data,r.dataNames=[...o.dataNames,g]}}Xf.extendSubschemaData=i;function s(r,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:l,createErrors:c,allErrors:d}){l!==void 0&&(r.compositeRule=l),c!==void 0&&(r.createErrors=c),d!==void 0&&(r.allErrors=d),r.jtdDiscriminator=o,r.jtdMetadata=a}return Xf.extendSubschemaMode=s,Xf}var sl={},xV,Ele;function gLe(){return Ele||(Ele=1,xV=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,s,r;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(s=i;s--!==0;)if(!n(e[s],t[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(r=Object.keys(e),i=r.length,i!==Object.keys(t).length)return!1;for(s=i;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[s]))return!1;for(s=i;s--!==0;){var o=r[s];if(!n(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}),xV}var RV={exports:{}},Tle;function Xje(){if(Tle)return RV.exports;Tle=1;var n=RV.exports=function(i,s,r){typeof s=="function"&&(r=s,s={}),r=s.cb||r;var o=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};e(s,o,a,i,"",i)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(i,s,r,o,a,l,c,d,u,h){if(o&&typeof o=="object"&&!Array.isArray(o)){s(o,a,l,c,d,u,h);for(var f in o){var g=o[f];if(Array.isArray(g)){if(f in n.arrayKeywords)for(var p=0;p<g.length;p++)e(i,s,r,g[p],a+"/"+f+"/"+p,l,a,f,o,p)}else if(f in n.propsKeywords){if(g&&typeof g=="object")for(var m in g)e(i,s,r,g[m],a+"/"+f+"/"+t(m),l,a,f,o,m)}else(f in n.keywords||i.allKeys&&!(f in n.skipKeywords))&&e(i,s,r,g,a+"/"+f,l,a,f,o)}r(o,a,l,c,d,u,h)}}function t(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return RV.exports}var Ile;function $B(){if(Ile)return sl;Ile=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.getSchemaRefs=sl.resolveUrl=sl.normalizeId=sl._getFullPath=sl.getFullPath=sl.inlineRef=void 0;const n=us(),e=gLe(),t=Xje(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(p,m=!0){return typeof p=="boolean"?!0:m===!0?!o(p):m?a(p)<=m:!1}sl.inlineRef=s;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(p){for(const m in p){if(r.has(m))return!0;const v=p[m];if(Array.isArray(v)&&v.some(o)||typeof v=="object"&&o(v))return!0}return!1}function a(p){let m=0;for(const v in p){if(v==="$ref")return 1/0;if(m++,!i.has(v)&&(typeof p[v]=="object"&&(0,n.eachItem)(p[v],_=>m+=a(_)),m===1/0))return 1/0}return m}function l(p,m="",v){v!==!1&&(m=u(m));const _=p.parse(m);return c(p,_)}sl.getFullPath=l;function c(p,m){return p.serialize(m).split("#")[0]+"#"}sl._getFullPath=c;const d=/#\/?$/;function u(p){return p?p.replace(d,""):""}sl.normalizeId=u;function h(p,m,v){return v=u(v),p.resolve(m,v)}sl.resolveUrl=h;const f=/^[a-z_][-a-z0-9._]*$/i;function g(p,m){if(typeof p=="boolean")return{};const{schemaId:v,uriResolver:_}=this.opts,b=u(p[v]||m),S={"":b},y=l(_,b,!1),C={},T=new Set;return t(p,{allKeys:!0},(R,D,L,k)=>{if(k===void 0)return;const x=y+D;let N=S[k];typeof R[v]=="string"&&(N=A.call(this,R[v])),B.call(this,R.$anchor),B.call(this,R.$dynamicAnchor),S[D]=N;function A(V){const O=this.opts.uriResolver.resolve;if(V=u(N?O(N,V):V),T.has(V))throw I(V);T.add(V);let M=this.refs[V];return typeof M=="string"&&(M=this.refs[M]),typeof M=="object"?w(R,M.schema,V):V!==u(x)&&(V[0]==="#"?(w(R,C[V],V),C[V]=R):this.refs[V]=x),V}function B(V){if(typeof V=="string"){if(!f.test(V))throw new Error(`invalid anchor "${V}"`);A.call(this,`#${V}`)}}}),C;function w(R,D,L){if(D!==void 0&&!e(R,D))throw I(L)}function I(R){return new Error(`reference "${R}" resolves to more than one schema`)}}return sl.getSchemaRefs=g,sl}var Lle;function zB(){if(Lle)return Yf;Lle=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.getData=Yf.KeywordCxt=Yf.validateFunctionCode=void 0;const n=Kje(),e=kM(),t=fLe(),i=kM(),s=jje(),r=Yje(),o=Qje(),a=xn(),l=F_(),c=$B(),d=us(),u=UB();function h(ee){if(y(ee)&&(T(ee),S(ee))){m(ee);return}f(ee,()=>(0,n.topBoolOrEmptySchema)(ee))}Yf.validateFunctionCode=h;function f({gen:ee,validateName:Q,schema:Y,schemaEnv:z,opts:j},ie){j.code.es5?ee.func(Q,(0,a._)`${l.default.data}, ${l.default.valCxt}`,z.$async,()=>{ee.code((0,a._)`"use strict"; ${_(Y,j)}`),p(ee,j),ee.code(ie)}):ee.func(Q,(0,a._)`${l.default.data}, ${g(j)}`,z.$async,()=>ee.code(_(Y,j)).code(ie))}function g(ee){return(0,a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${ee.dynamicRef?(0,a._)`, ${l.default.dynamicAnchors}={}`:a.nil}}={}`}function p(ee,Q){ee.if(l.default.valCxt,()=>{ee.var(l.default.instancePath,(0,a._)`${l.default.valCxt}.${l.default.instancePath}`),ee.var(l.default.parentData,(0,a._)`${l.default.valCxt}.${l.default.parentData}`),ee.var(l.default.parentDataProperty,(0,a._)`${l.default.valCxt}.${l.default.parentDataProperty}`),ee.var(l.default.rootData,(0,a._)`${l.default.valCxt}.${l.default.rootData}`),Q.dynamicRef&&ee.var(l.default.dynamicAnchors,(0,a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{ee.var(l.default.instancePath,(0,a._)`""`),ee.var(l.default.parentData,(0,a._)`undefined`),ee.var(l.default.parentDataProperty,(0,a._)`undefined`),ee.var(l.default.rootData,l.default.data),Q.dynamicRef&&ee.var(l.default.dynamicAnchors,(0,a._)`{}`)})}function m(ee){const{schema:Q,opts:Y,gen:z}=ee;f(ee,()=>{Y.$comment&&Q.$comment&&k(ee),R(ee),z.let(l.default.vErrors,null),z.let(l.default.errors,0),Y.unevaluated&&v(ee),w(ee),x(ee)})}function v(ee){const{gen:Q,validateName:Y}=ee;ee.evaluated=Q.const("evaluated",(0,a._)`${Y}.evaluated`),Q.if((0,a._)`${ee.evaluated}.dynamicProps`,()=>Q.assign((0,a._)`${ee.evaluated}.props`,(0,a._)`undefined`)),Q.if((0,a._)`${ee.evaluated}.dynamicItems`,()=>Q.assign((0,a._)`${ee.evaluated}.items`,(0,a._)`undefined`))}function _(ee,Q){const Y=typeof ee=="object"&&ee[Q.schemaId];return Y&&(Q.code.source||Q.code.process)?(0,a._)`/*# sourceURL=${Y} */`:a.nil}function b(ee,Q){if(y(ee)&&(T(ee),S(ee))){C(ee,Q);return}(0,n.boolOrEmptySchema)(ee,Q)}function S({schema:ee,self:Q}){if(typeof ee=="boolean")return!ee;for(const Y in ee)if(Q.RULES.all[Y])return!0;return!1}function y(ee){return typeof ee.schema!="boolean"}function C(ee,Q){const{schema:Y,gen:z,opts:j}=ee;j.$comment&&Y.$comment&&k(ee),D(ee),L(ee);const ie=z.const("_errs",l.default.errors);w(ee,ie),z.var(Q,(0,a._)`${ie} === ${l.default.errors}`)}function T(ee){(0,d.checkUnknownRules)(ee),I(ee)}function w(ee,Q){if(ee.opts.jtd)return A(ee,[],!1,Q);const Y=(0,e.getSchemaTypes)(ee.schema),z=(0,e.coerceAndCheckDataType)(ee,Y);A(ee,Y,!z,Q)}function I(ee){const{schema:Q,errSchemaPath:Y,opts:z,self:j}=ee;Q.$ref&&z.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(Q,j.RULES)&&j.logger.warn(`$ref: keywords ignored in schema at path "${Y}"`)}function R(ee){const{schema:Q,opts:Y}=ee;Q.default!==void 0&&Y.useDefaults&&Y.strictSchema&&(0,d.checkStrictMode)(ee,"default is ignored in the schema root")}function D(ee){const Q=ee.schema[ee.opts.schemaId];Q&&(ee.baseId=(0,c.resolveUrl)(ee.opts.uriResolver,ee.baseId,Q))}function L(ee){if(ee.schema.$async&&!ee.schemaEnv.$async)throw new Error("async schema in sync schema")}function k({gen:ee,schemaEnv:Q,schema:Y,errSchemaPath:z,opts:j}){const ie=Y.$comment;if(j.$comment===!0)ee.code((0,a._)`${l.default.self}.logger.log(${ie})`);else if(typeof j.$comment=="function"){const J=(0,a.str)`${z}/$comment`,ve=ee.scopeValue("root",{ref:Q.root});ee.code((0,a._)`${l.default.self}.opts.$comment(${ie}, ${J}, ${ve}.schema)`)}}function x(ee){const{gen:Q,schemaEnv:Y,validateName:z,ValidationError:j,opts:ie}=ee;Y.$async?Q.if((0,a._)`${l.default.errors} === 0`,()=>Q.return(l.default.data),()=>Q.throw((0,a._)`new ${j}(${l.default.vErrors})`)):(Q.assign((0,a._)`${z}.errors`,l.default.vErrors),ie.unevaluated&&N(ee),Q.return((0,a._)`${l.default.errors} === 0`))}function N({gen:ee,evaluated:Q,props:Y,items:z}){Y instanceof a.Name&&ee.assign((0,a._)`${Q}.props`,Y),z instanceof a.Name&&ee.assign((0,a._)`${Q}.items`,z)}function A(ee,Q,Y,z){const{gen:j,schema:ie,data:J,allErrors:ve,opts:Ne,self:Te}=ee,{RULES:Ce}=Te;if(ie.$ref&&(Ne.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ie,Ce))){j.block(()=>X(ee,"$ref",Ce.all.$ref.definition));return}Ne.jtd||V(ee,Q),j.block(()=>{for(const Ae of Ce.rules)ye(Ae);ye(Ce.post)});function ye(Ae){(0,t.shouldUseGroup)(ie,Ae)&&(Ae.type?(j.if((0,i.checkDataType)(Ae.type,J,Ne.strictNumbers)),B(ee,Ae),Q.length===1&&Q[0]===Ae.type&&Y&&(j.else(),(0,i.reportTypeError)(ee)),j.endIf()):B(ee,Ae),ve||j.if((0,a._)`${l.default.errors} === ${z||0}`))}}function B(ee,Q){const{gen:Y,schema:z,opts:{useDefaults:j}}=ee;j&&(0,s.assignDefaults)(ee,Q.type),Y.block(()=>{for(const ie of Q.rules)(0,t.shouldUseRule)(z,ie)&&X(ee,ie.keyword,ie.definition,Q.type)})}function V(ee,Q){ee.schemaEnv.meta||!ee.opts.strictTypes||(O(ee,Q),ee.opts.allowUnionTypes||M(ee,Q),P(ee,ee.dataTypes))}function O(ee,Q){if(Q.length){if(!ee.dataTypes.length){ee.dataTypes=Q;return}Q.forEach(Y=>{H(ee.dataTypes,Y)||U(ee,`type "${Y}" not allowed by context "${ee.dataTypes.join(",")}"`)}),F(ee,Q)}}function M(ee,Q){Q.length>1&&!(Q.length===2&&Q.includes("null"))&&U(ee,"use allowUnionTypes to allow union type keyword")}function P(ee,Q){const Y=ee.self.RULES.all;for(const z in Y){const j=Y[z];if(typeof j=="object"&&(0,t.shouldUseRule)(ee.schema,j)){const{type:ie}=j.definition;ie.length&&!ie.some(J=>W(Q,J))&&U(ee,`missing type "${ie.join(",")}" for keyword "${z}"`)}}}function W(ee,Q){return ee.includes(Q)||Q==="number"&&ee.includes("integer")}function H(ee,Q){return ee.includes(Q)||Q==="integer"&&ee.includes("number")}function F(ee,Q){const Y=[];for(const z of ee.dataTypes)H(Q,z)?Y.push(z):Q.includes("integer")&&z==="number"&&Y.push("integer");ee.dataTypes=Y}function U(ee,Q){const Y=ee.schemaEnv.baseId+ee.errSchemaPath;Q+=` at "${Y}" (strictTypes)`,(0,d.checkStrictMode)(ee,Q,ee.opts.strictTypes)}class Z{constructor(Q,Y,z){if((0,r.validateKeywordUsage)(Q,Y,z),this.gen=Q.gen,this.allErrors=Q.allErrors,this.keyword=z,this.data=Q.data,this.schema=Q.schema[z],this.$data=Y.$data&&Q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(Q,this.schema,z,this.$data),this.schemaType=Y.schemaType,this.parentSchema=Q.schema,this.params={},this.it=Q,this.def=Y,this.$data)this.schemaCode=Q.gen.const("vSchema",_e(this.$data,Q));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,Y.schemaType,Y.allowUndefined))throw new Error(`${z} value must be ${JSON.stringify(Y.schemaType)}`);("code"in Y?Y.trackErrors:Y.errors!==!1)&&(this.errsCount=Q.gen.const("_errs",l.default.errors))}result(Q,Y,z){this.failResult((0,a.not)(Q),Y,z)}failResult(Q,Y,z){this.gen.if(Q),z?z():this.error(),Y?(this.gen.else(),Y(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(Q,Y){this.failResult((0,a.not)(Q),void 0,Y)}fail(Q){if(Q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(Q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(Q){if(!this.$data)return this.fail(Q);const{schemaCode:Y}=this;this.fail((0,a._)`${Y} !== undefined && (${(0,a.or)(this.invalid$data(),Q)})`)}error(Q,Y,z){if(Y){this.setParams(Y),this._error(Q,z),this.setParams({});return}this._error(Q,z)}_error(Q,Y){(Q?u.reportExtraError:u.reportError)(this,this.def.error,Y)}$dataError(){(0,u.reportError)(this,this.def.$dataError||u.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,u.resetErrorsCount)(this.gen,this.errsCount)}ok(Q){this.allErrors||this.gen.if(Q)}setParams(Q,Y){Y?Object.assign(this.params,Q):this.params=Q}block$data(Q,Y,z=a.nil){this.gen.block(()=>{this.check$data(Q,z),Y()})}check$data(Q=a.nil,Y=a.nil){if(!this.$data)return;const{gen:z,schemaCode:j,schemaType:ie,def:J}=this;z.if((0,a.or)((0,a._)`${j} === undefined`,Y)),Q!==a.nil&&z.assign(Q,!0),(ie.length||J.validateSchema)&&(z.elseIf(this.invalid$data()),this.$dataError(),Q!==a.nil&&z.assign(Q,!1)),z.else()}invalid$data(){const{gen:Q,schemaCode:Y,schemaType:z,def:j,it:ie}=this;return(0,a.or)(J(),ve());function J(){if(z.length){if(!(Y instanceof a.Name))throw new Error("ajv implementation error");const Ne=Array.isArray(z)?z:[z];return(0,a._)`${(0,i.checkDataTypes)(Ne,Y,ie.opts.strictNumbers,i.DataType.Wrong)}`}return a.nil}function ve(){if(j.validateSchema){const Ne=Q.scopeValue("validate$data",{ref:j.validateSchema});return(0,a._)`!${Ne}(${Y})`}return a.nil}}subschema(Q,Y){const z=(0,o.getSubschema)(this.it,Q);(0,o.extendSubschemaData)(z,this.it,Q),(0,o.extendSubschemaMode)(z,Q);const j={...this.it,...z,items:void 0,props:void 0};return b(j,Y),j}mergeEvaluated(Q,Y){const{it:z,gen:j}=this;z.opts.unevaluated&&(z.props!==!0&&Q.props!==void 0&&(z.props=d.mergeEvaluated.props(j,Q.props,z.props,Y)),z.items!==!0&&Q.items!==void 0&&(z.items=d.mergeEvaluated.items(j,Q.items,z.items,Y)))}mergeValidEvaluated(Q,Y){const{it:z,gen:j}=this;if(z.opts.unevaluated&&(z.props!==!0||z.items!==!0))return j.if(Y,()=>this.mergeEvaluated(Q,a.Name)),!0}}Yf.KeywordCxt=Z;function X(ee,Q,Y,z){const j=new Z(ee,Y,Q);"code"in Y?Y.code(j,z):j.$data&&Y.validate?(0,r.funcKeywordCode)(j,Y):"macro"in Y?(0,r.macroKeywordCode)(j,Y):(Y.compile||Y.validate)&&(0,r.funcKeywordCode)(j,Y)}const G=/^\/(?:[^~]|~0|~1)*$/,he=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _e(ee,{dataLevel:Q,dataNames:Y,dataPathArr:z}){let j,ie;if(ee==="")return l.default.rootData;if(ee[0]==="/"){if(!G.test(ee))throw new Error(`Invalid JSON-pointer: ${ee}`);j=ee,ie=l.default.rootData}else{const Te=he.exec(ee);if(!Te)throw new Error(`Invalid JSON-pointer: ${ee}`);const Ce=+Te[1];if(j=Te[2],j==="#"){if(Ce>=Q)throw new Error(Ne("property/index",Ce));return z[Q-Ce]}if(Ce>Q)throw new Error(Ne("data",Ce));if(ie=Y[Q-Ce],!j)return ie}let J=ie;const ve=j.split("/");for(const Te of ve)Te&&(ie=(0,a._)`${ie}${(0,a.getProperty)((0,d.unescapeJsonPointer)(Te))}`,J=(0,a._)`${J} && ${ie}`);return J;function Ne(Te,Ce){return`Cannot access ${Te} ${Ce} levels up, current level is ${Q}`}}return Yf.getData=_e,Yf}var nN={},xle;function CJ(){if(xle)return nN;xle=1,Object.defineProperty(nN,"__esModule",{value:!0});class n extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}return nN.default=n,nN}var sN={},Rle;function GB(){if(Rle)return sN;Rle=1,Object.defineProperty(sN,"__esModule",{value:!0});const n=$B();class e extends Error{constructor(i,s,r,o){super(o||`can't resolve reference ${r} from id ${s}`),this.missingRef=(0,n.resolveUrl)(i,s,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(i,this.missingRef))}}return sN.default=e,sN}var Nc={},Dle;function wJ(){if(Dle)return Nc;Dle=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.resolveSchema=Nc.getCompilingSchema=Nc.resolveRef=Nc.compileSchema=Nc.SchemaEnv=void 0;const n=xn(),e=CJ(),t=F_(),i=$B(),s=us(),r=zB();class o{constructor(v){var _;this.refs={},this.dynamicAnchors={};let b;typeof v.schema=="object"&&(b=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(_=v.baseId)!==null&&_!==void 0?_:(0,i.normalizeId)(b?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=b?.$async,this.refs={}}}Nc.SchemaEnv=o;function a(m){const v=d.call(this,m);if(v)return v;const _=(0,i.getFullPath)(this.opts.uriResolver,m.root.baseId),{es5:b,lines:S}=this.opts.code,{ownProperties:y}=this.opts,C=new n.CodeGen(this.scope,{es5:b,lines:S,ownProperties:y});let T;m.$async&&(T=C.scopeValue("Error",{ref:e.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));const w=C.scopeName("validate");m.validateName=w;const I={gen:C,allErrors:this.opts.allErrors,data:t.default.data,parentData:t.default.parentData,parentDataProperty:t.default.parentDataProperty,dataNames:[t.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:C.scopeValue("schema",this.opts.code.source===!0?{ref:m.schema,code:(0,n.stringify)(m.schema)}:{ref:m.schema}),validateName:w,ValidationError:T,schema:m.schema,schemaEnv:m,rootId:_,baseId:m.baseId||_,schemaPath:n.nil,errSchemaPath:m.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let R;try{this._compilations.add(m),(0,r.validateFunctionCode)(I),C.optimize(this.opts.code.optimize);const D=C.toString();R=`${C.scopeRefs(t.default.scope)}return ${D}`,this.opts.code.process&&(R=this.opts.code.process(R,m));const k=new Function(`${t.default.self}`,`${t.default.scope}`,R)(this,this.scope.get());if(this.scope.value(w,{ref:k}),k.errors=null,k.schema=m.schema,k.schemaEnv=m,m.$async&&(k.$async=!0),this.opts.code.source===!0&&(k.source={validateName:w,validateCode:D,scopeValues:C._values}),this.opts.unevaluated){const{props:x,items:N}=I;k.evaluated={props:x instanceof n.Name?void 0:x,items:N instanceof n.Name?void 0:N,dynamicProps:x instanceof n.Name,dynamicItems:N instanceof n.Name},k.source&&(k.source.evaluated=(0,n.stringify)(k.evaluated))}return m.validate=k,m}catch(D){throw delete m.validate,delete m.validateName,R&&this.logger.error("Error compiling schema, function code:",R),D}finally{this._compilations.delete(m)}}Nc.compileSchema=a;function l(m,v,_){var b;_=(0,i.resolveUrl)(this.opts.uriResolver,v,_);const S=m.refs[_];if(S)return S;let y=h.call(this,m,_);if(y===void 0){const C=(b=m.localRefs)===null||b===void 0?void 0:b[_],{schemaId:T}=this.opts;C&&(y=new o({schema:C,schemaId:T,root:m,baseId:v}))}if(y!==void 0)return m.refs[_]=c.call(this,y)}Nc.resolveRef=l;function c(m){return(0,i.inlineRef)(m.schema,this.opts.inlineRefs)?m.schema:m.validate?m:a.call(this,m)}function d(m){for(const v of this._compilations)if(u(v,m))return v}Nc.getCompilingSchema=d;function u(m,v){return m.schema===v.schema&&m.root===v.root&&m.baseId===v.baseId}function h(m,v){let _;for(;typeof(_=this.refs[v])=="string";)v=_;return _||this.schemas[v]||f.call(this,m,v)}function f(m,v){const _=this.opts.uriResolver.parse(v),b=(0,i._getFullPath)(this.opts.uriResolver,_);let S=(0,i.getFullPath)(this.opts.uriResolver,m.baseId,void 0);if(Object.keys(m.schema).length>0&&b===S)return p.call(this,_,m);const y=(0,i.normalizeId)(b),C=this.refs[y]||this.schemas[y];if(typeof C=="string"){const T=f.call(this,m,C);return typeof T?.schema!="object"?void 0:p.call(this,_,T)}if(typeof C?.schema=="object"){if(C.validate||a.call(this,C),y===(0,i.normalizeId)(v)){const{schema:T}=C,{schemaId:w}=this.opts,I=T[w];return I&&(S=(0,i.resolveUrl)(this.opts.uriResolver,S,I)),new o({schema:T,schemaId:w,root:m,baseId:S})}return p.call(this,_,C)}}Nc.resolveSchema=f;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function p(m,{baseId:v,schema:_,root:b}){var S;if(((S=m.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const T of m.fragment.slice(1).split("/")){if(typeof _=="boolean")return;const w=_[(0,s.unescapeFragment)(T)];if(w===void 0)return;_=w;const I=typeof _=="object"&&_[this.opts.schemaId];!g.has(T)&&I&&(v=(0,i.resolveUrl)(this.opts.uriResolver,v,I))}let y;if(typeof _!="boolean"&&_.$ref&&!(0,s.schemaHasRulesButRef)(_,this.RULES)){const T=(0,i.resolveUrl)(this.opts.uriResolver,v,_.$ref);y=f.call(this,b,T)}const{schemaId:C}=this.opts;if(y=y||new o({schema:_,schemaId:C,root:b,baseId:v}),y.schema!==y.root.schema)return y}return Nc}const Zje="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Jje="Meta-schema for $data reference (JSON AnySchema extension proposal)",eYe="object",tYe=["$data"],iYe={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},nYe=!1,sYe={$id:Zje,description:Jje,type:eYe,required:tYe,properties:iYe,additionalProperties:nYe};var rN={},Y0={exports:{}},DV,Nle;function rYe(){return Nle||(Nle=1,DV={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),DV}var NV,kle;function oYe(){if(kle)return NV;kle=1;const{HEX:n}=rYe(),e=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function t(p){if(a(p,".")<3)return{host:p,isIPV4:!1};const m=p.match(e)||[],[v]=m;return v?{host:o(v,"."),isIPV4:!0}:{host:p,isIPV4:!1}}function i(p,m=!1){let v="",_=!0;for(const b of p){if(n[b]===void 0)return;b!=="0"&&_===!0&&(_=!1),_||(v+=b)}return m&&v.length===0&&(v="0"),v}function s(p){let m=0;const v={error:!1,address:"",zone:""},_=[],b=[];let S=!1,y=!1,C=!1;function T(){if(b.length){if(S===!1){const w=i(b);if(w!==void 0)_.push(w);else return v.error=!0,!1}b.length=0}return!0}for(let w=0;w<p.length;w++){const I=p[w];if(!(I==="["||I==="]"))if(I===":"){if(y===!0&&(C=!0),!T())break;if(m++,_.push(":"),m>7){v.error=!0;break}w-1>=0&&p[w-1]===":"&&(y=!0);continue}else if(I==="%"){if(!T())break;S=!0}else{b.push(I);continue}}return b.length&&(S?v.zone=b.join(""):C?_.push(b.join("")):_.push(i(b))),v.address=_.join(""),v}function r(p){if(a(p,":")<2)return{host:p,isIPV6:!1};const m=s(p);if(m.error)return{host:p,isIPV6:!1};{let v=m.address,_=m.address;return m.zone&&(v+="%"+m.zone,_+="%25"+m.zone),{host:v,escapedHost:_,isIPV6:!0}}}function o(p,m){let v="",_=!0;const b=p.length;for(let S=0;S<b;S++){const y=p[S];y==="0"&&_?(S+1<=b&&p[S+1]===m||S+1===b)&&(v+=y,_=!1):(y===m?_=!0:_=!1,v+=y)}return v}function a(p,m){let v=0;for(let _=0;_<p.length;_++)p[_]===m&&v++;return v}const l=/^\.\.?\//u,c=/^\/\.(?:\/|$)/u,d=/^\/\.\.(?:\/|$)/u,u=/^\/?(?:.|\n)*?(?=\/|$)/u;function h(p){const m=[];for(;p.length;)if(p.match(l))p=p.replace(l,"");else if(p.match(c))p=p.replace(c,"/");else if(p.match(d))p=p.replace(d,"/"),m.pop();else if(p==="."||p==="..")p="";else{const v=p.match(u);if(v){const _=v[0];p=p.slice(_.length),m.push(_)}else throw new Error("Unexpected dot segment condition")}return m.join("")}function f(p,m){const v=m!==!0?escape:unescape;return p.scheme!==void 0&&(p.scheme=v(p.scheme)),p.userinfo!==void 0&&(p.userinfo=v(p.userinfo)),p.host!==void 0&&(p.host=v(p.host)),p.path!==void 0&&(p.path=v(p.path)),p.query!==void 0&&(p.query=v(p.query)),p.fragment!==void 0&&(p.fragment=v(p.fragment)),p}function g(p){const m=[];if(p.userinfo!==void 0&&(m.push(p.userinfo),m.push("@")),p.host!==void 0){let v=unescape(p.host);const _=t(v);if(_.isIPV4)v=_.host;else{const b=r(_.host);b.isIPV6===!0?v=`[${b.escapedHost}]`:v=p.host}m.push(v)}return(typeof p.port=="number"||typeof p.port=="string")&&(m.push(":"),m.push(String(p.port))),m.length?m.join(""):void 0}return NV={recomposeAuthority:g,normalizeComponentEncoding:f,removeDotSegments:h,normalizeIPv4:t,normalizeIPv6:r,stringArrayToHexStripped:i},NV}var kV,Ale;function aYe(){if(Ale)return kV;Ale=1;const n=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function t(_){return typeof _.secure=="boolean"?_.secure:String(_.scheme).toLowerCase()==="wss"}function i(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function s(_){const b=String(_.scheme).toLowerCase()==="https";return(_.port===(b?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function r(_){return _.secure=t(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function o(_){if((_.port===(t(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){const[b,S]=_.resourceName.split("?");_.path=b&&b!=="/"?b:void 0,_.query=S,_.resourceName=void 0}return _.fragment=void 0,_}function a(_,b){if(!_.path)return _.error="URN can not be parsed",_;const S=_.path.match(e);if(S){const y=b.scheme||_.scheme||"urn";_.nid=S[1].toLowerCase(),_.nss=S[2];const C=`${y}:${b.nid||_.nid}`,T=v[C];_.path=void 0,T&&(_=T.parse(_,b))}else _.error=_.error||"URN can not be parsed.";return _}function l(_,b){const S=b.scheme||_.scheme||"urn",y=_.nid.toLowerCase(),C=`${S}:${b.nid||y}`,T=v[C];T&&(_=T.serialize(_,b));const w=_,I=_.nss;return w.path=`${y||b.nid}:${I}`,b.skipEscape=!0,w}function c(_,b){const S=_;return S.uuid=S.nss,S.nss=void 0,!b.tolerant&&(!S.uuid||!n.test(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function d(_){const b=_;return b.nss=(_.uuid||"").toLowerCase(),b}const u={scheme:"http",domainHost:!0,parse:i,serialize:s},h={scheme:"https",domainHost:u.domainHost,parse:i,serialize:s},f={scheme:"ws",domainHost:!0,parse:r,serialize:o},g={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},v={http:u,https:h,ws:f,wss:g,urn:{scheme:"urn",parse:a,serialize:l,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:c,serialize:d,skipNormalize:!0}};return kV=v,kV}var Ole;function lYe(){if(Ole)return Y0.exports;Ole=1;const{normalizeIPv6:n,normalizeIPv4:e,removeDotSegments:t,recomposeAuthority:i,normalizeComponentEncoding:s}=oYe(),r=aYe();function o(m,v){return typeof m=="string"?m=d(g(m,v),v):typeof m=="object"&&(m=g(d(m,v),v)),m}function a(m,v,_){const b=Object.assign({scheme:"null"},_),S=l(g(m,b),g(v,b),b,!0);return d(S,{...b,skipEscape:!0})}function l(m,v,_,b){const S={};return b||(m=g(d(m,_),_),v=g(d(v,_),_)),_=_||{},!_.tolerant&&v.scheme?(S.scheme=v.scheme,S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.path?(v.path.charAt(0)==="/"?S.path=t(v.path):((m.userinfo!==void 0||m.host!==void 0||m.port!==void 0)&&!m.path?S.path="/"+v.path:m.path?S.path=m.path.slice(0,m.path.lastIndexOf("/")+1)+v.path:S.path=v.path,S.path=t(S.path)),S.query=v.query):(S.path=m.path,v.query!==void 0?S.query=v.query:S.query=m.query),S.userinfo=m.userinfo,S.host=m.host,S.port=m.port),S.scheme=m.scheme),S.fragment=v.fragment,S}function c(m,v,_){return typeof m=="string"?(m=unescape(m),m=d(s(g(m,_),!0),{..._,skipEscape:!0})):typeof m=="object"&&(m=d(s(m,!0),{..._,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=d(s(g(v,_),!0),{..._,skipEscape:!0})):typeof v=="object"&&(v=d(s(v,!0),{..._,skipEscape:!0})),m.toLowerCase()===v.toLowerCase()}function d(m,v){const _={host:m.host,scheme:m.scheme,userinfo:m.userinfo,port:m.port,path:m.path,query:m.query,nid:m.nid,nss:m.nss,uuid:m.uuid,fragment:m.fragment,reference:m.reference,resourceName:m.resourceName,secure:m.secure,error:""},b=Object.assign({},v),S=[],y=r[(b.scheme||_.scheme||"").toLowerCase()];y&&y.serialize&&y.serialize(_,b),_.path!==void 0&&(b.skipEscape?_.path=unescape(_.path):(_.path=escape(_.path),_.scheme!==void 0&&(_.path=_.path.split("%3A").join(":")))),b.reference!=="suffix"&&_.scheme&&S.push(_.scheme,":");const C=i(_);if(C!==void 0&&(b.reference!=="suffix"&&S.push("//"),S.push(C),_.path&&_.path.charAt(0)!=="/"&&S.push("/")),_.path!==void 0){let T=_.path;!b.absolutePath&&(!y||!y.absolutePath)&&(T=t(T)),C===void 0&&(T=T.replace(/^\/\//u,"/%2F")),S.push(T)}return _.query!==void 0&&S.push("?",_.query),_.fragment!==void 0&&S.push("#",_.fragment),S.join("")}const u=Array.from({length:127},(m,v)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(v)));function h(m){let v=0;for(let _=0,b=m.length;_<b;++_)if(v=m.charCodeAt(_),v>126||u[v])return!0;return!1}const f=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(m,v){const _=Object.assign({},v),b={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},S=m.indexOf("%")!==-1;let y=!1;_.reference==="suffix"&&(m=(_.scheme?_.scheme+":":"")+"//"+m);const C=m.match(f);if(C){if(b.scheme=C[1],b.userinfo=C[3],b.host=C[4],b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=C[7],b.fragment=C[8],isNaN(b.port)&&(b.port=C[5]),b.host){const w=e(b.host);if(w.isIPV4===!1){const I=n(w.host);b.host=I.host.toLowerCase(),y=I.isIPV6}else b.host=w.host,y=!0}b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&b.query===void 0&&!b.path?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==b.reference&&(b.error=b.error||"URI is not a "+_.reference+" reference.");const T=r[(_.scheme||b.scheme||"").toLowerCase()];if(!_.unicodeSupport&&(!T||!T.unicodeSupport)&&b.host&&(_.domainHost||T&&T.domainHost)&&y===!1&&h(b.host))try{b.host=URL.domainToASCII(b.host.toLowerCase())}catch(w){b.error=b.error||"Host's domain name can not be converted to ASCII: "+w}(!T||T&&!T.skipNormalize)&&(S&&b.scheme!==void 0&&(b.scheme=unescape(b.scheme)),S&&b.host!==void 0&&(b.host=unescape(b.host)),b.path&&(b.path=escape(unescape(b.path))),b.fragment&&(b.fragment=encodeURI(decodeURIComponent(b.fragment)))),T&&T.parse&&T.parse(b,_)}else b.error=b.error||"URI can not be parsed.";return b}const p={SCHEMES:r,normalize:o,resolve:a,resolveComponents:l,equal:c,serialize:d,parse:g};return Y0.exports=p,Y0.exports.default=p,Y0.exports.fastUri=p,Y0.exports}var Mle;function cYe(){if(Mle)return rN;Mle=1,Object.defineProperty(rN,"__esModule",{value:!0});const n=lYe();return n.code='require("ajv/dist/runtime/uri").default',rN.default=n,rN}var Ple;function dYe(){return Ple||(Ple=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;var e=zB();Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=xn();Object.defineProperty(n,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const i=CJ(),s=GB(),r=hLe(),o=wJ(),a=xn(),l=$B(),c=kM(),d=us(),u=sYe,h=cYe(),f=(M,P)=>new RegExp(M,P);f.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],p=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function b(M){var P,W,H,F,U,Z,X,G,he,_e,ee,Q,Y,z,j,ie,J,ve,Ne,Te,Ce,ye,Ae,Fe,je;const et=M.strict,kt=(P=M.code)===null||P===void 0?void 0:P.optimize,Yt=kt===!0||kt===void 0?1:kt||0,zt=(H=(W=M.code)===null||W===void 0?void 0:W.regExp)!==null&&H!==void 0?H:f,oi=(F=M.uriResolver)!==null&&F!==void 0?F:h.default;return{strictSchema:(Z=(U=M.strictSchema)!==null&&U!==void 0?U:et)!==null&&Z!==void 0?Z:!0,strictNumbers:(G=(X=M.strictNumbers)!==null&&X!==void 0?X:et)!==null&&G!==void 0?G:!0,strictTypes:(_e=(he=M.strictTypes)!==null&&he!==void 0?he:et)!==null&&_e!==void 0?_e:"log",strictTuples:(Q=(ee=M.strictTuples)!==null&&ee!==void 0?ee:et)!==null&&Q!==void 0?Q:"log",strictRequired:(z=(Y=M.strictRequired)!==null&&Y!==void 0?Y:et)!==null&&z!==void 0?z:!1,code:M.code?{...M.code,optimize:Yt,regExp:zt}:{optimize:Yt,regExp:zt},loopRequired:(j=M.loopRequired)!==null&&j!==void 0?j:_,loopEnum:(ie=M.loopEnum)!==null&&ie!==void 0?ie:_,meta:(J=M.meta)!==null&&J!==void 0?J:!0,messages:(ve=M.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ne=M.inlineRefs)!==null&&Ne!==void 0?Ne:!0,schemaId:(Te=M.schemaId)!==null&&Te!==void 0?Te:"$id",addUsedSchema:(Ce=M.addUsedSchema)!==null&&Ce!==void 0?Ce:!0,validateSchema:(ye=M.validateSchema)!==null&&ye!==void 0?ye:!0,validateFormats:(Ae=M.validateFormats)!==null&&Ae!==void 0?Ae:!0,unicodeRegExp:(Fe=M.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:(je=M.int32range)!==null&&je!==void 0?je:!0,uriResolver:oi}}class S{constructor(P={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,P=this.opts={...P,...b(P)};const{es5:W,lines:H}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:p,es5:W,lines:H}),this.logger=L(P.logger);const F=P.validateFormats;P.validateFormats=!1,this.RULES=(0,r.getRules)(),y.call(this,m,P,"NOT SUPPORTED"),y.call(this,v,P,"DEPRECATED","warn"),this._metaOpts=R.call(this),P.formats&&w.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),P.keywords&&I.call(this,P.keywords),typeof P.meta=="object"&&this.addMetaSchema(P.meta),T.call(this),P.validateFormats=F}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:P,meta:W,schemaId:H}=this.opts;let F=u;H==="id"&&(F={...u},F.id=F.$id,delete F.$id),W&&P&&this.addMetaSchema(F,F[H],!1)}defaultMeta(){const{meta:P,schemaId:W}=this.opts;return this.opts.defaultMeta=typeof P=="object"?P[W]||P:void 0}validate(P,W){let H;if(typeof P=="string"){if(H=this.getSchema(P),!H)throw new Error(`no schema with key or ref "${P}"`)}else H=this.compile(P);const F=H(W);return"$async"in H||(this.errors=H.errors),F}compile(P,W){const H=this._addSchema(P,W);return H.validate||this._compileSchemaEnv(H)}compileAsync(P,W){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:H}=this.opts;return F.call(this,P,W);async function F(_e,ee){await U.call(this,_e.$schema);const Q=this._addSchema(_e,ee);return Q.validate||Z.call(this,Q)}async function U(_e){_e&&!this.getSchema(_e)&&await F.call(this,{$ref:_e},!0)}async function Z(_e){try{return this._compileSchemaEnv(_e)}catch(ee){if(!(ee instanceof s.default))throw ee;return X.call(this,ee),await G.call(this,ee.missingSchema),Z.call(this,_e)}}function X({missingSchema:_e,missingRef:ee}){if(this.refs[_e])throw new Error(`AnySchema ${_e} is loaded but ${ee} cannot be resolved`)}async function G(_e){const ee=await he.call(this,_e);this.refs[_e]||await U.call(this,ee.$schema),this.refs[_e]||this.addSchema(ee,_e,W)}async function he(_e){const ee=this._loading[_e];if(ee)return ee;try{return await(this._loading[_e]=H(_e))}finally{delete this._loading[_e]}}}addSchema(P,W,H,F=this.opts.validateSchema){if(Array.isArray(P)){for(const Z of P)this.addSchema(Z,void 0,H,F);return this}let U;if(typeof P=="object"){const{schemaId:Z}=this.opts;if(U=P[Z],U!==void 0&&typeof U!="string")throw new Error(`schema ${Z} must be string`)}return W=(0,l.normalizeId)(W||U),this._checkUnique(W),this.schemas[W]=this._addSchema(P,H,W,F,!0),this}addMetaSchema(P,W,H=this.opts.validateSchema){return this.addSchema(P,W,!0,H),this}validateSchema(P,W){if(typeof P=="boolean")return!0;let H;if(H=P.$schema,H!==void 0&&typeof H!="string")throw new Error("$schema must be a string");if(H=H||this.opts.defaultMeta||this.defaultMeta(),!H)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const F=this.validate(H,P);if(!F&&W){const U="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(U);else throw new Error(U)}return F}getSchema(P){let W;for(;typeof(W=C.call(this,P))=="string";)P=W;if(W===void 0){const{schemaId:H}=this.opts,F=new o.SchemaEnv({schema:{},schemaId:H});if(W=o.resolveSchema.call(this,F,P),!W)return;this.refs[P]=W}return W.validate||this._compileSchemaEnv(W)}removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(this.schemas,P),this._removeAllSchemas(this.refs,P),this;switch(typeof P){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const W=C.call(this,P);return typeof W=="object"&&this._cache.delete(W.schema),delete this.schemas[P],delete this.refs[P],this}case"object":{const W=P;this._cache.delete(W);let H=P[this.opts.schemaId];return H&&(H=(0,l.normalizeId)(H),delete this.schemas[H],delete this.refs[H]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(P){for(const W of P)this.addKeyword(W);return this}addKeyword(P,W){let H;if(typeof P=="string")H=P,typeof W=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),W.keyword=H);else if(typeof P=="object"&&W===void 0){if(W=P,H=W.keyword,Array.isArray(H)&&!H.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(x.call(this,H,W),!W)return(0,d.eachItem)(H,U=>N.call(this,U)),this;B.call(this,W);const F={...W,type:(0,c.getJSONTypes)(W.type),schemaType:(0,c.getJSONTypes)(W.schemaType)};return(0,d.eachItem)(H,F.type.length===0?U=>N.call(this,U,F):U=>F.type.forEach(Z=>N.call(this,U,F,Z))),this}getKeyword(P){const W=this.RULES.all[P];return typeof W=="object"?W.definition:!!W}removeKeyword(P){const{RULES:W}=this;delete W.keywords[P],delete W.all[P];for(const H of W.rules){const F=H.rules.findIndex(U=>U.keyword===P);F>=0&&H.rules.splice(F,1)}return this}addFormat(P,W){return typeof W=="string"&&(W=new RegExp(W)),this.formats[P]=W,this}errorsText(P=this.errors,{separator:W=", ",dataVar:H="data"}={}){return!P||P.length===0?"No errors":P.map(F=>`${H}${F.instancePath} ${F.message}`).reduce((F,U)=>F+W+U)}$dataMetaSchema(P,W){const H=this.RULES.all;P=JSON.parse(JSON.stringify(P));for(const F of W){const U=F.split("/").slice(1);let Z=P;for(const X of U)Z=Z[X];for(const X in H){const G=H[X];if(typeof G!="object")continue;const{$data:he}=G.definition,_e=Z[X];he&&_e&&(Z[X]=O(_e))}}return P}_removeAllSchemas(P,W){for(const H in P){const F=P[H];(!W||W.test(H))&&(typeof F=="string"?delete P[H]:F&&!F.meta&&(this._cache.delete(F.schema),delete P[H]))}}_addSchema(P,W,H,F=this.opts.validateSchema,U=this.opts.addUsedSchema){let Z;const{schemaId:X}=this.opts;if(typeof P=="object")Z=P[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof P!="boolean")throw new Error("schema must be object or boolean")}let G=this._cache.get(P);if(G!==void 0)return G;H=(0,l.normalizeId)(Z||H);const he=l.getSchemaRefs.call(this,P,H);return G=new o.SchemaEnv({schema:P,schemaId:X,meta:W,baseId:H,localRefs:he}),this._cache.set(G.schema,G),U&&!H.startsWith("#")&&(H&&this._checkUnique(H),this.refs[H]=G),F&&this.validateSchema(P,!0),G}_checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`schema with key or id "${P}" already exists`)}_compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSchema.call(this,P),!P.validate)throw new Error("ajv implementation error");return P.validate}_compileMetaSchema(P){const W=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,P)}finally{this.opts=W}}}S.ValidationError=i.default,S.MissingRefError=s.default,n.default=S;function y(M,P,W,H="error"){for(const F in M){const U=F;U in P&&this.logger[H](`${W}: option ${F}. ${M[U]}`)}}function C(M){return M=(0,l.normalizeId)(M),this.schemas[M]||this.refs[M]}function T(){const M=this.opts.schemas;if(M)if(Array.isArray(M))this.addSchema(M);else for(const P in M)this.addSchema(M[P],P)}function w(){for(const M in this.opts.formats){const P=this.opts.formats[M];P&&this.addFormat(M,P)}}function I(M){if(Array.isArray(M)){this.addVocabulary(M);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const P in M){const W=M[P];W.keyword||(W.keyword=P),this.addKeyword(W)}}function R(){const M={...this.opts};for(const P of g)delete M[P];return M}const D={log(){},warn(){},error(){}};function L(M){if(M===!1)return D;if(M===void 0)return console;if(M.log&&M.warn&&M.error)return M;throw new Error("logger must implement log, warn and error methods")}const k=/^[a-z_$][a-z0-9_$:-]*$/i;function x(M,P){const{RULES:W}=this;if((0,d.eachItem)(M,H=>{if(W.keywords[H])throw new Error(`Keyword ${H} is already defined`);if(!k.test(H))throw new Error(`Keyword ${H} has invalid name`)}),!!P&&P.$data&&!("code"in P||"validate"in P))throw new Error('$data keyword must have "code" or "validate" function')}function N(M,P,W){var H;const F=P?.post;if(W&&F)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:U}=this;let Z=F?U.post:U.rules.find(({type:G})=>G===W);if(Z||(Z={type:W,rules:[]},U.rules.push(Z)),U.keywords[M]=!0,!P)return;const X={keyword:M,definition:{...P,type:(0,c.getJSONTypes)(P.type),schemaType:(0,c.getJSONTypes)(P.schemaType)}};P.before?A.call(this,Z,X,P.before):Z.rules.push(X),U.all[M]=X,(H=P.implements)===null||H===void 0||H.forEach(G=>this.addKeyword(G))}function A(M,P,W){const H=M.rules.findIndex(F=>F.keyword===W);H>=0?M.rules.splice(H,0,P):(M.rules.push(P),this.logger.warn(`rule ${W} is not defined`))}function B(M){let{metaSchema:P}=M;P!==void 0&&(M.$data&&this.opts.$data&&(P=O(P)),M.validateSchema=this.compile(P,!0))}const V={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function O(M){return{anyOf:[M,V]}}}(wV)),wV}var oN={},aN={},lN={},Fle;function uYe(){if(Fle)return lN;Fle=1,Object.defineProperty(lN,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return lN.default=n,lN}var Pp={},Ble;function hYe(){if(Ble)return Pp;Ble=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.callRef=Pp.getValidate=void 0;const n=GB(),e=uh(),t=xn(),i=F_(),s=wJ(),r=us(),o={keyword:"$ref",schemaType:"string",code(c){const{gen:d,schema:u,it:h}=c,{baseId:f,schemaEnv:g,validateName:p,opts:m,self:v}=h,{root:_}=g;if((u==="#"||u==="#/")&&f===_.baseId)return S();const b=s.resolveRef.call(v,_,f,u);if(b===void 0)throw new n.default(h.opts.uriResolver,f,u);if(b instanceof s.SchemaEnv)return y(b);return C(b);function S(){if(g===_)return l(c,p,g,g.$async);const T=d.scopeValue("root",{ref:_});return l(c,(0,t._)`${T}.validate`,_,_.$async)}function y(T){const w=a(c,T);l(c,w,T,T.$async)}function C(T){const w=d.scopeValue("schema",m.code.source===!0?{ref:T,code:(0,t.stringify)(T)}:{ref:T}),I=d.name("valid"),R=c.subschema({schema:T,dataTypes:[],schemaPath:t.nil,topSchemaRef:w,errSchemaPath:u},I);c.mergeEvaluated(R),c.ok(I)}}};function a(c,d){const{gen:u}=c;return d.validate?u.scopeValue("validate",{ref:d.validate}):(0,t._)`${u.scopeValue("wrapper",{ref:d})}.validate`}Pp.getValidate=a;function l(c,d,u,h){const{gen:f,it:g}=c,{allErrors:p,schemaEnv:m,opts:v}=g,_=v.passContext?i.default.this:t.nil;h?b():S();function b(){if(!m.$async)throw new Error("async schema referenced by sync schema");const T=f.let("valid");f.try(()=>{f.code((0,t._)`await ${(0,e.callValidateCode)(c,d,_)}`),C(d),p||f.assign(T,!0)},w=>{f.if((0,t._)`!(${w} instanceof ${g.ValidationError})`,()=>f.throw(w)),y(w),p||f.assign(T,!1)}),c.ok(T)}function S(){c.result((0,e.callValidateCode)(c,d,_),()=>C(d),()=>y(d))}function y(T){const w=(0,t._)`${T}.errors`;f.assign(i.default.vErrors,(0,t._)`${i.default.vErrors} === null ? ${w} : ${i.default.vErrors}.concat(${w})`),f.assign(i.default.errors,(0,t._)`${i.default.vErrors}.length`)}function C(T){var w;if(!g.opts.unevaluated)return;const I=(w=u?.validate)===null||w===void 0?void 0:w.evaluated;if(g.props!==!0)if(I&&!I.dynamicProps)I.props!==void 0&&(g.props=r.mergeEvaluated.props(f,I.props,g.props));else{const R=f.var("props",(0,t._)`${T}.evaluated.props`);g.props=r.mergeEvaluated.props(f,R,g.props,t.Name)}if(g.items!==!0)if(I&&!I.dynamicItems)I.items!==void 0&&(g.items=r.mergeEvaluated.items(f,I.items,g.items));else{const R=f.var("items",(0,t._)`${T}.evaluated.items`);g.items=r.mergeEvaluated.items(f,R,g.items,t.Name)}}}return Pp.callRef=l,Pp.default=o,Pp}var Vle;function fYe(){if(Vle)return aN;Vle=1,Object.defineProperty(aN,"__esModule",{value:!0});const n=uYe(),e=hYe(),t=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,e.default];return aN.default=t,aN}var cN={},dN={},Hle;function gYe(){if(Hle)return dN;Hle=1,Object.defineProperty(dN,"__esModule",{value:!0});const n=xn(),e=n.operators,t={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},i={message:({keyword:r,schemaCode:o})=>(0,n.str)`must be ${t[r].okStr} ${o}`,params:({keyword:r,schemaCode:o})=>(0,n._)`{comparison: ${t[r].okStr}, limit: ${o}}`},s={keyword:Object.keys(t),type:"number",schemaType:"number",$data:!0,error:i,code(r){const{keyword:o,data:a,schemaCode:l}=r;r.fail$data((0,n._)`${a} ${t[o].fail} ${l} || isNaN(${a})`)}};return dN.default=s,dN}var uN={},Wle;function pYe(){if(Wle)return uN;Wle=1,Object.defineProperty(uN,"__esModule",{value:!0});const n=xn(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,n.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,n._)`{multipleOf: ${i}}`},code(i){const{gen:s,data:r,schemaCode:o,it:a}=i,l=a.opts.multipleOfPrecision,c=s.let("res"),d=l?(0,n._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${l}`:(0,n._)`${c} !== parseInt(${c})`;i.fail$data((0,n._)`(${o} === 0 || (${c} = ${r}/${o}, ${d}))`)}};return uN.default=t,uN}var hN={},fN={},Ule;function mYe(){if(Ule)return fN;Ule=1,Object.defineProperty(fN,"__esModule",{value:!0});function n(e){const t=e.length;let i=0,s=0,r;for(;s<t;)i++,r=e.charCodeAt(s++),r>=55296&&r<=56319&&s<t&&(r=e.charCodeAt(s),(r&64512)===56320&&s++);return i}return fN.default=n,n.code='require("ajv/dist/runtime/ucs2length").default',fN}var $le;function _Ye(){if($le)return hN;$le=1,Object.defineProperty(hN,"__esModule",{value:!0});const n=xn(),e=us(),t=mYe(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:o}){const a=r==="maxLength"?"more":"fewer";return(0,n.str)`must NOT have ${a} than ${o} characters`},params:({schemaCode:r})=>(0,n._)`{limit: ${r}}`},code(r){const{keyword:o,data:a,schemaCode:l,it:c}=r,d=o==="maxLength"?n.operators.GT:n.operators.LT,u=c.opts.unicode===!1?(0,n._)`${a}.length`:(0,n._)`${(0,e.useFunc)(r.gen,t.default)}(${a})`;r.fail$data((0,n._)`${u} ${d} ${l}`)}};return hN.default=s,hN}var gN={},zle;function vYe(){if(zle)return gN;zle=1,Object.defineProperty(gN,"__esModule",{value:!0});const n=uh(),e=xn(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,e._)`{pattern: ${s}}`},code(s){const{data:r,$data:o,schema:a,schemaCode:l,it:c}=s,d=c.opts.unicodeRegExp?"u":"",u=o?(0,e._)`(new RegExp(${l}, ${d}))`:(0,n.usePattern)(s,a);s.fail$data((0,e._)`!${u}.test(${r})`)}};return gN.default=i,gN}var pN={},Gle;function bYe(){if(Gle)return pN;Gle=1,Object.defineProperty(pN,"__esModule",{value:!0});const n=xn(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:s}){const r=i==="maxProperties"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${s} properties`},params:({schemaCode:i})=>(0,n._)`{limit: ${i}}`},code(i){const{keyword:s,data:r,schemaCode:o}=i,a=s==="maxProperties"?n.operators.GT:n.operators.LT;i.fail$data((0,n._)`Object.keys(${r}).length ${a} ${o}`)}};return pN.default=t,pN}var mN={},qle;function SYe(){if(qle)return mN;qle=1,Object.defineProperty(mN,"__esModule",{value:!0});const n=uh(),e=xn(),t=us(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,e.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,e._)`{missingProperty: ${r}}`},code(r){const{gen:o,schema:a,schemaCode:l,data:c,$data:d,it:u}=r,{opts:h}=u;if(!d&&a.length===0)return;const f=a.length>=h.loopRequired;if(u.allErrors?g():p(),h.strictRequired){const _=r.parentSchema.properties,{definedProperties:b}=r.it;for(const S of a)if(_?.[S]===void 0&&!b.has(S)){const y=u.schemaEnv.baseId+u.errSchemaPath,C=`required property "${S}" is not defined at "${y}" (strictRequired)`;(0,t.checkStrictMode)(u,C,u.opts.strictRequired)}}function g(){if(f||d)r.block$data(e.nil,m);else for(const _ of a)(0,n.checkReportMissingProp)(r,_)}function p(){const _=o.let("missing");if(f||d){const b=o.let("valid",!0);r.block$data(b,()=>v(_,b)),r.ok(b)}else o.if((0,n.checkMissingProp)(r,a,_)),(0,n.reportMissingProp)(r,_),o.else()}function m(){o.forOf("prop",l,_=>{r.setParams({missingProperty:_}),o.if((0,n.noPropertyInData)(o,c,_,h.ownProperties),()=>r.error())})}function v(_,b){r.setParams({missingProperty:_}),o.forOf(_,l,()=>{o.assign(b,(0,n.propertyInData)(o,c,_,h.ownProperties)),o.if((0,e.not)(b),()=>{r.error(),o.break()})},e.nil)}}};return mN.default=s,mN}var _N={},Kle;function yYe(){if(Kle)return _N;Kle=1,Object.defineProperty(_N,"__esModule",{value:!0});const n=xn(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:s}){const r=i==="maxItems"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${s} items`},params:({schemaCode:i})=>(0,n._)`{limit: ${i}}`},code(i){const{keyword:s,data:r,schemaCode:o}=i,a=s==="maxItems"?n.operators.GT:n.operators.LT;i.fail$data((0,n._)`${r}.length ${a} ${o}`)}};return _N.default=t,_N}var vN={},bN={},jle;function EJ(){if(jle)return bN;jle=1,Object.defineProperty(bN,"__esModule",{value:!0});const n=gLe();return n.code='require("ajv/dist/runtime/equal").default',bN.default=n,bN}var Yle;function CYe(){if(Yle)return vN;Yle=1,Object.defineProperty(vN,"__esModule",{value:!0});const n=kM(),e=xn(),t=us(),i=EJ(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:a}})=>(0,e.str)`must NOT have duplicate items (items ## ${a} and ${o} are identical)`,params:({params:{i:o,j:a}})=>(0,e._)`{i: ${o}, j: ${a}}`},code(o){const{gen:a,data:l,$data:c,schema:d,parentSchema:u,schemaCode:h,it:f}=o;if(!c&&!d)return;const g=a.let("valid"),p=u.items?(0,n.getSchemaTypes)(u.items):[];o.block$data(g,m,(0,e._)`${h} === false`),o.ok(g);function m(){const S=a.let("i",(0,e._)`${l}.length`),y=a.let("j");o.setParams({i:S,j:y}),a.assign(g,!0),a.if((0,e._)`${S} > 1`,()=>(v()?_:b)(S,y))}function v(){return p.length>0&&!p.some(S=>S==="object"||S==="array")}function _(S,y){const C=a.name("item"),T=(0,n.checkDataTypes)(p,C,f.opts.strictNumbers,n.DataType.Wrong),w=a.const("indices",(0,e._)`{}`);a.for((0,e._)`;${S}--;`,()=>{a.let(C,(0,e._)`${l}[${S}]`),a.if(T,(0,e._)`continue`),p.length>1&&a.if((0,e._)`typeof ${C} == "string"`,(0,e._)`${C} += "_"`),a.if((0,e._)`typeof ${w}[${C}] == "number"`,()=>{a.assign(y,(0,e._)`${w}[${C}]`),o.error(),a.assign(g,!1).break()}).code((0,e._)`${w}[${C}] = ${S}`)})}function b(S,y){const C=(0,t.useFunc)(a,i.default),T=a.name("outer");a.label(T).for((0,e._)`;${S}--;`,()=>a.for((0,e._)`${y} = ${S}; ${y}--;`,()=>a.if((0,e._)`${C}(${l}[${S}], ${l}[${y}])`,()=>{o.error(),a.assign(g,!1).break(T)})))}}};return vN.default=r,vN}var SN={},Qle;function wYe(){if(Qle)return SN;Qle=1,Object.defineProperty(SN,"__esModule",{value:!0});const n=xn(),e=us(),t=EJ(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,n._)`{allowedValue: ${r}}`},code(r){const{gen:o,data:a,$data:l,schemaCode:c,schema:d}=r;l||d&&typeof d=="object"?r.fail$data((0,n._)`!${(0,e.useFunc)(o,t.default)}(${a}, ${c})`):r.fail((0,n._)`${d} !== ${a}`)}};return SN.default=s,SN}var yN={},Xle;function EYe(){if(Xle)return yN;Xle=1,Object.defineProperty(yN,"__esModule",{value:!0});const n=xn(),e=us(),t=EJ(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,n._)`{allowedValues: ${r}}`},code(r){const{gen:o,data:a,$data:l,schema:c,schemaCode:d,it:u}=r;if(!l&&c.length===0)throw new Error("enum must have non-empty array");const h=c.length>=u.opts.loopEnum;let f;const g=()=>f??(f=(0,e.useFunc)(o,t.default));let p;if(h||l)p=o.let("valid"),r.block$data(p,m);else{if(!Array.isArray(c))throw new Error("ajv implementation error");const _=o.const("vSchema",d);p=(0,n.or)(...c.map((b,S)=>v(_,S)))}r.pass(p);function m(){o.assign(p,!1),o.forOf("v",d,_=>o.if((0,n._)`${g()}(${a}, ${_})`,()=>o.assign(p,!0).break()))}function v(_,b){const S=c[b];return typeof S=="object"&&S!==null?(0,n._)`${g()}(${a}, ${_}[${b}])`:(0,n._)`${a} === ${S}`}}};return yN.default=s,yN}var Zle;function TYe(){if(Zle)return cN;Zle=1,Object.defineProperty(cN,"__esModule",{value:!0});const n=gYe(),e=pYe(),t=_Ye(),i=vYe(),s=bYe(),r=SYe(),o=yYe(),a=CYe(),l=wYe(),c=EYe(),d=[n.default,e.default,t.default,i.default,s.default,r.default,o.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,c.default];return cN.default=d,cN}var CN={},Ty={},Jle;function pLe(){if(Jle)return Ty;Jle=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.validateAdditionalItems=void 0;const n=xn(),e=us(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,n.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,n._)`{limit: ${r}}`},code(r){const{parentSchema:o,it:a}=r,{items:l}=o;if(!Array.isArray(l)){(0,e.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(r,l)}};function s(r,o){const{gen:a,schema:l,data:c,keyword:d,it:u}=r;u.items=!0;const h=a.const("len",(0,n._)`${c}.length`);if(l===!1)r.setParams({len:o.length}),r.pass((0,n._)`${h} <= ${o.length}`);else if(typeof l=="object"&&!(0,e.alwaysValidSchema)(u,l)){const g=a.var("valid",(0,n._)`${h} <= ${o.length}`);a.if((0,n.not)(g),()=>f(g)),r.ok(g)}function f(g){a.forRange("i",o.length,h,p=>{r.subschema({keyword:d,dataProp:p,dataPropType:e.Type.Num},g),u.allErrors||a.if((0,n.not)(g),()=>a.break())})}}return Ty.validateAdditionalItems=s,Ty.default=i,Ty}var wN={},Iy={},ece;function mLe(){if(ece)return Iy;ece=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.validateTuple=void 0;const n=xn(),e=us(),t=uh(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:o,it:a}=r;if(Array.isArray(o))return s(r,"additionalItems",o);a.items=!0,!(0,e.alwaysValidSchema)(a,o)&&r.ok((0,t.validateArray)(r))}};function s(r,o,a=r.schema){const{gen:l,parentSchema:c,data:d,keyword:u,it:h}=r;p(c),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.items=e.mergeEvaluated.items(l,a.length,h.items));const f=l.name("valid"),g=l.const("len",(0,n._)`${d}.length`);a.forEach((m,v)=>{(0,e.alwaysValidSchema)(h,m)||(l.if((0,n._)`${g} > ${v}`,()=>r.subschema({keyword:u,schemaProp:v,dataProp:v},f)),r.ok(f))});function p(m){const{opts:v,errSchemaPath:_}=h,b=a.length,S=b===m.minItems&&(b===m.maxItems||m[o]===!1);if(v.strictTuples&&!S){const y=`"${u}" is ${b}-tuple, but minItems or maxItems/${o} are not specified or different at path "${_}"`;(0,e.checkStrictMode)(h,y,v.strictTuples)}}}return Iy.validateTuple=s,Iy.default=i,Iy}var tce;function IYe(){if(tce)return wN;tce=1,Object.defineProperty(wN,"__esModule",{value:!0});const n=mLe(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,n.validateTuple)(t,"items")};return wN.default=e,wN}var EN={},ice;function LYe(){if(ice)return EN;ice=1,Object.defineProperty(EN,"__esModule",{value:!0});const n=xn(),e=us(),t=uh(),i=pLe(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,n.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,n._)`{limit: ${o}}`},code(o){const{schema:a,parentSchema:l,it:c}=o,{prefixItems:d}=l;c.items=!0,!(0,e.alwaysValidSchema)(c,a)&&(d?(0,i.validateAdditionalItems)(o,d):o.ok((0,t.validateArray)(o)))}};return EN.default=r,EN}var TN={},nce;function xYe(){if(nce)return TN;nce=1,Object.defineProperty(TN,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:r}})=>r===void 0?(0,n.str)`must contain at least ${s} valid item(s)`:(0,n.str)`must contain at least ${s} and no more than ${r} valid item(s)`,params:({params:{min:s,max:r}})=>r===void 0?(0,n._)`{minContains: ${s}}`:(0,n._)`{minContains: ${s}, maxContains: ${r}}`},code(s){const{gen:r,schema:o,parentSchema:a,data:l,it:c}=s;let d,u;const{minContains:h,maxContains:f}=a;c.opts.next?(d=h===void 0?1:h,u=f):d=1;const g=r.const("len",(0,n._)`${l}.length`);if(s.setParams({min:d,max:u}),u===void 0&&d===0){(0,e.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&d>u){(0,e.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,e.alwaysValidSchema)(c,o)){let b=(0,n._)`${g} >= ${d}`;u!==void 0&&(b=(0,n._)`${b} && ${g} <= ${u}`),s.pass(b);return}c.items=!0;const p=r.name("valid");u===void 0&&d===1?v(p,()=>r.if(p,()=>r.break())):d===0?(r.let(p,!0),u!==void 0&&r.if((0,n._)`${l}.length > 0`,m)):(r.let(p,!1),m()),s.result(p,()=>s.reset());function m(){const b=r.name("_valid"),S=r.let("count",0);v(b,()=>r.if(b,()=>_(S)))}function v(b,S){r.forRange("i",0,g,y=>{s.subschema({keyword:"contains",dataProp:y,dataPropType:e.Type.Num,compositeRule:!0},b),S()})}function _(b){r.code((0,n._)`${b}++`),u===void 0?r.if((0,n._)`${b} >= ${d}`,()=>r.assign(p,!0).break()):(r.if((0,n._)`${b} > ${u}`,()=>r.assign(p,!1).break()),d===1?r.assign(p,!0):r.if((0,n._)`${b} >= ${d}`,()=>r.assign(p,!0)))}}};return TN.default=i,TN}var AV={},sce;function RYe(){return sce||(sce=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateSchemaDeps=n.validatePropertyDeps=n.error=void 0;const e=xn(),t=us(),i=uh();n.error={message:({params:{property:l,depsCount:c,deps:d}})=>{const u=c===1?"property":"properties";return(0,e.str)`must have ${u} ${d} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:d,missingProperty:u}})=>(0,e._)`{property: ${l},
173
173
  missingProperty: ${u},
174
174
  depsCount: ${c},
175
- deps: ${d}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(l){const[c,d]=r(l);o(l,c),a(l,d)}};function r({schema:l}){const c={},d={};for(const u in l){if(u==="__proto__")continue;const h=Array.isArray(l[u])?c:d;h[u]=l[u]}return[c,d]}function o(l,c=l.schema){const{gen:d,data:u,it:h}=l;if(Object.keys(c).length===0)return;const f=d.let("missing");for(const g in c){const p=c[g];if(p.length===0)continue;const m=(0,i.propertyInData)(d,u,g,h.opts.ownProperties);l.setParams({property:g,depsCount:p.length,deps:p.join(", ")}),h.allErrors?d.if(m,()=>{for(const v of p)(0,i.checkReportMissingProp)(l,v)}):(d.if((0,e._)`${m} && (${(0,i.checkMissingProp)(l,p,f)})`),(0,i.reportMissingProp)(l,f),d.else())}}n.validatePropertyDeps=o;function a(l,c=l.schema){const{gen:d,data:u,keyword:h,it:f}=l,g=d.name("valid");for(const p in c)(0,t.alwaysValidSchema)(f,c[p])||(d.if((0,i.propertyInData)(d,u,p,f.opts.ownProperties),()=>{const m=l.subschema({keyword:h,schemaProp:p},g);l.mergeValidEvaluated(m,g)},()=>d.var(g,!0)),l.ok(g))}n.validateSchemaDeps=a,n.default=s}(AV)),AV}var IN={},rce;function DYe(){if(rce)return IN;rce=1,Object.defineProperty(IN,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,n._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:r,schema:o,data:a,it:l}=s;if((0,e.alwaysValidSchema)(l,o))return;const c=r.name("valid");r.forIn("key",a,d=>{s.setParams({propertyName:d}),s.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},c),r.if((0,n.not)(c),()=>{s.error(!0),l.allErrors||r.break()})}),s.ok(c)}};return IN.default=i,IN}var LN={},oce;function _Le(){if(oce)return LN;oce=1,Object.defineProperty(LN,"__esModule",{value:!0});const n=uh(),e=xn(),t=F_(),i=us(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:l,parentSchema:c,data:d,errsCount:u,it:h}=o;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(h,l))return;const p=(0,n.allSchemaProperties)(c.properties),m=(0,n.allSchemaProperties)(c.patternProperties);v(),o.ok((0,e._)`${u} === ${t.default.errors}`);function v(){a.forIn("key",d,C=>{!p.length&&!m.length?S(C):a.if(_(C),()=>S(C))})}function _(C){let T;if(p.length>8){const w=(0,i.schemaRefOrVal)(h,c.properties,"properties");T=(0,n.isOwnProperty)(a,w,C)}else p.length?T=(0,e.or)(...p.map(w=>(0,e._)`${C} === ${w}`)):T=e.nil;return m.length&&(T=(0,e.or)(T,...m.map(w=>(0,e._)`${(0,n.usePattern)(o,w)}.test(${C})`))),(0,e.not)(T)}function b(C){a.code((0,e._)`delete ${d}[${C}]`)}function S(C){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(C);return}if(l===!1){o.setParams({additionalProperty:C}),o.error(),f||a.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(h,l)){const T=a.name("valid");g.removeAdditional==="failing"?(y(C,T,!1),a.if((0,e.not)(T),()=>{o.reset(),b(C)})):(y(C,T),f||a.if((0,e.not)(T),()=>a.break()))}}function y(C,T,w){const I={keyword:"additionalProperties",dataProp:C,dataPropType:i.Type.Str};w===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(I,T)}}};return LN.default=r,LN}var xN={},ace;function NYe(){if(ace)return xN;ace=1,Object.defineProperty(xN,"__esModule",{value:!0});const n=zB(),e=uh(),t=us(),i=_Le(),s={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:o,schema:a,parentSchema:l,data:c,it:d}=r;d.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new n.KeywordCxt(d,i.default,"additionalProperties"));const u=(0,e.allSchemaProperties)(a);for(const m of u)d.definedProperties.add(m);d.opts.unevaluated&&u.length&&d.props!==!0&&(d.props=t.mergeEvaluated.props(o,(0,t.toHash)(u),d.props));const h=u.filter(m=>!(0,t.alwaysValidSchema)(d,a[m]));if(h.length===0)return;const f=o.name("valid");for(const m of h)g(m)?p(m):(o.if((0,e.propertyInData)(o,c,m,d.opts.ownProperties)),p(m),d.allErrors||o.else().var(f,!0),o.endIf()),r.it.definedProperties.add(m),r.ok(f);function g(m){return d.opts.useDefaults&&!d.compositeRule&&a[m].default!==void 0}function p(m){r.subschema({keyword:"properties",schemaProp:m,dataProp:m},f)}}};return xN.default=s,xN}var RN={},lce;function kYe(){if(lce)return RN;lce=1,Object.defineProperty(RN,"__esModule",{value:!0});const n=uh(),e=xn(),t=us(),i=us(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:o,schema:a,data:l,parentSchema:c,it:d}=r,{opts:u}=d,h=(0,n.allSchemaProperties)(a),f=h.filter(S=>(0,t.alwaysValidSchema)(d,a[S]));if(h.length===0||f.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=o.name("valid");d.props!==!0&&!(d.props instanceof e.Name)&&(d.props=(0,i.evaluatedPropsToName)(o,d.props));const{props:m}=d;v();function v(){for(const S of h)g&&_(S),d.allErrors?b(S):(o.var(p,!0),b(S),o.if(p))}function _(S){for(const y in g)new RegExp(S).test(y)&&(0,t.checkStrictMode)(d,`property ${y} matches pattern ${S} (use allowMatchingProperties)`)}function b(S){o.forIn("key",l,y=>{o.if((0,e._)`${(0,n.usePattern)(r,S)}.test(${y})`,()=>{const C=f.includes(S);C||r.subschema({keyword:"patternProperties",schemaProp:S,dataProp:y,dataPropType:i.Type.Str},p),d.opts.unevaluated&&m!==!0?o.assign((0,e._)`${m}[${y}]`,!0):!C&&!d.allErrors&&o.if((0,e.not)(p),()=>o.break())})})}}};return RN.default=s,RN}var DN={},cce;function AYe(){if(cce)return DN;cce=1,Object.defineProperty(DN,"__esModule",{value:!0});const n=us(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:i,schema:s,it:r}=t;if((0,n.alwaysValidSchema)(r,s)){t.fail();return}const o=i.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return DN.default=e,DN}var NN={},dce;function OYe(){if(dce)return NN;dce=1,Object.defineProperty(NN,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uh().validateUnion,error:{message:"must match a schema in anyOf"}};return NN.default=e,NN}var kN={},uce;function MYe(){if(uce)return kN;uce=1,Object.defineProperty(kN,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,n._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:r,schema:o,parentSchema:a,it:l}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const c=o,d=r.let("valid",!1),u=r.let("passing",null),h=r.name("_valid");s.setParams({passing:u}),r.block(f),s.result(d,()=>s.reset(),()=>s.error(!0));function f(){c.forEach((g,p)=>{let m;(0,e.alwaysValidSchema)(l,g)?r.var(h,!0):m=s.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},h),p>0&&r.if((0,n._)`${h} && ${d}`).assign(d,!1).assign(u,(0,n._)`[${u}, ${p}]`).else(),r.if(h,()=>{r.assign(d,!0),r.assign(u,p),m&&s.mergeEvaluated(m,n.Name)})})}}};return kN.default=i,kN}var AN={},hce;function PYe(){if(hce)return AN;hce=1,Object.defineProperty(AN,"__esModule",{value:!0});const n=us(),e={keyword:"allOf",schemaType:"array",code(t){const{gen:i,schema:s,it:r}=t;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=i.name("valid");s.forEach((a,l)=>{if((0,n.alwaysValidSchema)(r,a))return;const c=t.subschema({keyword:"allOf",schemaProp:l},o);t.ok(o),t.mergeEvaluated(c)})}};return AN.default=e,AN}var ON={},fce;function FYe(){if(fce)return ON;fce=1,Object.defineProperty(ON,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,n.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,n._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:o,parentSchema:a,it:l}=r;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const c=s(l,"then"),d=s(l,"else");if(!c&&!d)return;const u=o.let("valid",!0),h=o.name("_valid");if(f(),r.reset(),c&&d){const p=o.let("ifClause");r.setParams({ifClause:p}),o.if(h,g("then",p),g("else",p))}else c?o.if(h,g("then")):o.if((0,n.not)(h),g("else"));r.pass(u,()=>r.error(!0));function f(){const p=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);r.mergeEvaluated(p)}function g(p,m){return()=>{const v=r.subschema({keyword:p},h);o.assign(u,h),r.mergeValidEvaluated(v,u),m?o.assign(m,(0,n._)`${p}`):r.setParams({ifClause:p})}}}};function s(r,o){const a=r.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(r,a)}return ON.default=i,ON}var MN={},gce;function BYe(){if(gce)return MN;gce=1,Object.defineProperty(MN,"__esModule",{value:!0});const n=us(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:i,it:s}){i.if===void 0&&(0,n.checkStrictMode)(s,`"${t}" without "if" is ignored`)}};return MN.default=e,MN}var pce;function VYe(){if(pce)return CN;pce=1,Object.defineProperty(CN,"__esModule",{value:!0});const n=pLe(),e=IYe(),t=mLe(),i=LYe(),s=xYe(),r=RYe(),o=DYe(),a=_Le(),l=NYe(),c=kYe(),d=AYe(),u=OYe(),h=MYe(),f=PYe(),g=FYe(),p=BYe();function m(v=!1){const _=[d.default,u.default,h.default,f.default,g.default,p.default,o.default,a.default,r.default,l.default,c.default];return v?_.push(e.default,i.default):_.push(n.default,t.default),_.push(s.default),_}return CN.default=m,CN}var PN={},FN={},mce;function HYe(){if(mce)return FN;mce=1,Object.defineProperty(FN,"__esModule",{value:!0});const n=xn(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,n.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,n._)`{format: ${i}}`},code(i,s){const{gen:r,data:o,$data:a,schema:l,schemaCode:c,it:d}=i,{opts:u,errSchemaPath:h,schemaEnv:f,self:g}=d;if(!u.validateFormats)return;a?p():m();function p(){const v=r.scopeValue("formats",{ref:g.formats,code:u.code.formats}),_=r.const("fDef",(0,n._)`${v}[${c}]`),b=r.let("fType"),S=r.let("format");r.if((0,n._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>r.assign(b,(0,n._)`${_}.type || "string"`).assign(S,(0,n._)`${_}.validate`),()=>r.assign(b,(0,n._)`"string"`).assign(S,_)),i.fail$data((0,n.or)(y(),C()));function y(){return u.strictSchema===!1?n.nil:(0,n._)`${c} && !${S}`}function C(){const T=f.$async?(0,n._)`(${_}.async ? await ${S}(${o}) : ${S}(${o}))`:(0,n._)`${S}(${o})`,w=(0,n._)`(typeof ${S} == "function" ? ${T} : ${S}.test(${o}))`;return(0,n._)`${S} && ${S} !== true && ${b} === ${s} && !${w}`}}function m(){const v=g.formats[l];if(!v){y();return}if(v===!0)return;const[_,b,S]=C(v);_===s&&i.pass(T());function y(){if(u.strictSchema===!1){g.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function C(w){const I=w instanceof RegExp?(0,n.regexpCode)(w):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(l)}`:void 0,R=r.scopeValue("formats",{key:l,ref:w,code:I});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,n._)`${R}.validate`]:["string",w,R]}function T(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!f.$async)throw new Error("async format in sync schema");return(0,n._)`await ${S}(${o})`}return typeof b=="function"?(0,n._)`${S}(${o})`:(0,n._)`${S}.test(${o})`}}}};return FN.default=t,FN}var _ce;function WYe(){if(_ce)return PN;_ce=1,Object.defineProperty(PN,"__esModule",{value:!0});const e=[HYe().default];return PN.default=e,PN}var ov={},vce;function UYe(){return vce||(vce=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.contentVocabulary=ov.metadataVocabulary=void 0,ov.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ov.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ov}var bce;function $Ye(){if(bce)return oN;bce=1,Object.defineProperty(oN,"__esModule",{value:!0});const n=fYe(),e=TYe(),t=VYe(),i=WYe(),s=UYe(),r=[n.default,e.default,(0,t.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];return oN.default=r,oN}var BN={},Q0={},Sce;function zYe(){if(Sce)return Q0;Sce=1,Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.DiscrError=void 0;var n;return function(e){e.Tag="tag",e.Mapping="mapping"}(n||(Q0.DiscrError=n={})),Q0}var yce;function GYe(){if(yce)return BN;yce=1,Object.defineProperty(BN,"__esModule",{value:!0});const n=xn(),e=zYe(),t=wJ(),i=GB(),s=us(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:l}})=>a===e.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:a,tag:l,tagName:c}})=>(0,n._)`{error: ${a}, tag: ${c}, tagValue: ${l}}`},code(a){const{gen:l,data:c,schema:d,parentSchema:u,it:h}=a,{oneOf:f}=u;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");const p=l.let("valid",!1),m=l.const("tag",(0,n._)`${c}${(0,n.getProperty)(g)}`);l.if((0,n._)`typeof ${m} == "string"`,()=>v(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:m,tagName:g})),a.ok(p);function v(){const S=b();l.if(!1);for(const y in S)l.elseIf((0,n._)`${m} === ${y}`),l.assign(p,_(S[y]));l.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:m,tagName:g}),l.endIf()}function _(S){const y=l.name("valid"),C=a.subschema({keyword:"oneOf",schemaProp:S},y);return a.mergeEvaluated(C,n.Name),y}function b(){var S;const y={},C=w(u);let T=!0;for(let D=0;D<f.length;D++){let L=f[D];if(L?.$ref&&!(0,s.schemaHasRulesButRef)(L,h.self.RULES)){const x=L.$ref;if(L=t.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,x),L instanceof t.SchemaEnv&&(L=L.schema),L===void 0)throw new i.default(h.opts.uriResolver,h.baseId,x)}const k=(S=L?.properties)===null||S===void 0?void 0:S[g];if(typeof k!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);T=T&&(C||w(L)),I(k,D)}if(!T)throw new Error(`discriminator: "${g}" must be required`);return y;function w({required:D}){return Array.isArray(D)&&D.includes(g)}function I(D,L){if(D.const)R(D.const,L);else if(D.enum)for(const k of D.enum)R(k,L);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function R(D,L){if(typeof D!="string"||D in y)throw new Error(`discriminator: "${g}" values must be unique strings`);y[D]=L}}}};return BN.default=o,BN}const qYe="http://json-schema.org/draft-07/schema#",KYe="http://json-schema.org/draft-07/schema#",jYe="Core schema meta-schema",YYe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},QYe=["object","boolean"],XYe={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ZYe={$schema:qYe,$id:KYe,title:jYe,definitions:YYe,type:QYe,properties:XYe,default:!0};var Cce;function JYe(){return Cce||(Cce=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=dYe(),i=$Ye(),s=GYe(),r=ZYe,o=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends t.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(r,o):r;this.addMetaSchema(g,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.Ajv=l,n.exports=e=l,n.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=zB();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=xn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=CJ();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=GB();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})}(tN,tN.exports)),tN.exports}var vLe=JYe();new vLe.Ajv;function zT(n){return"source"in n}const eQe=SJ({name:"input-resolver",getNodeId(n){return n.kind==="hub"?`hub:${n.hub.id}`:`instance:${n.instance.id}`},getNodeDependencies(n){const e=[];if(n.kind==="hub"){for(const t of n.hub.inputs??[])e.push(`instance:${t.instanceId}`);for(const t of n.hub.injectionInputs??[])e.push(`hub:${t.hubId}`);return e}for(const t of Object.values(n.instance.inputs??{}))for(const i of t)e.push(`instance:${i.instanceId}`);for(const t of Object.values(n.instance.hubInputs??{}))for(const i of t)e.push(`hub:${i.hubId}`);for(const t of n.instance.injectionInputs??[])e.push(`hub:${t.hubId}`);return e},process(n,e,t){const i=u=>{const h=e.get(`hub:${u.hubId}`);if(!h)return{resolvedInputs:[]};if(h.kind!=="hub")throw new Error("Expected hub node");return h},s=u=>{const h=e.get(`instance:${u.instanceId}`);if(!h)return{component:null,resolvedInputs:[],resolvedOutputs:[]};if(h.kind!=="instance")throw new Error("Expected instance node");return{component:h.component,resolvedInputs:h.resolvedInputs[u.output]??[],resolvedOutputs:h.resolvedOutputs[u.output]??[]}};if(n.kind==="hub"){const u=new Map,h=f=>{u.set(`${f.input.instanceId}:${f.input.output}`,f)};for(const f of n.hub.inputs??[]){const{component:g}=s(f),p=g?.outputs[f.output];if(!p){t.warn({msg:"output not found in the component",input:f,component:g});continue}h({input:f,type:p.type})}for(const f of n.hub.injectionInputs??[]){const{resolvedInputs:g}=i(f);for(const p of g)h(p)}return{kind:"hub",resolvedInputs:Array.from(u.values())}}if(n.instance.resolvedInputs)return{kind:"instance",component:n.component,resolvedInputs:kje(n.instance.resolvedInputs,(u,h)=>{const f=n.component.inputs[h];return f?u.map(g=>({input:g,type:f.type})):(t.warn({msg:"input not found in the component",inputName:h,component:n.component}),[])}),resolvedOutputs:n.instance.resolvedOutputs??{},resolvedInjectionInputs:[],matchedInjectionInputs:[]};const r=new Map,o=(u,h)=>{let f=r.get(u);f||(f=new Map,r.set(u,f)),f.set(`${h.input.instanceId}:${h.input.output}`,h)},a=(u,h)=>{const f=n.component.inputs[u];if(!f){t.warn({msg:"input not found in the component",input:h,component:n.component});return}const{component:g,resolvedOutputs:p}=s(h);if(!g){t.warn({instanceId:n.instance.id,input:h},"no output found for the input");return}if(zT(g)){o(u,{input:h,type:f.type});return}for(const m of p)o(u,{input:m,type:f.type})};for(const[u,h]of Object.entries(n.instance.inputs??{}))for(const f of h)a(u,f);const l=new Map,c=new Map;for(const u of n.instance.injectionInputs??[]){const{resolvedInputs:h}=i(u);for(const f of h)l.set(`${f.input.instanceId}:${f.input.output}`,f)}for(const[u,h]of Object.entries(n.component.inputs??{})){const f=new Map(l),g=n.instance.hubInputs?.[u]??[];for(const p of g){const{resolvedInputs:m}=i(p);for(const v of m)f.set(`${v.input.instanceId}:${v.input.output}`,v)}for(const p of f.values())if(p.type===h.type){a(u,p.input);const m=`${p.input.instanceId}:${p.input.output}`;l.has(m)&&c.set(m,p)}}const d=Oje(Array.from(r.entries()).map(([u,h])=>[u,Array.from(h.values())]));return{kind:"instance",component:n.component,resolvedInputs:d,resolvedOutputs:n.instance.resolvedOutputs??{},resolvedInjectionInputs:Array.from(l.values()),matchedInjectionInputs:Array.from(c.values())}}});function tQe(n){if(n.kind!=="hub")throw new Error("Expected hub node");return n.resolvedInputs}function mL(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.resolvedInputs}function iQe(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.resolvedInjectionInputs}function bLe(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.matchedInjectionInputs}const nQe=n=>{const e=new DataView(n);let t="";for(let i=0;i<e.byteLength;i+=4)t+=e.getUint32(i).toString(16).padStart(8,"0");return t},sQe=n=>async(e,{outputFormat:t="hex"}={})=>{typeof e=="string"&&(e=new globalThis.TextEncoder().encode(e));const i=await globalThis.crypto.subtle.digest(n,e);return t==="hex"?nQe(i):i},rQe=sQe("SHA-256"),oQe=SJ({name:"input-hash-resolver",getNodeId:n=>n.instance.id,getNodeDependencies({resolvedInputs:n}){const e=[];for(const t of Object.values(n??{}))for(const i of t)e.push(i.input.instanceId);return e},async process({instance:n,component:e,resolvedInputs:t,sourceHash:i,state:s},r){let o=e.definitionHash+JSON.stringify(n.args??{});i&&(o+=i);const a=Object.entries(t).sort(([l],[c])=>l.localeCompare(c));for(const[l,c]of a){if(Object.keys(c).length===0)continue;o+=l;const d=c.map(u=>u.input.instanceId);d.sort();for(const u of d){const h=r.get(u);h&&(o+=h.inputHash,o+=h.outputHash)}}return{inputHash:await rQe(o),outputHash:s?.outputHash??""}}}),aQe=SJ({name:"validation-resolver",getNodeId:n=>n.instance.id,getNodeDependencies({resolvedInputs:n}){const e=[];for(const t of Object.values(n))for(const i of t)e.push(i.input.instanceId);return e},process({instance:n,component:e,resolvedInputs:t},i,s){const r=new vLe.Ajv({strict:!1});s.debug({instanceId:n.id},"validating instance");for(const[o,a]of Object.entries(e.args))if(!(!a.required&&!n.args?.[o])&&!r.validate(a.schema,n.args?.[o]))return s.debug({instanceId:n.id,argumentName:o},"invalid argument"),{status:"invalid-args",errorText:r.errorsText()};for(const o of Object.values(t))for(const a of o)if(i.get(a.input.instanceId)?.status!=="ok")return{status:"invalid-inputs",errorText:`instance "${a.input.instanceId}" is invalid`};for(const[o,a]of Object.entries(e.inputs))if(!(!a.required||a.multiple)&&(!t[o]||!t[o].length))return{status:"missing-inputs",errorText:`input "${o}" is missing`};return{status:"ok"}}}),AM=qe.object({id:qe.string().nanoid(),projectId:qe.string(),instanceId:qe.string(),terminalName:qe.string(),terminalTitle:qe.string(),createdAt:qe.coerce.date(),finishedAt:qe.coerce.date().optional()});function lQe(n,e,t){switch(t.type){case"component-updated":n[t.component.type]=t.component;break;case"entity-updated":e[t.entity.type]=t.entity;break;case"component-removed":delete n[t.componentType];break;case"entity-removed":delete e[t.entityType];break}}const cQe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let qB=(n=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(n|=0));for(;n--;)e+=cQe[t[n]&63];return e};var X0={exports:{}},OV,wce;function dQe(){if(wce)return OV;wce=1;function n(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}OV=e;function e(t,i,s){var r=s&&s.stringify||n,o=1;if(typeof t=="object"&&t!==null){var a=i.length+o;if(a===1)return t;var l=new Array(a);l[0]=r(t);for(var c=1;c<a;c++)l[c]=r(i[c]);return l.join(" ")}if(typeof t!="string")return t;var d=i.length;if(d===0)return t;for(var u="",h=1-o,f=-1,g=t&&t.length||0,p=0;p<g;){if(t.charCodeAt(p)===37&&p+1<g){switch(f=f>-1?f:0,t.charCodeAt(p+1)){case 100:case 102:if(h>=d||i[h]==null)break;f<p&&(u+=t.slice(f,p)),u+=Number(i[h]),f=p+2,p++;break;case 105:if(h>=d||i[h]==null)break;f<p&&(u+=t.slice(f,p)),u+=Math.floor(Number(i[h])),f=p+2,p++;break;case 79:case 111:case 106:if(h>=d||i[h]===void 0)break;f<p&&(u+=t.slice(f,p));var m=typeof i[h];if(m==="string"){u+="'"+i[h]+"'",f=p+2,p++;break}if(m==="function"){u+=i[h].name||"<anonymous>",f=p+2,p++;break}u+=r(i[h]),f=p+2,p++;break;case 115:if(h>=d)break;f<p&&(u+=t.slice(f,p)),u+=String(i[h]),f=p+2,p++;break;case 37:f<p&&(u+=t.slice(f,p)),u+="%",f=p+2,p++,h--;break}++h}++p}return f===-1?t:(f<g&&(u+=t.slice(f)),u)}return OV}var Ece;function uQe(){if(Ece)return X0.exports;Ece=1;const n=dQe();X0.exports=d;const e=x().console||{},t={mapHttpRequest:T,mapHttpResponse:T,wrapRequestSerializer:w,wrapResponseSerializer:w,wrapErrorSerializer:w,req:T,res:T,err:y,errWithCause:y};function i(N,A){return N==="silent"?1/0:A.levels.values[N]}const s=Symbol("pino.logFuncs"),r=Symbol("pino.hierarchy"),o={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function a(N,A){const B={logger:A,parent:N[r]};A[r]=B}function l(N,A,B){const V={};A.forEach(O=>{V[O]=B[O]?B[O]:e[O]||e[o[O]||"log"]||I}),N[s]=V}function c(N,A){return Array.isArray(N)?N.filter(function(V){return V!=="!stdSerializers.err"}):N===!0?Object.keys(A):!1}function d(N){N=N||{},N.browser=N.browser||{};const A=N.browser.transmit;if(A&&typeof A.send!="function")throw Error("pino: transmit option must have a send function");const B=N.browser.write||e;N.browser.write&&(N.browser.asObject=!0);const V=N.serializers||{},O=c(N.browser.serialize,V);let M=N.browser.serialize;Array.isArray(N.browser.serialize)&&N.browser.serialize.indexOf("!stdSerializers.err")>-1&&(M=!1);const P=Object.keys(N.customLevels||{}),W=["error","fatal","warn","info","debug","trace"].concat(P);typeof B=="function"&&W.forEach(function(_e){B[_e]=B}),(N.enabled===!1||N.browser.disabled)&&(N.level="silent");const H=N.level||"info",F=Object.create(B);F.log||(F.log=I),l(F,W,B),a({},F),Object.defineProperty(F,"levelVal",{get:Z}),Object.defineProperty(F,"level",{get:X,set:G});const U={transmit:A,serialize:O,asObject:N.browser.asObject,formatters:N.browser.formatters,levels:W,timestamp:C(N),messageKey:N.messageKey||"msg",onChild:N.onChild||I};F.levels=u(N),F.level=H,F.setMaxListeners=F.getMaxListeners=F.emit=F.addListener=F.on=F.prependListener=F.once=F.prependOnceListener=F.removeListener=F.removeAllListeners=F.listeners=F.listenerCount=F.eventNames=F.write=F.flush=I,F.serializers=V,F._serialize=O,F._stdErrSerialize=M,F.child=function(..._e){return he.call(this,U,..._e)},A&&(F._logEvent=S());function Z(){return i(this.level,this)}function X(){return this._level}function G(_e){if(_e!=="silent"&&!this.levels.values[_e])throw Error("unknown level "+_e);this._level=_e,g(this,U,F,"error"),g(this,U,F,"fatal"),g(this,U,F,"warn"),g(this,U,F,"info"),g(this,U,F,"debug"),g(this,U,F,"trace"),P.forEach(ee=>{g(this,U,F,ee)})}function he(_e,ee,Q){if(!ee)throw new Error("missing bindings for child Pino");Q=Q||{},O&&ee.serializers&&(Q.serializers=ee.serializers);const Y=Q.serializers;if(O&&Y){var z=Object.assign({},V,Y),j=N.browser.serialize===!0?Object.keys(z):O;delete ee.serializers,_([ee],j,z,this._stdErrSerialize)}function ie(ve){this._childLevel=(ve._childLevel|0)+1,this.bindings=ee,z&&(this.serializers=z,this._serialize=j),A&&(this._logEvent=S([].concat(ve._logEvent.bindings,ee)))}ie.prototype=this;const J=new ie(this);return a(this,J),J.child=function(...ve){return he.call(this,_e,...ve)},J.level=Q.level||this.level,_e.onChild(J),J}return F}function u(N){const A=N.customLevels||{},B=Object.assign({},d.levels.values,A),V=Object.assign({},d.levels.labels,h(A));return{values:B,labels:V}}function h(N){const A={};return Object.keys(N).forEach(function(B){A[N[B]]=B}),A}d.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},d.stdSerializers=t,d.stdTimeFunctions=Object.assign({},{nullTime:R,epochTime:D,unixTime:L,isoTime:k});function f(N){const A=[];N.bindings&&A.push(N.bindings);let B=N[r];for(;B.parent;)B=B.parent,B.logger.bindings&&A.push(B.logger.bindings);return A.reverse()}function g(N,A,B,V){if(Object.defineProperty(N,V,{value:i(N.level,B)>i(V,B)?I:B[s][V],writable:!0,enumerable:!0,configurable:!0}),N[V]===I){if(!A.transmit)return;const M=A.transmit.level||N.level,P=i(M,B);if(i(V,B)<P)return}N[V]=m(N,A,B,V);const O=f(N);O.length!==0&&(N[V]=p(O,N[V]))}function p(N,A){return function(){return A.apply(this,[...N,...arguments])}}function m(N,A,B,V){return function(O){return function(){const P=A.timestamp(),W=new Array(arguments.length),H=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var F=0;F<W.length;F++)W[F]=arguments[F];var U=!1;if(A.serialize&&(_(W,this._serialize,this.serializers,this._stdErrSerialize),U=!0),A.asObject||A.formatters?O.call(H,v(this,V,W,P,A)):O.apply(H,W),A.transmit){const Z=A.transmit.level||N._level,X=i(Z,B),G=i(V,B);if(G<X)return;b(this,{ts:P,methodLevel:V,methodValue:G,transmitValue:B.levels.values[A.transmit.level||N._level],send:A.transmit.send,val:i(N._level,B)},W,U)}}}(N[s][V])}function v(N,A,B,V,O){const{level:M,log:P=X=>X}=O.formatters||{},W=B.slice();let H=W[0];const F={};if(V&&(F.time=V),M){const X=M(A,N.levels.values[A]);Object.assign(F,X)}else F.level=N.levels.values[A];let U=(N._childLevel|0)+1;if(U<1&&(U=1),H!==null&&typeof H=="object"){for(;U--&&typeof W[0]=="object";)Object.assign(F,W.shift());H=W.length?n(W.shift(),W):void 0}else typeof H=="string"&&(H=n(W.shift(),W));return H!==void 0&&(F[O.messageKey]=H),P(F)}function _(N,A,B,V){for(const O in N)if(V&&N[O]instanceof Error)N[O]=d.stdSerializers.err(N[O]);else if(typeof N[O]=="object"&&!Array.isArray(N[O])&&A)for(const M in N[O])A.indexOf(M)>-1&&M in B&&(N[O][M]=B[M](N[O][M]))}function b(N,A,B,V=!1){const O=A.send,M=A.ts,P=A.methodLevel,W=A.methodValue,H=A.val,F=N._logEvent.bindings;V||_(B,N._serialize||Object.keys(N.serializers),N.serializers,N._stdErrSerialize===void 0?!0:N._stdErrSerialize),N._logEvent.ts=M,N._logEvent.messages=B.filter(function(U){return F.indexOf(U)===-1}),N._logEvent.level.label=P,N._logEvent.level.value=W,O(P,N._logEvent,H),N._logEvent=S(F)}function S(N){return{ts:0,messages:[],bindings:N||[],level:{label:"",value:0}}}function y(N){const A={type:N.constructor.name,msg:N.message,stack:N.stack};for(const B in N)A[B]===void 0&&(A[B]=N[B]);return A}function C(N){return typeof N.timestamp=="function"?N.timestamp:N.timestamp===!1?R:D}function T(){return{}}function w(N){return N}function I(){}function R(){return!1}function D(){return Date.now()}function L(){return Math.round(Date.now()/1e3)}function k(){return new Date(Date.now()).toISOString()}function x(){function N(A){return typeof A<"u"&&A}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return N(self)||N(window)||N(this)||{}}}return X0.exports.default=d,X0.exports.pino=d,X0.exports}var hQe=uQe();const fQe=yJ(hQe),B_=fQe({level:"info"});function Ip({name:n,getStoreId:e,create:t}){const i=new Map,s=(...r)=>{if(!wr())throw new Error("MultiStore composables must be called inside a setup function.");if(!r.length){const l=R9e(`store:${n}`);if(!l)throw new Error(`No store named "${n}" available in the parent scope.`);return l.storeDef()}const o=e(...r);let a=i.get(o);if(!a){const{on:l,trigger:c}=$s();a={storeDef:t({storeId:o,id:r,onDeactivated:l,logger:B_.child({storeId:o,storeName:n})}),refCount:0,triggerDeactivated:c},i.set(o,a)}return a.refCount++,yp(()=>{if(a.refCount--,a.refCount>0)return;i.delete(o),a.triggerDeactivated();const l=a.storeDef;l().$dispose();const c=cHe();delete c.state.value[o]}),x9e(`store:${n}`,a),a.storeDef()};return s.weak=(...r)=>{if(!wr())throw new Error("MultiStore composables must be called inside a setup function.");const o=e(...r),a=i.get(o);if(!a)throw new Error(`No store with id "${o}" found.`);return a.storeDef()},s}var li;function na(n,e,t){const i=typeof t,s=typeof n;if(i!=="undefined"){if(s!=="undefined"){if(t){if(s==="function"&&i===s)return function(a){return n(t(a))};if(e=n.constructor,e===t.constructor){if(e===Array)return t.concat(n);if(e===Map){var r=new Map(t);for(var o of n)r.set(o[0],o[1]);return r}if(e===Set){o=new Set(t);for(r of n.values())o.add(r);return o}}}return n}return t}return s==="undefined"?e:n}function ao(){return Object.create(null)}function Bu(n){return typeof n=="string"}function sS(n){return typeof n=="object"}function gQe(n){const e=[];for(const t of n.keys())e.push(t);return e}function _L(n,e){if(Bu(e))n=n[e];else for(let t=0;n&&t<e.length;t++)n=n[e[t]];return n}function pQe(n){let e=0;for(let t=0,i;t<n.length;t++)(i=n[t])&&e<i.length&&(e=i.length);return e}const mQe=/[^\p{L}\p{N}]+/u,_Qe=/(\d{3})/g,vQe=/(\D)(\d{3})/g,bQe=/(\d{3})(\D)/g,Tce=/[\u0300-\u036f]/g;function OM(n={}){if(!this||this.constructor!==OM)return new OM(...arguments);if(arguments.length)for(n=0;n<arguments.length;n++)this.assign(arguments[n]);else this.assign(n)}li=OM.prototype;li.assign=function(n){this.normalize=na(n.normalize,!0,this.normalize);let e=n.include,t=e||n.exclude||n.split,i;if(t||t===""){if(typeof t=="object"&&t.constructor!==RegExp){let s="";i=!e,e||(s+="\\p{Z}"),t.letter&&(s+="\\p{L}"),t.number&&(s+="\\p{N}",i=!!e),t.symbol&&(s+="\\p{S}"),t.punctuation&&(s+="\\p{P}"),t.control&&(s+="\\p{C}"),(t=t.char)&&(s+=typeof t=="object"?t.join(""):t);try{this.split=new RegExp("["+(e?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=t,i=t===!1||2>"a1a".split(t).length;this.numeric=na(n.numeric,i)}else{try{this.split=na(this.split,mQe)}catch{this.split=/\s+/}this.numeric=na(n.numeric,na(this.numeric,!0))}if(this.prepare=na(n.prepare,null,this.prepare),this.finalize=na(n.finalize,null,this.finalize),t=n.filter,this.filter=typeof t=="function"?t:na(t&&new Set(t),null,this.filter),this.dedupe=na(n.dedupe,!1,this.dedupe),this.matcher=na((t=n.matcher)&&new Map(t),null,this.matcher),this.mapper=na((t=n.mapper)&&new Map(t),null,this.mapper),this.stemmer=na((t=n.stemmer)&&new Map(t),null,this.stemmer),this.replacer=na(n.replacer,null,this.replacer),this.minlength=na(n.minlength,1,this.minlength),this.maxlength=na(n.maxlength,0,this.maxlength),this.rtl=na(n.rtl,!1,this.rtl),(this.cache=t=na(n.cache,!0,this.cache))&&(this.H=null,this.S=typeof t=="number"?t:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this};li.addStemmer=function(n,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(n,e),this.A+=(this.A?"|":"")+n,this.N=null,this.cache&&rS(this),this};li.addFilter=function(n){return typeof n=="function"?this.filter=n:(this.filter||(this.filter=new Set),this.filter.add(n)),this.cache&&rS(this),this};li.addMapper=function(n,e){return typeof n=="object"?this.addReplacer(n,e):1<n.length?this.addMatcher(n,e):(this.mapper||(this.mapper=new Map),this.mapper.set(n,e),this.cache&&rS(this),this)};li.addMatcher=function(n,e){return typeof n=="object"?this.addReplacer(n,e):2>n.length&&(this.dedupe||this.mapper)?this.addMapper(n,e):(this.matcher||(this.matcher=new Map),this.matcher.set(n,e),this.h+=(this.h?"|":"")+n,this.M=null,this.cache&&rS(this),this)};li.addReplacer=function(n,e){return typeof n=="string"?this.addMatcher(n,e):(this.replacer||(this.replacer=[]),this.replacer.push(n,e),this.cache&&rS(this),this)};li.encode=function(n){if(this.cache&&n.length<=this.K)if(this.H){if(this.B.has(n))return this.B.get(n)}else this.H=setTimeout(rS,50,this);this.normalize&&(typeof this.normalize=="function"?n=this.normalize(n):n=Tce?n.normalize("NFKD").replace(Tce,"").toLowerCase():n.toLowerCase()),this.prepare&&(n=this.prepare(n)),this.numeric&&3<n.length&&(n=n.replace(vQe,"$1 $2").replace(bQe,"$1 $2").replace(_Qe,"$1 "));const e=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let t=[],i=this.split||this.split===""?n.split(this.split):n;for(let r=0,o,a;r<i.length;r++)if((o=a=i[r])&&!(o.length<this.minlength)){if(e)t.push(o);else if(!this.filter||(typeof this.filter=="function"?this.filter(o):!this.filter.has(o))){if(this.cache&&o.length<=this.L)if(this.H){var s=this.G.get(o);if(s||s===""){s&&t.push(s);continue}}else this.H=setTimeout(rS,50,this);if(this.stemmer&&2<o.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),s=o,o=o.replace(this.N,l=>this.stemmer.get(l)),s!==o&&this.filter&&o.length>=this.minlength&&(typeof this.filter=="function"?!this.filter(o):this.filter.has(o))&&(o="")),o&&(this.mapper||this.dedupe&&1<o.length)){s="";for(let l=0,c="",d,u;l<o.length;l++)d=o.charAt(l),d===c&&this.dedupe||((u=this.mapper&&this.mapper.get(d))||u===""?u===c&&this.dedupe||!(c=u)||(s+=u):s+=c=d);o=s}if(this.matcher&&1<o.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),o=o.replace(this.M,l=>this.matcher.get(l))),o&&this.replacer)for(s=0;o&&s<this.replacer.length;s+=2)o=o.replace(this.replacer[s],this.replacer[s+1]);this.cache&&a.length<=this.L&&(this.G.set(a,o),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),o&&t.push(o)}}return this.finalize&&(t=this.finalize(t)||t),this.cache&&n.length<=this.K&&(this.B.set(n,t),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),t};function rS(n){n.H=null,n.B.clear(),n.G.clear()}let Ly,Z0;async function SQe(n){n=n.data;var e=n.task;const t=n.id;let i=n.args;switch(e){case"init":Z0=n.options||{},(e=n.factory)?(Function("return "+e)()(self),Ly=new self.FlexSearch.Index(Z0),delete self.FlexSearch):Ly=new Qu(Z0),postMessage({id:t});break;default:let s;e==="export"&&(i[1]?(i[0]=Z0.export,i[2]=0,i[3]=1):i=null),e==="import"?i[0]&&(n=await Z0.import.call(Ly,i[0]),Ly.import(i[0],n)):(s=i&&Ly[e].apply(Ly,i))&&s.then&&(s=await s),postMessage(e==="search"?{id:t,msg:s}:{id:t})}}function TJ(n){J0.call(n,"add"),J0.call(n,"append"),J0.call(n,"search"),J0.call(n,"update"),J0.call(n,"remove")}let Dz,Ice,AA;function yQe(){Dz=AA=0}function J0(n){this[n+"Async"]=function(){const e=arguments;var t=e[e.length-1];let i;if(typeof t=="function"&&(i=t,delete e[e.length-1]),Dz?AA||(AA=Date.now()-Ice>=this.priority*this.priority*3):(Dz=setTimeout(yQe,0),Ice=Date.now()),AA){const r=this;return new Promise(o=>{setTimeout(function(){o(r[n+"Async"].apply(r,e))},0)})}const s=this[n].apply(this,e);return t=s.then?s:new Promise(r=>r(s)),i&&t.then(i),t}}let vC=0;function vL(n={}){function e(o){function a(l){l=l.data||l;const c=l.id,d=c&&s.h[c];d&&(d(l.msg),delete s.h[c])}if(this.worker=o,this.h=ao(),this.worker)return i?this.worker.on("message",a):this.worker.onmessage=a,n.config?new Promise(function(l){s.h[++vC]=function(){l(s),1e9<vC&&(vC=0)},s.worker.postMessage({id:vC,task:"init",factory:t,options:n})}):(this.worker.postMessage({task:"init",factory:t,options:n}),this.priority=n.priority||4,this)}if(!this||this.constructor!==vL)return new vL(n);let t=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;t&&(t=t.toString());const i=typeof window>"u",s=this,r=CQe(t,i,n.worker);return r.then?r.then(function(o){return e.call(s,o)}):e.call(this,r)}V_("add");V_("append");V_("search");V_("update");V_("remove");V_("clear");V_("export");V_("import");TJ(vL.prototype);function V_(n){vL.prototype[n]=function(){const e=this,t=[].slice.call(arguments);var i=t[t.length-1];let s;return typeof i=="function"&&(s=i,t.pop()),i=new Promise(function(r){n==="export"&&typeof t[0]=="function"&&(t[0]=null),e.h[++vC]=r,e.worker.postMessage({task:n,id:vC,args:t})}),s?(i.then(s),this):i}}function CQe(n,e,t){return e?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):re(()=>import("./BIHI7g3E.js"),[],import.meta.url).then(function(i){return new i.Worker(import.meta.dirname+"/node/node.mjs")}):n?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+SQe.toString()],{type:"text/javascript"}))):new window.Worker(typeof t=="string"?t:import.meta.url.replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function IJ(n,e=0){let t=[],i=[];e&&(e=25e4/e*5e3|0);for(const s of n.entries())i.push(s),i.length===e&&(t.push(i),i=[]);return i.length&&t.push(i),t}function LJ(n,e){e||(e=new Map);for(let t=0,i;t<n.length;t++)i=n[t],e.set(i[0],i[1]);return e}function SLe(n,e=0){let t=[],i=[];e&&(e=25e4/e*1e3|0);for(const s of n.entries())i.push([s[0],IJ(s[1])[0]]),i.length===e&&(t.push(i),i=[]);return i.length&&t.push(i),t}function yLe(n,e){e||(e=new Map);for(let t=0,i,s;t<n.length;t++)i=n[t],s=e.get(i[0]),e.set(i[0],LJ(i[1],s));return e}function CLe(n){let e=[],t=[];for(const i of n.keys())t.push(i),t.length===25e4&&(e.push(t),t=[]);return t.length&&e.push(t),e}function wLe(n,e){e||(e=new Set);for(let t=0;t<n.length;t++)e.add(n[t]);return e}function MM(n,e,t,i,s,r,o=0){const a=i&&i.constructor===Array;var l=a?i.shift():i;if(!l)return this.export(n,e,s,r+1);if((l=n((e?e+".":"")+(o+1)+"."+t,JSON.stringify(l)))&&l.then){const c=this;return l.then(function(){return MM.call(c,n,e,t,a?i:null,s,r,o+1)})}return MM.call(this,n,e,t,a?i:null,s,r,o+1)}function Lce(n,e){let t="";for(const i of n.entries()){n=i[0];const s=i[1];let r="";for(let o=0,a;o<s.length;o++){a=s[o]||[""];let l="";for(let c=0;c<a.length;c++)l+=(l?",":"")+(e==="string"?'"'+a[c]+'"':a[c]);l="["+l+"]",r+=(r?",":"")+l}r='["'+n+'",['+r+"]]",t+=(t?",":"")+r}return t}function xce(n,e,t,i){let s=[];for(let r=0,o;r<n.index.length;r++)if(o=n.index[r],e>=o.length)e-=o.length;else{e=o[i?"splice":"slice"](e,t);const a=e.length;if(a&&(s=s.length?s.concat(e):e,t-=a,i&&(n.length-=a),!t))break;e=0}return s}function oS(n){if(!this||this.constructor!==oS)return new oS(n);this.index=n?[n]:[],this.length=n?n.length:0;const e=this;return new Proxy([],{get(t,i){if(i==="length")return e.length;if(i==="push")return function(s){e.index[e.index.length-1].push(s),e.length++};if(i==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(i==="indexOf")return function(s){let r=0;for(let o=0,a,l;o<e.index.length;o++){if(a=e.index[o],l=a.indexOf(s),0<=l)return r+l;r+=a.length}return-1};if(i==="includes")return function(s){for(let r=0;r<e.index.length;r++)if(e.index[r].includes(s))return!0;return!1};if(i==="slice")return function(s,r){return xce(e,s||0,r||e.length,!1)};if(i==="splice")return function(s,r){return xce(e,s||0,r||e.length,!0)};if(i==="constructor")return Array;if(typeof i!="symbol")return(t=e.index[i/2**31|0])&&t[i]},set(t,i,s){return t=i/2**31|0,(e.index[t]||(e.index[t]=[]))[i]=s,e.length++,!0}})}oS.prototype.clear=function(){this.index.length=0};oS.prototype.destroy=function(){this.proxy=this.index=null};oS.prototype.push=function(){};function lf(n=8){if(!this||this.constructor!==lf)return new lf(n);this.index=ao(),this.h=[],this.size=0,32<n?(this.B=TLe,this.A=BigInt(n)):(this.B=ELe,this.A=n)}lf.prototype.get=function(n){const e=this.index[this.B(n)];return e&&e.get(n)};lf.prototype.set=function(n,e){var t=this.B(n);let i=this.index[t];i?(t=i.size,i.set(n,e),(t-=i.size)&&this.size++):(this.index[t]=i=new Map([[n,e]]),this.h.push(i),this.size++)};function Yu(n=8){if(!this||this.constructor!==Yu)return new Yu(n);this.index=ao(),this.h=[],this.size=0,32<n?(this.B=TLe,this.A=BigInt(n)):(this.B=ELe,this.A=n)}Yu.prototype.add=function(n){var e=this.B(n);let t=this.index[e];t?(e=t.size,t.add(n),(e-=t.size)&&this.size++):(this.index[e]=t=new Set([n]),this.h.push(t),this.size++)};li=lf.prototype;li.has=Yu.prototype.has=function(n){const e=this.index[this.B(n)];return e&&e.has(n)};li.delete=Yu.prototype.delete=function(n){const e=this.index[this.B(n)];e&&e.delete(n)&&this.size--};li.clear=Yu.prototype.clear=function(){this.index=ao(),this.h=[],this.size=0};li.values=Yu.prototype.values=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].values())yield e};li.keys=Yu.prototype.keys=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].keys())yield e};li.entries=Yu.prototype.entries=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].entries())yield e};function ELe(n){let e=2**this.A-1;if(typeof n=="number")return n&e;let t=0,i=this.A+1;for(let s=0;s<n.length;s++)t=(t*i^n.charCodeAt(s))&e;return this.A===32?t+2**31:t}function TLe(n){let e=BigInt(2)**this.A-BigInt(1);var t=typeof n;if(t==="bigint")return n&e;if(t==="number")return BigInt(n)&e;t=BigInt(0);let i=this.A+BigInt(1);for(let s=0;s<n.length;s++)t=(t*i^BigInt(n.charCodeAt(s)))&e;return t}Yw.prototype.add=function(n,e,t){if(sS(n)&&(e=n,n=_L(e,this.key)),e&&(n||n===0)){if(!t&&this.reg.has(n))return this.update(n,e);for(let a=0,l;a<this.field.length;a++){l=this.D[a];var i=this.index.get(this.field[a]);if(typeof l=="function"){var s=l(e);s&&i.add(n,s,!1,!0)}else s=l.I,(!s||s(e))&&(l.constructor===String?l=[""+l]:Bu(l)&&(l=[l]),kz(e,l,this.J,0,i,n,l[0],t))}if(this.tag)for(i=0;i<this.F.length;i++){var r=this.F[i];s=this.tag.get(this.R[i]);let a=ao();if(typeof r=="function"){if(r=r(e),!r)continue}else{var o=r.I;if(o&&!o(e))continue;r.constructor===String&&(r=""+r),r=_L(e,r)}if(s&&r){Bu(r)&&(r=[r]);for(let l=0,c,d;l<r.length;l++)if(c=r[l],!a[c]&&(a[c]=1,(o=s.get(c))?d=o:s.set(c,d=[]),!t||!d.includes(n))){if(d.length===2**31-1){if(o=new oS(d),this.fastupdate)for(let u of this.reg.values())u.includes(d)&&(u[u.indexOf(d)]=o);s.set(c,d=o)}d.push(n),this.fastupdate&&((o=this.reg.get(n))?o.push(d):this.reg.set(n,[d]))}}}if(this.store&&(!t||!this.store.has(n))){let a;if(this.C){a=ao();for(let l=0,c;l<this.C.length;l++){if(c=this.C[l],(t=c.I)&&!t(e))continue;let d;if(typeof c=="function"){if(d=c(e),!d)continue;c=[c.V]}else if(Bu(c)||c.constructor===String){a[c]=e[c];continue}Nz(e,a,c,0,c[0],d)}}this.store.set(n,a||e)}this.worker&&(this.fastupdate||this.reg.add(n))}return this};function Nz(n,e,t,i,s,r){if(n=n[s],i===t.length-1)e[s]=r||n;else if(n)if(n.constructor===Array)for(e=e[s]=Array(n.length),s=0;s<n.length;s++)Nz(n,e,t,i,s);else e=e[s]||(e[s]=ao()),s=t[++i],Nz(n,e,t,i,s)}function kz(n,e,t,i,s,r,o,a){if(n=n[o])if(i===e.length-1){if(n.constructor===Array){if(t[i]){for(e=0;e<n.length;e++)s.add(r,n[e],!0,!0);return}n=n.join(" ")}s.add(r,n,a,!0)}else if(n.constructor===Array)for(o=0;o<n.length;o++)kz(n,e,t,i,s,r,o,a);else o=e[++i],kz(n,e,t,i,s,r,o,a);else s.db&&s.remove(r)}function ILe(n,e,t,i,s,r,o){const a=n.length;let l=[],c,d;c=ao();for(let u=0,h,f,g,p;u<e;u++)for(let m=0;m<a;m++)if(g=n[m],u<g.length&&(h=g[u]))for(let v=0;v<h.length;v++){if(f=h[v],(d=c[f])?c[f]++:(d=0,c[f]=1),p=l[d]||(l[d]=[]),!o){let _=u+(m||!s?0:r||0);p=p[_]||(p[_]=[])}if(p.push(f),o&&t&&d===a-1&&p.length-i===t)return i?p.slice(i):p}if(n=l.length)if(s)l=1<l.length?LLe(l,t,i,o,r):(l=l[0]).length>t||i?l.slice(i,t+i):l;else{if(n<a)return[];if(l=l[n-1],t||i)if(o)(l.length>t||i)&&(l=l.slice(i,t+i));else{s=[];for(let u=0,h;u<l.length;u++)if(h=l[u],h.length>i)i-=h.length;else if((h.length>t||i)&&(h=h.slice(i,t+i),t-=h.length,i&&(i-=h.length)),s.push(h),!t)break;l=1<s.length?[].concat.apply([],s):s[0]}}return l}function LLe(n,e,t,i,s){const r=[],o=ao();let a;var l=n.length;let c;if(i){for(s=l-1;0<=s;s--)if(c=(i=n[s])&&i.length){for(l=0;l<c;l++)if(a=i[l],!o[a]){if(o[a]=1,t)t--;else if(r.push(a),r.length===e)return r}}}else for(let d=l-1,u,h=0;0<=d;d--){u=n[d];for(let f=0;f<u.length;f++)if(c=(i=u[f])&&i.length){for(let g=0;g<c;g++)if(a=i[g],!o[a])if(o[a]=1,t)t--;else{let p=(f+(d<l-1&&s||0))/(d+1)|0;if((r[p]||(r[p]=[])).push(a),++h===e)return r}}}return r}function wQe(n,e,t){const i=ao(),s=[];for(let r=0,o;r<e.length;r++){o=e[r];for(let a=0;a<o.length;a++)i[o[a]]=1}if(t)for(let r=0,o;r<n.length;r++)o=n[r],i[o]&&(s.push(o),i[o]=0);else for(let r=0,o,a;r<n.result.length;r++)for(o=n.result[r],e=0;e<o.length;e++)a=o[e],i[a]&&((s[r]||(s[r]=[])).push(a),i[a]=0);return s}function xJ(n,e,t,i){if(!n.length)return n;if(n.length===1)return n=n[0],n=t||n.length>e?e?n.slice(t,t+e):n.slice(t):n,i?zm.call(this,n):n;let s=[];for(let r=0,o,a;r<n.length;r++)if((o=n[r])&&(a=o.length)){if(t){if(t>=a){t-=a;continue}t<a&&(o=e?o.slice(t,t+e):o.slice(t),a=o.length,t=0)}if(a>e&&(o=o.slice(0,e),a=e),!s.length&&a>=e)return i?zm.call(this,o):o;if(s.push(o),e-=a,!e)break}return s=1<s.length?[].concat.apply([],s):s[0],i?zm.call(this,s):s}function KB(n,e,t){var i=t[0];if(i.then)return Promise.all(t).then(function(d){return n[e].apply(n,d)});if(i[0]&&i[0].index)return n[e].apply(n,i);i=[];let s=[],r=0,o=0,a,l,c;for(let d=0,u;d<t.length;d++)if(u=t[d]){let h;if(u.constructor===or)h=u.result;else if(u.constructor===Array)h=u;else if(r=u.limit||0,o=u.offset||0,c=u.suggest,l=u.resolve,a=u.enrich&&l,u.index)u.resolve=!1,h=u.index.search(u).result,u.resolve=l;else if(u.and)h=n.and(u.and);else if(u.or)h=n.or(u.or);else if(u.xor)h=n.xor(u.xor);else if(u.not)h=n.not(u.not);else continue;if(h.then)s.push(h);else if(h.length)i[d]=h;else if(!c&&(e==="and"||e==="xor")){i=[];break}}return{O:i,P:s,limit:r,offset:o,enrich:a,resolve:l,suggest:c}}or.prototype.or=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r}=KB(this,"or",arguments);return xLe.call(this,n,e,t,i,s,r)};function xLe(n,e,t,i,s,r){if(e.length){const o=this;return Promise.all(e).then(function(a){n=[];for(let l=0,c;l<a.length;l++)(c=a[l]).length&&(n[l]=c);return xLe.call(o,n,[],t,i,s,r)})}return n.length&&(this.result.length&&n.push(this.result),2>n.length?this.result=n[0]:(this.result=LLe(n,t,i,!1,this.h),i=0)),r?this.resolve(t,i,s):this}or.prototype.and=function(){let n=this.result.length,e,t,i,s;if(!n){const r=arguments[0];r&&(n=!!r.suggest,s=r.resolve,e=r.limit,t=r.offset,i=r.enrich&&s)}if(n){const{O:r,P:o,limit:a,offset:l,enrich:c,resolve:d,suggest:u}=KB(this,"and",arguments);return RLe.call(this,r,o,a,l,c,d,u)}return s?this.resolve(e,t,i):this};function RLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return RLe.call(a,n,[],t,i,s,r,o)})}if(n.length)if(this.result.length&&n.unshift(this.result),2>n.length)this.result=n[0];else{if(e=pQe(n))return this.result=ILe(n,e,t,i,o,this.h,r),r?s?zm.call(this.index,this.result):this.result:this;this.result=[]}else o||(this.result=n);return r?this.resolve(t,i,s):this}or.prototype.xor=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r,suggest:o}=KB(this,"xor",arguments);return DLe.call(this,n,e,t,i,s,r,o)};function DLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return DLe.call(a,n,[],t,i,s,r,o)})}if(n.length)if(this.result.length&&n.unshift(this.result),2>n.length)this.result=n[0];else return this.result=EQe.call(this,n,t,i,r,this.h),r?s?zm.call(this.index,this.result):this.result:this;else o||(this.result=n);return r?this.resolve(t,i,s):this}function EQe(n,e,t,i,s){const r=[],o=ao();let a=0;for(let l=0,c;l<n.length;l++)if(c=n[l]){a<c.length&&(a=c.length);for(let d=0,u;d<c.length;d++)if(u=c[d])for(let h=0,f;h<u.length;h++)f=u[h],o[f]=o[f]?2:1}for(let l=0,c,d=0;l<a;l++)for(let u=0,h;u<n.length;u++)if((h=n[u])&&(c=h[l])){for(let f=0,g;f<c.length;f++)if(g=c[f],o[g]===1)if(t)t--;else if(i){if(r.push(g),r.length===e)return r}else{const p=l+(u?s:0);if(r[p]||(r[p]=[]),r[p].push(g),++d===e)return r}}return r}or.prototype.not=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r,suggest:o}=KB(this,"not",arguments);return NLe.call(this,n,e,t,i,s,r,o)};function NLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return NLe.call(a,n,[],t,i,s,r,o)})}if(n.length&&this.result.length)this.result=TQe.call(this,n,t,i,r);else if(r)return this.resolve(t,i,s);return r?s?zm.call(this.index,this.result):this.result:this}function TQe(n,e,t,i){const s=[];n=new Set(n.flat().flat());for(let r=0,o,a=0;r<this.result.length;r++)if(o=this.result[r]){for(let l=0,c;l<o.length;l++)if(c=o[l],!n.has(c)){if(t)t--;else if(i){if(s.push(c),s.length===e)return s}else if(s[r]||(s[r]=[]),s[r].push(c),++a===e)return s}}return s}function or(n){if(!this||this.constructor!==or)return new or(n);if(n&&n.index)return n.resolve=!1,this.index=n.index,this.h=n.boost||0,this.result=n.index.search(n).result,this;this.index=null,this.result=n||[],this.h=0}or.prototype.limit=function(n){if(this.result.length){const e=[];for(let t=0,i;t<this.result.length;t++)if(i=this.result[t])if(i.length<=n){if(e[t]=i,n-=i.length,!n)break}else{e[t]=i.slice(0,n);break}this.result=e}return this};or.prototype.offset=function(n){if(this.result.length){const e=[];for(let t=0,i;t<this.result.length;t++)(i=this.result[t])&&(i.length<=n?n-=i.length:(e[t]=i.slice(n),n=0));this.result=e}return this};or.prototype.boost=function(n){return this.h+=n,this};or.prototype.resolve=function(n,e,t){const i=this.result,s=this.index;return this.result=this.index=null,i.length?(typeof n=="object"&&(t=n.enrich,e=n.offset,n=n.limit),xJ.call(s,i,n||100,e,t)):i};Yw.prototype.search=function(n,e,t,i){t||(!e&&sS(n)?(t=n,n=""):sS(e)&&(t=e,e=0));let s=[];var r=[],o;let a,l,c,d=0;var u=!0;let h;if(t){t.constructor===Array&&(t={index:t}),n=t.query||n;var f=t.pluck;a=t.merge,l=f||t.field||(l=t.index)&&(l.index?null:l),c=this.tag&&t.tag;var g=t.suggest;u=t.resolve!==!1,u||f||!(l=l||this.field)||(Bu(l)?f=l:(l.constructor===Array&&l.length===1&&(l=l[0]),f=l.field||l.index)),h=(o=this.store&&t.enrich&&u)&&t.highlight,e=t.limit||e;var p=t.offset||0;if(e||(e=100),c&&(!this.db||!i)){c.constructor!==Array&&(c=[c]);var m=[];for(let S=0,y;S<c.length;S++)if(y=c[S],y.field&&y.tag){var v=y.tag;if(v.constructor===Array)for(var _=0;_<v.length;_++)m.push(y.field,v[_]);else m.push(y.field,v)}else{v=Object.keys(y);for(let C=0,T,w;C<v.length;C++)if(T=v[C],w=y[T],w.constructor===Array)for(_=0;_<w.length;_++)m.push(T,w[_]);else m.push(T,w)}if(c=m,!n){if(u=[],m.length)for(r=0;r<m.length;r+=2){if(this.db){if(f=this.index.get(m[r]),!f)continue;u.push(f=f.db.tag(m[r+1],e,p,o))}else f=IQe.call(this,m[r],m[r+1],e,p,o);s.push({field:m[r],tag:m[r+1],result:f})}return u.length?Promise.all(u).then(function(S){for(let y=0;y<S.length;y++)s[y].result=S[y];return s}):s}}l&&l.constructor!==Array&&(l=[l])}l||(l=this.field),m=!i&&(this.worker||this.db)&&[];let b;for(let S=0,y,C,T;S<l.length;S++){if(C=l[S],this.db&&this.tag&&!this.D[S])continue;let w;if(Bu(C)||(w=C,C=w.field,n=w.query||n,e=w.limit||e,p=w.offset||p,g=w.suggest||g,o=this.store&&(w.enrich||o)),i)y=i[S];else if(v=w||t,_=this.index.get(C),c&&(this.db&&(v.tag=c,b=_.db.support_tag_search,v.field=l),b||(v.enrich=!1)),m){m[S]=_.search(n,e,v),v&&o&&(v.enrich=o);continue}else y=_.search(n,e,v),v&&o&&(v.enrich=o);if(T=y&&(u?y.length:y.result.length),c&&T){if(v=[],_=0,this.db&&i){if(!b)for(let I=l.length;I<i.length;I++){let R=i[I];if(R&&R.length)_++,v.push(R);else if(!g)return u?s:new or(s)}}else for(let I=0,R,D;I<c.length;I+=2){if(R=this.tag.get(c[I]),!R){if(g)continue;return u?s:new or(s)}if(D=(R=R&&R.get(c[I+1]))&&R.length)_++,v.push(R);else if(!g)return u?s:new or(s)}if(_){if(y=wQe(y,v,u),T=y.length,!T&&!g)return u?y:new or(y);_--}}if(T)r[d]=C,s.push(y),d++;else if(l.length===1)return u?s:new or(s)}if(m){if(this.db&&c&&c.length&&!b)for(o=0;o<c.length;o+=2){if(r=this.index.get(c[o]),!r){if(g)continue;return u?s:new or(s)}m.push(r.db.tag(c[o+1],e,p,!1))}const S=this;return Promise.all(m).then(function(y){return y.length?S.search(n,e,t,y):y})}if(!d)return u?s:new or(s);if(f&&(!o||!this.store))return s[0];for(m=[],p=0;p<r.length;p++){if(g=s[p],o&&g.length&&typeof g[0].doc>"u"&&(this.db?m.push(g=this.index.get(this.field[0]).db.enrich(g)):g=zm.call(this,g)),f)return u?g:new or(g);s[p]={field:r[p],result:g}}if(o&&this.db&&m.length){const S=this;return Promise.all(m).then(function(y){for(let C=0;C<y.length;C++)s[C].result=y[C];return a?Dce(s,e):h?Rce(s,n,S.index,S.field,S.D,h):s})}return a?Dce(s,e):h?Rce(s,n,this.index,this.field,this.D,h):s};function Rce(n,e,t,i,s,r){let o,a,l;for(let c=0,d,u,h,f;c<n.length;c++){let g=n[c].result;d=n[c].field,h=t.get(d),u=h.encoder,l=h.tokenize,f=s[i.indexOf(d)],u!==o&&(o=u,a=o.encode(e));for(let p=0;p<g.length;p++){let m="",v=_L(g[p].doc,f).split(/\s+/);for(let _=0,b,S;_<v.length;_++){b=v[_],S=o.encode(b).join(" ");let y;if(S&&b)for(let C=0,T;C<a.length;C++)if(T=a[C],l==="strict"){if(S===T){m+=(m?" ":"")+r.replace("$1",b),y=!0;break}}else{const w=S.indexOf(T);if(-1<w){m+=(m?" ":"")+b.substring(0,w)+r.replace("$1",b.substring(w,T.length))+b.substring(w+T.length),y=!0;break}}y||(m+=(m?" ":"")+v[_])}g[p].highlight=m}}return n}function Dce(n,e){const t=[],i=ao();for(let s=0,r,o;s<n.length;s++){r=n[s],o=r.result;for(let a=0,l,c,d;a<o.length;a++)if(c=o[a],typeof c!="object"&&(c={id:c}),l=c.id,d=i[l])d.push(r.field);else{if(t.length===e)return t;c.field=i[l]=[r.field],t.push(c)}}return t}function IQe(n,e,t,i,s){if(n=this.tag.get(n),!n)return[];if((e=(n=n&&n.get(e))&&n.length-i)&&0<e)return(e>t||i)&&(n=n.slice(i,i+t)),s&&(n=zm.call(this,n)),n}function zm(n){if(!this||!this.store)return n;const e=Array(n.length);for(let t=0,i;t<n.length;t++)i=n[t],e[t]={id:i,doc:this.store.get(i)};return e}function Yw(n){if(!this||this.constructor!==Yw)return new Yw(n);const e=n.document||n.doc||n;let t,i;if(this.D=[],this.field=[],this.J=[],this.key=(t=e.key||e.id)&&PM(t,this.J)||"id",(i=n.keystore||0)&&(this.keystore=i),this.fastupdate=!!n.fastupdate,this.reg=!this.fastupdate||n.worker||n.db?i?new Yu(i):new Set:i?new lf(i):new Map,this.C=(t=e.store||null)&&t&&t!==!0&&[],this.store=t&&(i?new lf(i):new Map),this.cache=(t=n.cache||null)&&new KS(t),n.cache=!1,this.worker=n.worker,this.priority=n.priority||4,this.index=LQe.call(this,n,e),this.tag=null,(t=e.tag)&&(typeof t=="string"&&(t=[t]),t.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,r,o;s<t.length;s++){if(r=t[s],o=r.field||r,!o)throw Error("The tag field from the document descriptor is undefined.");r.custom?this.F[s]=r.custom:(this.F[s]=PM(o,this.J),r.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=r.filter)),this.R[s]=o,this.tag.set(o,new Map)}}if(this.worker){this.fastupdate=!1,n=[];for(const s of this.index.values())s.then&&n.push(s);if(n.length){const s=this;return Promise.all(n).then(function(r){let o=0;for(const a of s.index.entries()){const l=a[0];a[1].then&&s.index.set(l,r[o++])}return s})}}else n.db&&(this.fastupdate=!1,this.mount(n.db))}li=Yw.prototype;li.mount=function(n){let e=this.field;if(this.tag)for(let s=0,r;s<this.R.length;s++){r=this.R[s];var t=void 0;this.index.set(r,t=new Qu({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(r),t.tag=this.tag.get(r)}t=[];const i={db:n.db,type:n.type,fastupdate:n.fastupdate};for(let s=0,r,o;s<e.length;s++){i.field=o=e[s],r=this.index.get(o);const a=new n.constructor(n.id,i);a.id=n.id,t[s]=a.mount(r),r.document=!0,s?r.bypass=!0:r.store=this.store}return this.db=!0,Promise.all(t)};li.commit=async function(n,e){const t=[];for(const i of this.index.values())t.push(i.commit(n,e));await Promise.all(t),this.reg.clear()};li.destroy=function(){const n=[];for(const e of this.index.values())n.push(e.destroy());return Promise.all(n)};function LQe(n,e){const t=new Map;let i=e.index||e.field||e;Bu(i)&&(i=[i]);for(let s=0,r,o;s<i.length;s++){if(r=i[s],Bu(r)||(o=r,r=r.field),o=sS(o)?Object.assign({},n,o):n,this.worker){const a=new vL(o);t.set(r,a)}this.worker||t.set(r,new Qu(o,this.reg)),o.custom?this.D[s]=o.custom:(this.D[s]=PM(r,this.J),o.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=o.filter)),this.field[s]=r}if(this.C){n=e.store,Bu(n)&&(n=[n]);for(let s=0,r,o;s<n.length;s++)r=n[s],o=r.field||r,r.custom?(this.C[s]=r.custom,r.custom.V=o):(this.C[s]=PM(o,this.J),r.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=r.filter))}return t}function PM(n,e){const t=n.split(":");let i=0;for(let s=0;s<t.length;s++)n=t[s],n[n.length-1]==="]"&&(n=n.substring(0,n.length-2))&&(e[i]=!0),n&&(t[i++]=n);return i<t.length&&(t.length=i),1<i?t:t[0]}li.append=function(n,e){return this.add(n,e,!0)};li.update=function(n,e){return this.remove(n).add(n,e)};li.remove=function(n){sS(n)&&(n=_L(n,this.key));for(var e of this.index.values())e.remove(n,!0);if(this.reg.has(n)){if(this.tag&&!this.fastupdate)for(let t of this.tag.values())for(let i of t){e=i[0];const s=i[1],r=s.indexOf(n);-1<r&&(1<s.length?s.splice(r,1):t.delete(e))}this.store&&this.store.delete(n),this.reg.delete(n)}return this.cache&&this.cache.remove(n),this};li.clear=function(){const n=[];for(const e of this.index.values()){const t=e.clear();t.then&&n.push(t)}if(this.tag)for(const e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),n.length?Promise.all(n):this};li.contain=function(n){return this.db?this.index.get(this.field[0]).db.has(n):this.reg.has(n)};li.cleanup=function(){for(const n of this.index.values())n.cleanup();return this};li.get=function(n){return this.db?this.index.get(this.field[0]).db.enrich(n).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(n)||null};li.set=function(n,e){return typeof n=="object"&&(e=n,n=_L(e,this.key)),this.store.set(n,e),this};li.searchCache=kLe;li.export=function(n,e,t=0,i=0){if(t<this.field.length){const o=this.field[t];if((e=this.index.get(o).export(n,o,t,i=1))&&e.then){const a=this;return e.then(function(){return a.export(n,o,t+1)})}return this.export(n,o,t+1)}let s,r;switch(i){case 0:s="reg",r=CLe(this.reg),e=null;break;case 1:s="tag",r=this.tag&&SLe(this.tag,this.reg.size),e=null;break;case 2:s="doc",r=this.store&&IJ(this.store),e=null;break;default:return}return MM.call(this,n,e,s,r,t,i)};li.import=function(n,e){var t=n.split(".");t[t.length-1]==="json"&&t.pop();const i=2<t.length?t[0]:"";if(t=2<t.length?t[2]:t[1],this.worker&&i)return this.index.get(i).import(n);if(e){if(typeof e=="string"&&(e=JSON.parse(e)),i)return this.index.get(i).import(t,e);switch(t){case"reg":this.fastupdate=!1,this.reg=wLe(e,this.reg);for(let s=0,r;s<this.field.length;s++)r=this.index.get(this.field[s]),r.fastupdate=!1,r.reg=this.reg;if(this.worker){e=[];for(const s of this.index.values())e.push(s.import(n));return Promise.all(e)}break;case"tag":this.tag=yLe(e,this.tag);break;case"doc":this.store=LJ(e,this.store)}}};TJ(Yw.prototype);function kLe(n,e,t){n=(typeof n=="object"?""+n.query:n).toLowerCase(),this.cache||(this.cache=new KS);let i=this.cache.get(n);if(!i){if(i=this.search(n,e,t),i.then){const s=this;i.then(function(r){return s.cache.set(n,r),r})}this.cache.set(n,i)}return i}function KS(n){this.limit=n&&n!==!0?n:1e3,this.cache=new Map,this.h=""}KS.prototype.set=function(n,e){this.cache.set(this.h=n,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};KS.prototype.get=function(n){const e=this.cache.get(n);return e&&this.h!==n&&(this.cache.delete(n),this.cache.set(this.h=n,e)),e};KS.prototype.remove=function(n){for(const e of this.cache){const t=e[0];e[1].includes(n)&&this.cache.delete(t)}};KS.prototype.clear=function(){this.cache.clear(),this.h=""};const Nce={normalize:!1,numeric:!1},VN={},MV=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),kce=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ace=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Oce={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var xQe={X:Nce,W:VN,Y:VN,LatinBalance:{dedupe:!0,mapper:MV},LatinAdvanced:{dedupe:!0,mapper:MV,matcher:kce,replacer:Ace},LatinExtra:{dedupe:!0,mapper:MV,replacer:Ace.concat([/(?!^)[aeo]/g,""]),matcher:kce},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(n){for(let t=0;t<n.length;t++){var e=n[t];let i=e.charAt(0),s=Oce[i];for(let r=1,o;r<e.length&&(o=e.charAt(r),o==="h"||o==="w"||!(o=Oce[o])||o===s||(i+=o,s=o,i.length!==4));r++);n[t]=i}}},LatinExact:Nce,LatinDefault:VN,LatinSimple:VN};Qu.prototype.remove=function(n,e){const t=this.reg.size&&(this.fastupdate?this.reg.get(n):this.reg.has(n));if(t){if(this.fastupdate){for(let i=0,s;i<t.length;i++)if(s=t[i])if(2>s.length)s.pop();else{const r=s.indexOf(n);r===t.length-1?s.pop():s.splice(r,1)}}else bL(this.map,n),this.depth&&bL(this.ctx,n);e||this.reg.delete(n)}return this.db&&(this.commit_task.push({del:n}),this.T&&ALe(this)),this.cache&&this.cache.remove(n),this};function bL(n,e){let t=0;var i=typeof e>"u";if(n.constructor===Array){for(let s=0,r,o;s<n.length;s++)if((r=n[s])&&r.length)if(i)t++;else if(o=r.indexOf(e),0<=o){1<r.length?(r.splice(o,1),t++):delete n[s];break}else t++}else for(let s of n.entries()){i=s[0];const r=bL(s[1],e);r?t+=r:n.delete(i)}return t}const RQe={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Qu.prototype.add=function(n,e,t,i){if(e&&(n||n===0)){if(!i&&!t&&this.reg.has(n))return this.update(n,e);if(e=this.encoder.encode(e),i=e.length){const c=ao(),d=ao(),u=this.depth,h=this.resolution;for(let f=0;f<i;f++){let g=e[this.rtl?i-1-f:f];var s=g.length;if(s&&(u||!d[g])){var r=this.score?this.score(e,g,f,null,0):HN(h,i,f),o="";switch(this.tokenize){case"full":if(2<s){for(let p=0,m;p<s;p++)for(r=s;r>p;r--){o=g.substring(p,r),m=this.rtl?s-1-p:p;var a=this.score?this.score(e,g,f,o,m):HN(h,i,f,s,m);e1(this,d,o,a,n,t)}break}case"bidirectional":case"reverse":if(1<s){for(a=s-1;0<a;a--){o=g[this.rtl?s-1-a:a]+o;var l=this.score?this.score(e,g,f,o,a):HN(h,i,f,s,a);e1(this,d,o,l,n,t)}o=""}case"forward":if(1<s){for(a=0;a<s;a++)o+=g[this.rtl?s-1-a:a],e1(this,d,o,r,n,t);break}default:if(e1(this,d,g,r,n,t),u&&1<i&&f<i-1){for(s=ao(),o=this.U,r=g,a=Math.min(u+1,this.rtl?f+1:i-f),s[r]=1,l=1;l<a;l++)if((g=e[this.rtl?i-1-f-l:f+l])&&!s[g]){s[g]=1;const p=this.score?this.score(e,r,f,g,l-1):HN(o+(i/2>o?0:1),i,f,a-1,l-1),m=this.bidirectional&&g>r;e1(this,c,m?r:g,p,n,t,m?g:r)}}}}}this.fastupdate||this.reg.add(n)}else e=""}return this.db&&(e||this.commit_task.push({del:n}),this.T&&ALe(this)),this};function e1(n,e,t,i,s,r,o){let a=o?n.ctx:n.map,l;if((!e[t]||o&&!(l=e[t])[o])&&(o?(e=l||(e[t]=ao()),e[o]=1,(l=a.get(o))?a=l:a.set(o,a=new Map)):e[t]=1,(l=a.get(t))?a=l:a.set(t,a=l=[]),a=a[i]||(a[i]=[]),!r||!a.includes(s))){if(a.length===2**31-1){if(e=new oS(a),n.fastupdate)for(let c of n.reg.values())c.includes(a)&&(c[c.indexOf(a)]=e);l[i]=a=e}a.push(s),n.fastupdate&&((i=n.reg.get(s))?i.push(a):n.reg.set(s,[a]))}}function HN(n,e,t,i,s){return t&&1<n?e+(i||0)<=n?t+(s||0):(n-1)/(e+(i||0))*(t+(s||0))+1|0:0}Qu.prototype.search=function(n,e,t){t||(!e&&sS(n)?(t=n,n=""):sS(e)&&(t=e,e=0));let i=[],s,r,o,a=0,l,c,d,u,h;t?(n=t.query||n,e=t.limit||e,a=t.offset||0,r=t.context,o=t.suggest,h=(l=t.resolve!==!1)&&t.enrich,d=t.boost,u=t.resolution,c=this.db&&t.tag):l=this.resolve;let f=this.encoder.encode(n);if(s=f.length,e=e||(l?100:0),s===1)return Pce.call(this,f[0],"",e,a,l,h,c);if(r=this.depth&&r!==!1,s===2&&r&&!o)return Pce.call(this,f[1],f[0],e,a,l,h,c);let g=ao(),p=0,m;if(1<s&&r&&(m=f[0],p=1),u||u===0||(u=m?this.U:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,f,e,a,o,l,h,c),n!==!1))return n;const v=this;return async function(){for(let _,b;p<s;p++){if((b=f[p])&&!g[b]){if(g[b]=1,_=await Az(v,b,m,0,0,!1,!1),_=Fce(_,i,o,u)){i=_;break}m&&(o&&_&&i.length||(m=b))}o&&m&&p===s-1&&!i.length&&(u=v.resolution,m="",p=-1,g=ao())}return Mce(i,u,e,a,o,d,l)}()}for(let v,_;p<s;p++){if((_=f[p])&&!g[_]){if(g[_]=1,v=Az(this,_,m,0,0,!1,!1),v=Fce(v,i,o,u)){i=v;break}m&&(o&&v&&i.length||(m=_))}o&&m&&p===s-1&&!i.length&&(u=this.resolution,m="",p=-1,g=ao())}return Mce(i,u,e,a,o,d,l)};function Mce(n,e,t,i,s,r,o){let a=n.length,l=n;if(1<a)l=ILe(n,e,t,i,s,r,o);else if(a===1)return o?xJ.call(null,n[0],t,i):new or(n[0]);return o?l:new or(l)}function Pce(n,e,t,i,s,r,o){return n=Az(this,n,e,t,i,s,r,o),this.db?n.then(function(a){return s?a||[]:new or(a)}):n&&n.length?s?xJ.call(this,n,t,i):new or(n):s?[]:new or}function Fce(n,e,t,i){let s=[];if(n&&n.length){if(n.length<=i){e.push(n);return}for(let r=0,o;r<i;r++)(o=n[r])&&(s[r]=o);if(s.length){e.push(s);return}}if(!t)return s}function Az(n,e,t,i,s,r,o,a){let l;return t&&(l=n.bidirectional&&e>t)&&(l=t,t=e,e=l),n.db?n.db.get(e,t,i,s,r,o,a):(n=t?(n=n.ctx.get(t))&&n.get(e):n.map.get(e),n)}function Qu(n,e){if(!this||this.constructor!==Qu)return new Qu(n);if(n){var t=Bu(n)?n:n.preset;t&&(n=Object.assign({},RQe[t],n))}else n={};t=n.context;const i=t===!0?{depth:1}:t||{},s=Bu(n.encoder)?xQe[n.encoder]:n.encode||n.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new OM(s):{encode:s},this.resolution=n.resolution||9,this.tokenize=t=(t=n.tokenize)&&t!=="default"&&t!=="exact"&&t||"strict",this.depth=t==="strict"&&i.depth||0,this.bidirectional=i.bidirectional!==!1,this.fastupdate=!!n.fastupdate,this.score=n.score||null,(t=n.keystore||0)&&(this.keystore=t),this.map=t?new lf(t):new Map,this.ctx=t?new lf(t):new Map,this.reg=e||(this.fastupdate?t?new lf(t):new Map:t?new Yu(t):new Set),this.U=i.resolution||3,this.rtl=s.rtl||n.rtl||!1,this.cache=(t=n.cache||null)&&new KS(t),this.resolve=n.resolve!==!1,(t=n.db)&&(this.db=this.mount(t)),this.T=n.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=n.priority||4}li=Qu.prototype;li.mount=function(n){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),n.mount(this)};li.commit=function(n,e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,n,e)};li.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function ALe(n){n.commit_timer||(n.commit_timer=setTimeout(function(){n.commit_timer=null,n.db.commit(n,void 0,void 0)},1))}li.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this};li.append=function(n,e){return this.add(n,e,!0)};li.contain=function(n){return this.db?this.db.has(n):this.reg.has(n)};li.update=function(n,e){const t=this,i=this.remove(n);return i&&i.then?i.then(()=>t.add(n,e)):this.add(n,e)};li.cleanup=function(){return this.fastupdate?(bL(this.map),this.depth&&bL(this.ctx),this):this};li.searchCache=kLe;li.export=function(n,e,t=0,i=0){let s,r;switch(i){case 0:s="reg",r=CLe(this.reg);break;case 1:s="cfg",r=null;break;case 2:s="map",r=IJ(this.map,this.reg.size);break;case 3:s="ctx",r=SLe(this.ctx,this.reg.size);break;default:return}return MM.call(this,n,e,s,r,t,i)};li.import=function(n,e){if(e)switch(typeof e=="string"&&(e=JSON.parse(e)),n=n.split("."),n[n.length-1]==="json"&&n.pop(),n.length===3&&n.shift(),n=1<n.length?n[1]:n[0],n){case"reg":this.fastupdate=!1,this.reg=wLe(e,this.reg);break;case"map":this.map=LJ(e,this.map);break;case"ctx":this.ctx=yLe(e,this.ctx)}};li.serialize=function(n=!0){let e="",t="",i="";if(this.reg.size){let r;for(var s of this.reg.keys())r||(r=typeof s),e+=(e?",":"")+(r==="string"?'"'+s+'"':s);e="index.reg=new Set(["+e+"]);",t=Lce(this.map,r),t="index.map=new Map(["+t+"]);";for(const o of this.ctx.entries()){s=o[0];let a=Lce(o[1],r);a="new Map(["+a+"])",a='["'+s+'",'+a+"]",i+=(i?",":"")+a}i="index.ctx=new Map(["+i+"]);"}return n?"function inject(index){"+e+t+i+"}":e+t+i};TJ(Qu.prototype);const OLe=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),FM=["map","ctx","tag","reg","cfg"],Fv=ao();function MLe(n,e={}){if(!this)return new MLe(n,e);typeof n=="object"&&(e=n,n=n.name),n||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(n?":"+n.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}li=MLe.prototype;li.mount=function(n){return n.encoder?(n.db=this,this.open()):n.mount(this)};li.open=function(){if(this.db)return this.db;let n=this;navigator.storage&&navigator.storage.persist(),Fv[n.id]||(Fv[n.id]=[]),Fv[n.id].push(n.field);const e=OLe.open(n.id,1);return e.onupgradeneeded=function(){const t=n.db=this.result;for(let i=0,s;i<FM.length;i++){s=FM[i];for(let r=0,o;r<Fv[n.id].length;r++)o=Fv[n.id][r],t.objectStoreNames.contains(s+(s!=="reg"&&o?":"+o:""))||t.createObjectStore(s+(s!=="reg"&&o?":"+o:""))}},n.db=H_(e,function(t){n.db=t,n.db.onversionchange=function(){n.close()}})};li.close=function(){this.db&&this.db.close(),this.db=null};li.destroy=function(){const n=OLe.deleteDatabase(this.id);return H_(n)};li.clear=function(){const n=[];for(let t=0,i;t<FM.length;t++){i=FM[t];for(let s=0,r;s<Fv[this.id].length;s++)r=Fv[this.id][s],n.push(i+(i!=="reg"&&r?":"+r:""))}const e=this.db.transaction(n,"readwrite");for(let t=0;t<n.length;t++)e.objectStore(n[t]).clear();return H_(e)};li.get=function(n,e,t=0,i=0,s=!0,r=!1){n=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+n:n);const o=this;return H_(n).then(function(a){let l=[];if(!a||!a.length)return l;if(s){if(!t&&!i&&a.length===1)return a[0];for(let c=0,d;c<a.length;c++)if((d=a[c])&&d.length){if(i>=d.length){i-=d.length;continue}const u=t?i+Math.min(d.length-i,t):d.length;for(let h=i;h<u;h++)l.push(d[h]);if(i=0,l.length===t)break}return r?o.enrich(l):l}return a})};li.tag=function(n,e=0,t=0,i=!1){n=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(n);const s=this;return H_(n).then(function(r){return!r||!r.length||t>=r.length?[]:!e&&!t?r:(r=r.slice(t,t+e),i?s.enrich(r):r)})};li.enrich=function(n){typeof n!="object"&&(n=[n]);const e=this.db.transaction("reg","readonly").objectStore("reg"),t=[];for(let i=0;i<n.length;i++)t[i]=H_(e.get(n[i]));return Promise.all(t).then(function(i){for(let s=0;s<i.length;s++)i[s]={id:n[s],doc:i[s]?JSON.parse(i[s]):null};return i})};li.has=function(n){return n=this.db.transaction("reg","readonly").objectStore("reg").getKey(n),H_(n).then(function(e){return!!e})};li.search=null;li.info=function(){};li.transaction=function(n,e,t){n+=n!=="reg"&&this.field?":"+this.field:"";let i=this.h[n+":"+e];if(i)return t.call(this,i);let s=this.db.transaction(n,e);this.h[n+":"+e]=i=s.objectStore(n);const r=t.call(this,i);return this.h[n+":"+e]=null,H_(s).finally(function(){return s=i=null,r})};li.commit=async function(n,e,t){if(e)await this.clear(),n.commit_task=[];else{let i=n.commit_task;n.commit_task=[];for(let s=0,r;s<i.length;s++)if(r=i[s],r.clear){await this.clear(),e=!0;break}else i[s]=r.del;e||(t||(i=i.concat(gQe(n.reg))),i.length&&await this.remove(i))}n.reg.size&&(await this.transaction("map","readwrite",function(i){for(const s of n.map){const r=s[0],o=s[1];o.length&&(e?i.put(o,r):i.get(r).onsuccess=function(){let a=this.result;var l;if(a&&a.length){const c=Math.max(a.length,o.length);for(let d=0,u,h;d<c;d++)if((h=o[d])&&h.length){if((u=a[d])&&u.length)for(l=0;l<h.length;l++)u.push(h[l]);else a[d]=h;l=1}}else a=o,l=1;l&&i.put(a,r)})}}),await this.transaction("ctx","readwrite",function(i){for(const s of n.ctx){const r=s[0],o=s[1];for(const a of o){const l=a[0],c=a[1];c.length&&(e?i.put(c,r+":"+l):i.get(r+":"+l).onsuccess=function(){let d=this.result;var u;if(d&&d.length){const h=Math.max(d.length,c.length);for(let f=0,g,p;f<h;f++)if((p=c[f])&&p.length){if((g=d[f])&&g.length)for(u=0;u<p.length;u++)g.push(p[u]);else d[f]=p;u=1}}else d=c,u=1;u&&i.put(d,r+":"+l)})}}}),n.store?await this.transaction("reg","readwrite",function(i){for(const s of n.store){const r=s[0],o=s[1];i.put(typeof o=="object"?JSON.stringify(o):1,r)}}):n.bypass||await this.transaction("reg","readwrite",function(i){for(const s of n.reg.keys())i.put(1,s)}),n.tag&&await this.transaction("tag","readwrite",function(i){for(const s of n.tag){const r=s[0],o=s[1];o.length&&(i.get(r).onsuccess=function(){let a=this.result;a=a&&a.length?a.concat(o):o,i.put(a,r)})}}),n.map.clear(),n.ctx.clear(),n.tag&&n.tag.clear(),n.store&&n.store.clear(),n.document||n.reg.clear())};function PV(n,e,t){const i=n.value;let s,r=0;for(let o=0,a;o<i.length;o++){if(a=t?i:i[o]){for(let l=0,c,d;l<e.length;l++)if(d=e[l],c=a.indexOf(d),0<=c)if(s=1,1<a.length)a.splice(c,1);else{i[o]=[];break}r+=a.length}if(t)break}r?s&&n.update(i):n.delete(),n.continue()}li.remove=function(n){return typeof n!="object"&&(n=[n]),Promise.all([this.transaction("map","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n)}}),this.transaction("ctx","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n)}}),this.transaction("tag","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n,!0)}}),this.transaction("reg","readwrite",function(e){for(let t=0;t<n.length;t++)e.delete(n[t])})])};function H_(n,e){return new Promise((t,i)=>{n.onsuccess=n.oncomplete=function(){e&&e(this.result),e=null,t(this.result)},n.onerror=n.onblocked=i,n=null})}const DQe=Qu;function kc(n,e=0){return n[n.length-(1+e)]}function NQe(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function is(n,e,t=(i,s)=>i===s){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,s=n.length;i<s;i++)if(!t(n[i],e[i]))return!1;return!0}function kQe(n,e){const t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function SL(n,e,t){return AQe(n.length,i=>t(n[i],e))}function AQe(n,e){let t=0,i=n-1;for(;t<=i;){const s=(t+i)/2|0,r=e(s);if(r<0)t=s+1;else if(r>0)i=s-1;else return s}return-(t+1)}function Oz(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],s=[],r=[],o=[];for(const a of e){const l=t(a,i);l<0?s.push(a):l>0?r.push(a):o.push(a)}return n<s.length?Oz(n,s,t):n<s.length+o.length?o[0]:Oz(n-(s.length+o.length),r,t)}function Bce(n,e){const t=[];let i;for(const s of n.slice(0).sort(e))!i||e(i[0],s)!==0?(i=[s],t.push(i)):i.push(s);return t}function*RJ(n,e){let t,i;for(const s of n)i!==void 0&&e(i,s)?t.push(s):(t&&(yield t),t=[s]),i=s;t&&(yield t)}function PLe(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function OQe(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function zd(n){return n.filter(e=>!!e)}function Vce(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function FLe(n){return!Array.isArray(n)||n.length===0}function Yo(n){return Array.isArray(n)&&n.length>0}function sp(n,e=t=>t){const t=new Set;return n.filter(i=>{const s=e(i);return t.has(s)?!1:(t.add(s),!0)})}function DJ(n,e){return n.length>0?n[0]:e}function Da(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let s=t;s<e;s++)i.push(s);else for(let s=t;s>e;s--)i.push(s);return i}function jB(n,e,t){const i=n.slice(0,e),s=n.slice(e);return i.concat(t,s)}function FV(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function WN(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function Mz(n,e){for(const t of e)n.push(t)}function NJ(n){return Array.isArray(n)?n:[n]}function MQe(n,e,t){const i=BLe(n,e),s=n.length,r=t.length;n.length=s+r;for(let o=s-1;o>=i;o--)n[o+r]=n[o];for(let o=0;o<r;o++)n[o+i]=t[o]}function Hce(n,e,t,i){const s=BLe(n,e);let r=n.splice(s,t);return r===void 0&&(r=[]),MQe(n,s,i),r}function BLe(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}var yL;(function(n){function e(r){return r<0}n.isLessThan=e;function t(r){return r<=0}n.isLessThanOrEqual=t;function i(r){return r>0}n.isGreaterThan=i;function s(r){return r===0}n.isNeitherLessOrGreaterThan=s,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(yL||(yL={}));function pa(n,e){return(t,i)=>e(n(t),n(i))}function PQe(...n){return(e,t)=>{for(const i of n){const s=i(e,t);if(!yL.isNeitherLessOrGreaterThan(s))return s}return yL.neitherLessOrGreaterThan}}const Vd=(n,e)=>n-e,FQe=(n,e)=>Vd(n?1:0,e?1:0);function VLe(n){return(e,t)=>-n(e,t)}class rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Kg{static{this.empty=new Kg(e=>{})}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Kg(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Kg(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(s=>((i||yL.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0)),t}}class BM{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((s,r)=>t(e[s],e[r]));return new BM(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new BM(e)}}function za(n){return typeof n=="string"}function Rr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function BQe(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function a_(n){return typeof n=="number"&&!isNaN(n)}function Wce(n){return!!n&&typeof n[Symbol.iterator]=="function"}function HLe(n){return n===!0||n===!1}function Ko(n){return typeof n>"u"}function cf(n){return!nc(n)}function nc(n){return Ko(n)||n===null}function Ni(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Em(n){if(nc(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function CL(n){return typeof n=="function"}function VQe(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)HQe(n[i],e[i])}function HQe(n,e){if(za(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(CL(e)){try{if(n instanceof e)return}catch{}if(!nc(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function mg(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?mg(i):i}),e}function WQe(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(WLe.call(t,i)){const s=t[i];typeof s=="object"&&!Object.isFrozen(s)&&!BQe(s)&&e.push(s)}}return n}const WLe=Object.prototype.hasOwnProperty;function ULe(n,e){return Pz(n,e,new Set)}function Pz(n,e,t){if(nc(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const s=[];for(const r of n)s.push(Pz(r,e,t));return s}if(Rr(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const s={};for(const r in n)WLe.call(n,r)&&(s[r]=Pz(n[r],e,t));return t.delete(n),s}return n}function YB(n,e,t=!0){return Rr(n)?(Rr(e)&&Object.keys(e).forEach(i=>{i in n?t&&(Rr(n[i])&&Rr(e[i])?YB(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Ll(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Ll(n[t],e[t]))return!1}else{const s=[];for(i in n)s.push(i);s.sort();const r=[];for(i in e)r.push(i);if(r.sort(),!Ll(s,r))return!1;for(t=0;t<s.length;t++)if(!Ll(n[s[t]],e[s[t]]))return!1}return!0}function UQe(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function Fz(n){const e=[];for(const t of UQe(n))typeof n[t]=="function"&&e.push(t);return e}function $Qe(n,e){const t=s=>function(){const r=Array.prototype.slice.call(arguments,0);return e(s,r)},i={};for(const s of n)i[s]=t(s);return i}function $Le(){return globalThis._VSCODE_NLS_MESSAGES}function kJ(){return globalThis._VSCODE_NLS_LANGUAGE}const zQe=kJ()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function VM(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,s)=>{const r=s[0],o=e[r];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),zQe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function E(n,e,...t){return VM(typeof n=="number"?zLe(n,e):e,t)}function zLe(n,e){const t=$Le()?.[n];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${n} !!!`)}return t}function xt(n,e,...t){let i;typeof n=="number"?i=zLe(n,e):i=e;const s=VM(i,t);return{value:s,original:e===i?s:VM(e,t)}}const bC="en";let HM=!1,WM=!1,OA=!1,GLe=!1,AJ=!1,OJ=!1,qLe=!1,UN,MA=bC,Uce=bC,GQe,og;const jg=globalThis;let Oc;typeof jg.vscode<"u"&&typeof jg.vscode.process<"u"?Oc=jg.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Oc=process);const qQe=typeof Oc?.versions?.electron=="string",KQe=qQe&&Oc?.type==="renderer";if(typeof Oc=="object"){HM=Oc.platform==="win32",WM=Oc.platform==="darwin",OA=Oc.platform==="linux",OA&&Oc.env.SNAP&&Oc.env.SNAP_REVISION,Oc.env.CI||Oc.env.BUILD_ARTIFACTSTAGINGDIRECTORY,UN=bC,MA=bC;const n=Oc.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n);UN=e.userLocale,Uce=e.osLocale,MA=e.resolvedLanguage||bC,GQe=e.languagePack?.translationsConfigFile}catch{}GLe=!0}else typeof navigator=="object"&&!KQe?(og=navigator.userAgent,HM=og.indexOf("Windows")>=0,WM=og.indexOf("Macintosh")>=0,OJ=(og.indexOf("Macintosh")>=0||og.indexOf("iPad")>=0||og.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,OA=og.indexOf("Linux")>=0,qLe=og?.indexOf("Mobi")>=0,AJ=!0,MA=kJ()||bC,UN=navigator.language.toLowerCase(),Uce=UN):console.error("Unable to resolve platform.");const go=HM,di=WM,va=OA,Cf=GLe,jS=AJ,jQe=AJ&&typeof jg.importScripts=="function",YQe=jQe?jg.origin:void 0,Xu=OJ,KLe=qLe,wf=og,QQe=MA,XQe=typeof jg.postMessage=="function"&&!jg.importScripts,jLe=(()=>{if(XQe){const n=[];jg.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=n.length;i<s;i++){const r=n[i];if(r.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),r.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),jg.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),El=WM||OJ?2:HM?1:3;let $ce=!0,zce=!1;function YLe(){if(!zce){zce=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,$ce=new Uint16Array(n.buffer)[0]===513}return $ce}const QLe=!!(wf&&wf.indexOf("Chrome")>=0),ZQe=!!(wf&&wf.indexOf("Firefox")>=0),JQe=!!(!QLe&&wf&&wf.indexOf("Safari")>=0),eXe=!!(wf&&wf.indexOf("Edg/")>=0),tXe=!!(wf&&wf.indexOf("Android")>=0),To={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Si;(function(n){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*s(S){yield S}n.single=s;function r(S){return e(S)?S:s(S)}n.wrap=r;function o(S){return S||t}n.from=o;function*a(S){for(let y=S.length-1;y>=0;y--)yield S[y]}n.reverse=a;function l(S){return!S||S[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(S){return S[Symbol.iterator]().next().value}n.first=c;function d(S,y){let C=0;for(const T of S)if(y(T,C++))return!0;return!1}n.some=d;function u(S,y){for(const C of S)if(y(C))return C}n.find=u;function*h(S,y){for(const C of S)y(C)&&(yield C)}n.filter=h;function*f(S,y){let C=0;for(const T of S)yield y(T,C++)}n.map=f;function*g(S,y){let C=0;for(const T of S)yield*y(T,C++)}n.flatMap=g;function*p(...S){for(const y of S)yield*y}n.concat=p;function m(S,y,C){let T=C;for(const w of S)T=y(T,w);return T}n.reduce=m;function*v(S,y,C=S.length){for(y<0&&(y+=S.length),C<0?C+=S.length:C>S.length&&(C=S.length);y<C;y++)yield S[y]}n.slice=v;function _(S,y=Number.POSITIVE_INFINITY){const C=[];if(y===0)return[C,S];const T=S[Symbol.iterator]();for(let w=0;w<y;w++){const I=T.next();if(I.done)return[C,n.empty()];C.push(I.value)}return[C,{[Symbol.iterator](){return T}}]}n.consume=_;async function b(S){const y=[];for await(const C of S)y.push(C);return Promise.resolve(y)}n.asyncToArray=b})(Si||(Si={}));let pr=class PA{static{this.Undefined=new PA(void 0)}constructor(e){this.element=e,this.next=PA.Undefined,this.prev=PA.Undefined}};class da{constructor(){this._first=pr.Undefined,this._last=pr.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pr.Undefined}clear(){let e=this._first;for(;e!==pr.Undefined;){const t=e.next;e.prev=pr.Undefined,e.next=pr.Undefined,e=t}this._first=pr.Undefined,this._last=pr.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new pr(e);if(this._first===pr.Undefined)this._first=i,this._last=i;else if(t){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==pr.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pr.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pr.Undefined&&e.next!==pr.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pr.Undefined&&e.next===pr.Undefined?(this._first=pr.Undefined,this._last=pr.Undefined):e.next===pr.Undefined?(this._last=this._last.prev,this._last.next=pr.Undefined):e.prev===pr.Undefined&&(this._first=this._first.next,this._first.prev=pr.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pr.Undefined;)yield e.element,e=e.next}}const UM="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function iXe(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of UM)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const MJ=iXe();function PJ(n){let e=MJ;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const XLe=new da;XLe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function wL(n,e,t,i,s){if(e=PJ(e),s||(s=Si.first(XLe)),t.length>s.maxLen){let c=n-s.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+s.maxLen/2),wL(n,e,t,i,s)}const r=Date.now(),o=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-r>=s.timeBudget);c++){const d=o-s.windowSize*c;e.lastIndex=Math.max(0,d);const u=nXe(e,t,o,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function nXe(n,e,t,i){let s;for(;s=n.exec(e);){const r=s.index||0;if(r<=t&&n.lastIndex>=t)return s;if(i>0&&r>i)return null}return null}const Dh=8;class ZLe{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class JLe{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jn{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return QB(e,t)}compute(e,t,i){return i}}class GT{constructor(e,t){this.newValue=e,this.didChange=t}}function QB(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new GT(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&is(n,e);return new GT(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const s=QB(n[i],e[i]);s.didChange&&(n[i]=s.newValue,t=!0)}return new GT(n,t)}class xR{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return QB(e,t)}validate(e){return this.defaultValue}}class o0{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return QB(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ct(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class Ri extends o0{constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return ct(e,this.defaultValue)}}function Cv(n,e,t,i){if(typeof n>"u")return e;let s=parseInt(n,10);return isNaN(s)?e:(s=Math.max(t,s),s=Math.min(i,s),s|0)}class En extends o0{static clampedInt(e,t,i,s){return Cv(e,t,i,s)}constructor(e,t,i,s,r,o=void 0){typeof o<"u"&&(o.type="integer",o.default=i,o.minimum=s,o.maximum=r),super(e,t,i,o),this.minimum=s,this.maximum=r}validate(e){return En.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function sXe(n,e,t,i){if(typeof n>"u")return e;const s=ac.float(n,e);return ac.clamp(s,t,i)}class ac extends o0{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,r){typeof r<"u"&&(r.type="number",r.default=i),super(e,t,i,r),this.validationFn=s}validate(e){return this.validationFn(ac.float(e,this.defaultValue))}}class zo extends o0{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return zo.string(e,this.defaultValue)}}function bs(n,e,t,i){return typeof n!="string"?e:i&&n in i?i[n]:t.indexOf(n)===-1?e:n}class _s extends o0{constructor(e,t,i,s,r=void 0){typeof r<"u"&&(r.type="string",r.enum=s,r.default=i),super(e,t,i,r),this._allowedValues=s}validate(e){return bs(e,this.defaultValue,this._allowedValues)}}class $N extends Jn{constructor(e,t,i,s,r,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=r,a.default=s),super(e,t,i,a),this._allowedValues=r,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function rXe(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class oXe extends Jn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[E("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),E("accessibilitySupport.on","Optimize for usage with a Screen Reader."),E("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:E("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class aXe extends Jn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:E("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:E("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ct(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ct(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function lXe(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Fr;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(Fr||(Fr={}));function cXe(n){switch(n){case"line":return Fr.Line;case"block":return Fr.Block;case"underline":return Fr.Underline;case"line-thin":return Fr.LineThin;case"block-outline":return Fr.BlockOutline;case"underline-thin":return Fr.UnderlineThin}}class dXe extends xR{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),t.get(74)==="default"?s.push("mouse-default"):t.get(74)==="copy"&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}class uXe extends Ri{constructor(){super(37,"emptySelectionClipboard",!0,{description:E("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class hXe extends Jn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:E("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[E("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),E("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),E("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:E("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[E("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),E("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),E("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:E("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:E("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:di},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:E("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:E("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ct(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bs(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bs(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ct(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ct(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ct(t.loop,this.defaultValue.loop)}}}class Rd extends Jn{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",Rd.OFF,{anyOf:[{type:"boolean",description:E("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:E("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:E("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Rd.OFF:e==="true"?Rd.ON:e:e?Rd.ON:Rd.OFF}}class wg extends Jn{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",wg.OFF,{anyOf:[{type:"boolean",description:E("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:E("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:E("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?wg.OFF:e==="true"?wg.TRANSLATE:e:e?wg.TRANSLATE:wg.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class fXe extends xR{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class gXe extends o0{constructor(){super(52,"fontSize",ma.fontSize,{type:"number",minimum:6,maximum:100,default:ma.fontSize,description:E("fontSize","Controls the font size in pixels.")})}validate(e){const t=ac.float(e,this.defaultValue);return t===0?ma.fontSize:ac.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Bv extends Jn{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",ma.fontWeight,{anyOf:[{type:"number",minimum:Bv.MINIMUM_VALUE,maximum:Bv.MAXIMUM_VALUE,errorMessage:E("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Bv.SUGGESTION_VALUES}],default:ma.fontWeight,description:E("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(En.clampedInt(e,ma.fontWeight,Bv.MINIMUM_VALUE,Bv.MAXIMUM_VALUE))}}class pXe extends Jn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[E("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),E("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),E("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:E("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:E("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:E("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:E("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:E("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:E("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:E("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:E("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:E("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:E("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:E("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:bs(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??bs(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??bs(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??bs(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??bs(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??bs(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??bs(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:zo.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:zo.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:zo.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:zo.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:zo.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:zo.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class mXe extends Jn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:E("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:E("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:E("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:E("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:E("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),delay:En.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ct(t.sticky,this.defaultValue.sticky),hidingDelay:En.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:ct(t.above,this.defaultValue.above)}}}class nw extends xR{constructor(){super(146)}compute(e,t,i){return nw.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const r=(i+e.viewLineCount+s)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:r,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,S=u?2:3;let y=Math.floor(r*s);const C=y/r;let T=!1,w=!1,I=S*h,R=h/r,D=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:V,extraLinesBeforeFirstLine:O,extraLinesBeyondLastLine:M,desiredRatio:P,minimapLineCount:W}=nw.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:l,pixelRatio:r});if(v/W>1)T=!0,w=!0,h=1,I=1,R=h/r;else{let F=!1,U=h+1;if(g==="fit"){const Z=Math.ceil((O+v+M)*I);b&&a&&_<=t.stableFitRemainingWidth?(F=!0,U=t.stableFitMaxMinimapScale):F=Z>y}if(g==="fill"||F){T=!0;const Z=h;I=Math.min(l*r,Math.max(1,Math.floor(1/P))),b&&a&&_<=t.stableFitRemainingWidth&&(U=t.stableFitMaxMinimapScale),h=Math.min(U,Math.max(1,Math.floor(I/S))),h>Z&&(D=Math.min(2,h/Z)),R=h/r/D,y=Math.ceil(Math.max(V,O+v+M)*I),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const L=Math.floor(f*R),k=Math.min(L,Math.max(0,Math.floor((_-m-2)*R/(c+R)))+Dh);let x=Math.floor(r*k);const N=x/r;x=Math.floor(x*D);const A=u?1:2,B=p==="left"?0:i-k-m;return{renderMinimap:A,minimapLeft:B,minimapWidth:k,minimapHeightIsEditorHeight:T,minimapIsSampling:w,minimapScale:h,minimapLineHeight:I,minimapCanvasInnerWidth:x,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const i=t.outerWidth|0,s=t.outerHeight|0,r=t.lineHeight|0,o=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(138),h=u==="inherit"?e.get(137):u,f=h==="inherit"?e.get(133):h,g=e.get(136),p=t.isDominatedByLongLines,m=e.get(57),v=e.get(68).renderType!==0,_=e.get(69),b=e.get(106),S=e.get(84),y=e.get(73),C=e.get(104),T=C.verticalScrollbarSize,w=C.verticalHasArrows,I=C.arrowSize,R=C.horizontalScrollbarSize,D=e.get(43),L=e.get(111)!=="never";let k=e.get(66);D&&L&&(k+=16);let x=0;if(v){const G=Math.max(o,_);x=Math.round(G*l)}let N=0;m&&(N=r*t.glyphMarginDecorationLaneCount);let A=0,B=A+N,V=B+x,O=V+k;const M=i-N-x-k;let P=!1,W=!1,H=-1;h==="inherit"&&p?(P=!0,W=!0):f==="on"||f==="bounded"?W=!0:f==="wordWrapColumn"&&(H=g);const F=nw._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,paddingTop:S.top,paddingBottom:S.bottom,minimap:y,verticalScrollbarWidth:T,viewLineCount:d,remainingWidth:M,isViewportWrapping:W},t.memory||new JLe);F.renderMinimap!==0&&F.minimapLeft===0&&(A+=F.minimapWidth,B+=F.minimapWidth,V+=F.minimapWidth,O+=F.minimapWidth);const U=M-F.minimapWidth,Z=Math.max(1,Math.floor((U-T-2)/a)),X=w?I:0;return W&&(H=Math.max(1,Z),f==="bounded"&&(H=Math.min(H,g))),{width:i,height:s,glyphMarginLeft:A,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:B,lineNumbersWidth:x,decorationsLeft:V,decorationsWidth:k,contentLeft:O,contentWidth:U,minimap:F,viewportColumn:Z,isWordWrapMinified:P,isViewportWrapping:W,wrappingColumn:H,verticalScrollbarWidth:T,horizontalScrollbarHeight:R,overviewRuler:{top:X,width:T,height:s-2*X,right:0}}}}class _Xe extends Jn{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[E("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),E("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:E("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bs(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Ed;(function(n){n.Off="off",n.OnCode="onCode",n.On="on"})(Ed||(Ed={}));class vXe extends Jn{constructor(){const e={enabled:Ed.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Ed.Off,Ed.OnCode,Ed.On],default:e.enabled,enumDescriptions:[E("editor.lightbulb.enabled.off","Disable the code action menu."),E("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),E("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:E("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bs(e.enabled,this.defaultValue.enabled,[Ed.Off,Ed.OnCode,Ed.On])}}}class bXe extends Jn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:E("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:E("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:E("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:E("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),maxLineCount:En.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bs(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:ct(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class SXe extends Jn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:E("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[E("editor.inlayHints.on","Inlay hints are enabled"),E("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",di?"Ctrl+Option":"Ctrl+Alt"),E("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",di?"Ctrl+Option":"Ctrl+Alt"),E("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:E("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:E("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:E("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bs(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:En.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:zo.string(t.fontFamily,this.defaultValue.fontFamily),padding:ct(t.padding,this.defaultValue.padding)}}}class yXe extends Jn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):En.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?En.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class CXe extends ac{constructor(){super(67,"lineHeight",ma.lineHeight,e=>ac.clamp(e,0,150),{markdownDescription:E("lineHeight",`Controls the line height.
175
+ deps: ${d}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(l){const[c,d]=r(l);o(l,c),a(l,d)}};function r({schema:l}){const c={},d={};for(const u in l){if(u==="__proto__")continue;const h=Array.isArray(l[u])?c:d;h[u]=l[u]}return[c,d]}function o(l,c=l.schema){const{gen:d,data:u,it:h}=l;if(Object.keys(c).length===0)return;const f=d.let("missing");for(const g in c){const p=c[g];if(p.length===0)continue;const m=(0,i.propertyInData)(d,u,g,h.opts.ownProperties);l.setParams({property:g,depsCount:p.length,deps:p.join(", ")}),h.allErrors?d.if(m,()=>{for(const v of p)(0,i.checkReportMissingProp)(l,v)}):(d.if((0,e._)`${m} && (${(0,i.checkMissingProp)(l,p,f)})`),(0,i.reportMissingProp)(l,f),d.else())}}n.validatePropertyDeps=o;function a(l,c=l.schema){const{gen:d,data:u,keyword:h,it:f}=l,g=d.name("valid");for(const p in c)(0,t.alwaysValidSchema)(f,c[p])||(d.if((0,i.propertyInData)(d,u,p,f.opts.ownProperties),()=>{const m=l.subschema({keyword:h,schemaProp:p},g);l.mergeValidEvaluated(m,g)},()=>d.var(g,!0)),l.ok(g))}n.validateSchemaDeps=a,n.default=s}(AV)),AV}var IN={},rce;function DYe(){if(rce)return IN;rce=1,Object.defineProperty(IN,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,n._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:r,schema:o,data:a,it:l}=s;if((0,e.alwaysValidSchema)(l,o))return;const c=r.name("valid");r.forIn("key",a,d=>{s.setParams({propertyName:d}),s.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},c),r.if((0,n.not)(c),()=>{s.error(!0),l.allErrors||r.break()})}),s.ok(c)}};return IN.default=i,IN}var LN={},oce;function _Le(){if(oce)return LN;oce=1,Object.defineProperty(LN,"__esModule",{value:!0});const n=uh(),e=xn(),t=F_(),i=us(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:l,parentSchema:c,data:d,errsCount:u,it:h}=o;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(h,l))return;const p=(0,n.allSchemaProperties)(c.properties),m=(0,n.allSchemaProperties)(c.patternProperties);v(),o.ok((0,e._)`${u} === ${t.default.errors}`);function v(){a.forIn("key",d,C=>{!p.length&&!m.length?S(C):a.if(_(C),()=>S(C))})}function _(C){let T;if(p.length>8){const w=(0,i.schemaRefOrVal)(h,c.properties,"properties");T=(0,n.isOwnProperty)(a,w,C)}else p.length?T=(0,e.or)(...p.map(w=>(0,e._)`${C} === ${w}`)):T=e.nil;return m.length&&(T=(0,e.or)(T,...m.map(w=>(0,e._)`${(0,n.usePattern)(o,w)}.test(${C})`))),(0,e.not)(T)}function b(C){a.code((0,e._)`delete ${d}[${C}]`)}function S(C){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(C);return}if(l===!1){o.setParams({additionalProperty:C}),o.error(),f||a.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(h,l)){const T=a.name("valid");g.removeAdditional==="failing"?(y(C,T,!1),a.if((0,e.not)(T),()=>{o.reset(),b(C)})):(y(C,T),f||a.if((0,e.not)(T),()=>a.break()))}}function y(C,T,w){const I={keyword:"additionalProperties",dataProp:C,dataPropType:i.Type.Str};w===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(I,T)}}};return LN.default=r,LN}var xN={},ace;function NYe(){if(ace)return xN;ace=1,Object.defineProperty(xN,"__esModule",{value:!0});const n=zB(),e=uh(),t=us(),i=_Le(),s={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:o,schema:a,parentSchema:l,data:c,it:d}=r;d.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new n.KeywordCxt(d,i.default,"additionalProperties"));const u=(0,e.allSchemaProperties)(a);for(const m of u)d.definedProperties.add(m);d.opts.unevaluated&&u.length&&d.props!==!0&&(d.props=t.mergeEvaluated.props(o,(0,t.toHash)(u),d.props));const h=u.filter(m=>!(0,t.alwaysValidSchema)(d,a[m]));if(h.length===0)return;const f=o.name("valid");for(const m of h)g(m)?p(m):(o.if((0,e.propertyInData)(o,c,m,d.opts.ownProperties)),p(m),d.allErrors||o.else().var(f,!0),o.endIf()),r.it.definedProperties.add(m),r.ok(f);function g(m){return d.opts.useDefaults&&!d.compositeRule&&a[m].default!==void 0}function p(m){r.subschema({keyword:"properties",schemaProp:m,dataProp:m},f)}}};return xN.default=s,xN}var RN={},lce;function kYe(){if(lce)return RN;lce=1,Object.defineProperty(RN,"__esModule",{value:!0});const n=uh(),e=xn(),t=us(),i=us(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:o,schema:a,data:l,parentSchema:c,it:d}=r,{opts:u}=d,h=(0,n.allSchemaProperties)(a),f=h.filter(S=>(0,t.alwaysValidSchema)(d,a[S]));if(h.length===0||f.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=o.name("valid");d.props!==!0&&!(d.props instanceof e.Name)&&(d.props=(0,i.evaluatedPropsToName)(o,d.props));const{props:m}=d;v();function v(){for(const S of h)g&&_(S),d.allErrors?b(S):(o.var(p,!0),b(S),o.if(p))}function _(S){for(const y in g)new RegExp(S).test(y)&&(0,t.checkStrictMode)(d,`property ${y} matches pattern ${S} (use allowMatchingProperties)`)}function b(S){o.forIn("key",l,y=>{o.if((0,e._)`${(0,n.usePattern)(r,S)}.test(${y})`,()=>{const C=f.includes(S);C||r.subschema({keyword:"patternProperties",schemaProp:S,dataProp:y,dataPropType:i.Type.Str},p),d.opts.unevaluated&&m!==!0?o.assign((0,e._)`${m}[${y}]`,!0):!C&&!d.allErrors&&o.if((0,e.not)(p),()=>o.break())})})}}};return RN.default=s,RN}var DN={},cce;function AYe(){if(cce)return DN;cce=1,Object.defineProperty(DN,"__esModule",{value:!0});const n=us(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:i,schema:s,it:r}=t;if((0,n.alwaysValidSchema)(r,s)){t.fail();return}const o=i.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return DN.default=e,DN}var NN={},dce;function OYe(){if(dce)return NN;dce=1,Object.defineProperty(NN,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uh().validateUnion,error:{message:"must match a schema in anyOf"}};return NN.default=e,NN}var kN={},uce;function MYe(){if(uce)return kN;uce=1,Object.defineProperty(kN,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,n._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:r,schema:o,parentSchema:a,it:l}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const c=o,d=r.let("valid",!1),u=r.let("passing",null),h=r.name("_valid");s.setParams({passing:u}),r.block(f),s.result(d,()=>s.reset(),()=>s.error(!0));function f(){c.forEach((g,p)=>{let m;(0,e.alwaysValidSchema)(l,g)?r.var(h,!0):m=s.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},h),p>0&&r.if((0,n._)`${h} && ${d}`).assign(d,!1).assign(u,(0,n._)`[${u}, ${p}]`).else(),r.if(h,()=>{r.assign(d,!0),r.assign(u,p),m&&s.mergeEvaluated(m,n.Name)})})}}};return kN.default=i,kN}var AN={},hce;function PYe(){if(hce)return AN;hce=1,Object.defineProperty(AN,"__esModule",{value:!0});const n=us(),e={keyword:"allOf",schemaType:"array",code(t){const{gen:i,schema:s,it:r}=t;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=i.name("valid");s.forEach((a,l)=>{if((0,n.alwaysValidSchema)(r,a))return;const c=t.subschema({keyword:"allOf",schemaProp:l},o);t.ok(o),t.mergeEvaluated(c)})}};return AN.default=e,AN}var ON={},fce;function FYe(){if(fce)return ON;fce=1,Object.defineProperty(ON,"__esModule",{value:!0});const n=xn(),e=us(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,n.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,n._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:o,parentSchema:a,it:l}=r;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const c=s(l,"then"),d=s(l,"else");if(!c&&!d)return;const u=o.let("valid",!0),h=o.name("_valid");if(f(),r.reset(),c&&d){const p=o.let("ifClause");r.setParams({ifClause:p}),o.if(h,g("then",p),g("else",p))}else c?o.if(h,g("then")):o.if((0,n.not)(h),g("else"));r.pass(u,()=>r.error(!0));function f(){const p=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);r.mergeEvaluated(p)}function g(p,m){return()=>{const v=r.subschema({keyword:p},h);o.assign(u,h),r.mergeValidEvaluated(v,u),m?o.assign(m,(0,n._)`${p}`):r.setParams({ifClause:p})}}}};function s(r,o){const a=r.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(r,a)}return ON.default=i,ON}var MN={},gce;function BYe(){if(gce)return MN;gce=1,Object.defineProperty(MN,"__esModule",{value:!0});const n=us(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:i,it:s}){i.if===void 0&&(0,n.checkStrictMode)(s,`"${t}" without "if" is ignored`)}};return MN.default=e,MN}var pce;function VYe(){if(pce)return CN;pce=1,Object.defineProperty(CN,"__esModule",{value:!0});const n=pLe(),e=IYe(),t=mLe(),i=LYe(),s=xYe(),r=RYe(),o=DYe(),a=_Le(),l=NYe(),c=kYe(),d=AYe(),u=OYe(),h=MYe(),f=PYe(),g=FYe(),p=BYe();function m(v=!1){const _=[d.default,u.default,h.default,f.default,g.default,p.default,o.default,a.default,r.default,l.default,c.default];return v?_.push(e.default,i.default):_.push(n.default,t.default),_.push(s.default),_}return CN.default=m,CN}var PN={},FN={},mce;function HYe(){if(mce)return FN;mce=1,Object.defineProperty(FN,"__esModule",{value:!0});const n=xn(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,n.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,n._)`{format: ${i}}`},code(i,s){const{gen:r,data:o,$data:a,schema:l,schemaCode:c,it:d}=i,{opts:u,errSchemaPath:h,schemaEnv:f,self:g}=d;if(!u.validateFormats)return;a?p():m();function p(){const v=r.scopeValue("formats",{ref:g.formats,code:u.code.formats}),_=r.const("fDef",(0,n._)`${v}[${c}]`),b=r.let("fType"),S=r.let("format");r.if((0,n._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>r.assign(b,(0,n._)`${_}.type || "string"`).assign(S,(0,n._)`${_}.validate`),()=>r.assign(b,(0,n._)`"string"`).assign(S,_)),i.fail$data((0,n.or)(y(),C()));function y(){return u.strictSchema===!1?n.nil:(0,n._)`${c} && !${S}`}function C(){const T=f.$async?(0,n._)`(${_}.async ? await ${S}(${o}) : ${S}(${o}))`:(0,n._)`${S}(${o})`,w=(0,n._)`(typeof ${S} == "function" ? ${T} : ${S}.test(${o}))`;return(0,n._)`${S} && ${S} !== true && ${b} === ${s} && !${w}`}}function m(){const v=g.formats[l];if(!v){y();return}if(v===!0)return;const[_,b,S]=C(v);_===s&&i.pass(T());function y(){if(u.strictSchema===!1){g.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function C(w){const I=w instanceof RegExp?(0,n.regexpCode)(w):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(l)}`:void 0,R=r.scopeValue("formats",{key:l,ref:w,code:I});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,n._)`${R}.validate`]:["string",w,R]}function T(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!f.$async)throw new Error("async format in sync schema");return(0,n._)`await ${S}(${o})`}return typeof b=="function"?(0,n._)`${S}(${o})`:(0,n._)`${S}.test(${o})`}}}};return FN.default=t,FN}var _ce;function WYe(){if(_ce)return PN;_ce=1,Object.defineProperty(PN,"__esModule",{value:!0});const e=[HYe().default];return PN.default=e,PN}var ov={},vce;function UYe(){return vce||(vce=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.contentVocabulary=ov.metadataVocabulary=void 0,ov.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ov.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ov}var bce;function $Ye(){if(bce)return oN;bce=1,Object.defineProperty(oN,"__esModule",{value:!0});const n=fYe(),e=TYe(),t=VYe(),i=WYe(),s=UYe(),r=[n.default,e.default,(0,t.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];return oN.default=r,oN}var BN={},Q0={},Sce;function zYe(){if(Sce)return Q0;Sce=1,Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.DiscrError=void 0;var n;return function(e){e.Tag="tag",e.Mapping="mapping"}(n||(Q0.DiscrError=n={})),Q0}var yce;function GYe(){if(yce)return BN;yce=1,Object.defineProperty(BN,"__esModule",{value:!0});const n=xn(),e=zYe(),t=wJ(),i=GB(),s=us(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:l}})=>a===e.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:a,tag:l,tagName:c}})=>(0,n._)`{error: ${a}, tag: ${c}, tagValue: ${l}}`},code(a){const{gen:l,data:c,schema:d,parentSchema:u,it:h}=a,{oneOf:f}=u;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");const p=l.let("valid",!1),m=l.const("tag",(0,n._)`${c}${(0,n.getProperty)(g)}`);l.if((0,n._)`typeof ${m} == "string"`,()=>v(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:m,tagName:g})),a.ok(p);function v(){const S=b();l.if(!1);for(const y in S)l.elseIf((0,n._)`${m} === ${y}`),l.assign(p,_(S[y]));l.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:m,tagName:g}),l.endIf()}function _(S){const y=l.name("valid"),C=a.subschema({keyword:"oneOf",schemaProp:S},y);return a.mergeEvaluated(C,n.Name),y}function b(){var S;const y={},C=w(u);let T=!0;for(let D=0;D<f.length;D++){let L=f[D];if(L?.$ref&&!(0,s.schemaHasRulesButRef)(L,h.self.RULES)){const x=L.$ref;if(L=t.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,x),L instanceof t.SchemaEnv&&(L=L.schema),L===void 0)throw new i.default(h.opts.uriResolver,h.baseId,x)}const k=(S=L?.properties)===null||S===void 0?void 0:S[g];if(typeof k!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);T=T&&(C||w(L)),I(k,D)}if(!T)throw new Error(`discriminator: "${g}" must be required`);return y;function w({required:D}){return Array.isArray(D)&&D.includes(g)}function I(D,L){if(D.const)R(D.const,L);else if(D.enum)for(const k of D.enum)R(k,L);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function R(D,L){if(typeof D!="string"||D in y)throw new Error(`discriminator: "${g}" values must be unique strings`);y[D]=L}}}};return BN.default=o,BN}const qYe="http://json-schema.org/draft-07/schema#",KYe="http://json-schema.org/draft-07/schema#",jYe="Core schema meta-schema",YYe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},QYe=["object","boolean"],XYe={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ZYe={$schema:qYe,$id:KYe,title:jYe,definitions:YYe,type:QYe,properties:XYe,default:!0};var Cce;function JYe(){return Cce||(Cce=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=dYe(),i=$Ye(),s=GYe(),r=ZYe,o=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends t.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(r,o):r;this.addMetaSchema(g,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.Ajv=l,n.exports=e=l,n.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=zB();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=xn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=CJ();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=GB();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})}(tN,tN.exports)),tN.exports}var vLe=JYe();new vLe.Ajv({strict:!1});function zT(n){return"source"in n}const eQe=SJ({name:"input-resolver",getNodeId(n){return n.kind==="hub"?`hub:${n.hub.id}`:`instance:${n.instance.id}`},getNodeDependencies(n){const e=[];if(n.kind==="hub"){for(const t of n.hub.inputs??[])e.push(`instance:${t.instanceId}`);for(const t of n.hub.injectionInputs??[])e.push(`hub:${t.hubId}`);return e}for(const t of Object.values(n.instance.inputs??{}))for(const i of t)e.push(`instance:${i.instanceId}`);for(const t of Object.values(n.instance.hubInputs??{}))for(const i of t)e.push(`hub:${i.hubId}`);for(const t of n.instance.injectionInputs??[])e.push(`hub:${t.hubId}`);return e},process(n,e,t){const i=u=>{const h=e.get(`hub:${u.hubId}`);if(!h)return{resolvedInputs:[]};if(h.kind!=="hub")throw new Error("Expected hub node");return h},s=u=>{const h=e.get(`instance:${u.instanceId}`);if(!h)return{component:null,resolvedInputs:[],resolvedOutputs:[]};if(h.kind!=="instance")throw new Error("Expected instance node");return{component:h.component,resolvedInputs:h.resolvedInputs[u.output]??[],resolvedOutputs:h.resolvedOutputs[u.output]??[]}};if(n.kind==="hub"){const u=new Map,h=f=>{u.set(`${f.input.instanceId}:${f.input.output}`,f)};for(const f of n.hub.inputs??[]){const{component:g}=s(f),p=g?.outputs[f.output];if(!p){t.warn({msg:"output not found in the component",input:f,component:g});continue}h({input:f,type:p.type})}for(const f of n.hub.injectionInputs??[]){const{resolvedInputs:g}=i(f);for(const p of g)h(p)}return{kind:"hub",resolvedInputs:Array.from(u.values())}}if(n.instance.resolvedInputs)return{kind:"instance",component:n.component,resolvedInputs:kje(n.instance.resolvedInputs,(u,h)=>{const f=n.component.inputs[h];return f?u.map(g=>({input:g,type:f.type})):(t.warn({msg:"input not found in the component",inputName:h,component:n.component}),[])}),resolvedOutputs:n.instance.resolvedOutputs??{},resolvedInjectionInputs:[],matchedInjectionInputs:[]};const r=new Map,o=(u,h)=>{let f=r.get(u);f||(f=new Map,r.set(u,f)),f.set(`${h.input.instanceId}:${h.input.output}`,h)},a=(u,h)=>{const f=n.component.inputs[u];if(!f){t.warn({msg:"input not found in the component",input:h,component:n.component});return}const{component:g,resolvedOutputs:p}=s(h);if(!g){t.warn({instanceId:n.instance.id,input:h},"no output found for the input");return}if(zT(g)){o(u,{input:h,type:f.type});return}for(const m of p)o(u,{input:m,type:f.type})};for(const[u,h]of Object.entries(n.instance.inputs??{}))for(const f of h)a(u,f);const l=new Map,c=new Map;for(const u of n.instance.injectionInputs??[]){const{resolvedInputs:h}=i(u);for(const f of h)l.set(`${f.input.instanceId}:${f.input.output}`,f)}for(const[u,h]of Object.entries(n.component.inputs??{})){const f=new Map(l),g=n.instance.hubInputs?.[u]??[];for(const p of g){const{resolvedInputs:m}=i(p);for(const v of m)f.set(`${v.input.instanceId}:${v.input.output}`,v)}for(const p of f.values())if(p.type===h.type){a(u,p.input);const m=`${p.input.instanceId}:${p.input.output}`;l.has(m)&&c.set(m,p)}}const d=Oje(Array.from(r.entries()).map(([u,h])=>[u,Array.from(h.values())]));return{kind:"instance",component:n.component,resolvedInputs:d,resolvedOutputs:n.instance.resolvedOutputs??{},resolvedInjectionInputs:Array.from(l.values()),matchedInjectionInputs:Array.from(c.values())}}});function tQe(n){if(n.kind!=="hub")throw new Error("Expected hub node");return n.resolvedInputs}function mL(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.resolvedInputs}function iQe(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.resolvedInjectionInputs}function bLe(n){if(n.kind!=="instance")throw new Error("Expected instance node");return n.matchedInjectionInputs}const nQe=n=>{const e=new DataView(n);let t="";for(let i=0;i<e.byteLength;i+=4)t+=e.getUint32(i).toString(16).padStart(8,"0");return t},sQe=n=>async(e,{outputFormat:t="hex"}={})=>{typeof e=="string"&&(e=new globalThis.TextEncoder().encode(e));const i=await globalThis.crypto.subtle.digest(n,e);return t==="hex"?nQe(i):i},rQe=sQe("SHA-256"),oQe=SJ({name:"input-hash-resolver",getNodeId:n=>n.instance.id,getNodeDependencies({resolvedInputs:n}){const e=[];for(const t of Object.values(n??{}))for(const i of t)e.push(i.input.instanceId);return e},async process({instance:n,component:e,resolvedInputs:t,sourceHash:i,state:s},r){let o=e.definitionHash+JSON.stringify(n.args??{});i&&(o+=i);const a=Object.entries(t).sort(([l],[c])=>l.localeCompare(c));for(const[l,c]of a){if(Object.keys(c).length===0)continue;o+=l;const d=c.map(u=>u.input.instanceId);d.sort();for(const u of d){const h=r.get(u);h&&(o+=h.inputHash,o+=h.outputHash)}}return{inputHash:await rQe(o),outputHash:s?.outputHash??""}}}),aQe=SJ({name:"validation-resolver",getNodeId:n=>n.instance.id,getNodeDependencies({resolvedInputs:n}){const e=[];for(const t of Object.values(n))for(const i of t)e.push(i.input.instanceId);return e},process({instance:n,component:e,resolvedInputs:t},i,s){const r=new vLe.Ajv({strict:!1});s.debug({instanceId:n.id},"validating instance");for(const[o,a]of Object.entries(e.args))if(!(!a.required&&!n.args?.[o])&&!r.validate(a.schema,n.args?.[o]))return s.debug({instanceId:n.id,argumentName:o},"invalid argument"),{status:"invalid-args",errorText:r.errorsText()};for(const o of Object.values(t))for(const a of o)if(i.get(a.input.instanceId)?.status!=="ok")return{status:"invalid-inputs",errorText:`instance "${a.input.instanceId}" is invalid`};for(const[o,a]of Object.entries(e.inputs))if(!(!a.required||a.multiple)&&(!t[o]||!t[o].length))return{status:"missing-inputs",errorText:`input "${o}" is missing`};return{status:"ok"}}}),AM=qe.object({id:qe.string().nanoid(),projectId:qe.string(),instanceId:qe.string(),terminalName:qe.string(),terminalTitle:qe.string(),createdAt:qe.coerce.date(),finishedAt:qe.coerce.date().optional()});function lQe(n,e,t){switch(t.type){case"component-updated":n[t.component.type]=t.component;break;case"entity-updated":e[t.entity.type]=t.entity;break;case"component-removed":delete n[t.componentType];break;case"entity-removed":delete e[t.entityType];break}}const cQe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let qB=(n=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(n|=0));for(;n--;)e+=cQe[t[n]&63];return e};var X0={exports:{}},OV,wce;function dQe(){if(wce)return OV;wce=1;function n(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}OV=e;function e(t,i,s){var r=s&&s.stringify||n,o=1;if(typeof t=="object"&&t!==null){var a=i.length+o;if(a===1)return t;var l=new Array(a);l[0]=r(t);for(var c=1;c<a;c++)l[c]=r(i[c]);return l.join(" ")}if(typeof t!="string")return t;var d=i.length;if(d===0)return t;for(var u="",h=1-o,f=-1,g=t&&t.length||0,p=0;p<g;){if(t.charCodeAt(p)===37&&p+1<g){switch(f=f>-1?f:0,t.charCodeAt(p+1)){case 100:case 102:if(h>=d||i[h]==null)break;f<p&&(u+=t.slice(f,p)),u+=Number(i[h]),f=p+2,p++;break;case 105:if(h>=d||i[h]==null)break;f<p&&(u+=t.slice(f,p)),u+=Math.floor(Number(i[h])),f=p+2,p++;break;case 79:case 111:case 106:if(h>=d||i[h]===void 0)break;f<p&&(u+=t.slice(f,p));var m=typeof i[h];if(m==="string"){u+="'"+i[h]+"'",f=p+2,p++;break}if(m==="function"){u+=i[h].name||"<anonymous>",f=p+2,p++;break}u+=r(i[h]),f=p+2,p++;break;case 115:if(h>=d)break;f<p&&(u+=t.slice(f,p)),u+=String(i[h]),f=p+2,p++;break;case 37:f<p&&(u+=t.slice(f,p)),u+="%",f=p+2,p++,h--;break}++h}++p}return f===-1?t:(f<g&&(u+=t.slice(f)),u)}return OV}var Ece;function uQe(){if(Ece)return X0.exports;Ece=1;const n=dQe();X0.exports=d;const e=x().console||{},t={mapHttpRequest:T,mapHttpResponse:T,wrapRequestSerializer:w,wrapResponseSerializer:w,wrapErrorSerializer:w,req:T,res:T,err:y,errWithCause:y};function i(N,A){return N==="silent"?1/0:A.levels.values[N]}const s=Symbol("pino.logFuncs"),r=Symbol("pino.hierarchy"),o={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function a(N,A){const B={logger:A,parent:N[r]};A[r]=B}function l(N,A,B){const V={};A.forEach(O=>{V[O]=B[O]?B[O]:e[O]||e[o[O]||"log"]||I}),N[s]=V}function c(N,A){return Array.isArray(N)?N.filter(function(V){return V!=="!stdSerializers.err"}):N===!0?Object.keys(A):!1}function d(N){N=N||{},N.browser=N.browser||{};const A=N.browser.transmit;if(A&&typeof A.send!="function")throw Error("pino: transmit option must have a send function");const B=N.browser.write||e;N.browser.write&&(N.browser.asObject=!0);const V=N.serializers||{},O=c(N.browser.serialize,V);let M=N.browser.serialize;Array.isArray(N.browser.serialize)&&N.browser.serialize.indexOf("!stdSerializers.err")>-1&&(M=!1);const P=Object.keys(N.customLevels||{}),W=["error","fatal","warn","info","debug","trace"].concat(P);typeof B=="function"&&W.forEach(function(_e){B[_e]=B}),(N.enabled===!1||N.browser.disabled)&&(N.level="silent");const H=N.level||"info",F=Object.create(B);F.log||(F.log=I),l(F,W,B),a({},F),Object.defineProperty(F,"levelVal",{get:Z}),Object.defineProperty(F,"level",{get:X,set:G});const U={transmit:A,serialize:O,asObject:N.browser.asObject,formatters:N.browser.formatters,levels:W,timestamp:C(N),messageKey:N.messageKey||"msg",onChild:N.onChild||I};F.levels=u(N),F.level=H,F.setMaxListeners=F.getMaxListeners=F.emit=F.addListener=F.on=F.prependListener=F.once=F.prependOnceListener=F.removeListener=F.removeAllListeners=F.listeners=F.listenerCount=F.eventNames=F.write=F.flush=I,F.serializers=V,F._serialize=O,F._stdErrSerialize=M,F.child=function(..._e){return he.call(this,U,..._e)},A&&(F._logEvent=S());function Z(){return i(this.level,this)}function X(){return this._level}function G(_e){if(_e!=="silent"&&!this.levels.values[_e])throw Error("unknown level "+_e);this._level=_e,g(this,U,F,"error"),g(this,U,F,"fatal"),g(this,U,F,"warn"),g(this,U,F,"info"),g(this,U,F,"debug"),g(this,U,F,"trace"),P.forEach(ee=>{g(this,U,F,ee)})}function he(_e,ee,Q){if(!ee)throw new Error("missing bindings for child Pino");Q=Q||{},O&&ee.serializers&&(Q.serializers=ee.serializers);const Y=Q.serializers;if(O&&Y){var z=Object.assign({},V,Y),j=N.browser.serialize===!0?Object.keys(z):O;delete ee.serializers,_([ee],j,z,this._stdErrSerialize)}function ie(ve){this._childLevel=(ve._childLevel|0)+1,this.bindings=ee,z&&(this.serializers=z,this._serialize=j),A&&(this._logEvent=S([].concat(ve._logEvent.bindings,ee)))}ie.prototype=this;const J=new ie(this);return a(this,J),J.child=function(...ve){return he.call(this,_e,...ve)},J.level=Q.level||this.level,_e.onChild(J),J}return F}function u(N){const A=N.customLevels||{},B=Object.assign({},d.levels.values,A),V=Object.assign({},d.levels.labels,h(A));return{values:B,labels:V}}function h(N){const A={};return Object.keys(N).forEach(function(B){A[N[B]]=B}),A}d.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},d.stdSerializers=t,d.stdTimeFunctions=Object.assign({},{nullTime:R,epochTime:D,unixTime:L,isoTime:k});function f(N){const A=[];N.bindings&&A.push(N.bindings);let B=N[r];for(;B.parent;)B=B.parent,B.logger.bindings&&A.push(B.logger.bindings);return A.reverse()}function g(N,A,B,V){if(Object.defineProperty(N,V,{value:i(N.level,B)>i(V,B)?I:B[s][V],writable:!0,enumerable:!0,configurable:!0}),N[V]===I){if(!A.transmit)return;const M=A.transmit.level||N.level,P=i(M,B);if(i(V,B)<P)return}N[V]=m(N,A,B,V);const O=f(N);O.length!==0&&(N[V]=p(O,N[V]))}function p(N,A){return function(){return A.apply(this,[...N,...arguments])}}function m(N,A,B,V){return function(O){return function(){const P=A.timestamp(),W=new Array(arguments.length),H=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var F=0;F<W.length;F++)W[F]=arguments[F];var U=!1;if(A.serialize&&(_(W,this._serialize,this.serializers,this._stdErrSerialize),U=!0),A.asObject||A.formatters?O.call(H,v(this,V,W,P,A)):O.apply(H,W),A.transmit){const Z=A.transmit.level||N._level,X=i(Z,B),G=i(V,B);if(G<X)return;b(this,{ts:P,methodLevel:V,methodValue:G,transmitValue:B.levels.values[A.transmit.level||N._level],send:A.transmit.send,val:i(N._level,B)},W,U)}}}(N[s][V])}function v(N,A,B,V,O){const{level:M,log:P=X=>X}=O.formatters||{},W=B.slice();let H=W[0];const F={};if(V&&(F.time=V),M){const X=M(A,N.levels.values[A]);Object.assign(F,X)}else F.level=N.levels.values[A];let U=(N._childLevel|0)+1;if(U<1&&(U=1),H!==null&&typeof H=="object"){for(;U--&&typeof W[0]=="object";)Object.assign(F,W.shift());H=W.length?n(W.shift(),W):void 0}else typeof H=="string"&&(H=n(W.shift(),W));return H!==void 0&&(F[O.messageKey]=H),P(F)}function _(N,A,B,V){for(const O in N)if(V&&N[O]instanceof Error)N[O]=d.stdSerializers.err(N[O]);else if(typeof N[O]=="object"&&!Array.isArray(N[O])&&A)for(const M in N[O])A.indexOf(M)>-1&&M in B&&(N[O][M]=B[M](N[O][M]))}function b(N,A,B,V=!1){const O=A.send,M=A.ts,P=A.methodLevel,W=A.methodValue,H=A.val,F=N._logEvent.bindings;V||_(B,N._serialize||Object.keys(N.serializers),N.serializers,N._stdErrSerialize===void 0?!0:N._stdErrSerialize),N._logEvent.ts=M,N._logEvent.messages=B.filter(function(U){return F.indexOf(U)===-1}),N._logEvent.level.label=P,N._logEvent.level.value=W,O(P,N._logEvent,H),N._logEvent=S(F)}function S(N){return{ts:0,messages:[],bindings:N||[],level:{label:"",value:0}}}function y(N){const A={type:N.constructor.name,msg:N.message,stack:N.stack};for(const B in N)A[B]===void 0&&(A[B]=N[B]);return A}function C(N){return typeof N.timestamp=="function"?N.timestamp:N.timestamp===!1?R:D}function T(){return{}}function w(N){return N}function I(){}function R(){return!1}function D(){return Date.now()}function L(){return Math.round(Date.now()/1e3)}function k(){return new Date(Date.now()).toISOString()}function x(){function N(A){return typeof A<"u"&&A}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return N(self)||N(window)||N(this)||{}}}return X0.exports.default=d,X0.exports.pino=d,X0.exports}var hQe=uQe();const fQe=yJ(hQe),B_=fQe({level:"info"});function Ip({name:n,getStoreId:e,create:t}){const i=new Map,s=(...r)=>{if(!wr())throw new Error("MultiStore composables must be called inside a setup function.");if(!r.length){const l=R9e(`store:${n}`);if(!l)throw new Error(`No store named "${n}" available in the parent scope.`);return l.storeDef()}const o=e(...r);let a=i.get(o);if(!a){const{on:l,trigger:c}=$s();a={storeDef:t({storeId:o,id:r,onDeactivated:l,logger:B_.child({storeId:o,storeName:n})}),refCount:0,triggerDeactivated:c},i.set(o,a)}return a.refCount++,yp(()=>{if(a.refCount--,a.refCount>0)return;i.delete(o),a.triggerDeactivated();const l=a.storeDef;l().$dispose();const c=cHe();delete c.state.value[o]}),x9e(`store:${n}`,a),a.storeDef()};return s.weak=(...r)=>{if(!wr())throw new Error("MultiStore composables must be called inside a setup function.");const o=e(...r),a=i.get(o);if(!a)throw new Error(`No store with id "${o}" found.`);return a.storeDef()},s}var li;function na(n,e,t){const i=typeof t,s=typeof n;if(i!=="undefined"){if(s!=="undefined"){if(t){if(s==="function"&&i===s)return function(a){return n(t(a))};if(e=n.constructor,e===t.constructor){if(e===Array)return t.concat(n);if(e===Map){var r=new Map(t);for(var o of n)r.set(o[0],o[1]);return r}if(e===Set){o=new Set(t);for(r of n.values())o.add(r);return o}}}return n}return t}return s==="undefined"?e:n}function ao(){return Object.create(null)}function Bu(n){return typeof n=="string"}function sS(n){return typeof n=="object"}function gQe(n){const e=[];for(const t of n.keys())e.push(t);return e}function _L(n,e){if(Bu(e))n=n[e];else for(let t=0;n&&t<e.length;t++)n=n[e[t]];return n}function pQe(n){let e=0;for(let t=0,i;t<n.length;t++)(i=n[t])&&e<i.length&&(e=i.length);return e}const mQe=/[^\p{L}\p{N}]+/u,_Qe=/(\d{3})/g,vQe=/(\D)(\d{3})/g,bQe=/(\d{3})(\D)/g,Tce=/[\u0300-\u036f]/g;function OM(n={}){if(!this||this.constructor!==OM)return new OM(...arguments);if(arguments.length)for(n=0;n<arguments.length;n++)this.assign(arguments[n]);else this.assign(n)}li=OM.prototype;li.assign=function(n){this.normalize=na(n.normalize,!0,this.normalize);let e=n.include,t=e||n.exclude||n.split,i;if(t||t===""){if(typeof t=="object"&&t.constructor!==RegExp){let s="";i=!e,e||(s+="\\p{Z}"),t.letter&&(s+="\\p{L}"),t.number&&(s+="\\p{N}",i=!!e),t.symbol&&(s+="\\p{S}"),t.punctuation&&(s+="\\p{P}"),t.control&&(s+="\\p{C}"),(t=t.char)&&(s+=typeof t=="object"?t.join(""):t);try{this.split=new RegExp("["+(e?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=t,i=t===!1||2>"a1a".split(t).length;this.numeric=na(n.numeric,i)}else{try{this.split=na(this.split,mQe)}catch{this.split=/\s+/}this.numeric=na(n.numeric,na(this.numeric,!0))}if(this.prepare=na(n.prepare,null,this.prepare),this.finalize=na(n.finalize,null,this.finalize),t=n.filter,this.filter=typeof t=="function"?t:na(t&&new Set(t),null,this.filter),this.dedupe=na(n.dedupe,!1,this.dedupe),this.matcher=na((t=n.matcher)&&new Map(t),null,this.matcher),this.mapper=na((t=n.mapper)&&new Map(t),null,this.mapper),this.stemmer=na((t=n.stemmer)&&new Map(t),null,this.stemmer),this.replacer=na(n.replacer,null,this.replacer),this.minlength=na(n.minlength,1,this.minlength),this.maxlength=na(n.maxlength,0,this.maxlength),this.rtl=na(n.rtl,!1,this.rtl),(this.cache=t=na(n.cache,!0,this.cache))&&(this.H=null,this.S=typeof t=="number"?t:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this};li.addStemmer=function(n,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(n,e),this.A+=(this.A?"|":"")+n,this.N=null,this.cache&&rS(this),this};li.addFilter=function(n){return typeof n=="function"?this.filter=n:(this.filter||(this.filter=new Set),this.filter.add(n)),this.cache&&rS(this),this};li.addMapper=function(n,e){return typeof n=="object"?this.addReplacer(n,e):1<n.length?this.addMatcher(n,e):(this.mapper||(this.mapper=new Map),this.mapper.set(n,e),this.cache&&rS(this),this)};li.addMatcher=function(n,e){return typeof n=="object"?this.addReplacer(n,e):2>n.length&&(this.dedupe||this.mapper)?this.addMapper(n,e):(this.matcher||(this.matcher=new Map),this.matcher.set(n,e),this.h+=(this.h?"|":"")+n,this.M=null,this.cache&&rS(this),this)};li.addReplacer=function(n,e){return typeof n=="string"?this.addMatcher(n,e):(this.replacer||(this.replacer=[]),this.replacer.push(n,e),this.cache&&rS(this),this)};li.encode=function(n){if(this.cache&&n.length<=this.K)if(this.H){if(this.B.has(n))return this.B.get(n)}else this.H=setTimeout(rS,50,this);this.normalize&&(typeof this.normalize=="function"?n=this.normalize(n):n=Tce?n.normalize("NFKD").replace(Tce,"").toLowerCase():n.toLowerCase()),this.prepare&&(n=this.prepare(n)),this.numeric&&3<n.length&&(n=n.replace(vQe,"$1 $2").replace(bQe,"$1 $2").replace(_Qe,"$1 "));const e=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let t=[],i=this.split||this.split===""?n.split(this.split):n;for(let r=0,o,a;r<i.length;r++)if((o=a=i[r])&&!(o.length<this.minlength)){if(e)t.push(o);else if(!this.filter||(typeof this.filter=="function"?this.filter(o):!this.filter.has(o))){if(this.cache&&o.length<=this.L)if(this.H){var s=this.G.get(o);if(s||s===""){s&&t.push(s);continue}}else this.H=setTimeout(rS,50,this);if(this.stemmer&&2<o.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),s=o,o=o.replace(this.N,l=>this.stemmer.get(l)),s!==o&&this.filter&&o.length>=this.minlength&&(typeof this.filter=="function"?!this.filter(o):this.filter.has(o))&&(o="")),o&&(this.mapper||this.dedupe&&1<o.length)){s="";for(let l=0,c="",d,u;l<o.length;l++)d=o.charAt(l),d===c&&this.dedupe||((u=this.mapper&&this.mapper.get(d))||u===""?u===c&&this.dedupe||!(c=u)||(s+=u):s+=c=d);o=s}if(this.matcher&&1<o.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),o=o.replace(this.M,l=>this.matcher.get(l))),o&&this.replacer)for(s=0;o&&s<this.replacer.length;s+=2)o=o.replace(this.replacer[s],this.replacer[s+1]);this.cache&&a.length<=this.L&&(this.G.set(a,o),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),o&&t.push(o)}}return this.finalize&&(t=this.finalize(t)||t),this.cache&&n.length<=this.K&&(this.B.set(n,t),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),t};function rS(n){n.H=null,n.B.clear(),n.G.clear()}let Ly,Z0;async function SQe(n){n=n.data;var e=n.task;const t=n.id;let i=n.args;switch(e){case"init":Z0=n.options||{},(e=n.factory)?(Function("return "+e)()(self),Ly=new self.FlexSearch.Index(Z0),delete self.FlexSearch):Ly=new Qu(Z0),postMessage({id:t});break;default:let s;e==="export"&&(i[1]?(i[0]=Z0.export,i[2]=0,i[3]=1):i=null),e==="import"?i[0]&&(n=await Z0.import.call(Ly,i[0]),Ly.import(i[0],n)):(s=i&&Ly[e].apply(Ly,i))&&s.then&&(s=await s),postMessage(e==="search"?{id:t,msg:s}:{id:t})}}function TJ(n){J0.call(n,"add"),J0.call(n,"append"),J0.call(n,"search"),J0.call(n,"update"),J0.call(n,"remove")}let Dz,Ice,AA;function yQe(){Dz=AA=0}function J0(n){this[n+"Async"]=function(){const e=arguments;var t=e[e.length-1];let i;if(typeof t=="function"&&(i=t,delete e[e.length-1]),Dz?AA||(AA=Date.now()-Ice>=this.priority*this.priority*3):(Dz=setTimeout(yQe,0),Ice=Date.now()),AA){const r=this;return new Promise(o=>{setTimeout(function(){o(r[n+"Async"].apply(r,e))},0)})}const s=this[n].apply(this,e);return t=s.then?s:new Promise(r=>r(s)),i&&t.then(i),t}}let vC=0;function vL(n={}){function e(o){function a(l){l=l.data||l;const c=l.id,d=c&&s.h[c];d&&(d(l.msg),delete s.h[c])}if(this.worker=o,this.h=ao(),this.worker)return i?this.worker.on("message",a):this.worker.onmessage=a,n.config?new Promise(function(l){s.h[++vC]=function(){l(s),1e9<vC&&(vC=0)},s.worker.postMessage({id:vC,task:"init",factory:t,options:n})}):(this.worker.postMessage({task:"init",factory:t,options:n}),this.priority=n.priority||4,this)}if(!this||this.constructor!==vL)return new vL(n);let t=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;t&&(t=t.toString());const i=typeof window>"u",s=this,r=CQe(t,i,n.worker);return r.then?r.then(function(o){return e.call(s,o)}):e.call(this,r)}V_("add");V_("append");V_("search");V_("update");V_("remove");V_("clear");V_("export");V_("import");TJ(vL.prototype);function V_(n){vL.prototype[n]=function(){const e=this,t=[].slice.call(arguments);var i=t[t.length-1];let s;return typeof i=="function"&&(s=i,t.pop()),i=new Promise(function(r){n==="export"&&typeof t[0]=="function"&&(t[0]=null),e.h[++vC]=r,e.worker.postMessage({task:n,id:vC,args:t})}),s?(i.then(s),this):i}}function CQe(n,e,t){return e?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):re(()=>import("./BIHI7g3E.js"),[],import.meta.url).then(function(i){return new i.Worker(import.meta.dirname+"/node/node.mjs")}):n?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+SQe.toString()],{type:"text/javascript"}))):new window.Worker(typeof t=="string"?t:import.meta.url.replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function IJ(n,e=0){let t=[],i=[];e&&(e=25e4/e*5e3|0);for(const s of n.entries())i.push(s),i.length===e&&(t.push(i),i=[]);return i.length&&t.push(i),t}function LJ(n,e){e||(e=new Map);for(let t=0,i;t<n.length;t++)i=n[t],e.set(i[0],i[1]);return e}function SLe(n,e=0){let t=[],i=[];e&&(e=25e4/e*1e3|0);for(const s of n.entries())i.push([s[0],IJ(s[1])[0]]),i.length===e&&(t.push(i),i=[]);return i.length&&t.push(i),t}function yLe(n,e){e||(e=new Map);for(let t=0,i,s;t<n.length;t++)i=n[t],s=e.get(i[0]),e.set(i[0],LJ(i[1],s));return e}function CLe(n){let e=[],t=[];for(const i of n.keys())t.push(i),t.length===25e4&&(e.push(t),t=[]);return t.length&&e.push(t),e}function wLe(n,e){e||(e=new Set);for(let t=0;t<n.length;t++)e.add(n[t]);return e}function MM(n,e,t,i,s,r,o=0){const a=i&&i.constructor===Array;var l=a?i.shift():i;if(!l)return this.export(n,e,s,r+1);if((l=n((e?e+".":"")+(o+1)+"."+t,JSON.stringify(l)))&&l.then){const c=this;return l.then(function(){return MM.call(c,n,e,t,a?i:null,s,r,o+1)})}return MM.call(this,n,e,t,a?i:null,s,r,o+1)}function Lce(n,e){let t="";for(const i of n.entries()){n=i[0];const s=i[1];let r="";for(let o=0,a;o<s.length;o++){a=s[o]||[""];let l="";for(let c=0;c<a.length;c++)l+=(l?",":"")+(e==="string"?'"'+a[c]+'"':a[c]);l="["+l+"]",r+=(r?",":"")+l}r='["'+n+'",['+r+"]]",t+=(t?",":"")+r}return t}function xce(n,e,t,i){let s=[];for(let r=0,o;r<n.index.length;r++)if(o=n.index[r],e>=o.length)e-=o.length;else{e=o[i?"splice":"slice"](e,t);const a=e.length;if(a&&(s=s.length?s.concat(e):e,t-=a,i&&(n.length-=a),!t))break;e=0}return s}function oS(n){if(!this||this.constructor!==oS)return new oS(n);this.index=n?[n]:[],this.length=n?n.length:0;const e=this;return new Proxy([],{get(t,i){if(i==="length")return e.length;if(i==="push")return function(s){e.index[e.index.length-1].push(s),e.length++};if(i==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(i==="indexOf")return function(s){let r=0;for(let o=0,a,l;o<e.index.length;o++){if(a=e.index[o],l=a.indexOf(s),0<=l)return r+l;r+=a.length}return-1};if(i==="includes")return function(s){for(let r=0;r<e.index.length;r++)if(e.index[r].includes(s))return!0;return!1};if(i==="slice")return function(s,r){return xce(e,s||0,r||e.length,!1)};if(i==="splice")return function(s,r){return xce(e,s||0,r||e.length,!0)};if(i==="constructor")return Array;if(typeof i!="symbol")return(t=e.index[i/2**31|0])&&t[i]},set(t,i,s){return t=i/2**31|0,(e.index[t]||(e.index[t]=[]))[i]=s,e.length++,!0}})}oS.prototype.clear=function(){this.index.length=0};oS.prototype.destroy=function(){this.proxy=this.index=null};oS.prototype.push=function(){};function lf(n=8){if(!this||this.constructor!==lf)return new lf(n);this.index=ao(),this.h=[],this.size=0,32<n?(this.B=TLe,this.A=BigInt(n)):(this.B=ELe,this.A=n)}lf.prototype.get=function(n){const e=this.index[this.B(n)];return e&&e.get(n)};lf.prototype.set=function(n,e){var t=this.B(n);let i=this.index[t];i?(t=i.size,i.set(n,e),(t-=i.size)&&this.size++):(this.index[t]=i=new Map([[n,e]]),this.h.push(i),this.size++)};function Yu(n=8){if(!this||this.constructor!==Yu)return new Yu(n);this.index=ao(),this.h=[],this.size=0,32<n?(this.B=TLe,this.A=BigInt(n)):(this.B=ELe,this.A=n)}Yu.prototype.add=function(n){var e=this.B(n);let t=this.index[e];t?(e=t.size,t.add(n),(e-=t.size)&&this.size++):(this.index[e]=t=new Set([n]),this.h.push(t),this.size++)};li=lf.prototype;li.has=Yu.prototype.has=function(n){const e=this.index[this.B(n)];return e&&e.has(n)};li.delete=Yu.prototype.delete=function(n){const e=this.index[this.B(n)];e&&e.delete(n)&&this.size--};li.clear=Yu.prototype.clear=function(){this.index=ao(),this.h=[],this.size=0};li.values=Yu.prototype.values=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].values())yield e};li.keys=Yu.prototype.keys=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].keys())yield e};li.entries=Yu.prototype.entries=function*(){for(let n=0;n<this.h.length;n++)for(let e of this.h[n].entries())yield e};function ELe(n){let e=2**this.A-1;if(typeof n=="number")return n&e;let t=0,i=this.A+1;for(let s=0;s<n.length;s++)t=(t*i^n.charCodeAt(s))&e;return this.A===32?t+2**31:t}function TLe(n){let e=BigInt(2)**this.A-BigInt(1);var t=typeof n;if(t==="bigint")return n&e;if(t==="number")return BigInt(n)&e;t=BigInt(0);let i=this.A+BigInt(1);for(let s=0;s<n.length;s++)t=(t*i^BigInt(n.charCodeAt(s)))&e;return t}Yw.prototype.add=function(n,e,t){if(sS(n)&&(e=n,n=_L(e,this.key)),e&&(n||n===0)){if(!t&&this.reg.has(n))return this.update(n,e);for(let a=0,l;a<this.field.length;a++){l=this.D[a];var i=this.index.get(this.field[a]);if(typeof l=="function"){var s=l(e);s&&i.add(n,s,!1,!0)}else s=l.I,(!s||s(e))&&(l.constructor===String?l=[""+l]:Bu(l)&&(l=[l]),kz(e,l,this.J,0,i,n,l[0],t))}if(this.tag)for(i=0;i<this.F.length;i++){var r=this.F[i];s=this.tag.get(this.R[i]);let a=ao();if(typeof r=="function"){if(r=r(e),!r)continue}else{var o=r.I;if(o&&!o(e))continue;r.constructor===String&&(r=""+r),r=_L(e,r)}if(s&&r){Bu(r)&&(r=[r]);for(let l=0,c,d;l<r.length;l++)if(c=r[l],!a[c]&&(a[c]=1,(o=s.get(c))?d=o:s.set(c,d=[]),!t||!d.includes(n))){if(d.length===2**31-1){if(o=new oS(d),this.fastupdate)for(let u of this.reg.values())u.includes(d)&&(u[u.indexOf(d)]=o);s.set(c,d=o)}d.push(n),this.fastupdate&&((o=this.reg.get(n))?o.push(d):this.reg.set(n,[d]))}}}if(this.store&&(!t||!this.store.has(n))){let a;if(this.C){a=ao();for(let l=0,c;l<this.C.length;l++){if(c=this.C[l],(t=c.I)&&!t(e))continue;let d;if(typeof c=="function"){if(d=c(e),!d)continue;c=[c.V]}else if(Bu(c)||c.constructor===String){a[c]=e[c];continue}Nz(e,a,c,0,c[0],d)}}this.store.set(n,a||e)}this.worker&&(this.fastupdate||this.reg.add(n))}return this};function Nz(n,e,t,i,s,r){if(n=n[s],i===t.length-1)e[s]=r||n;else if(n)if(n.constructor===Array)for(e=e[s]=Array(n.length),s=0;s<n.length;s++)Nz(n,e,t,i,s);else e=e[s]||(e[s]=ao()),s=t[++i],Nz(n,e,t,i,s)}function kz(n,e,t,i,s,r,o,a){if(n=n[o])if(i===e.length-1){if(n.constructor===Array){if(t[i]){for(e=0;e<n.length;e++)s.add(r,n[e],!0,!0);return}n=n.join(" ")}s.add(r,n,a,!0)}else if(n.constructor===Array)for(o=0;o<n.length;o++)kz(n,e,t,i,s,r,o,a);else o=e[++i],kz(n,e,t,i,s,r,o,a);else s.db&&s.remove(r)}function ILe(n,e,t,i,s,r,o){const a=n.length;let l=[],c,d;c=ao();for(let u=0,h,f,g,p;u<e;u++)for(let m=0;m<a;m++)if(g=n[m],u<g.length&&(h=g[u]))for(let v=0;v<h.length;v++){if(f=h[v],(d=c[f])?c[f]++:(d=0,c[f]=1),p=l[d]||(l[d]=[]),!o){let _=u+(m||!s?0:r||0);p=p[_]||(p[_]=[])}if(p.push(f),o&&t&&d===a-1&&p.length-i===t)return i?p.slice(i):p}if(n=l.length)if(s)l=1<l.length?LLe(l,t,i,o,r):(l=l[0]).length>t||i?l.slice(i,t+i):l;else{if(n<a)return[];if(l=l[n-1],t||i)if(o)(l.length>t||i)&&(l=l.slice(i,t+i));else{s=[];for(let u=0,h;u<l.length;u++)if(h=l[u],h.length>i)i-=h.length;else if((h.length>t||i)&&(h=h.slice(i,t+i),t-=h.length,i&&(i-=h.length)),s.push(h),!t)break;l=1<s.length?[].concat.apply([],s):s[0]}}return l}function LLe(n,e,t,i,s){const r=[],o=ao();let a;var l=n.length;let c;if(i){for(s=l-1;0<=s;s--)if(c=(i=n[s])&&i.length){for(l=0;l<c;l++)if(a=i[l],!o[a]){if(o[a]=1,t)t--;else if(r.push(a),r.length===e)return r}}}else for(let d=l-1,u,h=0;0<=d;d--){u=n[d];for(let f=0;f<u.length;f++)if(c=(i=u[f])&&i.length){for(let g=0;g<c;g++)if(a=i[g],!o[a])if(o[a]=1,t)t--;else{let p=(f+(d<l-1&&s||0))/(d+1)|0;if((r[p]||(r[p]=[])).push(a),++h===e)return r}}}return r}function wQe(n,e,t){const i=ao(),s=[];for(let r=0,o;r<e.length;r++){o=e[r];for(let a=0;a<o.length;a++)i[o[a]]=1}if(t)for(let r=0,o;r<n.length;r++)o=n[r],i[o]&&(s.push(o),i[o]=0);else for(let r=0,o,a;r<n.result.length;r++)for(o=n.result[r],e=0;e<o.length;e++)a=o[e],i[a]&&((s[r]||(s[r]=[])).push(a),i[a]=0);return s}function xJ(n,e,t,i){if(!n.length)return n;if(n.length===1)return n=n[0],n=t||n.length>e?e?n.slice(t,t+e):n.slice(t):n,i?zm.call(this,n):n;let s=[];for(let r=0,o,a;r<n.length;r++)if((o=n[r])&&(a=o.length)){if(t){if(t>=a){t-=a;continue}t<a&&(o=e?o.slice(t,t+e):o.slice(t),a=o.length,t=0)}if(a>e&&(o=o.slice(0,e),a=e),!s.length&&a>=e)return i?zm.call(this,o):o;if(s.push(o),e-=a,!e)break}return s=1<s.length?[].concat.apply([],s):s[0],i?zm.call(this,s):s}function KB(n,e,t){var i=t[0];if(i.then)return Promise.all(t).then(function(d){return n[e].apply(n,d)});if(i[0]&&i[0].index)return n[e].apply(n,i);i=[];let s=[],r=0,o=0,a,l,c;for(let d=0,u;d<t.length;d++)if(u=t[d]){let h;if(u.constructor===or)h=u.result;else if(u.constructor===Array)h=u;else if(r=u.limit||0,o=u.offset||0,c=u.suggest,l=u.resolve,a=u.enrich&&l,u.index)u.resolve=!1,h=u.index.search(u).result,u.resolve=l;else if(u.and)h=n.and(u.and);else if(u.or)h=n.or(u.or);else if(u.xor)h=n.xor(u.xor);else if(u.not)h=n.not(u.not);else continue;if(h.then)s.push(h);else if(h.length)i[d]=h;else if(!c&&(e==="and"||e==="xor")){i=[];break}}return{O:i,P:s,limit:r,offset:o,enrich:a,resolve:l,suggest:c}}or.prototype.or=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r}=KB(this,"or",arguments);return xLe.call(this,n,e,t,i,s,r)};function xLe(n,e,t,i,s,r){if(e.length){const o=this;return Promise.all(e).then(function(a){n=[];for(let l=0,c;l<a.length;l++)(c=a[l]).length&&(n[l]=c);return xLe.call(o,n,[],t,i,s,r)})}return n.length&&(this.result.length&&n.push(this.result),2>n.length?this.result=n[0]:(this.result=LLe(n,t,i,!1,this.h),i=0)),r?this.resolve(t,i,s):this}or.prototype.and=function(){let n=this.result.length,e,t,i,s;if(!n){const r=arguments[0];r&&(n=!!r.suggest,s=r.resolve,e=r.limit,t=r.offset,i=r.enrich&&s)}if(n){const{O:r,P:o,limit:a,offset:l,enrich:c,resolve:d,suggest:u}=KB(this,"and",arguments);return RLe.call(this,r,o,a,l,c,d,u)}return s?this.resolve(e,t,i):this};function RLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return RLe.call(a,n,[],t,i,s,r,o)})}if(n.length)if(this.result.length&&n.unshift(this.result),2>n.length)this.result=n[0];else{if(e=pQe(n))return this.result=ILe(n,e,t,i,o,this.h,r),r?s?zm.call(this.index,this.result):this.result:this;this.result=[]}else o||(this.result=n);return r?this.resolve(t,i,s):this}or.prototype.xor=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r,suggest:o}=KB(this,"xor",arguments);return DLe.call(this,n,e,t,i,s,r,o)};function DLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return DLe.call(a,n,[],t,i,s,r,o)})}if(n.length)if(this.result.length&&n.unshift(this.result),2>n.length)this.result=n[0];else return this.result=EQe.call(this,n,t,i,r,this.h),r?s?zm.call(this.index,this.result):this.result:this;else o||(this.result=n);return r?this.resolve(t,i,s):this}function EQe(n,e,t,i,s){const r=[],o=ao();let a=0;for(let l=0,c;l<n.length;l++)if(c=n[l]){a<c.length&&(a=c.length);for(let d=0,u;d<c.length;d++)if(u=c[d])for(let h=0,f;h<u.length;h++)f=u[h],o[f]=o[f]?2:1}for(let l=0,c,d=0;l<a;l++)for(let u=0,h;u<n.length;u++)if((h=n[u])&&(c=h[l])){for(let f=0,g;f<c.length;f++)if(g=c[f],o[g]===1)if(t)t--;else if(i){if(r.push(g),r.length===e)return r}else{const p=l+(u?s:0);if(r[p]||(r[p]=[]),r[p].push(g),++d===e)return r}}return r}or.prototype.not=function(){const{O:n,P:e,limit:t,offset:i,enrich:s,resolve:r,suggest:o}=KB(this,"not",arguments);return NLe.call(this,n,e,t,i,s,r,o)};function NLe(n,e,t,i,s,r,o){if(e.length){const a=this;return Promise.all(e).then(function(l){n=[];for(let c=0,d;c<l.length;c++)(d=l[c]).length&&(n[c]=d);return NLe.call(a,n,[],t,i,s,r,o)})}if(n.length&&this.result.length)this.result=TQe.call(this,n,t,i,r);else if(r)return this.resolve(t,i,s);return r?s?zm.call(this.index,this.result):this.result:this}function TQe(n,e,t,i){const s=[];n=new Set(n.flat().flat());for(let r=0,o,a=0;r<this.result.length;r++)if(o=this.result[r]){for(let l=0,c;l<o.length;l++)if(c=o[l],!n.has(c)){if(t)t--;else if(i){if(s.push(c),s.length===e)return s}else if(s[r]||(s[r]=[]),s[r].push(c),++a===e)return s}}return s}function or(n){if(!this||this.constructor!==or)return new or(n);if(n&&n.index)return n.resolve=!1,this.index=n.index,this.h=n.boost||0,this.result=n.index.search(n).result,this;this.index=null,this.result=n||[],this.h=0}or.prototype.limit=function(n){if(this.result.length){const e=[];for(let t=0,i;t<this.result.length;t++)if(i=this.result[t])if(i.length<=n){if(e[t]=i,n-=i.length,!n)break}else{e[t]=i.slice(0,n);break}this.result=e}return this};or.prototype.offset=function(n){if(this.result.length){const e=[];for(let t=0,i;t<this.result.length;t++)(i=this.result[t])&&(i.length<=n?n-=i.length:(e[t]=i.slice(n),n=0));this.result=e}return this};or.prototype.boost=function(n){return this.h+=n,this};or.prototype.resolve=function(n,e,t){const i=this.result,s=this.index;return this.result=this.index=null,i.length?(typeof n=="object"&&(t=n.enrich,e=n.offset,n=n.limit),xJ.call(s,i,n||100,e,t)):i};Yw.prototype.search=function(n,e,t,i){t||(!e&&sS(n)?(t=n,n=""):sS(e)&&(t=e,e=0));let s=[];var r=[],o;let a,l,c,d=0;var u=!0;let h;if(t){t.constructor===Array&&(t={index:t}),n=t.query||n;var f=t.pluck;a=t.merge,l=f||t.field||(l=t.index)&&(l.index?null:l),c=this.tag&&t.tag;var g=t.suggest;u=t.resolve!==!1,u||f||!(l=l||this.field)||(Bu(l)?f=l:(l.constructor===Array&&l.length===1&&(l=l[0]),f=l.field||l.index)),h=(o=this.store&&t.enrich&&u)&&t.highlight,e=t.limit||e;var p=t.offset||0;if(e||(e=100),c&&(!this.db||!i)){c.constructor!==Array&&(c=[c]);var m=[];for(let S=0,y;S<c.length;S++)if(y=c[S],y.field&&y.tag){var v=y.tag;if(v.constructor===Array)for(var _=0;_<v.length;_++)m.push(y.field,v[_]);else m.push(y.field,v)}else{v=Object.keys(y);for(let C=0,T,w;C<v.length;C++)if(T=v[C],w=y[T],w.constructor===Array)for(_=0;_<w.length;_++)m.push(T,w[_]);else m.push(T,w)}if(c=m,!n){if(u=[],m.length)for(r=0;r<m.length;r+=2){if(this.db){if(f=this.index.get(m[r]),!f)continue;u.push(f=f.db.tag(m[r+1],e,p,o))}else f=IQe.call(this,m[r],m[r+1],e,p,o);s.push({field:m[r],tag:m[r+1],result:f})}return u.length?Promise.all(u).then(function(S){for(let y=0;y<S.length;y++)s[y].result=S[y];return s}):s}}l&&l.constructor!==Array&&(l=[l])}l||(l=this.field),m=!i&&(this.worker||this.db)&&[];let b;for(let S=0,y,C,T;S<l.length;S++){if(C=l[S],this.db&&this.tag&&!this.D[S])continue;let w;if(Bu(C)||(w=C,C=w.field,n=w.query||n,e=w.limit||e,p=w.offset||p,g=w.suggest||g,o=this.store&&(w.enrich||o)),i)y=i[S];else if(v=w||t,_=this.index.get(C),c&&(this.db&&(v.tag=c,b=_.db.support_tag_search,v.field=l),b||(v.enrich=!1)),m){m[S]=_.search(n,e,v),v&&o&&(v.enrich=o);continue}else y=_.search(n,e,v),v&&o&&(v.enrich=o);if(T=y&&(u?y.length:y.result.length),c&&T){if(v=[],_=0,this.db&&i){if(!b)for(let I=l.length;I<i.length;I++){let R=i[I];if(R&&R.length)_++,v.push(R);else if(!g)return u?s:new or(s)}}else for(let I=0,R,D;I<c.length;I+=2){if(R=this.tag.get(c[I]),!R){if(g)continue;return u?s:new or(s)}if(D=(R=R&&R.get(c[I+1]))&&R.length)_++,v.push(R);else if(!g)return u?s:new or(s)}if(_){if(y=wQe(y,v,u),T=y.length,!T&&!g)return u?y:new or(y);_--}}if(T)r[d]=C,s.push(y),d++;else if(l.length===1)return u?s:new or(s)}if(m){if(this.db&&c&&c.length&&!b)for(o=0;o<c.length;o+=2){if(r=this.index.get(c[o]),!r){if(g)continue;return u?s:new or(s)}m.push(r.db.tag(c[o+1],e,p,!1))}const S=this;return Promise.all(m).then(function(y){return y.length?S.search(n,e,t,y):y})}if(!d)return u?s:new or(s);if(f&&(!o||!this.store))return s[0];for(m=[],p=0;p<r.length;p++){if(g=s[p],o&&g.length&&typeof g[0].doc>"u"&&(this.db?m.push(g=this.index.get(this.field[0]).db.enrich(g)):g=zm.call(this,g)),f)return u?g:new or(g);s[p]={field:r[p],result:g}}if(o&&this.db&&m.length){const S=this;return Promise.all(m).then(function(y){for(let C=0;C<y.length;C++)s[C].result=y[C];return a?Dce(s,e):h?Rce(s,n,S.index,S.field,S.D,h):s})}return a?Dce(s,e):h?Rce(s,n,this.index,this.field,this.D,h):s};function Rce(n,e,t,i,s,r){let o,a,l;for(let c=0,d,u,h,f;c<n.length;c++){let g=n[c].result;d=n[c].field,h=t.get(d),u=h.encoder,l=h.tokenize,f=s[i.indexOf(d)],u!==o&&(o=u,a=o.encode(e));for(let p=0;p<g.length;p++){let m="",v=_L(g[p].doc,f).split(/\s+/);for(let _=0,b,S;_<v.length;_++){b=v[_],S=o.encode(b).join(" ");let y;if(S&&b)for(let C=0,T;C<a.length;C++)if(T=a[C],l==="strict"){if(S===T){m+=(m?" ":"")+r.replace("$1",b),y=!0;break}}else{const w=S.indexOf(T);if(-1<w){m+=(m?" ":"")+b.substring(0,w)+r.replace("$1",b.substring(w,T.length))+b.substring(w+T.length),y=!0;break}}y||(m+=(m?" ":"")+v[_])}g[p].highlight=m}}return n}function Dce(n,e){const t=[],i=ao();for(let s=0,r,o;s<n.length;s++){r=n[s],o=r.result;for(let a=0,l,c,d;a<o.length;a++)if(c=o[a],typeof c!="object"&&(c={id:c}),l=c.id,d=i[l])d.push(r.field);else{if(t.length===e)return t;c.field=i[l]=[r.field],t.push(c)}}return t}function IQe(n,e,t,i,s){if(n=this.tag.get(n),!n)return[];if((e=(n=n&&n.get(e))&&n.length-i)&&0<e)return(e>t||i)&&(n=n.slice(i,i+t)),s&&(n=zm.call(this,n)),n}function zm(n){if(!this||!this.store)return n;const e=Array(n.length);for(let t=0,i;t<n.length;t++)i=n[t],e[t]={id:i,doc:this.store.get(i)};return e}function Yw(n){if(!this||this.constructor!==Yw)return new Yw(n);const e=n.document||n.doc||n;let t,i;if(this.D=[],this.field=[],this.J=[],this.key=(t=e.key||e.id)&&PM(t,this.J)||"id",(i=n.keystore||0)&&(this.keystore=i),this.fastupdate=!!n.fastupdate,this.reg=!this.fastupdate||n.worker||n.db?i?new Yu(i):new Set:i?new lf(i):new Map,this.C=(t=e.store||null)&&t&&t!==!0&&[],this.store=t&&(i?new lf(i):new Map),this.cache=(t=n.cache||null)&&new KS(t),n.cache=!1,this.worker=n.worker,this.priority=n.priority||4,this.index=LQe.call(this,n,e),this.tag=null,(t=e.tag)&&(typeof t=="string"&&(t=[t]),t.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,r,o;s<t.length;s++){if(r=t[s],o=r.field||r,!o)throw Error("The tag field from the document descriptor is undefined.");r.custom?this.F[s]=r.custom:(this.F[s]=PM(o,this.J),r.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=r.filter)),this.R[s]=o,this.tag.set(o,new Map)}}if(this.worker){this.fastupdate=!1,n=[];for(const s of this.index.values())s.then&&n.push(s);if(n.length){const s=this;return Promise.all(n).then(function(r){let o=0;for(const a of s.index.entries()){const l=a[0];a[1].then&&s.index.set(l,r[o++])}return s})}}else n.db&&(this.fastupdate=!1,this.mount(n.db))}li=Yw.prototype;li.mount=function(n){let e=this.field;if(this.tag)for(let s=0,r;s<this.R.length;s++){r=this.R[s];var t=void 0;this.index.set(r,t=new Qu({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(r),t.tag=this.tag.get(r)}t=[];const i={db:n.db,type:n.type,fastupdate:n.fastupdate};for(let s=0,r,o;s<e.length;s++){i.field=o=e[s],r=this.index.get(o);const a=new n.constructor(n.id,i);a.id=n.id,t[s]=a.mount(r),r.document=!0,s?r.bypass=!0:r.store=this.store}return this.db=!0,Promise.all(t)};li.commit=async function(n,e){const t=[];for(const i of this.index.values())t.push(i.commit(n,e));await Promise.all(t),this.reg.clear()};li.destroy=function(){const n=[];for(const e of this.index.values())n.push(e.destroy());return Promise.all(n)};function LQe(n,e){const t=new Map;let i=e.index||e.field||e;Bu(i)&&(i=[i]);for(let s=0,r,o;s<i.length;s++){if(r=i[s],Bu(r)||(o=r,r=r.field),o=sS(o)?Object.assign({},n,o):n,this.worker){const a=new vL(o);t.set(r,a)}this.worker||t.set(r,new Qu(o,this.reg)),o.custom?this.D[s]=o.custom:(this.D[s]=PM(r,this.J),o.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=o.filter)),this.field[s]=r}if(this.C){n=e.store,Bu(n)&&(n=[n]);for(let s=0,r,o;s<n.length;s++)r=n[s],o=r.field||r,r.custom?(this.C[s]=r.custom,r.custom.V=o):(this.C[s]=PM(o,this.J),r.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=r.filter))}return t}function PM(n,e){const t=n.split(":");let i=0;for(let s=0;s<t.length;s++)n=t[s],n[n.length-1]==="]"&&(n=n.substring(0,n.length-2))&&(e[i]=!0),n&&(t[i++]=n);return i<t.length&&(t.length=i),1<i?t:t[0]}li.append=function(n,e){return this.add(n,e,!0)};li.update=function(n,e){return this.remove(n).add(n,e)};li.remove=function(n){sS(n)&&(n=_L(n,this.key));for(var e of this.index.values())e.remove(n,!0);if(this.reg.has(n)){if(this.tag&&!this.fastupdate)for(let t of this.tag.values())for(let i of t){e=i[0];const s=i[1],r=s.indexOf(n);-1<r&&(1<s.length?s.splice(r,1):t.delete(e))}this.store&&this.store.delete(n),this.reg.delete(n)}return this.cache&&this.cache.remove(n),this};li.clear=function(){const n=[];for(const e of this.index.values()){const t=e.clear();t.then&&n.push(t)}if(this.tag)for(const e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),n.length?Promise.all(n):this};li.contain=function(n){return this.db?this.index.get(this.field[0]).db.has(n):this.reg.has(n)};li.cleanup=function(){for(const n of this.index.values())n.cleanup();return this};li.get=function(n){return this.db?this.index.get(this.field[0]).db.enrich(n).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(n)||null};li.set=function(n,e){return typeof n=="object"&&(e=n,n=_L(e,this.key)),this.store.set(n,e),this};li.searchCache=kLe;li.export=function(n,e,t=0,i=0){if(t<this.field.length){const o=this.field[t];if((e=this.index.get(o).export(n,o,t,i=1))&&e.then){const a=this;return e.then(function(){return a.export(n,o,t+1)})}return this.export(n,o,t+1)}let s,r;switch(i){case 0:s="reg",r=CLe(this.reg),e=null;break;case 1:s="tag",r=this.tag&&SLe(this.tag,this.reg.size),e=null;break;case 2:s="doc",r=this.store&&IJ(this.store),e=null;break;default:return}return MM.call(this,n,e,s,r,t,i)};li.import=function(n,e){var t=n.split(".");t[t.length-1]==="json"&&t.pop();const i=2<t.length?t[0]:"";if(t=2<t.length?t[2]:t[1],this.worker&&i)return this.index.get(i).import(n);if(e){if(typeof e=="string"&&(e=JSON.parse(e)),i)return this.index.get(i).import(t,e);switch(t){case"reg":this.fastupdate=!1,this.reg=wLe(e,this.reg);for(let s=0,r;s<this.field.length;s++)r=this.index.get(this.field[s]),r.fastupdate=!1,r.reg=this.reg;if(this.worker){e=[];for(const s of this.index.values())e.push(s.import(n));return Promise.all(e)}break;case"tag":this.tag=yLe(e,this.tag);break;case"doc":this.store=LJ(e,this.store)}}};TJ(Yw.prototype);function kLe(n,e,t){n=(typeof n=="object"?""+n.query:n).toLowerCase(),this.cache||(this.cache=new KS);let i=this.cache.get(n);if(!i){if(i=this.search(n,e,t),i.then){const s=this;i.then(function(r){return s.cache.set(n,r),r})}this.cache.set(n,i)}return i}function KS(n){this.limit=n&&n!==!0?n:1e3,this.cache=new Map,this.h=""}KS.prototype.set=function(n,e){this.cache.set(this.h=n,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};KS.prototype.get=function(n){const e=this.cache.get(n);return e&&this.h!==n&&(this.cache.delete(n),this.cache.set(this.h=n,e)),e};KS.prototype.remove=function(n){for(const e of this.cache){const t=e[0];e[1].includes(n)&&this.cache.delete(t)}};KS.prototype.clear=function(){this.cache.clear(),this.h=""};const Nce={normalize:!1,numeric:!1},VN={},MV=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),kce=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ace=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Oce={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var xQe={X:Nce,W:VN,Y:VN,LatinBalance:{dedupe:!0,mapper:MV},LatinAdvanced:{dedupe:!0,mapper:MV,matcher:kce,replacer:Ace},LatinExtra:{dedupe:!0,mapper:MV,replacer:Ace.concat([/(?!^)[aeo]/g,""]),matcher:kce},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(n){for(let t=0;t<n.length;t++){var e=n[t];let i=e.charAt(0),s=Oce[i];for(let r=1,o;r<e.length&&(o=e.charAt(r),o==="h"||o==="w"||!(o=Oce[o])||o===s||(i+=o,s=o,i.length!==4));r++);n[t]=i}}},LatinExact:Nce,LatinDefault:VN,LatinSimple:VN};Qu.prototype.remove=function(n,e){const t=this.reg.size&&(this.fastupdate?this.reg.get(n):this.reg.has(n));if(t){if(this.fastupdate){for(let i=0,s;i<t.length;i++)if(s=t[i])if(2>s.length)s.pop();else{const r=s.indexOf(n);r===t.length-1?s.pop():s.splice(r,1)}}else bL(this.map,n),this.depth&&bL(this.ctx,n);e||this.reg.delete(n)}return this.db&&(this.commit_task.push({del:n}),this.T&&ALe(this)),this.cache&&this.cache.remove(n),this};function bL(n,e){let t=0;var i=typeof e>"u";if(n.constructor===Array){for(let s=0,r,o;s<n.length;s++)if((r=n[s])&&r.length)if(i)t++;else if(o=r.indexOf(e),0<=o){1<r.length?(r.splice(o,1),t++):delete n[s];break}else t++}else for(let s of n.entries()){i=s[0];const r=bL(s[1],e);r?t+=r:n.delete(i)}return t}const RQe={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Qu.prototype.add=function(n,e,t,i){if(e&&(n||n===0)){if(!i&&!t&&this.reg.has(n))return this.update(n,e);if(e=this.encoder.encode(e),i=e.length){const c=ao(),d=ao(),u=this.depth,h=this.resolution;for(let f=0;f<i;f++){let g=e[this.rtl?i-1-f:f];var s=g.length;if(s&&(u||!d[g])){var r=this.score?this.score(e,g,f,null,0):HN(h,i,f),o="";switch(this.tokenize){case"full":if(2<s){for(let p=0,m;p<s;p++)for(r=s;r>p;r--){o=g.substring(p,r),m=this.rtl?s-1-p:p;var a=this.score?this.score(e,g,f,o,m):HN(h,i,f,s,m);e1(this,d,o,a,n,t)}break}case"bidirectional":case"reverse":if(1<s){for(a=s-1;0<a;a--){o=g[this.rtl?s-1-a:a]+o;var l=this.score?this.score(e,g,f,o,a):HN(h,i,f,s,a);e1(this,d,o,l,n,t)}o=""}case"forward":if(1<s){for(a=0;a<s;a++)o+=g[this.rtl?s-1-a:a],e1(this,d,o,r,n,t);break}default:if(e1(this,d,g,r,n,t),u&&1<i&&f<i-1){for(s=ao(),o=this.U,r=g,a=Math.min(u+1,this.rtl?f+1:i-f),s[r]=1,l=1;l<a;l++)if((g=e[this.rtl?i-1-f-l:f+l])&&!s[g]){s[g]=1;const p=this.score?this.score(e,r,f,g,l-1):HN(o+(i/2>o?0:1),i,f,a-1,l-1),m=this.bidirectional&&g>r;e1(this,c,m?r:g,p,n,t,m?g:r)}}}}}this.fastupdate||this.reg.add(n)}else e=""}return this.db&&(e||this.commit_task.push({del:n}),this.T&&ALe(this)),this};function e1(n,e,t,i,s,r,o){let a=o?n.ctx:n.map,l;if((!e[t]||o&&!(l=e[t])[o])&&(o?(e=l||(e[t]=ao()),e[o]=1,(l=a.get(o))?a=l:a.set(o,a=new Map)):e[t]=1,(l=a.get(t))?a=l:a.set(t,a=l=[]),a=a[i]||(a[i]=[]),!r||!a.includes(s))){if(a.length===2**31-1){if(e=new oS(a),n.fastupdate)for(let c of n.reg.values())c.includes(a)&&(c[c.indexOf(a)]=e);l[i]=a=e}a.push(s),n.fastupdate&&((i=n.reg.get(s))?i.push(a):n.reg.set(s,[a]))}}function HN(n,e,t,i,s){return t&&1<n?e+(i||0)<=n?t+(s||0):(n-1)/(e+(i||0))*(t+(s||0))+1|0:0}Qu.prototype.search=function(n,e,t){t||(!e&&sS(n)?(t=n,n=""):sS(e)&&(t=e,e=0));let i=[],s,r,o,a=0,l,c,d,u,h;t?(n=t.query||n,e=t.limit||e,a=t.offset||0,r=t.context,o=t.suggest,h=(l=t.resolve!==!1)&&t.enrich,d=t.boost,u=t.resolution,c=this.db&&t.tag):l=this.resolve;let f=this.encoder.encode(n);if(s=f.length,e=e||(l?100:0),s===1)return Pce.call(this,f[0],"",e,a,l,h,c);if(r=this.depth&&r!==!1,s===2&&r&&!o)return Pce.call(this,f[1],f[0],e,a,l,h,c);let g=ao(),p=0,m;if(1<s&&r&&(m=f[0],p=1),u||u===0||(u=m?this.U:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,f,e,a,o,l,h,c),n!==!1))return n;const v=this;return async function(){for(let _,b;p<s;p++){if((b=f[p])&&!g[b]){if(g[b]=1,_=await Az(v,b,m,0,0,!1,!1),_=Fce(_,i,o,u)){i=_;break}m&&(o&&_&&i.length||(m=b))}o&&m&&p===s-1&&!i.length&&(u=v.resolution,m="",p=-1,g=ao())}return Mce(i,u,e,a,o,d,l)}()}for(let v,_;p<s;p++){if((_=f[p])&&!g[_]){if(g[_]=1,v=Az(this,_,m,0,0,!1,!1),v=Fce(v,i,o,u)){i=v;break}m&&(o&&v&&i.length||(m=_))}o&&m&&p===s-1&&!i.length&&(u=this.resolution,m="",p=-1,g=ao())}return Mce(i,u,e,a,o,d,l)};function Mce(n,e,t,i,s,r,o){let a=n.length,l=n;if(1<a)l=ILe(n,e,t,i,s,r,o);else if(a===1)return o?xJ.call(null,n[0],t,i):new or(n[0]);return o?l:new or(l)}function Pce(n,e,t,i,s,r,o){return n=Az(this,n,e,t,i,s,r,o),this.db?n.then(function(a){return s?a||[]:new or(a)}):n&&n.length?s?xJ.call(this,n,t,i):new or(n):s?[]:new or}function Fce(n,e,t,i){let s=[];if(n&&n.length){if(n.length<=i){e.push(n);return}for(let r=0,o;r<i;r++)(o=n[r])&&(s[r]=o);if(s.length){e.push(s);return}}if(!t)return s}function Az(n,e,t,i,s,r,o,a){let l;return t&&(l=n.bidirectional&&e>t)&&(l=t,t=e,e=l),n.db?n.db.get(e,t,i,s,r,o,a):(n=t?(n=n.ctx.get(t))&&n.get(e):n.map.get(e),n)}function Qu(n,e){if(!this||this.constructor!==Qu)return new Qu(n);if(n){var t=Bu(n)?n:n.preset;t&&(n=Object.assign({},RQe[t],n))}else n={};t=n.context;const i=t===!0?{depth:1}:t||{},s=Bu(n.encoder)?xQe[n.encoder]:n.encode||n.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new OM(s):{encode:s},this.resolution=n.resolution||9,this.tokenize=t=(t=n.tokenize)&&t!=="default"&&t!=="exact"&&t||"strict",this.depth=t==="strict"&&i.depth||0,this.bidirectional=i.bidirectional!==!1,this.fastupdate=!!n.fastupdate,this.score=n.score||null,(t=n.keystore||0)&&(this.keystore=t),this.map=t?new lf(t):new Map,this.ctx=t?new lf(t):new Map,this.reg=e||(this.fastupdate?t?new lf(t):new Map:t?new Yu(t):new Set),this.U=i.resolution||3,this.rtl=s.rtl||n.rtl||!1,this.cache=(t=n.cache||null)&&new KS(t),this.resolve=n.resolve!==!1,(t=n.db)&&(this.db=this.mount(t)),this.T=n.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=n.priority||4}li=Qu.prototype;li.mount=function(n){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),n.mount(this)};li.commit=function(n,e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,n,e)};li.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function ALe(n){n.commit_timer||(n.commit_timer=setTimeout(function(){n.commit_timer=null,n.db.commit(n,void 0,void 0)},1))}li.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this};li.append=function(n,e){return this.add(n,e,!0)};li.contain=function(n){return this.db?this.db.has(n):this.reg.has(n)};li.update=function(n,e){const t=this,i=this.remove(n);return i&&i.then?i.then(()=>t.add(n,e)):this.add(n,e)};li.cleanup=function(){return this.fastupdate?(bL(this.map),this.depth&&bL(this.ctx),this):this};li.searchCache=kLe;li.export=function(n,e,t=0,i=0){let s,r;switch(i){case 0:s="reg",r=CLe(this.reg);break;case 1:s="cfg",r=null;break;case 2:s="map",r=IJ(this.map,this.reg.size);break;case 3:s="ctx",r=SLe(this.ctx,this.reg.size);break;default:return}return MM.call(this,n,e,s,r,t,i)};li.import=function(n,e){if(e)switch(typeof e=="string"&&(e=JSON.parse(e)),n=n.split("."),n[n.length-1]==="json"&&n.pop(),n.length===3&&n.shift(),n=1<n.length?n[1]:n[0],n){case"reg":this.fastupdate=!1,this.reg=wLe(e,this.reg);break;case"map":this.map=LJ(e,this.map);break;case"ctx":this.ctx=yLe(e,this.ctx)}};li.serialize=function(n=!0){let e="",t="",i="";if(this.reg.size){let r;for(var s of this.reg.keys())r||(r=typeof s),e+=(e?",":"")+(r==="string"?'"'+s+'"':s);e="index.reg=new Set(["+e+"]);",t=Lce(this.map,r),t="index.map=new Map(["+t+"]);";for(const o of this.ctx.entries()){s=o[0];let a=Lce(o[1],r);a="new Map(["+a+"])",a='["'+s+'",'+a+"]",i+=(i?",":"")+a}i="index.ctx=new Map(["+i+"]);"}return n?"function inject(index){"+e+t+i+"}":e+t+i};TJ(Qu.prototype);const OLe=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),FM=["map","ctx","tag","reg","cfg"],Fv=ao();function MLe(n,e={}){if(!this)return new MLe(n,e);typeof n=="object"&&(e=n,n=n.name),n||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(n?":"+n.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}li=MLe.prototype;li.mount=function(n){return n.encoder?(n.db=this,this.open()):n.mount(this)};li.open=function(){if(this.db)return this.db;let n=this;navigator.storage&&navigator.storage.persist(),Fv[n.id]||(Fv[n.id]=[]),Fv[n.id].push(n.field);const e=OLe.open(n.id,1);return e.onupgradeneeded=function(){const t=n.db=this.result;for(let i=0,s;i<FM.length;i++){s=FM[i];for(let r=0,o;r<Fv[n.id].length;r++)o=Fv[n.id][r],t.objectStoreNames.contains(s+(s!=="reg"&&o?":"+o:""))||t.createObjectStore(s+(s!=="reg"&&o?":"+o:""))}},n.db=H_(e,function(t){n.db=t,n.db.onversionchange=function(){n.close()}})};li.close=function(){this.db&&this.db.close(),this.db=null};li.destroy=function(){const n=OLe.deleteDatabase(this.id);return H_(n)};li.clear=function(){const n=[];for(let t=0,i;t<FM.length;t++){i=FM[t];for(let s=0,r;s<Fv[this.id].length;s++)r=Fv[this.id][s],n.push(i+(i!=="reg"&&r?":"+r:""))}const e=this.db.transaction(n,"readwrite");for(let t=0;t<n.length;t++)e.objectStore(n[t]).clear();return H_(e)};li.get=function(n,e,t=0,i=0,s=!0,r=!1){n=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+n:n);const o=this;return H_(n).then(function(a){let l=[];if(!a||!a.length)return l;if(s){if(!t&&!i&&a.length===1)return a[0];for(let c=0,d;c<a.length;c++)if((d=a[c])&&d.length){if(i>=d.length){i-=d.length;continue}const u=t?i+Math.min(d.length-i,t):d.length;for(let h=i;h<u;h++)l.push(d[h]);if(i=0,l.length===t)break}return r?o.enrich(l):l}return a})};li.tag=function(n,e=0,t=0,i=!1){n=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(n);const s=this;return H_(n).then(function(r){return!r||!r.length||t>=r.length?[]:!e&&!t?r:(r=r.slice(t,t+e),i?s.enrich(r):r)})};li.enrich=function(n){typeof n!="object"&&(n=[n]);const e=this.db.transaction("reg","readonly").objectStore("reg"),t=[];for(let i=0;i<n.length;i++)t[i]=H_(e.get(n[i]));return Promise.all(t).then(function(i){for(let s=0;s<i.length;s++)i[s]={id:n[s],doc:i[s]?JSON.parse(i[s]):null};return i})};li.has=function(n){return n=this.db.transaction("reg","readonly").objectStore("reg").getKey(n),H_(n).then(function(e){return!!e})};li.search=null;li.info=function(){};li.transaction=function(n,e,t){n+=n!=="reg"&&this.field?":"+this.field:"";let i=this.h[n+":"+e];if(i)return t.call(this,i);let s=this.db.transaction(n,e);this.h[n+":"+e]=i=s.objectStore(n);const r=t.call(this,i);return this.h[n+":"+e]=null,H_(s).finally(function(){return s=i=null,r})};li.commit=async function(n,e,t){if(e)await this.clear(),n.commit_task=[];else{let i=n.commit_task;n.commit_task=[];for(let s=0,r;s<i.length;s++)if(r=i[s],r.clear){await this.clear(),e=!0;break}else i[s]=r.del;e||(t||(i=i.concat(gQe(n.reg))),i.length&&await this.remove(i))}n.reg.size&&(await this.transaction("map","readwrite",function(i){for(const s of n.map){const r=s[0],o=s[1];o.length&&(e?i.put(o,r):i.get(r).onsuccess=function(){let a=this.result;var l;if(a&&a.length){const c=Math.max(a.length,o.length);for(let d=0,u,h;d<c;d++)if((h=o[d])&&h.length){if((u=a[d])&&u.length)for(l=0;l<h.length;l++)u.push(h[l]);else a[d]=h;l=1}}else a=o,l=1;l&&i.put(a,r)})}}),await this.transaction("ctx","readwrite",function(i){for(const s of n.ctx){const r=s[0],o=s[1];for(const a of o){const l=a[0],c=a[1];c.length&&(e?i.put(c,r+":"+l):i.get(r+":"+l).onsuccess=function(){let d=this.result;var u;if(d&&d.length){const h=Math.max(d.length,c.length);for(let f=0,g,p;f<h;f++)if((p=c[f])&&p.length){if((g=d[f])&&g.length)for(u=0;u<p.length;u++)g.push(p[u]);else d[f]=p;u=1}}else d=c,u=1;u&&i.put(d,r+":"+l)})}}}),n.store?await this.transaction("reg","readwrite",function(i){for(const s of n.store){const r=s[0],o=s[1];i.put(typeof o=="object"?JSON.stringify(o):1,r)}}):n.bypass||await this.transaction("reg","readwrite",function(i){for(const s of n.reg.keys())i.put(1,s)}),n.tag&&await this.transaction("tag","readwrite",function(i){for(const s of n.tag){const r=s[0],o=s[1];o.length&&(i.get(r).onsuccess=function(){let a=this.result;a=a&&a.length?a.concat(o):o,i.put(a,r)})}}),n.map.clear(),n.ctx.clear(),n.tag&&n.tag.clear(),n.store&&n.store.clear(),n.document||n.reg.clear())};function PV(n,e,t){const i=n.value;let s,r=0;for(let o=0,a;o<i.length;o++){if(a=t?i:i[o]){for(let l=0,c,d;l<e.length;l++)if(d=e[l],c=a.indexOf(d),0<=c)if(s=1,1<a.length)a.splice(c,1);else{i[o]=[];break}r+=a.length}if(t)break}r?s&&n.update(i):n.delete(),n.continue()}li.remove=function(n){return typeof n!="object"&&(n=[n]),Promise.all([this.transaction("map","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n)}}),this.transaction("ctx","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n)}}),this.transaction("tag","readwrite",function(e){e.openCursor().onsuccess=function(){const t=this.result;t&&PV(t,n,!0)}}),this.transaction("reg","readwrite",function(e){for(let t=0;t<n.length;t++)e.delete(n[t])})])};function H_(n,e){return new Promise((t,i)=>{n.onsuccess=n.oncomplete=function(){e&&e(this.result),e=null,t(this.result)},n.onerror=n.onblocked=i,n=null})}const DQe=Qu;function kc(n,e=0){return n[n.length-(1+e)]}function NQe(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function is(n,e,t=(i,s)=>i===s){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,s=n.length;i<s;i++)if(!t(n[i],e[i]))return!1;return!0}function kQe(n,e){const t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function SL(n,e,t){return AQe(n.length,i=>t(n[i],e))}function AQe(n,e){let t=0,i=n-1;for(;t<=i;){const s=(t+i)/2|0,r=e(s);if(r<0)t=s+1;else if(r>0)i=s-1;else return s}return-(t+1)}function Oz(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],s=[],r=[],o=[];for(const a of e){const l=t(a,i);l<0?s.push(a):l>0?r.push(a):o.push(a)}return n<s.length?Oz(n,s,t):n<s.length+o.length?o[0]:Oz(n-(s.length+o.length),r,t)}function Bce(n,e){const t=[];let i;for(const s of n.slice(0).sort(e))!i||e(i[0],s)!==0?(i=[s],t.push(i)):i.push(s);return t}function*RJ(n,e){let t,i;for(const s of n)i!==void 0&&e(i,s)?t.push(s):(t&&(yield t),t=[s]),i=s;t&&(yield t)}function PLe(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function OQe(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function zd(n){return n.filter(e=>!!e)}function Vce(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function FLe(n){return!Array.isArray(n)||n.length===0}function Yo(n){return Array.isArray(n)&&n.length>0}function sp(n,e=t=>t){const t=new Set;return n.filter(i=>{const s=e(i);return t.has(s)?!1:(t.add(s),!0)})}function DJ(n,e){return n.length>0?n[0]:e}function Da(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let s=t;s<e;s++)i.push(s);else for(let s=t;s>e;s--)i.push(s);return i}function jB(n,e,t){const i=n.slice(0,e),s=n.slice(e);return i.concat(t,s)}function FV(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function WN(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function Mz(n,e){for(const t of e)n.push(t)}function NJ(n){return Array.isArray(n)?n:[n]}function MQe(n,e,t){const i=BLe(n,e),s=n.length,r=t.length;n.length=s+r;for(let o=s-1;o>=i;o--)n[o+r]=n[o];for(let o=0;o<r;o++)n[o+i]=t[o]}function Hce(n,e,t,i){const s=BLe(n,e);let r=n.splice(s,t);return r===void 0&&(r=[]),MQe(n,s,i),r}function BLe(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}var yL;(function(n){function e(r){return r<0}n.isLessThan=e;function t(r){return r<=0}n.isLessThanOrEqual=t;function i(r){return r>0}n.isGreaterThan=i;function s(r){return r===0}n.isNeitherLessOrGreaterThan=s,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(yL||(yL={}));function pa(n,e){return(t,i)=>e(n(t),n(i))}function PQe(...n){return(e,t)=>{for(const i of n){const s=i(e,t);if(!yL.isNeitherLessOrGreaterThan(s))return s}return yL.neitherLessOrGreaterThan}}const Vd=(n,e)=>n-e,FQe=(n,e)=>Vd(n?1:0,e?1:0);function VLe(n){return(e,t)=>-n(e,t)}class rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Kg{static{this.empty=new Kg(e=>{})}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Kg(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Kg(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(s=>((i||yL.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0)),t}}class BM{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((s,r)=>t(e[s],e[r]));return new BM(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new BM(e)}}function za(n){return typeof n=="string"}function Rr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function BQe(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function a_(n){return typeof n=="number"&&!isNaN(n)}function Wce(n){return!!n&&typeof n[Symbol.iterator]=="function"}function HLe(n){return n===!0||n===!1}function Ko(n){return typeof n>"u"}function cf(n){return!nc(n)}function nc(n){return Ko(n)||n===null}function Ni(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Em(n){if(nc(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function CL(n){return typeof n=="function"}function VQe(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)HQe(n[i],e[i])}function HQe(n,e){if(za(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(CL(e)){try{if(n instanceof e)return}catch{}if(!nc(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function mg(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?mg(i):i}),e}function WQe(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(WLe.call(t,i)){const s=t[i];typeof s=="object"&&!Object.isFrozen(s)&&!BQe(s)&&e.push(s)}}return n}const WLe=Object.prototype.hasOwnProperty;function ULe(n,e){return Pz(n,e,new Set)}function Pz(n,e,t){if(nc(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const s=[];for(const r of n)s.push(Pz(r,e,t));return s}if(Rr(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const s={};for(const r in n)WLe.call(n,r)&&(s[r]=Pz(n[r],e,t));return t.delete(n),s}return n}function YB(n,e,t=!0){return Rr(n)?(Rr(e)&&Object.keys(e).forEach(i=>{i in n?t&&(Rr(n[i])&&Rr(e[i])?YB(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Ll(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Ll(n[t],e[t]))return!1}else{const s=[];for(i in n)s.push(i);s.sort();const r=[];for(i in e)r.push(i);if(r.sort(),!Ll(s,r))return!1;for(t=0;t<s.length;t++)if(!Ll(n[s[t]],e[s[t]]))return!1}return!0}function UQe(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function Fz(n){const e=[];for(const t of UQe(n))typeof n[t]=="function"&&e.push(t);return e}function $Qe(n,e){const t=s=>function(){const r=Array.prototype.slice.call(arguments,0);return e(s,r)},i={};for(const s of n)i[s]=t(s);return i}function $Le(){return globalThis._VSCODE_NLS_MESSAGES}function kJ(){return globalThis._VSCODE_NLS_LANGUAGE}const zQe=kJ()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function VM(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,s)=>{const r=s[0],o=e[r];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),zQe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function E(n,e,...t){return VM(typeof n=="number"?zLe(n,e):e,t)}function zLe(n,e){const t=$Le()?.[n];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${n} !!!`)}return t}function xt(n,e,...t){let i;typeof n=="number"?i=zLe(n,e):i=e;const s=VM(i,t);return{value:s,original:e===i?s:VM(e,t)}}const bC="en";let HM=!1,WM=!1,OA=!1,GLe=!1,AJ=!1,OJ=!1,qLe=!1,UN,MA=bC,Uce=bC,GQe,og;const jg=globalThis;let Oc;typeof jg.vscode<"u"&&typeof jg.vscode.process<"u"?Oc=jg.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Oc=process);const qQe=typeof Oc?.versions?.electron=="string",KQe=qQe&&Oc?.type==="renderer";if(typeof Oc=="object"){HM=Oc.platform==="win32",WM=Oc.platform==="darwin",OA=Oc.platform==="linux",OA&&Oc.env.SNAP&&Oc.env.SNAP_REVISION,Oc.env.CI||Oc.env.BUILD_ARTIFACTSTAGINGDIRECTORY,UN=bC,MA=bC;const n=Oc.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n);UN=e.userLocale,Uce=e.osLocale,MA=e.resolvedLanguage||bC,GQe=e.languagePack?.translationsConfigFile}catch{}GLe=!0}else typeof navigator=="object"&&!KQe?(og=navigator.userAgent,HM=og.indexOf("Windows")>=0,WM=og.indexOf("Macintosh")>=0,OJ=(og.indexOf("Macintosh")>=0||og.indexOf("iPad")>=0||og.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,OA=og.indexOf("Linux")>=0,qLe=og?.indexOf("Mobi")>=0,AJ=!0,MA=kJ()||bC,UN=navigator.language.toLowerCase(),Uce=UN):console.error("Unable to resolve platform.");const go=HM,di=WM,va=OA,Cf=GLe,jS=AJ,jQe=AJ&&typeof jg.importScripts=="function",YQe=jQe?jg.origin:void 0,Xu=OJ,KLe=qLe,wf=og,QQe=MA,XQe=typeof jg.postMessage=="function"&&!jg.importScripts,jLe=(()=>{if(XQe){const n=[];jg.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=n.length;i<s;i++){const r=n[i];if(r.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),r.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),jg.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),El=WM||OJ?2:HM?1:3;let $ce=!0,zce=!1;function YLe(){if(!zce){zce=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,$ce=new Uint16Array(n.buffer)[0]===513}return $ce}const QLe=!!(wf&&wf.indexOf("Chrome")>=0),ZQe=!!(wf&&wf.indexOf("Firefox")>=0),JQe=!!(!QLe&&wf&&wf.indexOf("Safari")>=0),eXe=!!(wf&&wf.indexOf("Edg/")>=0),tXe=!!(wf&&wf.indexOf("Android")>=0),To={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Si;(function(n){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*s(S){yield S}n.single=s;function r(S){return e(S)?S:s(S)}n.wrap=r;function o(S){return S||t}n.from=o;function*a(S){for(let y=S.length-1;y>=0;y--)yield S[y]}n.reverse=a;function l(S){return!S||S[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(S){return S[Symbol.iterator]().next().value}n.first=c;function d(S,y){let C=0;for(const T of S)if(y(T,C++))return!0;return!1}n.some=d;function u(S,y){for(const C of S)if(y(C))return C}n.find=u;function*h(S,y){for(const C of S)y(C)&&(yield C)}n.filter=h;function*f(S,y){let C=0;for(const T of S)yield y(T,C++)}n.map=f;function*g(S,y){let C=0;for(const T of S)yield*y(T,C++)}n.flatMap=g;function*p(...S){for(const y of S)yield*y}n.concat=p;function m(S,y,C){let T=C;for(const w of S)T=y(T,w);return T}n.reduce=m;function*v(S,y,C=S.length){for(y<0&&(y+=S.length),C<0?C+=S.length:C>S.length&&(C=S.length);y<C;y++)yield S[y]}n.slice=v;function _(S,y=Number.POSITIVE_INFINITY){const C=[];if(y===0)return[C,S];const T=S[Symbol.iterator]();for(let w=0;w<y;w++){const I=T.next();if(I.done)return[C,n.empty()];C.push(I.value)}return[C,{[Symbol.iterator](){return T}}]}n.consume=_;async function b(S){const y=[];for await(const C of S)y.push(C);return Promise.resolve(y)}n.asyncToArray=b})(Si||(Si={}));let pr=class PA{static{this.Undefined=new PA(void 0)}constructor(e){this.element=e,this.next=PA.Undefined,this.prev=PA.Undefined}};class da{constructor(){this._first=pr.Undefined,this._last=pr.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pr.Undefined}clear(){let e=this._first;for(;e!==pr.Undefined;){const t=e.next;e.prev=pr.Undefined,e.next=pr.Undefined,e=t}this._first=pr.Undefined,this._last=pr.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new pr(e);if(this._first===pr.Undefined)this._first=i,this._last=i;else if(t){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==pr.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pr.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pr.Undefined&&e.next!==pr.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pr.Undefined&&e.next===pr.Undefined?(this._first=pr.Undefined,this._last=pr.Undefined):e.next===pr.Undefined?(this._last=this._last.prev,this._last.next=pr.Undefined):e.prev===pr.Undefined&&(this._first=this._first.next,this._first.prev=pr.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pr.Undefined;)yield e.element,e=e.next}}const UM="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function iXe(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of UM)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const MJ=iXe();function PJ(n){let e=MJ;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const XLe=new da;XLe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function wL(n,e,t,i,s){if(e=PJ(e),s||(s=Si.first(XLe)),t.length>s.maxLen){let c=n-s.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+s.maxLen/2),wL(n,e,t,i,s)}const r=Date.now(),o=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-r>=s.timeBudget);c++){const d=o-s.windowSize*c;e.lastIndex=Math.max(0,d);const u=nXe(e,t,o,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function nXe(n,e,t,i){let s;for(;s=n.exec(e);){const r=s.index||0;if(r<=t&&n.lastIndex>=t)return s;if(i>0&&r>i)return null}return null}const Dh=8;class ZLe{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class JLe{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jn{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return QB(e,t)}compute(e,t,i){return i}}class GT{constructor(e,t){this.newValue=e,this.didChange=t}}function QB(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new GT(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&is(n,e);return new GT(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const s=QB(n[i],e[i]);s.didChange&&(n[i]=s.newValue,t=!0)}return new GT(n,t)}class xR{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return QB(e,t)}validate(e){return this.defaultValue}}class o0{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return QB(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ct(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class Ri extends o0{constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return ct(e,this.defaultValue)}}function Cv(n,e,t,i){if(typeof n>"u")return e;let s=parseInt(n,10);return isNaN(s)?e:(s=Math.max(t,s),s=Math.min(i,s),s|0)}class En extends o0{static clampedInt(e,t,i,s){return Cv(e,t,i,s)}constructor(e,t,i,s,r,o=void 0){typeof o<"u"&&(o.type="integer",o.default=i,o.minimum=s,o.maximum=r),super(e,t,i,o),this.minimum=s,this.maximum=r}validate(e){return En.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function sXe(n,e,t,i){if(typeof n>"u")return e;const s=ac.float(n,e);return ac.clamp(s,t,i)}class ac extends o0{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,r){typeof r<"u"&&(r.type="number",r.default=i),super(e,t,i,r),this.validationFn=s}validate(e){return this.validationFn(ac.float(e,this.defaultValue))}}class zo extends o0{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return zo.string(e,this.defaultValue)}}function bs(n,e,t,i){return typeof n!="string"?e:i&&n in i?i[n]:t.indexOf(n)===-1?e:n}class _s extends o0{constructor(e,t,i,s,r=void 0){typeof r<"u"&&(r.type="string",r.enum=s,r.default=i),super(e,t,i,r),this._allowedValues=s}validate(e){return bs(e,this.defaultValue,this._allowedValues)}}class $N extends Jn{constructor(e,t,i,s,r,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=r,a.default=s),super(e,t,i,a),this._allowedValues=r,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function rXe(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class oXe extends Jn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[E("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),E("accessibilitySupport.on","Optimize for usage with a Screen Reader."),E("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:E("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class aXe extends Jn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:E("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:E("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ct(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ct(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function lXe(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Fr;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(Fr||(Fr={}));function cXe(n){switch(n){case"line":return Fr.Line;case"block":return Fr.Block;case"underline":return Fr.Underline;case"line-thin":return Fr.LineThin;case"block-outline":return Fr.BlockOutline;case"underline-thin":return Fr.UnderlineThin}}class dXe extends xR{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),t.get(74)==="default"?s.push("mouse-default"):t.get(74)==="copy"&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}class uXe extends Ri{constructor(){super(37,"emptySelectionClipboard",!0,{description:E("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class hXe extends Jn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:E("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[E("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),E("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),E("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:E("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[E("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),E("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),E("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:E("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:E("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:di},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:E("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:E("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ct(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bs(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bs(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ct(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ct(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ct(t.loop,this.defaultValue.loop)}}}class Rd extends Jn{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",Rd.OFF,{anyOf:[{type:"boolean",description:E("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:E("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:E("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Rd.OFF:e==="true"?Rd.ON:e:e?Rd.ON:Rd.OFF}}class wg extends Jn{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",wg.OFF,{anyOf:[{type:"boolean",description:E("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:E("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:E("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?wg.OFF:e==="true"?wg.TRANSLATE:e:e?wg.TRANSLATE:wg.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class fXe extends xR{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class gXe extends o0{constructor(){super(52,"fontSize",ma.fontSize,{type:"number",minimum:6,maximum:100,default:ma.fontSize,description:E("fontSize","Controls the font size in pixels.")})}validate(e){const t=ac.float(e,this.defaultValue);return t===0?ma.fontSize:ac.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Bv extends Jn{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",ma.fontWeight,{anyOf:[{type:"number",minimum:Bv.MINIMUM_VALUE,maximum:Bv.MAXIMUM_VALUE,errorMessage:E("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Bv.SUGGESTION_VALUES}],default:ma.fontWeight,description:E("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(En.clampedInt(e,ma.fontWeight,Bv.MINIMUM_VALUE,Bv.MAXIMUM_VALUE))}}class pXe extends Jn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[E("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),E("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),E("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:E("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:E("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:E("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:E("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:E("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:E("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:E("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:E("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:E("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:E("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:E("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:bs(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??bs(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??bs(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??bs(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??bs(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??bs(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??bs(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:zo.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:zo.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:zo.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:zo.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:zo.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:zo.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class mXe extends Jn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:E("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:E("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:E("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:E("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:E("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),delay:En.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ct(t.sticky,this.defaultValue.sticky),hidingDelay:En.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:ct(t.above,this.defaultValue.above)}}}class nw extends xR{constructor(){super(146)}compute(e,t,i){return nw.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const r=(i+e.viewLineCount+s)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:r,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,S=u?2:3;let y=Math.floor(r*s);const C=y/r;let T=!1,w=!1,I=S*h,R=h/r,D=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:V,extraLinesBeforeFirstLine:O,extraLinesBeyondLastLine:M,desiredRatio:P,minimapLineCount:W}=nw.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:l,pixelRatio:r});if(v/W>1)T=!0,w=!0,h=1,I=1,R=h/r;else{let F=!1,U=h+1;if(g==="fit"){const Z=Math.ceil((O+v+M)*I);b&&a&&_<=t.stableFitRemainingWidth?(F=!0,U=t.stableFitMaxMinimapScale):F=Z>y}if(g==="fill"||F){T=!0;const Z=h;I=Math.min(l*r,Math.max(1,Math.floor(1/P))),b&&a&&_<=t.stableFitRemainingWidth&&(U=t.stableFitMaxMinimapScale),h=Math.min(U,Math.max(1,Math.floor(I/S))),h>Z&&(D=Math.min(2,h/Z)),R=h/r/D,y=Math.ceil(Math.max(V,O+v+M)*I),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const L=Math.floor(f*R),k=Math.min(L,Math.max(0,Math.floor((_-m-2)*R/(c+R)))+Dh);let x=Math.floor(r*k);const N=x/r;x=Math.floor(x*D);const A=u?1:2,B=p==="left"?0:i-k-m;return{renderMinimap:A,minimapLeft:B,minimapWidth:k,minimapHeightIsEditorHeight:T,minimapIsSampling:w,minimapScale:h,minimapLineHeight:I,minimapCanvasInnerWidth:x,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const i=t.outerWidth|0,s=t.outerHeight|0,r=t.lineHeight|0,o=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(138),h=u==="inherit"?e.get(137):u,f=h==="inherit"?e.get(133):h,g=e.get(136),p=t.isDominatedByLongLines,m=e.get(57),v=e.get(68).renderType!==0,_=e.get(69),b=e.get(106),S=e.get(84),y=e.get(73),C=e.get(104),T=C.verticalScrollbarSize,w=C.verticalHasArrows,I=C.arrowSize,R=C.horizontalScrollbarSize,D=e.get(43),L=e.get(111)!=="never";let k=e.get(66);D&&L&&(k+=16);let x=0;if(v){const G=Math.max(o,_);x=Math.round(G*l)}let N=0;m&&(N=r*t.glyphMarginDecorationLaneCount);let A=0,B=A+N,V=B+x,O=V+k;const M=i-N-x-k;let P=!1,W=!1,H=-1;h==="inherit"&&p?(P=!0,W=!0):f==="on"||f==="bounded"?W=!0:f==="wordWrapColumn"&&(H=g);const F=nw._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,paddingTop:S.top,paddingBottom:S.bottom,minimap:y,verticalScrollbarWidth:T,viewLineCount:d,remainingWidth:M,isViewportWrapping:W},t.memory||new JLe);F.renderMinimap!==0&&F.minimapLeft===0&&(A+=F.minimapWidth,B+=F.minimapWidth,V+=F.minimapWidth,O+=F.minimapWidth);const U=M-F.minimapWidth,Z=Math.max(1,Math.floor((U-T-2)/a)),X=w?I:0;return W&&(H=Math.max(1,Z),f==="bounded"&&(H=Math.min(H,g))),{width:i,height:s,glyphMarginLeft:A,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:B,lineNumbersWidth:x,decorationsLeft:V,decorationsWidth:k,contentLeft:O,contentWidth:U,minimap:F,viewportColumn:Z,isWordWrapMinified:P,isViewportWrapping:W,wrappingColumn:H,verticalScrollbarWidth:T,horizontalScrollbarHeight:R,overviewRuler:{top:X,width:T,height:s-2*X,right:0}}}}class _Xe extends Jn{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[E("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),E("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:E("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bs(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Ed;(function(n){n.Off="off",n.OnCode="onCode",n.On="on"})(Ed||(Ed={}));class vXe extends Jn{constructor(){const e={enabled:Ed.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Ed.Off,Ed.OnCode,Ed.On],default:e.enabled,enumDescriptions:[E("editor.lightbulb.enabled.off","Disable the code action menu."),E("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),E("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:E("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bs(e.enabled,this.defaultValue.enabled,[Ed.Off,Ed.OnCode,Ed.On])}}}class bXe extends Jn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:E("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:E("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:E("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:E("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),maxLineCount:En.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bs(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:ct(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class SXe extends Jn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:E("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[E("editor.inlayHints.on","Inlay hints are enabled"),E("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",di?"Ctrl+Option":"Ctrl+Alt"),E("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",di?"Ctrl+Option":"Ctrl+Alt"),E("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:E("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:E("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:E("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bs(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:En.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:zo.string(t.fontFamily,this.defaultValue.fontFamily),padding:ct(t.padding,this.defaultValue.padding)}}}class yXe extends Jn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):En.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?En.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class CXe extends ac{constructor(){super(67,"lineHeight",ma.lineHeight,e=>ac.clamp(e,0,150),{markdownDescription:E("lineHeight",`Controls the line height.
176
176
  - Use 0 to automatically compute the line height from the font size.
177
177
  - Values between 0 and 8 will be used as a multiplier with the font size.
178
178
  - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class wXe extends Jn{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:E("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:E("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[E("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),E("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),E("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:E("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:E("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:E("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:E("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:E("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:E("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:E("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:E("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:E("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:E("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),autohide:ct(t.autohide,this.defaultValue.autohide),size:bs(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:bs(t.side,this.defaultValue.side,["right","left"]),showSlider:bs(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ct(t.renderCharacters,this.defaultValue.renderCharacters),scale:En.clampedInt(t.scale,1,1,3),maxColumn:En.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:ct(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:ct(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ac.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:ac.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function EXe(n){return n==="ctrlCmd"?di?"metaKey":"ctrlKey":"altKey"}class TXe extends Jn{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:E("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:E("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:En.clampedInt(t.top,0,0,1e3),bottom:En.clampedInt(t.bottom,0,0,1e3)}}}class IXe extends Jn{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:E("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:E("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),cycle:ct(t.cycle,this.defaultValue.cycle)}}}class LXe extends xR{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}class xXe extends Jn{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class RXe extends Jn{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[E("on","Quick suggestions show inside the suggest widget"),E("inline","Quick suggestions show as ghost text"),E("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:E("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:E("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:E("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:E("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:s}=e,r=["on","inline","off"];let o,a,l;return typeof t=="boolean"?o=t?"on":"off":o=bs(t,this.defaultValue.other,r),typeof i=="boolean"?a=i?"on":"off":a=bs(i,this.defaultValue.comments,r),typeof s=="boolean"?l=s?"on":"off":l=bs(s,this.defaultValue.strings,r),{other:o,comments:a,strings:l}}}class DXe extends Jn{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[E("lineNumbers.off","Line numbers are not rendered."),E("lineNumbers.on","Line numbers are rendered as absolute number."),E("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),E("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:E("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function $M(n){const e=n.get(99);return e==="editable"?n.get(92):e!=="on"}class NXe extends Jn{constructor(){const e=[],t={type:"number",description:E("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:E("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:E("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:En.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const s=i;t.push({column:En.clampedInt(s.column,0,0,1e4),color:s.color})}return t.sort((i,s)=>i.column-s.column),t}return this.defaultValue}}class kXe extends Jn{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function Gce(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}let AXe=class extends Jn{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[E("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),E("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),E("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:E("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[E("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),E("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),E("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:E("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:E("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:E("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:E("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:E("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=En.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=En.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:En.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Gce(t.vertical,this.defaultValue.vertical),horizontal:Gce(t.horizontal,this.defaultValue.horizontal),useShadows:ct(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:ct(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ct(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ct(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ct(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:En.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:En.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:ct(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:ct(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const Yl="inUntrustedWorkspace",ka={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class OXe extends Jn{constructor(){const e={nonBasicASCII:Yl,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Yl,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[ka.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yl],default:e.nonBasicASCII,description:E("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[ka.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:E("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[ka.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:E("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[ka.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yl],default:e.includeComments,description:E("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[ka.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yl],default:e.includeStrings,description:E("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[ka.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:E("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[ka.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:E("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(Ll(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(Ll(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new GT(s.newValue,!0):s}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:sw(t.nonBasicASCII,Yl,[!0,!1,Yl]),invisibleCharacters:ct(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ct(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:sw(t.includeComments,Yl,[!0,!1,Yl]),includeStrings:sw(t.includeStrings,Yl,[!0,!1,Yl]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[s,r]of Object.entries(e))r===!0&&(i[s]=!0);return i}}class MXe extends Jn{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:E("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[E("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),E("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),E("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:E("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:E("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:E("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),mode:bs(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:bs(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:ct(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:ct(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:zo.string(t.fontFamily,this.defaultValue.fontFamily)}}}class PXe extends Jn{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:E("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[E("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),E("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),E("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:E("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:E("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),showToolbar:bs(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:zo.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:ct(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class FXe extends Jn{constructor(){const e={enabled:To.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:To.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:E("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:E("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:ct(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class BXe extends Jn{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[E("editor.guides.bracketPairs.true","Enables bracket pair guides."),E("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),E("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:E("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[E("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),E("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),E("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:E("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:E("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:E("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[E("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),E("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),E("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:E("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:sw(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:sw(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ct(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ct(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:sw(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function sw(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class VXe extends Jn{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[E("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),E("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:E("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:E("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:E("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:E("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[E("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),E("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),E("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),E("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:E("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:E("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:E("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:E("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:E("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:E("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:E("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:E("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:E("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:bs(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ct(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ct(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ct(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ct(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:bs(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:ct(t.showIcons,this.defaultValue.showIcons),showStatusBar:ct(t.showStatusBar,this.defaultValue.showStatusBar),preview:ct(t.preview,this.defaultValue.preview),previewMode:bs(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ct(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ct(t.showMethods,this.defaultValue.showMethods),showFunctions:ct(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ct(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ct(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:ct(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:ct(t.showFields,this.defaultValue.showFields),showVariables:ct(t.showVariables,this.defaultValue.showVariables),showClasses:ct(t.showClasses,this.defaultValue.showClasses),showStructs:ct(t.showStructs,this.defaultValue.showStructs),showInterfaces:ct(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ct(t.showModules,this.defaultValue.showModules),showProperties:ct(t.showProperties,this.defaultValue.showProperties),showEvents:ct(t.showEvents,this.defaultValue.showEvents),showOperators:ct(t.showOperators,this.defaultValue.showOperators),showUnits:ct(t.showUnits,this.defaultValue.showUnits),showValues:ct(t.showValues,this.defaultValue.showValues),showConstants:ct(t.showConstants,this.defaultValue.showConstants),showEnums:ct(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ct(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ct(t.showKeywords,this.defaultValue.showKeywords),showWords:ct(t.showWords,this.defaultValue.showWords),showColors:ct(t.showColors,this.defaultValue.showColors),showFiles:ct(t.showFiles,this.defaultValue.showFiles),showReferences:ct(t.showReferences,this.defaultValue.showReferences),showFolders:ct(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ct(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ct(t.showSnippets,this.defaultValue.showSnippets),showUsers:ct(t.showUsers,this.defaultValue.showUsers),showIssues:ct(t.showIssues,this.defaultValue.showIssues)}}}class HXe extends Jn{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:E("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:E("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ct(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:ct(e.selectSubwords,this.defaultValue.selectSubwords)}}}class WXe extends Jn{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:E("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:E("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class UXe extends Jn{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[E("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),E("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),E("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),E("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:E("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class $Xe extends xR{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}class zXe extends Jn{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:E("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:E("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[E("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),E("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),showDropSelector:bs(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class GXe extends Jn{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:E("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:E("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[E("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),E("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ct(t.enabled,this.defaultValue.enabled),showPasteSelector:bs(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const qXe="Consolas, 'Courier New', monospace",KXe="Menlo, Monaco, 'Courier New', monospace",jXe="'Droid Sans Mono', 'monospace', monospace",ma={fontFamily:di?KXe:va?jXe:qXe,fontWeight:"normal",fontSize:di?12:14,lineHeight:0,letterSpacing:0},SC=[];function ze(n){return SC[n.id]=n,n}const hh={acceptSuggestionOnCommitCharacter:ze(new Ri(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:E("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ze(new _s(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",E("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:E("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ze(new oXe),accessibilityPageSize:ze(new En(3,"accessibilityPageSize",10,1,1073741824,{description:E("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ze(new zo(4,"ariaLabel",E("editorViewAccessibleLabel","Editor content"))),ariaRequired:ze(new Ri(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ze(new Ri(8,"screenReaderAnnounceInlineSuggestion",!0,{description:E("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ze(new _s(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",E("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),E("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:E("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ze(new _s(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",E("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),E("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:E("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ze(new _s(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",E("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:E("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ze(new _s(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",E("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:E("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ze(new _s(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",E("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),E("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:E("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ze(new $N(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],rXe,{enumDescriptions:[E("editor.autoIndent.none","The editor will not insert indentation automatically."),E("editor.autoIndent.keep","The editor will keep the current line's indentation."),E("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),E("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),E("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:E("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ze(new Ri(13,"automaticLayout",!1)),autoSurround:ze(new _s(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[E("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),E("editor.autoSurround.quotes","Surround with quotes but not brackets."),E("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:E("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ze(new FXe),bracketPairGuides:ze(new BXe),stickyTabStops:ze(new Ri(117,"stickyTabStops",!1,{description:E("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ze(new Ri(17,"codeLens",!0,{description:E("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ze(new zo(18,"codeLensFontFamily","",{description:E("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ze(new En(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:E("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ze(new Ri(20,"colorDecorators",!0,{description:E("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ze(new _s(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[E("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),E("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),E("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:E("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ze(new En(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:E("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ze(new Ri(22,"columnSelection",!1,{description:E("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ze(new aXe),contextmenu:ze(new Ri(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ze(new Ri(25,"copyWithSyntaxHighlighting",!0,{description:E("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ze(new $N(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],lXe,{description:E("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ze(new _s(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[E("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),E("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),E("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:E("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ze(new $N(28,"cursorStyle",Fr.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],cXe,{description:E("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ze(new En(29,"cursorSurroundingLines",0,0,1073741824,{description:E("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ze(new _s(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[E("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),E("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:E("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ze(new En(31,"cursorWidth",0,0,1073741824,{markdownDescription:E("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ze(new Ri(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ze(new Ri(33,"disableMonospaceOptimizations",!1)),domReadOnly:ze(new Ri(34,"domReadOnly",!1)),dragAndDrop:ze(new Ri(35,"dragAndDrop",!0,{description:E("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ze(new uXe),dropIntoEditor:ze(new zXe),stickyScroll:ze(new bXe),experimentalWhitespaceRendering:ze(new _s(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[E("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),E("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),E("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:E("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ze(new zo(39,"extraEditorClassName","")),fastScrollSensitivity:ze(new ac(40,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:E("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ze(new hXe),fixedOverflowWidgets:ze(new Ri(42,"fixedOverflowWidgets",!1)),folding:ze(new Ri(43,"folding",!0,{description:E("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ze(new _s(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[E("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),E("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:E("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ze(new Ri(45,"foldingHighlight",!0,{description:E("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ze(new Ri(46,"foldingImportsByDefault",!1,{description:E("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ze(new En(47,"foldingMaximumRegions",5e3,10,65e3,{description:E("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ze(new Ri(48,"unfoldOnClickAfterEndOfLine",!1,{description:E("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ze(new zo(49,"fontFamily",ma.fontFamily,{description:E("fontFamily","Controls the font family.")})),fontInfo:ze(new fXe),fontLigatures2:ze(new Rd),fontSize:ze(new gXe),fontWeight:ze(new Bv),fontVariations:ze(new wg),formatOnPaste:ze(new Ri(55,"formatOnPaste",!1,{description:E("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ze(new Ri(56,"formatOnType",!1,{description:E("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ze(new Ri(57,"glyphMargin",!0,{description:E("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ze(new pXe),hideCursorInOverviewRuler:ze(new Ri(59,"hideCursorInOverviewRuler",!1,{description:E("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ze(new mXe),inDiffEditor:ze(new Ri(61,"inDiffEditor",!1)),letterSpacing:ze(new ac(64,"letterSpacing",ma.letterSpacing,n=>ac.clamp(n,-5,20),{description:E("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ze(new vXe),lineDecorationsWidth:ze(new yXe),lineHeight:ze(new CXe),lineNumbers:ze(new DXe),lineNumbersMinChars:ze(new En(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ze(new Ri(70,"linkedEditing",!1,{description:E("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ze(new Ri(71,"links",!0,{description:E("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ze(new _s(72,"matchBrackets","always",["always","near","never"],{description:E("matchBrackets","Highlight matching brackets.")})),minimap:ze(new wXe),mouseStyle:ze(new _s(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ze(new ac(75,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:E("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ze(new Ri(76,"mouseWheelZoom",!1,{markdownDescription:di?E("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):E("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ze(new Ri(77,"multiCursorMergeOverlapping",!0,{description:E("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ze(new $N(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],EXe,{markdownEnumDescriptions:[E("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),E("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:E({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ze(new _s(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[E("multiCursorPaste.spread","Each cursor pastes a single line of the text."),E("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:E("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ze(new En(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:E("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ze(new _s(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[E("occurrencesHighlight.off","Does not highlight occurrences."),E("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),E("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:E("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ze(new Ri(82,"overviewRulerBorder",!0,{description:E("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ze(new En(83,"overviewRulerLanes",3,0,3)),padding:ze(new TXe),pasteAs:ze(new GXe),parameterHints:ze(new IXe),peekWidgetDefaultFocus:ze(new _s(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[E("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),E("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:E("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:ze(new xXe),definitionLinkOpensInPeek:ze(new Ri(89,"definitionLinkOpensInPeek",!1,{description:E("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ze(new RXe),quickSuggestionsDelay:ze(new En(91,"quickSuggestionsDelay",10,0,1073741824,{description:E("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ze(new Ri(92,"readOnly",!1)),readOnlyMessage:ze(new kXe),renameOnType:ze(new Ri(94,"renameOnType",!1,{description:E("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:E("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ze(new Ri(95,"renderControlCharacters",!0,{description:E("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ze(new _s(96,"renderFinalNewline",va?"dimmed":"on",["off","on","dimmed"],{description:E("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ze(new _s(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",E("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:E("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ze(new Ri(98,"renderLineHighlightOnlyWhenFocus",!1,{description:E("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ze(new _s(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ze(new _s(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",E("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),E("renderWhitespace.selection","Render whitespace characters only on selected text."),E("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:E("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ze(new En(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ze(new Ri(102,"roundedSelection",!0,{description:E("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ze(new NXe),scrollbar:ze(new AXe),scrollBeyondLastColumn:ze(new En(105,"scrollBeyondLastColumn",4,0,1073741824,{description:E("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ze(new Ri(106,"scrollBeyondLastLine",!0,{description:E("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ze(new Ri(107,"scrollPredominantAxis",!0,{description:E("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ze(new Ri(108,"selectionClipboard",!0,{description:E("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:va})),selectionHighlight:ze(new Ri(109,"selectionHighlight",!0,{description:E("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ze(new Ri(110,"selectOnLineNumbers",!0)),showFoldingControls:ze(new _s(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[E("showFoldingControls.always","Always show the folding controls."),E("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),E("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:E("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ze(new Ri(112,"showUnused",!0,{description:E("showUnused","Controls fading out of unused code.")})),showDeprecated:ze(new Ri(141,"showDeprecated",!0,{description:E("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ze(new SXe),snippetSuggestions:ze(new _s(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[E("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),E("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),E("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),E("snippetSuggestions.none","Do not show snippet suggestions.")],description:E("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ze(new HXe),smoothScrolling:ze(new Ri(115,"smoothScrolling",!1,{description:E("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ze(new En(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ze(new VXe),inlineSuggest:ze(new MXe),inlineEdit:ze(new PXe),inlineCompletionsAccessibilityVerbose:ze(new Ri(150,"inlineCompletionsAccessibilityVerbose",!1,{description:E("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ze(new En(120,"suggestFontSize",0,0,1e3,{markdownDescription:E("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ze(new En(121,"suggestLineHeight",0,0,1e3,{markdownDescription:E("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ze(new Ri(122,"suggestOnTriggerCharacters",!0,{description:E("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ze(new _s(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[E("suggestSelection.first","Always select the first suggestion."),E("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),E("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:E("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ze(new _s(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[E("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),E("tabCompletion.off","Disable tab completions."),E("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:E("tabCompletion","Enables tab completions.")})),tabIndex:ze(new En(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:ze(new OXe),unusualLineTerminators:ze(new _s(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[E("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),E("unusualLineTerminators.off","Unusual line terminators are ignored."),E("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:E("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ze(new Ri(128,"useShadowDOM",!0)),useTabStops:ze(new Ri(129,"useTabStops",!0,{description:E("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ze(new _s(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[E("wordBreak.normal","Use the default line break rule."),E("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:E("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ze(new WXe),wordSeparators:ze(new zo(132,"wordSeparators",UM,{description:E("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ze(new _s(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[E("wordWrap.off","Lines will never wrap."),E("wordWrap.on","Lines will wrap at the viewport width."),E({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),E({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:E({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ze(new zo(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ze(new zo(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ze(new En(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:E({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ze(new _s(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ze(new _s(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ze(new dXe),defaultColorDecorators:ze(new Ri(148,"defaultColorDecorators",!1,{markdownDescription:E("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ze(new LXe),tabFocusMode:ze(new Ri(145,"tabFocusMode",!1,{markdownDescription:E("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ze(new nw),wrappingInfo:ze(new $Xe),wrappingIndent:ze(new UXe),wrappingStrategy:ze(new _Xe)};class YXe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Qw.isErrorNoTelemetry(e)?new Qw(e.message+`
@@ -836,27 +836,27 @@ ${e.toString()}`}}class f2{constructor(e=new E0,t=!1,i,s=tgt){this._services=e,t
836
836
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
837
837
  * Released under the MIT license
838
838
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
839
- *-----------------------------------------------------------------------------*/var XSt=Object.defineProperty,ZSt=Object.getOwnPropertyDescriptor,JSt=Object.getOwnPropertyNames,eyt=Object.prototype.hasOwnProperty,tyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of JSt(e))!eyt.call(n,s)&&s!==t&&XSt(n,s,{get:()=>e[s],enumerable:!(i=ZSt(e,s))||i.enumerable});return n},iyt=(n,e,t)=>(tyt(n,e,"default"),t),fT={};iyt(fT,sD);var MAe={},dW={},nyt=class PAe{static getOrCreate(e){return dW[e]||(dW[e]=new PAe(e)),dW[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,MAe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function yt(n){const e=n.id;MAe[e]=n,fT.languages.register(n);const t=nyt.getOrCreate(e);fT.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),fT.languages.onLanguageEncountered(e,async()=>{const i=await t.load();fT.languages.setLanguageConfiguration(e,i.conf)})}yt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>re(()=>import("./BrgZPUOV.js"),[],import.meta.url)});yt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>re(()=>import("./DyP6w7ZV.js"),[],import.meta.url)});yt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>re(()=>import("./BaLxmfj-.js"),[],import.meta.url)});yt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>re(()=>import("./CFOPXBzS.js"),[],import.meta.url)});yt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>re(()=>import("./BfEKNvv3.js"),[],import.meta.url)});yt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>re(()=>import("./BFG1Mk7z.js"),[],import.meta.url)});yt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>re(()=>import("./DTECt2xU.js"),[],import.meta.url)});yt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>re(()=>import("./CDGzqUPQ.js"),[],import.meta.url)});yt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>re(()=>import("./CLLBncYj.js"),[],import.meta.url)});yt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>re(()=>import("./CLLBncYj.js"),[],import.meta.url)});yt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>re(()=>import("./dUCx_-0o.js"),[],import.meta.url)});yt({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>re(()=>import("./5Rap-vPy.js"),[],import.meta.url)});yt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>re(()=>import("./D3h14YRZ.js"),[],import.meta.url)});yt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>re(()=>import("./DrQuvNYM.js"),[],import.meta.url)});yt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>re(()=>import("./CFKIUWau.js"),[],import.meta.url)});yt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>re(()=>import("./Zznr-cwX.js"),[],import.meta.url)});yt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>re(()=>import("./Ce3n6wWz.js"),[],import.meta.url)});yt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>re(()=>import("./deUWdS0T.js"),[],import.meta.url)});yt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>re(()=>import("./i9-g7ZhI.js"),[],import.meta.url)});yt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>re(()=>import("./CzKuDChf.js"),[],import.meta.url)});yt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});yt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationDollar)});yt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationDollar)});yt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationBracket)});yt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationBracket)});yt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});yt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>re(()=>import("./vqG04Fyl.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationBracket)});yt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>re(()=>import("./Cphgjts3.js"),[],import.meta.url)});yt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>re(()=>import("./Cg7bfA9N.js"),[],import.meta.url)});yt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>re(()=>import("./DoC5dTPz.js"),[],import.meta.url)});yt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>re(()=>import("./0cvrggvQ.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./BYXRUxKk.js"),[],import.meta.url)});yt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>re(()=>import("./Drc7WvVn.js"),[],import.meta.url)});yt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>re(()=>import("./B_fMsGYe.js"),[],import.meta.url)});yt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>re(()=>import("./BLd8IW8T.js"),__vite__mapDeps([0,1]),import.meta.url)});yt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>re(()=>import("./Bqgm2twL.js"),[],import.meta.url)});yt({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>re(()=>import("./BSkB5QuD.js"),[],import.meta.url)});yt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>re(()=>import("./BsTHnhdd.js"),[],import.meta.url)});yt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>re(()=>import("./YWi4-JPR.js"),[],import.meta.url)});yt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>re(()=>import("./nf6ki56Z.js"),[],import.meta.url)});yt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>re(()=>import("./CqTVw56w.js"),[],import.meta.url)});yt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>re(()=>import("./Cpb6xl2v.js"),[],import.meta.url)});yt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>re(()=>import("./DSZPf7rp.js"),[],import.meta.url)});yt({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>re(()=>import("./Dgb_-ErM.js"),[],import.meta.url)});yt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>re(()=>import("./B_c3zf-v.js"),[],import.meta.url)});yt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>re(()=>import("./rUNN04Wq.js"),[],import.meta.url)});yt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>re(()=>import("./DDwshQtU.js"),[],import.meta.url)});yt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>re(()=>import("./B5zXfXm9.js"),[],import.meta.url)});yt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>re(()=>import("./CXOwvkN_.js"),[],import.meta.url)});yt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>re(()=>import("./Bc-ZgV77.js"),[],import.meta.url)});yt({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>re(()=>import("./CwNk8-XU.js"),[],import.meta.url)});yt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>re(()=>import("./tGk8EFnU.js"),[],import.meta.url)});yt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>re(()=>import("./CpIb_Oan.js"),[],import.meta.url)});yt({id:"pla",extensions:[".pla"],loader:()=>re(()=>import("./B03wrqEc.js"),[],import.meta.url)});yt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>re(()=>import("./BKlk5iyT.js"),[],import.meta.url)});yt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>re(()=>import("./Bhzvs7bI.js"),[],import.meta.url)});yt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>re(()=>import("./Dd3NCNK9.js"),[],import.meta.url)});yt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>re(()=>import("./COyEY5Pt.js"),[],import.meta.url)});yt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>re(()=>import("./BaJupSGV.js"),[],import.meta.url)});yt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>re(()=>import("./CK8ePFDQ.js"),[],import.meta.url)});yt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>re(()=>import("./DXyYeYxl.js"),[],import.meta.url)});yt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>re(()=>import("./CdQndTaG.js"),[],import.meta.url)});yt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>re(()=>import("./5IdGydij.js"),[],import.meta.url)});yt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>re(()=>import("./CVwtpugi.js"),[],import.meta.url)});yt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>re(()=>import("./25W9uPmb.js"),[],import.meta.url)});yt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>re(()=>import("./DfzH4Xui.js"),[],import.meta.url)});yt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>re(()=>import("./Cp1zYvxS.js"),[],import.meta.url)});yt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>re(()=>import("./D5C2fndG.js"),[],import.meta.url)});yt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>re(()=>import("./CDntyWJ8.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./BoFRg7Ot.js"),[],import.meta.url)});yt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>re(()=>import("./Bio4gycK.js"),[],import.meta.url)});yt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>re(()=>import("./4Ik7cdeQ.js"),[],import.meta.url)});yt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>re(()=>import("./CX-rkNHf.js"),[],import.meta.url)});yt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>re(()=>import("./Tw7wswEv.js"),[],import.meta.url)});yt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>re(()=>import("./C5WLch3f.js"),[],import.meta.url)});yt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>re(()=>import("./DHaeiCBh.js"),[],import.meta.url)});yt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>re(()=>import("./CCSDG5nI.js"),[],import.meta.url)});yt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>re(()=>import("./pnP8ivHi.js"),[],import.meta.url)});yt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>re(()=>import("./DwJ7jVG9.js"),[],import.meta.url)});yt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>re(()=>import("./B9Xyijhd.js"),[],import.meta.url)});yt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>re(()=>import("./B9Xyijhd.js"),[],import.meta.url)});yt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>re(()=>import("./DnHyzjbg.js"),[],import.meta.url)});yt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>re(()=>import("./CPajHgWi.js"),[],import.meta.url)});yt({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>re(()=>import("./DXKg-ox3.js"),[],import.meta.url)});yt({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>re(()=>import("./D-MeaMDU.js"),[],import.meta.url)});yt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>re(()=>import("./DgyLZaXg.js"),[],import.meta.url)});yt({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>re(()=>import("./DYQUnd45.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./Dt6vQC-u.js"),[],import.meta.url)});yt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>re(()=>import("./Pz3eYrcg.js"),[],import.meta.url)});/*!-----------------------------------------------------------------------------
839
+ *-----------------------------------------------------------------------------*/var XSt=Object.defineProperty,ZSt=Object.getOwnPropertyDescriptor,JSt=Object.getOwnPropertyNames,eyt=Object.prototype.hasOwnProperty,tyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of JSt(e))!eyt.call(n,s)&&s!==t&&XSt(n,s,{get:()=>e[s],enumerable:!(i=ZSt(e,s))||i.enumerable});return n},iyt=(n,e,t)=>(tyt(n,e,"default"),t),fT={};iyt(fT,sD);var MAe={},dW={},nyt=class PAe{static getOrCreate(e){return dW[e]||(dW[e]=new PAe(e)),dW[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,MAe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function yt(n){const e=n.id;MAe[e]=n,fT.languages.register(n);const t=nyt.getOrCreate(e);fT.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),fT.languages.onLanguageEncountered(e,async()=>{const i=await t.load();fT.languages.setLanguageConfiguration(e,i.conf)})}yt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>re(()=>import("./BrgZPUOV.js"),[],import.meta.url)});yt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>re(()=>import("./DyP6w7ZV.js"),[],import.meta.url)});yt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>re(()=>import("./BaLxmfj-.js"),[],import.meta.url)});yt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>re(()=>import("./CFOPXBzS.js"),[],import.meta.url)});yt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>re(()=>import("./BfEKNvv3.js"),[],import.meta.url)});yt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>re(()=>import("./BFG1Mk7z.js"),[],import.meta.url)});yt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>re(()=>import("./DTECt2xU.js"),[],import.meta.url)});yt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>re(()=>import("./CDGzqUPQ.js"),[],import.meta.url)});yt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>re(()=>import("./CLLBncYj.js"),[],import.meta.url)});yt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>re(()=>import("./CLLBncYj.js"),[],import.meta.url)});yt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>re(()=>import("./dUCx_-0o.js"),[],import.meta.url)});yt({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>re(()=>import("./5Rap-vPy.js"),[],import.meta.url)});yt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>re(()=>import("./D3h14YRZ.js"),[],import.meta.url)});yt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>re(()=>import("./DrQuvNYM.js"),[],import.meta.url)});yt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>re(()=>import("./CFKIUWau.js"),[],import.meta.url)});yt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>re(()=>import("./Zznr-cwX.js"),[],import.meta.url)});yt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>re(()=>import("./Ce3n6wWz.js"),[],import.meta.url)});yt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>re(()=>import("./deUWdS0T.js"),[],import.meta.url)});yt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>re(()=>import("./i9-g7ZhI.js"),[],import.meta.url)});yt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>re(()=>import("./CzKuDChf.js"),[],import.meta.url)});yt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});yt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationDollar)});yt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationDollar)});yt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagAngleInterpolationBracket)});yt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagBracketInterpolationBracket)});yt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationDollar)});yt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>re(()=>import("./CIrl0N3t.js"),[],import.meta.url).then(n=>n.TagAutoInterpolationBracket)});yt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>re(()=>import("./Cphgjts3.js"),[],import.meta.url)});yt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>re(()=>import("./Cg7bfA9N.js"),[],import.meta.url)});yt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>re(()=>import("./zXTedGBg.js"),[],import.meta.url)});yt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>re(()=>import("./0cvrggvQ.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./stTwOcRx.js"),[],import.meta.url)});yt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>re(()=>import("./Drc7WvVn.js"),[],import.meta.url)});yt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>re(()=>import("./B_fMsGYe.js"),[],import.meta.url)});yt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>re(()=>import("./49Byon_C.js"),__vite__mapDeps([0,1]),import.meta.url)});yt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>re(()=>import("./Bqgm2twL.js"),[],import.meta.url)});yt({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>re(()=>import("./BSkB5QuD.js"),[],import.meta.url)});yt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>re(()=>import("./BsTHnhdd.js"),[],import.meta.url)});yt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>re(()=>import("./YWi4-JPR.js"),[],import.meta.url)});yt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>re(()=>import("./nf6ki56Z.js"),[],import.meta.url)});yt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>re(()=>import("./BYgEQs-R.js"),[],import.meta.url)});yt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>re(()=>import("./Cpb6xl2v.js"),[],import.meta.url)});yt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>re(()=>import("./DSZPf7rp.js"),[],import.meta.url)});yt({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>re(()=>import("./MPrxSj4v.js"),[],import.meta.url)});yt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>re(()=>import("./B_c3zf-v.js"),[],import.meta.url)});yt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>re(()=>import("./rUNN04Wq.js"),[],import.meta.url)});yt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>re(()=>import("./DDwshQtU.js"),[],import.meta.url)});yt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>re(()=>import("./B5zXfXm9.js"),[],import.meta.url)});yt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>re(()=>import("./CXOwvkN_.js"),[],import.meta.url)});yt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>re(()=>import("./Bc-ZgV77.js"),[],import.meta.url)});yt({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>re(()=>import("./CwNk8-XU.js"),[],import.meta.url)});yt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>re(()=>import("./tGk8EFnU.js"),[],import.meta.url)});yt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>re(()=>import("./CpIb_Oan.js"),[],import.meta.url)});yt({id:"pla",extensions:[".pla"],loader:()=>re(()=>import("./B03wrqEc.js"),[],import.meta.url)});yt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>re(()=>import("./BKlk5iyT.js"),[],import.meta.url)});yt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>re(()=>import("./Bhzvs7bI.js"),[],import.meta.url)});yt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>re(()=>import("./Dd3NCNK9.js"),[],import.meta.url)});yt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>re(()=>import("./COyEY5Pt.js"),[],import.meta.url)});yt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>re(()=>import("./BaJupSGV.js"),[],import.meta.url)});yt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>re(()=>import("./BBbUbsmH.js"),[],import.meta.url)});yt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>re(()=>import("./DXyYeYxl.js"),[],import.meta.url)});yt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>re(()=>import("./CdQndTaG.js"),[],import.meta.url)});yt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>re(()=>import("./C_n9LE99.js"),[],import.meta.url)});yt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>re(()=>import("./CVwtpugi.js"),[],import.meta.url)});yt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>re(()=>import("./25W9uPmb.js"),[],import.meta.url)});yt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>re(()=>import("./DfzH4Xui.js"),[],import.meta.url)});yt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>re(()=>import("./Cp1zYvxS.js"),[],import.meta.url)});yt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>re(()=>import("./D5C2fndG.js"),[],import.meta.url)});yt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>re(()=>import("./CDntyWJ8.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./BoFRg7Ot.js"),[],import.meta.url)});yt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>re(()=>import("./Bio4gycK.js"),[],import.meta.url)});yt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>re(()=>import("./4Ik7cdeQ.js"),[],import.meta.url)});yt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>re(()=>import("./CX-rkNHf.js"),[],import.meta.url)});yt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>re(()=>import("./Tw7wswEv.js"),[],import.meta.url)});yt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>re(()=>import("./C5WLch3f.js"),[],import.meta.url)});yt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>re(()=>import("./DHaeiCBh.js"),[],import.meta.url)});yt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>re(()=>import("./CCSDG5nI.js"),[],import.meta.url)});yt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>re(()=>import("./pnP8ivHi.js"),[],import.meta.url)});yt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>re(()=>import("./DwJ7jVG9.js"),[],import.meta.url)});yt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>re(()=>import("./B9Xyijhd.js"),[],import.meta.url)});yt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>re(()=>import("./B9Xyijhd.js"),[],import.meta.url)});yt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>re(()=>import("./DnHyzjbg.js"),[],import.meta.url)});yt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>re(()=>import("./CPajHgWi.js"),[],import.meta.url)});yt({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>re(()=>import("./B2xWwrcf.js"),[],import.meta.url)});yt({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>re(()=>import("./D-MeaMDU.js"),[],import.meta.url)});yt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>re(()=>import("./DgyLZaXg.js"),[],import.meta.url)});yt({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>re(()=>import("./DYQUnd45.js"),[],import.meta.url)});yt({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:()=>re(()=>import("./DJxFwZ8e.js"),[],import.meta.url)});yt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>re(()=>import("./DNegoBzK.js"),[],import.meta.url)});/*!-----------------------------------------------------------------------------
840
840
  * Copyright (c) Microsoft Corporation. All rights reserved.
841
841
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
842
842
  * Released under the MIT license
843
843
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
844
- *-----------------------------------------------------------------------------*/var syt=Object.defineProperty,ryt=Object.getOwnPropertyDescriptor,oyt=Object.getOwnPropertyNames,ayt=Object.prototype.hasOwnProperty,lyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of oyt(e))!ayt.call(n,s)&&s!==t&&syt(n,s,{get:()=>e[s],enumerable:!(i=ryt(e,s))||i.enumerable});return n},cyt=(n,e,t)=>(lyt(n,e,"default"),t),L0={};cyt(L0,sD);var Oie=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)}},Mie={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}},Pie={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},FAe=new Oie("css",Mie,Pie),BAe=new Oie("scss",Mie,Pie),VAe=new Oie("less",Mie,Pie);L0.languages.css={cssDefaults:FAe,lessDefaults:VAe,scssDefaults:BAe};function Fie(){return re(()=>import("./uHc1f6MD.js"),[],import.meta.url)}L0.languages.onLanguage("less",()=>{Fie().then(n=>n.setupMode(VAe))});L0.languages.onLanguage("scss",()=>{Fie().then(n=>n.setupMode(BAe))});L0.languages.onLanguage("css",()=>{Fie().then(n=>n.setupMode(FAe))});/*!-----------------------------------------------------------------------------
844
+ *-----------------------------------------------------------------------------*/var syt=Object.defineProperty,ryt=Object.getOwnPropertyDescriptor,oyt=Object.getOwnPropertyNames,ayt=Object.prototype.hasOwnProperty,lyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of oyt(e))!ayt.call(n,s)&&s!==t&&syt(n,s,{get:()=>e[s],enumerable:!(i=ryt(e,s))||i.enumerable});return n},cyt=(n,e,t)=>(lyt(n,e,"default"),t),L0={};cyt(L0,sD);var Oie=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)}},Mie={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}},Pie={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},FAe=new Oie("css",Mie,Pie),BAe=new Oie("scss",Mie,Pie),VAe=new Oie("less",Mie,Pie);L0.languages.css={cssDefaults:FAe,lessDefaults:VAe,scssDefaults:BAe};function Fie(){return re(()=>import("./AC-cbere.js"),[],import.meta.url)}L0.languages.onLanguage("less",()=>{Fie().then(n=>n.setupMode(VAe))});L0.languages.onLanguage("scss",()=>{Fie().then(n=>n.setupMode(BAe))});L0.languages.onLanguage("css",()=>{Fie().then(n=>n.setupMode(FAe))});/*!-----------------------------------------------------------------------------
845
845
  * Copyright (c) Microsoft Corporation. All rights reserved.
846
846
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
847
847
  * Released under the MIT license
848
848
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
849
- *-----------------------------------------------------------------------------*/var dyt=Object.defineProperty,uyt=Object.getOwnPropertyDescriptor,hyt=Object.getOwnPropertyNames,fyt=Object.prototype.hasOwnProperty,gyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of hyt(e))!fyt.call(n,s)&&s!==t&&dyt(n,s,{get:()=>e[s],enumerable:!(i=uyt(e,s))||i.enumerable});return n},pyt=(n,e,t)=>(gyt(n,e,"default"),t),S4={};pyt(S4,sD);var myt=class{constructor(e,t,i){this._onDidChange=new S4.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)}},_yt={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"},y4={format:_yt,suggest:{},data:{useDefaultDataProvider:!0}};function C4(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",yge="handlebars",Cge="razor",HAe=w4(vI,y4,C4(vI)),vyt=HAe.defaults,WAe=w4(yge,y4,C4(yge)),byt=WAe.defaults,UAe=w4(Cge,y4,C4(Cge)),Syt=UAe.defaults;S4.languages.html={htmlDefaults:vyt,razorDefaults:Syt,handlebarDefaults:byt,htmlLanguageService:HAe,handlebarLanguageService:WAe,razorLanguageService:UAe,registerHTMLLanguageService:w4};function yyt(){return re(()=>import("./BI8HP03X.js"),[],import.meta.url)}function w4(n,e=y4,t=C4(n)){const i=new myt(n,e,t);let s;const r=S4.languages.onLanguage(n,async()=>{s=(await yyt()).setupMode(i)});return{defaults:i,dispose(){r.dispose(),s?.dispose(),s=void 0}}}/*!-----------------------------------------------------------------------------
849
+ *-----------------------------------------------------------------------------*/var dyt=Object.defineProperty,uyt=Object.getOwnPropertyDescriptor,hyt=Object.getOwnPropertyNames,fyt=Object.prototype.hasOwnProperty,gyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of hyt(e))!fyt.call(n,s)&&s!==t&&dyt(n,s,{get:()=>e[s],enumerable:!(i=uyt(e,s))||i.enumerable});return n},pyt=(n,e,t)=>(gyt(n,e,"default"),t),S4={};pyt(S4,sD);var myt=class{constructor(e,t,i){this._onDidChange=new S4.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)}},_yt={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"},y4={format:_yt,suggest:{},data:{useDefaultDataProvider:!0}};function C4(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",yge="handlebars",Cge="razor",HAe=w4(vI,y4,C4(vI)),vyt=HAe.defaults,WAe=w4(yge,y4,C4(yge)),byt=WAe.defaults,UAe=w4(Cge,y4,C4(Cge)),Syt=UAe.defaults;S4.languages.html={htmlDefaults:vyt,razorDefaults:Syt,handlebarDefaults:byt,htmlLanguageService:HAe,handlebarLanguageService:WAe,razorLanguageService:UAe,registerHTMLLanguageService:w4};function yyt(){return re(()=>import("./D3U7RFHT.js"),[],import.meta.url)}function w4(n,e=y4,t=C4(n)){const i=new myt(n,e,t);let s;const r=S4.languages.onLanguage(n,async()=>{s=(await yyt()).setupMode(i)});return{defaults:i,dispose(){r.dispose(),s?.dispose(),s=void 0}}}/*!-----------------------------------------------------------------------------
850
850
  * Copyright (c) Microsoft Corporation. All rights reserved.
851
851
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
852
852
  * Released under the MIT license
853
853
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
854
- *-----------------------------------------------------------------------------*/var Cyt=Object.defineProperty,wyt=Object.getOwnPropertyDescriptor,Eyt=Object.getOwnPropertyNames,Tyt=Object.prototype.hasOwnProperty,Iyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Eyt(e))!Tyt.call(n,s)&&s!==t&&Cyt(n,s,{get:()=>e[s],enumerable:!(i=wyt(e,s))||i.enumerable});return n},Lyt=(n,e,t)=>(Iyt(n,e,"default"),t),rD={};Lyt(rD,sD);var xyt=class{constructor(e,t,i){this._onDidChange=new rD.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)}},Ryt={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Dyt={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},$Ae=new xyt("json",Ryt,Dyt),Nyt=()=>zAe().then(n=>n.getWorker());rD.languages.json={jsonDefaults:$Ae,getWorker:Nyt};function zAe(){return re(()=>import("./BOTRF40-.js"),[],import.meta.url)}rD.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});rD.languages.onLanguage("json",()=>{zAe().then(n=>n.setupMode($Ae))});/*!-----------------------------------------------------------------------------
854
+ *-----------------------------------------------------------------------------*/var Cyt=Object.defineProperty,wyt=Object.getOwnPropertyDescriptor,Eyt=Object.getOwnPropertyNames,Tyt=Object.prototype.hasOwnProperty,Iyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Eyt(e))!Tyt.call(n,s)&&s!==t&&Cyt(n,s,{get:()=>e[s],enumerable:!(i=wyt(e,s))||i.enumerable});return n},Lyt=(n,e,t)=>(Iyt(n,e,"default"),t),rD={};Lyt(rD,sD);var xyt=class{constructor(e,t,i){this._onDidChange=new rD.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)}},Ryt={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Dyt={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},$Ae=new xyt("json",Ryt,Dyt),Nyt=()=>zAe().then(n=>n.getWorker());rD.languages.json={jsonDefaults:$Ae,getWorker:Nyt};function zAe(){return re(()=>import("./__nihD3z.js"),[],import.meta.url)}rD.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});rD.languages.onLanguage("json",()=>{zAe().then(n=>n.setupMode($Ae))});/*!-----------------------------------------------------------------------------
855
855
  * Copyright (c) Microsoft Corporation. All rights reserved.
856
856
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
857
857
  * Released under the MIT license
858
858
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
859
- *-----------------------------------------------------------------------------*/var kyt=Object.defineProperty,Ayt=Object.getOwnPropertyDescriptor,Oyt=Object.getOwnPropertyNames,Myt=Object.prototype.hasOwnProperty,Pyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Oyt(e))!Myt.call(n,s)&&s!==t&&kyt(n,s,{get:()=>e[s],enumerable:!(i=Ayt(e,s))||i.enumerable});return n},Fyt=(n,e,t)=>(Pyt(n,e,"default"),t),Byt="5.4.5",wE={};Fyt(wE,sD);var GAe=(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))(GAe||{}),qAe=(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))(qAe||{}),KAe=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(KAe||{}),jAe=(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))(jAe||{}),YAe=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(YAe||{}),QAe=class{constructor(n,e,t,i,s){this._onDidChange=new wE.Emitter,this._onDidExtraLibsChange=new wE.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)}},Vyt=Byt,XAe={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},ZAe=new QAe({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},XAe),JAe=new QAe({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},XAe),Hyt=()=>E4().then(n=>n.getTypeScriptWorker()),Wyt=()=>E4().then(n=>n.getJavaScriptWorker());wE.languages.typescript={ModuleKind:GAe,JsxEmit:qAe,NewLineKind:KAe,ScriptTarget:jAe,ModuleResolutionKind:YAe,typescriptVersion:Vyt,typescriptDefaults:ZAe,javascriptDefaults:JAe,getTypeScriptWorker:Hyt,getJavaScriptWorker:Wyt};function E4(){return re(()=>import("./CcyNJcA_.js"),[],import.meta.url)}wE.languages.onLanguage("typescript",()=>E4().then(n=>n.setupTypeScript(ZAe)));wE.languages.onLanguage("javascript",()=>E4().then(n=>n.setupJavaScript(JAe)));class Uyt extends wa{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:xt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:Ve.map,toggled:Re.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Re.has("isInDiffEditor"),menu:{when:Re.has("isInDiffEditor"),id:ge.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class eOe extends wa{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:xt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class tOe extends wa{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:xt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const oD=xt("diffEditor","Diff Editor");class $yt extends fh{constructor(){super({id:"diffEditor.switchSide",title:xt("switchSide","Switch Side"),icon:Ve.arrowSwap,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,i){const s=x0(e);if(s instanceof hp){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class zyt extends fh{constructor(){super({id:"diffEditor.exitCompareMove",title:xt("exitCompareMove","Exit Compare Move"),icon:Ve.close,precondition:te.comparingMovedCode,f1:!1,category:oD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.exitCompareMove()}}class Gyt extends fh{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:xt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:Ve.fold,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.collapseAllUnchangedRegions()}}class qyt extends fh{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:xt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:Ve.unfold,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.showAllUnchangedRegions()}}class Fj extends wa{constructor(){super({id:"diffEditor.revert",title:xt("revert","Revert"),f1:!1,category:oD})}run(e,t){const i=Kyt(e,t.originalUri,t.modifiedUri);i instanceof hp&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const iOe=xt("accessibleDiffViewer","Accessible Diff Viewer");class aD extends wa{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:aD.id,title:xt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:iOe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerNext()}}class T4 extends wa{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:T4.id,title:xt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:iOe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerPrev()}}function Kyt(n,e,t){return n.get(ki).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(ki).listDiffEditors(),i=lo();if(i)for(const s of t){const r=s.getContainerDomNode();if(jyt(r,i))return s}return null}function jyt(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}Rn(Uyt);Rn(eOe);Rn(tOe);Dr.appendMenuItem(ge.EditorTitle,{command:{id:new tOe().desc.id,title:E("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(te.diffEditorRenderSideBySideInlineBreakpointReached,Re.has("isInDiffEditor"))});Dr.appendMenuItem(ge.EditorTitle,{command:{id:new eOe().desc.id,title:E("showMoves","Show Moved Code Blocks"),icon:Ve.move,toggled:d0.create("config.diffEditor.experimental.showMoves",!0),precondition:Re.has("isInDiffEditor")},order:10,group:"1_diff",when:Re.has("isInDiffEditor")});Rn(Fj);for(const n of[{icon:Ve.arrowRight,key:te.diffEditorInlineMode.toNegated()},{icon:Ve.discard,key:te.diffEditorInlineMode}])Dr.appendMenuItem(ge.DiffEditorHunkToolbar,{command:{id:new Fj().desc.id,title:E("revertHunk","Revert Block"),icon:n.icon},when:Re.and(te.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),Dr.appendMenuItem(ge.DiffEditorSelectionToolbar,{command:{id:new Fj().desc.id,title:E("revertSelection","Revert Selection"),icon:n.icon},when:Re.and(te.diffEditorModifiedWritable,n.key),order:5,group:"primary"});Rn($yt);Rn(zyt);Rn(Gyt);Rn(qyt);Dr.appendMenuItem(ge.EditorTitle,{command:{id:aD.id,title:E("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Re.has("isInDiffEditor")},order:10,group:"2_diff",when:Re.and(te.accessibleDiffViewerVisible.negate(),Re.has("isInDiffEditor"))});Ci.registerCommandAlias("editor.action.diffReview.next",aD.id);Rn(aD);Ci.registerCommandAlias("editor.action.diffReview.prev",T4.id);Rn(T4);var Yyt=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},Qyt=function(n,e){return function(t,i){e(t,i,n)}},Bj;const I4=new Xe("selectionAnchorSet",!1);let w_=class{static{Bj=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(Bj.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=I4.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 Io().appendText(E("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ya(E("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()}};w_=Bj=Yyt([Qyt(1,Et)],w_);class Xyt extends Je{constructor(){super({id:"editor.action.setSelectionAnchor",label:E("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:Qs(2089,2080),weight:100}})}async run(e,t){w_.get(t)?.setSelectionAnchor()}}class Zyt extends Je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:E("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:I4})}async run(e,t){w_.get(t)?.goToSelectionAnchor()}}class Jyt extends Je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:E("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:I4,kbOpts:{kbExpr:te.editorTextFocus,primary:Qs(2089,2089),weight:100}})}async run(e,t){w_.get(t)?.selectFromAnchorToCursor()}}class eCt extends Je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:E("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:I4,kbOpts:{kbExpr:te.editorTextFocus,primary:9,weight:100}})}async run(e,t){w_.get(t)?.cancelSelectionAnchor()}}Ti(w_.ID,w_,4);Be(Xyt);Be(Zyt);Be(Jyt);Be(eCt);const tCt=ne("editorOverviewRuler.bracketMatchForeground","#A0A0A0",E("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class iCt extends Je{constructor(){super({id:"editor.action.jumpToBracket",label:E("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:3165,weight:100}})}run(e,t){Jg.get(t)?.jumpToBracket()}}class nCt extends Je{constructor(){super({id:"editor.action.selectToBracket",label:E("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:xt("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),Jg.get(t)?.selectToBracket(s)}}class sCt extends Je{constructor(){super({id:"editor.action.removeBrackets",label:E("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:2561,weight:100}})}run(e,t){Jg.get(t)?.removeBrackets(this.id)}}class rCt{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Jg extends be{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(Jg.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new dn(()=>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(q.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=Ht.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:ys(tCt),position:gc.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Ht.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=Jg._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),p=Jg._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new rCt(f,g,p)}}this._lastBracketsData=a,this._lastVersionId=i}}Ti(Jg.ID,Jg,1);Be(nCt);Be(iCt);Be(sCt);Dr.appendMenuItem(ge.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:E({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class oCt{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 q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new q(i,r,i,r),a)}else{const o=new q(i,r,i,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new q(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 nOe 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 oCt(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class aCt extends nOe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:E("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:te.writable})}}class lCt extends nOe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:E("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:te.writable})}}Be(aCt);Be(lCt);class cCt extends Je{constructor(){super({id:"editor.action.transposeLetters",label:E("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:te.writable,kbOpts:{kbExpr:te.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():Xi.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),u=Xi.leftPosition(i,d),h=Xi.leftPosition(i,u),f=i.getValueInRange(q.fromPositions(h,u)),g=i.getValueInRange(q.fromPositions(u,d)),p=q.fromPositions(h,d);s.push(new ro(p,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Be(cCt);const L4=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 Bie(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function dCt(n,e,t){const i={id:L4(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class sOe{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 Si.some(this,([i,s])=>s.asFile())&&t.push("files"),oOe(B2(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 B2(e)}}function B2(n){return n.toLowerCase()}function rOe(n,e){return oOe(B2(n),e.map(B2))}function oOe(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 x4=Object.freeze({create:n=>sp(n.map(e=>e.toString())).join(`\r
859
+ *-----------------------------------------------------------------------------*/var kyt=Object.defineProperty,Ayt=Object.getOwnPropertyDescriptor,Oyt=Object.getOwnPropertyNames,Myt=Object.prototype.hasOwnProperty,Pyt=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Oyt(e))!Myt.call(n,s)&&s!==t&&kyt(n,s,{get:()=>e[s],enumerable:!(i=Ayt(e,s))||i.enumerable});return n},Fyt=(n,e,t)=>(Pyt(n,e,"default"),t),Byt="5.4.5",wE={};Fyt(wE,sD);var GAe=(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))(GAe||{}),qAe=(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))(qAe||{}),KAe=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(KAe||{}),jAe=(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))(jAe||{}),YAe=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(YAe||{}),QAe=class{constructor(n,e,t,i,s){this._onDidChange=new wE.Emitter,this._onDidExtraLibsChange=new wE.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)}},Vyt=Byt,XAe={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},ZAe=new QAe({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},XAe),JAe=new QAe({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},XAe),Hyt=()=>E4().then(n=>n.getTypeScriptWorker()),Wyt=()=>E4().then(n=>n.getJavaScriptWorker());wE.languages.typescript={ModuleKind:GAe,JsxEmit:qAe,NewLineKind:KAe,ScriptTarget:jAe,ModuleResolutionKind:YAe,typescriptVersion:Vyt,typescriptDefaults:ZAe,javascriptDefaults:JAe,getTypeScriptWorker:Hyt,getJavaScriptWorker:Wyt};function E4(){return re(()=>import("./CBnxroLO.js"),[],import.meta.url)}wE.languages.onLanguage("typescript",()=>E4().then(n=>n.setupTypeScript(ZAe)));wE.languages.onLanguage("javascript",()=>E4().then(n=>n.setupJavaScript(JAe)));class Uyt extends wa{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:xt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:Ve.map,toggled:Re.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Re.has("isInDiffEditor"),menu:{when:Re.has("isInDiffEditor"),id:ge.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class eOe extends wa{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:xt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class tOe extends wa{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:xt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Re.has("isInDiffEditor")})}run(e,...t){const i=e.get(ii),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const oD=xt("diffEditor","Diff Editor");class $yt extends fh{constructor(){super({id:"diffEditor.switchSide",title:xt("switchSide","Switch Side"),icon:Ve.arrowSwap,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,i){const s=x0(e);if(s instanceof hp){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class zyt extends fh{constructor(){super({id:"diffEditor.exitCompareMove",title:xt("exitCompareMove","Exit Compare Move"),icon:Ve.close,precondition:te.comparingMovedCode,f1:!1,category:oD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.exitCompareMove()}}class Gyt extends fh{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:xt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:Ve.fold,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.collapseAllUnchangedRegions()}}class qyt extends fh{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:xt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:Ve.unfold,precondition:Re.has("isInDiffEditor"),f1:!0,category:oD})}runEditorCommand(e,t,...i){const s=x0(e);s instanceof hp&&s.showAllUnchangedRegions()}}class Fj extends wa{constructor(){super({id:"diffEditor.revert",title:xt("revert","Revert"),f1:!1,category:oD})}run(e,t){const i=Kyt(e,t.originalUri,t.modifiedUri);i instanceof hp&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const iOe=xt("accessibleDiffViewer","Accessible Diff Viewer");class aD extends wa{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:aD.id,title:xt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:iOe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerNext()}}class T4 extends wa{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:T4.id,title:xt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:iOe,precondition:Re.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){x0(e)?.accessibleDiffViewerPrev()}}function Kyt(n,e,t){return n.get(ki).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(ki).listDiffEditors(),i=lo();if(i)for(const s of t){const r=s.getContainerDomNode();if(jyt(r,i))return s}return null}function jyt(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}Rn(Uyt);Rn(eOe);Rn(tOe);Dr.appendMenuItem(ge.EditorTitle,{command:{id:new tOe().desc.id,title:E("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(te.diffEditorRenderSideBySideInlineBreakpointReached,Re.has("isInDiffEditor"))});Dr.appendMenuItem(ge.EditorTitle,{command:{id:new eOe().desc.id,title:E("showMoves","Show Moved Code Blocks"),icon:Ve.move,toggled:d0.create("config.diffEditor.experimental.showMoves",!0),precondition:Re.has("isInDiffEditor")},order:10,group:"1_diff",when:Re.has("isInDiffEditor")});Rn(Fj);for(const n of[{icon:Ve.arrowRight,key:te.diffEditorInlineMode.toNegated()},{icon:Ve.discard,key:te.diffEditorInlineMode}])Dr.appendMenuItem(ge.DiffEditorHunkToolbar,{command:{id:new Fj().desc.id,title:E("revertHunk","Revert Block"),icon:n.icon},when:Re.and(te.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),Dr.appendMenuItem(ge.DiffEditorSelectionToolbar,{command:{id:new Fj().desc.id,title:E("revertSelection","Revert Selection"),icon:n.icon},when:Re.and(te.diffEditorModifiedWritable,n.key),order:5,group:"primary"});Rn($yt);Rn(zyt);Rn(Gyt);Rn(qyt);Dr.appendMenuItem(ge.EditorTitle,{command:{id:aD.id,title:E("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Re.has("isInDiffEditor")},order:10,group:"2_diff",when:Re.and(te.accessibleDiffViewerVisible.negate(),Re.has("isInDiffEditor"))});Ci.registerCommandAlias("editor.action.diffReview.next",aD.id);Rn(aD);Ci.registerCommandAlias("editor.action.diffReview.prev",T4.id);Rn(T4);var Yyt=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},Qyt=function(n,e){return function(t,i){e(t,i,n)}},Bj;const I4=new Xe("selectionAnchorSet",!1);let w_=class{static{Bj=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(Bj.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=I4.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 Io().appendText(E("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ya(E("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()}};w_=Bj=Yyt([Qyt(1,Et)],w_);class Xyt extends Je{constructor(){super({id:"editor.action.setSelectionAnchor",label:E("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:Qs(2089,2080),weight:100}})}async run(e,t){w_.get(t)?.setSelectionAnchor()}}class Zyt extends Je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:E("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:I4})}async run(e,t){w_.get(t)?.goToSelectionAnchor()}}class Jyt extends Je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:E("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:I4,kbOpts:{kbExpr:te.editorTextFocus,primary:Qs(2089,2089),weight:100}})}async run(e,t){w_.get(t)?.selectFromAnchorToCursor()}}class eCt extends Je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:E("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:I4,kbOpts:{kbExpr:te.editorTextFocus,primary:9,weight:100}})}async run(e,t){w_.get(t)?.cancelSelectionAnchor()}}Ti(w_.ID,w_,4);Be(Xyt);Be(Zyt);Be(Jyt);Be(eCt);const tCt=ne("editorOverviewRuler.bracketMatchForeground","#A0A0A0",E("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class iCt extends Je{constructor(){super({id:"editor.action.jumpToBracket",label:E("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:3165,weight:100}})}run(e,t){Jg.get(t)?.jumpToBracket()}}class nCt extends Je{constructor(){super({id:"editor.action.selectToBracket",label:E("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:xt("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),Jg.get(t)?.selectToBracket(s)}}class sCt extends Je{constructor(){super({id:"editor.action.removeBrackets",label:E("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:te.editorTextFocus,primary:2561,weight:100}})}run(e,t){Jg.get(t)?.removeBrackets(this.id)}}class rCt{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Jg extends be{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(Jg.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new dn(()=>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(q.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=Ht.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:ys(tCt),position:gc.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Ht.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=Jg._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),p=Jg._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new rCt(f,g,p)}}this._lastBracketsData=a,this._lastVersionId=i}}Ti(Jg.ID,Jg,1);Be(nCt);Be(iCt);Be(sCt);Dr.appendMenuItem(ge.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:E({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class oCt{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 q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new q(i,r,i,r),a)}else{const o=new q(i,r,i,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new q(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 nOe 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 oCt(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class aCt extends nOe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:E("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:te.writable})}}class lCt extends nOe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:E("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:te.writable})}}Be(aCt);Be(lCt);class cCt extends Je{constructor(){super({id:"editor.action.transposeLetters",label:E("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:te.writable,kbOpts:{kbExpr:te.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():Xi.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),u=Xi.leftPosition(i,d),h=Xi.leftPosition(i,u),f=i.getValueInRange(q.fromPositions(h,u)),g=i.getValueInRange(q.fromPositions(u,d)),p=q.fromPositions(h,d);s.push(new ro(p,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Be(cCt);const L4=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 Bie(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function dCt(n,e,t){const i={id:L4(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class sOe{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 Si.some(this,([i,s])=>s.asFile())&&t.push("files"),oOe(B2(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 B2(e)}}function B2(n){return n.toLowerCase()}function rOe(n,e){return oOe(B2(n),e.map(B2))}function oOe(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 x4=Object.freeze({create:n=>sp(n.map(e=>e.toString())).join(`\r
860
860
  `),split:n=>n.split(`\r
861
861
  `),parse:n=>x4.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 wge={EDITORS:"CodeEditors",FILES:"CodeFiles"};class uCt{}const hCt={DragAndDropContribution:"workbench.contributions.dragAndDrop"};fs.add(hCt.DragAndDropContribution,new uCt);class V2{static{this.INSTANCE=new V2}constructor(){}static getInstance(){return V2.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}function aOe(n){const e=new sOe;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,Bie(s))}else if(t.kind==="file"){const s=t.getAsFile();s&&e.append(i,fCt(s))}}return e}function fCt(n){const e=n.path?bt.parse(n.path):void 0;return dCt(n.name,e,async()=>new Uint8Array(await n.arrayBuffer()))}const gCt=Object.freeze([wge.EDITORS,wge.FILES,QL.RESOURCES,QL.INTERNAL_URI_LIST]);function lOe(n,e=!1){const t=aOe(n),i=t.get(QL.INTERNAL_URI_LIST);if(i)t.replace(xs.uriList,i);else if(e||!t.has(xs.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(xs.uriList,Bie(x4.create(s)))}for(const s of gCt)t.delete(s);return t}var Vie=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},wx=function(n,e){return function(t,i){e(t,i,n)}};class Hie{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 wS extends Hie{constructor(){super(...arguments),this.kind=wS.kind,this.dropMimeTypes=[xs.text],this.pasteMimeTypes=[xs.text]}static{this.id="text"}static{this.kind=new In("text.plain")}async getEdit(e,t){const i=e.get(xs.text);if(!i||e.has(xs.uriList))return;const s=await i.asString();return{handledMimeType:xs.text,title:E("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class cOe extends Hie{constructor(){super(...arguments),this.kind=new In("uri.absolute"),this.dropMimeTypes=[xs.uriList],this.pasteMimeTypes=[xs.uriList]}async getEdit(e,t){const i=await dOe(e);if(!i.length||t.isCancellationRequested)return;let s=0;const r=i.map(({uri:a,originalText:l})=>a.scheme===Bt.file?a.fsPath:(s++,l)).join(" ");let o;return s>0?o=i.length>1?E("defaultDropProvider.uriList.uris","Insert Uris"):E("defaultDropProvider.uriList.uri","Insert Uri"):o=i.length>1?E("defaultDropProvider.uriList.paths","Insert Paths"):E("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:xs.uriList,insertText:r,title:o,kind:this.kind}}}let H2=class extends Hie{constructor(e){super(),this._workspaceContextService=e,this.kind=new In("uri.relative"),this.dropMimeTypes=[xs.uriList],this.pasteMimeTypes=[xs.uriList]}async getEdit(e,t){const i=await dOe(e);if(!i.length||t.isCancellationRequested)return;const s=zd(i.map(({uri:r})=>{const o=this._workspaceContextService.getWorkspaceFolder(r);return o?Lot(o.uri,r):void 0}));if(s.length)return{handledMimeType:xs.uriList,insertText:s.join(" "),title:i.length>1?E("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):E("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};H2=Vie([wx(0,_S)],H2);class pCt{constructor(){this.kind=new In("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:xs.text}]}async provideDocumentPasteEdits(e,t,i,s,r){if(s.triggerKind!==IL.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:E("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function dOe(n){const e=n.get(xs.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const s of x4.parse(t))try{i.push({uri:bt.parse(s),originalText:s})}catch{}return i}let Vj=class extends be{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new wS)),this._register(e.documentDropEditProvider.register("*",new cOe)),this._register(e.documentDropEditProvider.register("*",new H2(t)))}};Vj=Vie([wx(0,nt),wx(1,_S)],Vj);let Hj=class extends be{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new wS)),this._register(e.documentPasteEditProvider.register("*",new cOe)),this._register(e.documentPasteEditProvider.register("*",new H2(t))),this._register(e.documentPasteEditProvider.register("*",new pCt))}};Hj=Vie([wx(0,nt),wx(1,_S)],Hj);class gu{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=gu._table[i],typeof s=="number")return this.pos+=1,{type:s,pos:e,len:1};if(gu.isDigitCharacter(i)){s=8;do t+=1,i=this.value.charCodeAt(e+t);while(gu.isDigitCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}if(gu.isVariableCharacter(i)){s=9;do i=this.value.charCodeAt(e+ ++t);while(gu.isVariableCharacter(i)||gu.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 gu._table[i]>"u"&&!gu.isDigitCharacter(i)&&!gu.isVariableCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}}class R0{constructor(){this._children=[]}appendChild(e){return e instanceof yl&&this._children[this._children.length-1]instanceof yl?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 lD)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}let yl=class uOe extends R0{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new uOe(this.value)}};class hOe extends R0{}class Bc extends hOe{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 yl&&(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 mCt=class fOe 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 Cu&&!!r.elseValue)&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof Cu){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new fOe;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 Cu 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 Cu(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Ex extends hOe{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 yl(t)],!0):!1}clone(){const e=new Ex(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function Ege(n,e){const t=[...n];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class lD 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 Ege([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 Ex&&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 lD;return this._children=this.children.map(t=>t.clone()),e}walk(e){Ege(this.children,e)}}class ES{constructor(){this._scanner=new gu,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 lD;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 yl(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 Ex(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 yl("${"+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 yl(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 Ex(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new yl("${"+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 mCt;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 yl(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 Cu(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Cu(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 Cu(Number(s),r)),!0)}else if(this._accept(11)){const r=this._until(4);if(r)return e.appendChild(new Cu(Number(s),void 0,r,void 0)),!0}else if(this._accept(12)){const r=this._until(4);if(r)return e.appendChild(new Cu(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 Cu(Number(s),void 0,r,o)),!0}}else{const r=this._until(4);if(r)return e.appendChild(new Cu(Number(s),void 0,void 0,r)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new yl(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function gOe(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"?ES.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...t.additionalEdit?.edits??[]]}}function pOe(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 _Ct=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},vCt=function(n,e){return function(t,i){e(t,i,n)}};const bCt=Ht.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Exe,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class Wie extends be{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=Ue(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=Ue("span.icon");this.domNode.append(t),t.classList.add(...wt.asClassNameArray(Ve.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(Ee(this.domNode,He.CLICK,s=>{this.delegate.cancel()}))}getId(){return Wie.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 W2=class extends be{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=h_(()=>{const a=q.fromPositions(e);this._currentDecorations.set([{range:a,options:bCt}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(Wie,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()}};W2=_Ct([vCt(2,ut)],W2);var SCt=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},Tge=function(n,e){return function(t,i){e(t,i,n)}},uO;let Dl=class{static{uO=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new Xe("messageVisible",!1,E("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(uO.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Er,this._messageListeners=new Le,this._mouseOverMessage=!1,this._editor=e,this._visible=uO.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){ya(Gu(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=Gu(e)?F5(e,{actionHandler:{callback:s=>{this.closeMessage(),Xee(this._openerService,s,Gu(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Ige(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(Ge.debounce(this._editor.onDidBlurEditorText,(s,r)=>r,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Sr(lo(),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(Ee(this._messageWidget.value.getDomNode(),He.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Ee(this._messageWidget.value.getDomNode(),He.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 q(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Ige.fadeOut(this._messageWidget.value))}};Dl=uO=SCt([Tge(1,Et),Tge(2,il)],Dl);const yCt=hr.bindToContribution(Dl.get);Ye(new yCt({id:"leaveEditorMessage",precondition:Dl.MESSAGE_VISIBLE,handler:n=>n.closeMessage(),kbOpts:{weight:130,primary:9}}));let Ige=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)}};Ti(Dl.ID,Dl,4);function uW(n,e){return e&&(n.stack||n.stacktrace)?E("stackTrace.format","{0}: {1}",xge(n),Lge(n.stack)||Lge(n.stacktrace)):xge(n)}function Lge(n){return Array.isArray(n)?n.join(`
862
862
  `):n}function xge(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"?E("nodeExceptionMessage","A system error occurred ({0})",n.message):n.message||E("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function U2(n=null,e=!1){if(!n)return E("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(n)){const t=zd(n),i=U2(t[0],e);return t.length>1?E("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(za(n))return n;if(n.detail){const t=n.detail;if(t.error)return uW(t.error,e);if(t.exception)return uW(t.exception,e)}return n.stack?uW(n,e):n.message?n.message:E("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var mOe=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},Tw=function(n,e){return function(t,i){e(t,i,n)}},Wj;let Uj=class extends be{static{Wj=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(Ge.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=Ue(".post-edit-widget"),this.button=this._register(new ZP(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Ee(this.domNode,He.CLICK,()=>this.showSelector()))}getId(){return Wj.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Rs(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>xb({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};Uj=Wj=mOe([Tw(7,Wl),Tw(8,Et),Tw(9,Ki)],Uj);let $2=class extends be{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(Ge.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 v=this._editor.getModel();v&&(await v.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:m,allEdits:t.allEdits},i,s,r))},c=(m,v)=>{ad(m)||(this._notificationService.error(v),i&&this.show(e[0],t,l))};let d;try{d=await s(a,r)}catch(m){return c(m,E("resolveError",`Error resolving edit '{0}':
@@ -935,7 +935,7 @@ ${n.value}
935
935
  \f\r "&'<=>\``.split("")],[`\0
936
936
  \f\r "&'<=>\``.split(""),`\0
937
937
  \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function sAt(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=u2e);const c=rAt(i,n.properties),d=i.all(s.space==="html"&&n.tagName==="template"?n.content:n);return i.schema=s,d&&(o=!1),(c||!r||!Zkt(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||!rse(n,e,t))&&a.push("</"+n.tagName+">"),a.join("")}function rAt(n,e){const t=[];let i=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){const r=oAt(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 oAt(n,e,t){const i=ckt(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=Ow(i.attribute,Object.assign({},n.settings.characterReferences,{subset:nA.name[s][r]}));return t===!0||(t=Array.isArray(t)?(i.commaSeparated?Mkt:Pkt)(t,{padLeft:!n.settings.tightCommaSeparatedLists}):String(t),n.settings.collapseEmptyAttributes&&!t)?l:(n.settings.preferUnquoted&&(a=Ow(t,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:nA.unquoted[s][r]}))),a!==t&&(n.settings.quoteSmart&&Ime(t,o)>Ime(t,n.alternative)&&(o=n.alternative),a=o+Ow(t,Object.assign({},n.settings.characterReferences,{subset:(o==="'"?nA.single:nA.double)[s][r],attribute:!0}))+o),l+(a&&"="+a))}const aAt=["<","&"];function m2e(n,e,t,i){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:Ow(n.value,Object.assign({},i.settings.characterReferences,{subset:aAt}))}function lAt(n,e,t,i){return i.settings.allowDangerousHtml?n.value:m2e(n,e,t,i)}function cAt(n,e,t,i){return i.all(n)}const dAt=fkt("type",{invalid:uAt,unknown:hAt,handlers:{comment:Akt,doctype:Okt,element:sAt,raw:lAt,root:cAt,text:m2e}});function uAt(n){throw new Error("Expected node, not `"+n+"`")}function hAt(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const fAt={},gAt={},pAt=[];function mAt(n,e){const t=e||fAt,i=t.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:_At,all:vAt,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||nkt,characterReferences:t.characterReferences||gAt,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?u2e:hkt,quote:i,alternative:s}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function _At(n,e,t){return dAt(n,e,t,this)}function vAt(n){const e=[],t=n&&n.children||pAt;let i=-1;for(;++i<t.length;)e[i]=this.one(t[i],i,n);return e.join("")}function TF(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 pb(n,e){return n&&(e?.[n?.toLowerCase()]||n)}function bAt(n){return Array.isArray(n)?n:[n]}async function _2e(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function ose(n){return!n||["plaintext","txt","text","plain"].includes(n)}function v2e(n){return n==="ansi"||ose(n)}function ase(n){return n==="none"}function b2e(n){return ase(n)}function S2e(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 J4(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 SAt(n){const e=J4(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 yAt(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 CAt(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?yAt(s,r):s})):n}function wAt(n,e,t,i){const s={content:n.content,explanation:n.explanation,offset:n.offset},r=e.map(l=>IF(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 IF(n){const e={};if(n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle){n.fontStyle&Ha.Italic&&(e["font-style"]="italic"),n.fontStyle&Ha.Bold&&(e["font-weight"]="bold");const t=[];n.fontStyle&Ha.Underline&&t.push("underline"),n.fontStyle&Ha.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function sX(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}const y2e=new WeakMap;function e3(n,e){y2e.set(n,e)}function Qx(n){return y2e.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(bAt(t).map(i=>[i,EF])),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 EAt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function EAt(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 TAt(n,e){if(!(n instanceof M0))throw new Go("Invalid grammar state");return n.getInternalStack(e)}function IAt(){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=SAt(t.source),r=(t.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));LAt(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 CAt(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,v=-1;if(u===0&&(m=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=g.children.length),m===-1||v===-1)for(let b=0;b<g.children.length;b++)p+=C2e(g.children[b]),m===-1&&p.length===u&&(m=b+1),v===-1&&p.length===h&&(v=b+1);if(m===-1)throw new Go(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(v===-1)throw new Go(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const _=g.children.slice(m,v);if(!f.alwaysWrap&&_.length===g.children.length)a(g,f,"line");else if(!f.alwaysWrap&&_.length===1&&_[0].type==="element")a(_[0],f,"token");else{const b={type:"element",tagName:"span",properties:{},children:_};a(b,f,"wrapper"),g.children.splice(m,_.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&&S2e(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 LAt(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 C2e(n){return n.type==="text"?n.value:n.type==="element"?n.children.map(C2e).join(""):""}const xAt=[IAt()];function LF(n){return[...n.transformers||[],...xAt]}var mb=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],YW={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function RAt(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 Dme(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 DAt(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)YW[i]&&e.push({type:"setDecoration",value:YW[i]});else if(i<=29){const s=YW[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:mb[i-30]}});else if(i===38){const s=Dme(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:mb[i-40]}});else if(i===48){const s=Dme(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:mb[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:mb[i-100+8]}})}return e}function NAt(){let n=null,e=null,t=new Set;return{parse(i){const s=[];let r=0;do{const o=RAt(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=DAt(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 kAt={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 AAt(n=kAt){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<mb.length;c++)i.push(e(mb[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 OAt(n,e,t){const i=TF(n,t),s=J4(e),r=AAt(Object.fromEntries(mb.map(a=>[a,n.colors?.[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]))),o=NAt();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=pb(c,i),d=pb(d,i),l.decorations.has("dim")&&(c=MAt(c));let u=Ha.None;return l.decorations.has("bold")&&(u|=Ha.Bold),l.decorations.has("italic")&&(u|=Ha.Italic),l.decorations.has("underline")&&(u|=Ha.Underline),l.decorations.has("strikethrough")&&(u|=Ha.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:d,fontStyle:u}}))}function MAt(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 lse(n,e,t={}){const{lang:i="text",theme:s=n.getLoadedThemes()[0]}=t;if(ose(i)||ase(s))return J4(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=n.setTheme(s);if(i==="ansi")return OAt(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 FAt(e,a,r,o,t)}function PAt(...n){if(n.length===2)return Qx(n[1]);const[e,t,i={}]=n,{lang:s="text",theme:r=e.getLoadedThemes()[0]}=i;if(ose(s)||ase(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(xF(t,l,o,a,i).stateStack,l.name,o.name)}function FAt(n,e,t,i,s){const r=xF(n,e,t,i,s),o=new M0(xF(n,e,t,i,s).stateStack,e.name,t.name);return e3(r.tokens,o),r.tokens}function xF(n,e,t,i,s){const r=TF(t,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=s,l=J4(n);let c=s.grammarState?TAt(s.grammarState,t.name)??EF:s.grammarContextCode!=null?xF(s.grammarContextCode,e,t,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:EF,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),v=m.tokens,_=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 w=b.tokens[2*y+1],I=pb(i[AS.getForeground(w)],r),R=AS.getFontStyle(w),D={content:g.substring(C,T),offset:p+C,color:I,fontStyle:R};if(s.includeExplanation){const L=[];if(s.includeExplanation!=="scopeName")for(const x of t.settings){let N;switch(typeof x.scope){case"string":N=x.scope.split(/,/).map(A=>A.trim());break;case"object":N=x.scope;break;default:continue}L.push({settings:x,selectors:N.map(A=>A.split(/ /))})}D.explanation=[];let k=0;for(;C+k<T;){const x=v[_],N=g.substring(x.startIndex,x.endIndex);k+=N.length,D.explanation.push({content:N,scopes:s.includeExplanation==="scopeName"?BAt(x.scopes):VAt(L,x.scopes)}),_+=1}}d.push(D)}u.push(d),d=[],c=b.ruleStack}return{tokens:u,stateStack:c}}function BAt(n){return n.map(e=>({scopeName:e}))}function VAt(n,e){const t=[];for(let i=0,s=e.length;i<s;i++){const r=e[i];t[i]={scopeName:r,themeMatches:WAt(n,r,e.slice(0,i))}}return t}function Nme(n,e){return n===e||e.substring(0,n.length)===n&&e[n.length]==="."}function HAt(n,e,t){if(!Nme(n[n.length-1],e))return!1;let i=n.length-2,s=t.length-1;for(;i>=0&&s>=0;)Nme(n[i],t[s])&&(i-=1),s-=1;return i===-1}function WAt(n,e,t){const i=[];for(const{selectors:s,settings:r}of n)for(const o of s)if(HAt(o,e,t)){i.push(r);break}return i}function w2e(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=lse(n,e,{...t,theme:l.theme}),d=Qx(c),u=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:d,theme:u}}),r=UAt(...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]=_}),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&&e3(o,a),o}function UAt(...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 RF(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,v)=>m.color===c?-1:v.color===c?1:0);if(u.length===0)throw new Go("`themes` option must not be empty");const h=w2e(n,e,t);if(l=Qx(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(v=>wAt(v,g,d,c))),l&&e3(r,l);const p=u.map(m=>TF(m.theme,t));s=u.map((m,v)=>(v===0&&c?"":`${d+m.color}:`)+(pb(f[v].fg,p[v])||"inherit")).join(";"),i=u.map((m,v)=>(v===0&&c?"":`${d+m.color}-bg:`)+(pb(f[v].bg,p[v])||"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=TF(t.theme,t);r=lse(n,e,t);const d=n.getTheme(t.theme);i=pb(d.bg,c),s=pb(d.fg,c),o=d.name,l=Qx(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 DF(n,e,t,i={meta:{},options:t,codeToHast:(s,r)=>DF(n,s,r),codeToTokens:(s,r)=>RF(n,s,r)}){let s=e;for(const g of LF(t))s=g.preprocess?.call(i,s,t)||s;let{tokens:r,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:d}=RF(n,s,t);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:h=!1}=t;u===!0?r=zAt(r):u==="never"&&(r=GAt(r)),h&&(r=qAt(r));const f={...i,get source(){return s}};for(const g of LF(t))r=g.tokens?.call(f,r)||r;return $At(r,{...t,fg:o,bg:a,themeName:l,rootStyle:c},f,d)}function $At(n,e,t,i=Qx(n)){const s=LF(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:S2e,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:`
938
- `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const _ of g){let b={type:"element",tagName:"span",properties:{..._.htmlAttrs},children:[{type:"text",value:_.content}]};const S=sX(_.htmlStyle||IF(_));S&&(b.properties.style=S);for(const y of s)b=y?.span?.call(h,b,p+1,v,m,_)||b;a==="inline"?o.children.push(b):a==="classic"&&m.children.push(b),v+=_.content.length}if(a==="classic"){for(const _ of s)m=_?.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&&e3(f,i),f}function zAt(n){return n.map(e=>{const t=[];let i="",s=0;return e.forEach((r,o)=>{const l=!(r.fontStyle&&(r.fontStyle&Ha.Underline||r.fontStyle&Ha.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 GAt(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 qAt(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||sX(IF(s)),o=i.htmlStyle||sX(IF(i)),a=s.fontStyle&&(s.fontStyle&Ha.Underline||s.fontStyle&Ha.Strikethrough),l=i.fontStyle&&(i.fontStyle&Ha.Underline||i.fontStyle&Ha.Strikethrough);!a&&!l&&r===o?s.content+=i.content:t.push({...i})}return t})}const KAt=mAt;function jAt(n,e,t){const i={meta:{},options:t,codeToHast:(r,o)=>DF(n,r,o),codeToTokens:(r,o)=>RF(n,r,o)};let s=KAt(DF(n,e,t,i));for(const r of LF(t))s=r.postprocess?.call(i,s,t)||s;return s}const kme={light:"#333333",dark:"#bbbbbb"},Ame={light:"#fffffe",dark:"#1e1e1e"},Ome="__shiki_resolved";function cse(n){if(n?.[Ome])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"?kme.light:kme.dark),t||(t=e.type==="light"?Ame.light:Ame.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,Ome,{enumerable:!1,writable:!1,value:!0}),e}async function E2e(n){return Array.from(new Set((await Promise.all(n.filter(e=>!v2e(e)).map(async e=>await _2e(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function T2e(n){return(await Promise.all(n.map(async t=>b2e(t)?null:cse(await _2e(t))))).filter(t=>!!t)}let YAt=3;function QAt(n,e=3){e>YAt||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let GC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class XAt extends ekt{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=cse(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=bF.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 GC(`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 GC(`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 ZAt{_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 JAt(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 GC("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),i=(n.themes||[]).flat(1).map(cse),s=new ZAt(n.engine,t),r=new XAt(s,i,t,n.langAlias);let o;function a(_){m();const b=r.getGrammar(typeof _=="string"?_:_.name);if(!b)throw new GC(`Language \`${_}\` not found, you may need to load it first`);return b}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const b=r.getTheme(_);if(!b)throw new GC(`Theme \`${_}\` not found, you may need to load it first`);return b}function c(_){m();const b=l(_);o!==_&&(r.setTheme(b),o=_);const S=r.getColorMap();return{theme:b,colorMap:S}}function d(){return m(),r.getLoadedThemes()}function u(){return m(),r.getLoadedLanguages()}function h(..._){m(),r.loadLanguages(_.flat(1))}async function f(..._){return h(await E2e(_))}function g(..._){m();for(const b of _.flat(1))r.loadTheme(b)}async function p(..._){return m(),g(await T2e(_))}function m(){if(e)throw new GC("Shiki instance has been disposed")}function v(){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:v,[Symbol.dispose]:v}}async function eOt(n){n.engine||QAt("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,i]=await Promise.all([T2e(n.themes||[]),E2e(n.langs||[]),n.engine]);return JAt({...n,themes:e,langs:t,engine:i})}async function tOt(n){const e=await eOt(n);return{getLastGrammarState:(...t)=>PAt(e,...t),codeToTokensBase:(t,i)=>lse(e,t,i),codeToTokensWithThemes:(t,i)=>w2e(e,t,i),codeToTokens:(t,i)=>RF(e,t,i),codeToHast:(t,i)=>DF(e,t,i),codeToHtml:(t,i)=>jAt(e,t,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function iOt(n){const e=n.langs,t=n.themes,i=n.engine;async function s(r){function o(u){if(typeof u=="string"){if(v2e(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(b2e(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 tOt({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 I2e=[{id:"abap",name:"ABAP",import:()=>re(()=>import("./C-LNjlSw.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>re(()=>import("./SpSV0q3Y.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>re(()=>import("./CwwkfVSR.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>re(()=>import("./CW2Vrioc.js").then(n=>n.f),__vite__mapDeps([2,3,4,5]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>re(()=>import("./1FBXtL6T.js"),__vite__mapDeps([6,2,3,4,5,7]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>re(()=>import("./Pmp26Uib.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>re(()=>import("./QX45V2Sx.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>re(()=>import("./32uRPJ4N.js"),__vite__mapDeps([8,3,4,5,9,10,11]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>re(()=>import("./3x3noH9Z.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>re(()=>import("./bbDxRicf.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>re(()=>import("./DUyX-Nai.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>re(()=>import("./8iK_SAcF.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>re(()=>import("./zH8SnKTm.js"),__vite__mapDeps([12,11,4,13,5,14]),import.meta.url)},{id:"awk",name:"AWK",import:()=>re(()=>import("./BInbHe_J.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>re(()=>import("./C96HV_dC.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>re(()=>import("./DVZd9B17.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>re(()=>import("./BoKiGodi.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>re(()=>import("./D08WgyRC.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>re(()=>import("./CHM0blh-.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>re(()=>import("./6nHXG8SA.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>re(()=>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:()=>re(()=>import("./CquLrc37.js"),__vite__mapDeps([18,19]),import.meta.url)},{id:"c",name:"C",import:()=>re(()=>import("./Dql7v_Bn.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>re(()=>import("./CSgDAwbP.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>re(()=>import("./CYx6PXAq.js"),__vite__mapDeps([20,21]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>re(()=>import("./D_3VmgUT.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>re(()=>import("./P80f7IUj.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>re(()=>import("./Cn55uXmY.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>re(()=>import("./B9Kps4VT.js"),__vite__mapDeps([22,3,4,5,10]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>re(()=>import("./Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>re(()=>import("./DPjEyH5T.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>re(()=>import("./M64VA-8k.js"),__vite__mapDeps([23,4]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>re(()=>import("./kdhEWpvT.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>re(()=>import("./COqw26dr.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>re(()=>import("./BzgE5b26.js"),__vite__mapDeps([24,25,26,27,17]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>re(()=>import("./CYBft37h.js"),__vite__mapDeps([28,3,4,5,17,27,29]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>re(()=>import("./CHadp7IV.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>re(()=>import("./B0QpCHAm.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>re(()=>import("./fuZLfV_i.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>re(()=>import("./D82EKSYY.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>re(()=>import("./afimtvtX.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>re(()=>import("./BLe-5KzV.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>re(()=>import("./CF10PKvl.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>re(()=>import("./os-I7NdE.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>re(()=>import("./BmXAJ9_W.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>re(()=>import("./D97Zzqfu.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>re(()=>import("./BcOcwvcX.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>re(()=>import("./Da5cRb03.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>re(()=>import("./WwEXBnAl.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>re(()=>import("./BG8T9Pi3.js"),__vite__mapDeps([30,13,3,4,5,16]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>re(()=>import("./Wlg0E1_o.js"),__vite__mapDeps([31,3,4,5]),import.meta.url)},{id:"elm",name:"Elm",import:()=>re(()=>import("./RUaqLVwG.js"),__vite__mapDeps([32,26,27]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>re(()=>import("./BAsAT7ku.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>re(()=>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:()=>re(()=>import("./BjMo22yv.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>re(()=>import("./D1HCxHaw.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>re(()=>import("./Bl2oy6fF.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>re(()=>import("./C4IJs8-o.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>re(()=>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:()=>re(()=>import("./-gUCin__.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>re(()=>import("./hIfYPPDs.js"),__vite__mapDeps([43,44]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>re(()=>import("./8VYUoF4n.js"),__vite__mapDeps([45,46,47]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>re(()=>import("./CBs8Keu3.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>re(()=>import("./DkwncUOv.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>re(()=>import("./D0YGMca9.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>re(()=>import("./Bp_PLy4w.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>re(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>re(()=>import("./BFdI9D2b.js"),__vite__mapDeps([50,29]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>re(()=>import("./DfbSQCnh.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>re(()=>import("./DCIw00iZ.js"),__vite__mapDeps([51,4,13,5,3]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>re(()=>import("./C1s3v70Z.js"),__vite__mapDeps([52,13,5,4,3]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>re(()=>import("./BgLz8NXr.js"),__vite__mapDeps([26,27]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>re(()=>import("./CFetOo1p.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>re(()=>import("./ClSdsI-R.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>re(()=>import("./DFFYXpeI.js"),__vite__mapDeps([36,4,13,37,38]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>re(()=>import("./PDBGRe-6.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>re(()=>import("./itr3s8OG.js"),__vite__mapDeps([53,3,4,5,17]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>re(()=>import("./gI3nN7Ut.js"),__vite__mapDeps([35,4,5]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>re(()=>import("./C9-wYoAy.js"),__vite__mapDeps([54,3,4,5,40]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>re(()=>import("./Df6bDoY_.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>re(()=>import("./DC3yV9u3.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>re(()=>import("./BWvSN4gD.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>re(()=>import("./D5-asLiD.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>re(()=>import("./B2VXiYNb.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>re(()=>import("./BHuRbl13.js"),__vite__mapDeps([3,4,5]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>re(()=>import("./CCouqEzj.js"),__vite__mapDeps([16,3,4,5]),import.meta.url)},{id:"http",name:"HTTP",import:()=>re(()=>import("./CJ1eVxFS.js"),__vite__mapDeps([55,29,11,9,10,36,4,13,37,38]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>re(()=>import("./Cqtoupvr.js"),__vite__mapDeps([56,57]),import.meta.url)},{id:"hy",name:"Hy",import:()=>re(()=>import("./DFXneXwc.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>re(()=>import("./E_RAAYUa.js"),[],import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>re(()=>import("./BEwlwnbL.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>re(()=>import("./CtpALBBA.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>re(()=>import("./ryoHgIpY.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>re(()=>import("./BFKVEqu8.js"),__vite__mapDeps([58,3,4,5]),import.meta.url)},{id:"jison",name:"Jison",import:()=>re(()=>import("./BVgHyAf_.js"),__vite__mapDeps([59,4]),import.meta.url)},{id:"json",name:"JSON",import:()=>re(()=>import("./Cp-IABpG.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>re(()=>import("./C9tS-k6U.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>re(()=>import("./Des-eS-w.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>re(()=>import("./DcaNXYhu.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>re(()=>import("./caUT6aIO.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>re(()=>import("./C2t-YnRu.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>re(()=>import("./h0LN4FIn.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>re(()=>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:()=>re(()=>import("./BdnUsdx6.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>re(()=>import("./BKLW6Or0.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>re(()=>import("./BfB9GJr7.js"),__vite__mapDeps([62,63,61]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>re(()=>import("./Bc5W3P_y.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>re(()=>import("./DqnT6WTg.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>re(()=>import("./BDJi0rE3.js"),__vite__mapDeps([64,3,4,5,11]),import.meta.url)},{id:"llvm",name:"LLVM IR",import:()=>re(()=>import("./DLpp9LvF.js"),[],import.meta.url)},{id:"log",name:"Log file",import:()=>re(()=>import("./BPQEJVH-.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>re(()=>import("./BB0-839A.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>re(()=>import("./C9lfyjdU.js"),__vite__mapDeps([39,27]),import.meta.url)},{id:"luau",name:"Luau",import:()=>re(()=>import("./BUGa-R-r.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>re(()=>import("./BoASPUxF.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>re(()=>import("./C9sg6759.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>re(()=>import("./B82-JnRn.js"),__vite__mapDeps([65,5,66,7,4]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>re(()=>import("./Coy0nst6.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>re(()=>import("./DREyJzTe.js"),__vite__mapDeps([67,44,40,16,3,4,5]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>re(()=>import("./DHd_1LBM.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>re(()=>import("./DfYh35At.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>re(()=>import("./B7zkapVa.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>re(()=>import("./DmN1BIHU.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>re(()=>import("./BkPM1oy1.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>re(()=>import("./DRg8JJMk.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>re(()=>import("./BU0udk1K.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>re(()=>import("./Dykf6cri.js"),__vite__mapDeps([68,39,27]),import.meta.url)},{id:"nim",name:"Nim",import:()=>re(()=>import("./D_T-aAMc.js"),__vite__mapDeps([69,27,3,4,5,9,10,26,44]),import.meta.url)},{id:"nix",name:"Nix",import:()=>re(()=>import("./CDCQC_zV.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>re(()=>import("./DOiXYxxS.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>re(()=>import("./P9Jyl3kd.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>re(()=>import("./CFJys5tQ.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>re(()=>import("./SN78sQLf.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>re(()=>import("./DLb4zeju.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>re(()=>import("./G3-HApOe.js"),__vite__mapDeps([70,3,4,5,9,10,17]),import.meta.url)},{id:"php",name:"PHP",import:()=>re(()=>import("./C8_cZGvL.js"),__vite__mapDeps([71,3,4,5,9,10,17,11]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>re(()=>import("./DbnbuKy4.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>re(()=>import("./BTJTHyun.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>re(()=>import("./C0HS_06l.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>re(()=>import("./CXtECtnM.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>re(()=>import("./CEu0bR-o.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>re(()=>import("./B9QZihn4.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>re(()=>import("./Dd19v3D-.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>re(()=>import("./BRGHnwaO.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>re(()=>import("./DyJlTyXw.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>re(()=>import("./DJs7a6wl.js"),__vite__mapDeps([72,4,5,3]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>re(()=>import("./BMWR74SV.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>re(()=>import("./CtrldY6v.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>re(()=>import("./CXTBPihj.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>re(()=>import("./CNgRkp1_.js"),__vite__mapDeps([73,4]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>re(()=>import("./C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>re(()=>import("./diaQH6uK.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>re(()=>import("./Cpx7UCi2.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>re(()=>import("./BauLn-NW.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>re(()=>import("./CrUG655c.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>re(()=>import("./CChMg1-B.js"),__vite__mapDeps([74,3,4,5,75]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>re(()=>import("./C-SQnVFl.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>re(()=>import("./CDVJQ6XC.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>re(()=>import("./C3B-1QV4.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>re(()=>import("./LUZpk28X.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>re(()=>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:()=>re(()=>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:()=>re(()=>import("./B1yitclQ.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>re(()=>import("./Bv2DfwTI.js"),__vite__mapDeps([78,17]),import.meta.url)},{id:"sass",name:"Sass",import:()=>re(()=>import("./Cj5Yp3dK.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>re(()=>import("./C151Ov-r.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>re(()=>import("./BlI8fBv_.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>re(()=>import("./mtNz0_Xw.js"),__vite__mapDeps([7,5]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>re(()=>import("./DVxCFoDh.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>re(()=>import("./CeDfCXaY.js"),__vite__mapDeps([79,80]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>re(()=>import("./enPR0-Fz.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>re(()=>import("./BIzIjuvV.js"),__vite__mapDeps([81,29]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>re(()=>import("./BKe6jfpc.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>re(()=>import("./BbcW6ACK.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>re(()=>import("./CEizyJ1q.js"),__vite__mapDeps([82,3,4,5]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>re(()=>import("./BRZ36xJF.js"),__vite__mapDeps([83,84]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>re(()=>import("./C2pHKz2C.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>re(()=>import("./Bc-MNOVW.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>re(()=>import("./_ykCGR6B.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>re(()=>import("./CFfumueS.js"),__vite__mapDeps([85,17]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>re(()=>import("./DgWikGMS.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>re(()=>import("./CrtRcjh8.js"),__vite__mapDeps([86,4,13,5,14]),import.meta.url)},{id:"swift",name:"Swift",import:()=>re(()=>import("./fve9TYiY.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>re(()=>import("./CVTao1yP.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>re(()=>import("./BgWFZNIN.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>re(()=>import("./Z9sDDOrt.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>re(()=>import("./QIJgUcNo.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>re(()=>import("./dwOrl1Do.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>re(()=>import("./Da4t7zrk.js"),__vite__mapDeps([87,88,4,5]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>re(()=>import("./lrsjGwJC.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>re(()=>import("./BAmeXbWa.js"),__vite__mapDeps([63,61]),import.meta.url)},{id:"toml",name:"TOML",import:()=>re(()=>import("./DpWJAGvS.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>re(()=>import("./Cc-FHe7z.js"),__vite__mapDeps([89,13,5,4,26,27,3,17,9,10]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>re(()=>import("./B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>re(()=>import("./nsowKw4B.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>re(()=>import("./BsS91CYL.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>re(()=>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:()=>re(()=>import("./CYoF9-Z5.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>re(()=>import("./Df68jz8_.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>re(()=>import("./C5DMNY_Y.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>re(()=>import("./Bx8CTVFK.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>re(()=>import("./wef_wrfO.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>re(()=>import("./gsC4jtYg.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>re(()=>import("./BQ8w6xss.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>re(()=>import("./B-n0qIwP.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>re(()=>import("./2vEc2rIP.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>re(()=>import("./C5CPwoy2.js"),__vite__mapDeps([91,5,4,13,11,16,3]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>re(()=>import("./CKfMBS6n.js"),__vite__mapDeps([92,91,5,4,13,11,16,3]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>re(()=>import("./BvCpsbMi.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>re(()=>import("./BIkblFNm.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>re(()=>import("./BV7otONQ.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>re(()=>import("./Dx-B1_4e.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>re(()=>import("./y_XAX2KJ.js"),[],import.meta.url)},{id:"wit",name:"WebAssembly Interface Types",import:()=>re(()=>import("./5i3qLPDT.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>re(()=>import("./BdBarL6S.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>re(()=>import("./CCLpvtro.js"),__vite__mapDeps([9,10]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>re(()=>import("./Chm2_3hY.js"),__vite__mapDeps([93,9,10]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>re(()=>import("./Buea-lGh.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>re(()=>import("./Y7AfTJ_q.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>re(()=>import("./CK-KhNJq.js"),[],import.meta.url)}],nOt=Object.fromEntries(I2e.map(n=>[n.id,n.import])),sOt=Object.fromEntries(I2e.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),rOt={...nOt,...sOt},oOt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>re(()=>import("./C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>re(()=>import("./D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>re(()=>import("./Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>re(()=>import("./Btyk0a-E.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>re(()=>import("./q-j0iyEw.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>re(()=>import("./brDaU2vB.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>re(()=>import("./BR7mELCv.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>re(()=>import("./C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>re(()=>import("./BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>re(()=>import("./BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>re(()=>import("./BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>re(()=>import("./C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>re(()=>import("./DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>re(()=>import("./Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>re(()=>import("./DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>re(()=>import("./E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>re(()=>import("./DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>re(()=>import("./D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>re(()=>import("./BfjtVDDH.js"),[],import.meta.url)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>re(()=>import("./Hhtzho9R.js"),[],import.meta.url)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>re(()=>import("./DFR6f4Jn.js"),[],import.meta.url)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>re(()=>import("./BFVdkX1U.js"),[],import.meta.url)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>re(()=>import("./7i6GEmcB.js"),[],import.meta.url)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>re(()=>import("./Dcsh5twl.js"),[],import.meta.url)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>re(()=>import("./leinZj1a.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>re(()=>import("./DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>re(()=>import("./CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>re(()=>import("./CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>re(()=>import("./DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>re(()=>import("./DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>re(()=>import("./B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>re(()=>import("./D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>re(()=>import("./BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>re(()=>import("./B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>re(()=>import("./CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>re(()=>import("./Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>re(()=>import("./CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>re(()=>import("./CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>re(()=>import("./D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>re(()=>import("./C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>re(()=>import("./Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>re(()=>import("./DVMEJ2y_.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>re(()=>import("./PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>re(()=>import("./3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>re(()=>import("./CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>re(()=>import("./bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>re(()=>import("./BHrmToEH.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>re(()=>import("./CnK8MTSM.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>re(()=>import("./NleAzG8P.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>re(()=>import("./BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>re(()=>import("./DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>re(()=>import("./Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>re(()=>import("./DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>re(()=>import("./L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>re(()=>import("./CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>re(()=>import("./hegEt444.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>re(()=>import("./DU1UobuO.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>re(()=>import("./Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>re(()=>import("./D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>re(()=>import("./CVO1_9PV.js"),[],import.meta.url)}],aOt=Object.fromEntries(oOt.map(n=>[n.id,n.import]));class dse extends Error{constructor(e){super(e),this.name="ShikiError"}}function lOt(){return 2147483648}function cOt(){return typeof performance<"u"?performance.now():Date.now()}const dOt=(n,e)=>n+(e-n%e)%e;async function uOt(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=lOt();if(f>p)return!1;for(let m=1;m<=4;m*=2){let v=g*(1+.2/m);v=Math.min(v,f+100663296);const _=Math.min(p,dOt(Math.max(f,v),65536));if(o(_))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 v=g;for(;f[v]&&!(v>=m);)++v;if(v-g>16&&f.buffer&&l)return l.decode(f.subarray(g,v));let _="";for(;g<v;){let b=f[g++];if(!(b&128)){_+=String.fromCharCode(b);continue}const S=f[g++]&63;if((b&224)===192){_+=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)_+=String.fromCharCode(b);else{const C=b-65536;_+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return _}function d(f,g){return f?c(i.HEAPU8,f,g):""}const u={emscripten_get_now:cOt,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 hOt=Object.defineProperty,fOt=(n,e,t)=>e in n?hOt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Eo=(n,e,t)=>fOt(n,typeof e!="symbol"?e+"":e,t);let Wo=null;function gOt(n){throw new dse(n.UTF8ToString(n.getLastOnigError()))}class t3{constructor(e){Eo(this,"utf16Length"),Eo(this,"utf8Length"),Eo(this,"utf16Value"),Eo(this,"utf8Value"),Eo(this,"utf16OffsetToUtf8"),Eo(this,"utf8OffsetToUtf16");const t=e.length,i=t3._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 i3=class Mh{constructor(e){if(Eo(this,"id",++Mh.LAST_ID),Eo(this,"_onigBinding"),Eo(this,"content"),Eo(this,"utf16Length"),Eo(this,"utf8Length"),Eo(this,"utf16OffsetToUtf8"),Eo(this,"utf8OffsetToUtf16"),Eo(this,"ptr"),!Wo)throw new dse("Must invoke loadWasm first.");this._onigBinding=Wo,this.content=e;const t=new t3(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)}};Eo(i3,"LAST_ID",0);Eo(i3,"_sharedPtr",0);Eo(i3,"_sharedPtrInUse",!1);let L2e=i3;class pOt{constructor(e){if(Eo(this,"_onigBinding"),Eo(this,"_ptr"),!Wo)throw new dse("Must invoke loadWasm first.");const t=[],i=[];for(let a=0,l=e.length;a<l;a++){const c=new t3(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&&gOt(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 L2e(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 mOt(n){return typeof n.instantiator=="function"}function _Ot(n){return typeof n.default=="function"}function vOt(n){return typeof n.data<"u"}function bOt(n){return typeof Response<"u"&&n instanceof Response}function SOt(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 sA;function yOt(n){if(sA)return sA;async function e(){Wo=await uOt(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),mOt(i)?i=await i.instantiator(t):_Ot(i)?i=await i.default(t):(vOt(i)&&(i=i.data),bOt(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await COt(i)(t):i=await wOt(i)(t):SOt(i)?i=await QW(i)(t):i instanceof WebAssembly.Module?i=await QW(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await QW(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return sA=e(),sA}function QW(n){return e=>WebAssembly.instantiate(n,e)}function COt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function wOt(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function EOt(n){return n&&await yOt(n),{createScanner(e){return new pOt(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new L2e(e)}}}const TOt=iOt({langs:rOt,themes:aOt,engine:()=>EOt(re(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),IOt=await TOt({themes:["dark-plus"],langs:["nix"]});b4.register({id:"nix"});b4.setLanguageConfiguration("nix",{brackets:[["{","}"],["[","]"],["(",")"]]});ikt(IOt,tse);self.MonacoEnvironment={getWorker(n,e){switch(e){case"yaml":return new HDt;default:return new WDt}}};const Mme=new Map,LOt=gNt(tse,{});_z.config({monaco:tse});function Pme(n){for(const[e,{schema:t}]of Object.entries(n.args))x2e(t)&&(Mme.set(`${n.type}.${e}`,{fileMatch:[`${n.type}.${e}`],uri:`library://${n.type}/${e}`,schema:t}),LOt.update({schemas:Array.from(Mme.values())}))}function x2e(n){return n.type==="object"?!0:n.type==="array"?x2e(n.items):!1}const $f=Xd("library",()=>{const{$client:n}=Ms(),e=new DQe({tokenize:"forward"}),t=ca({}),i=ca({}),s=ca(new Map),{on:r,trigger:o}=$s(),{on:a,trigger:l}=$s(),{on:c,trigger:d}=$s(),{on:u,trigger:h}=$s(),{on:f,trigger:g}=$s(),p=T=>{switch(T.type){case"component-updated":o(T.component);break;case"component-removed":l(T.componentType);break;case"entity-updated":d(T.entity);break;case"entity-removed":h(T.entityType);break}},m=T=>{const w=T.meta.displayName??Sl(T.type,T.meta);e.add(T.type,T.type),e.add(T.type,w),T.meta.description&&e.add(T.type,T.meta.description)},v=async T=>{await e.remove(T.type),m(T)},_=T=>{switch(lQe(t,i,T),p(T),T.type){case"component-updated":v(T.component),Pme(T.component);break;case"component-removed":e.remove(T.componentType);break}},b=async()=>{const T=await n.library.get.query();Object.assign(t,T.components),Object.assign(i,T.entities);for(const I of Object.values(t))m(I),Pme(I);const w=await n.library.getUnitSourceHashes.query();for(const{unitType:I,sourceHash:R}of w)s.set(I,R);n.library.watch.subscribe(void 0,{onData(I){for(const R of I)_(R)}}),n.library.watchUnitSourceHashes.subscribe(void 0,{onData({unitType:I,sourceHash:R}){s.set(I,R),g({unitType:I,sourceHash:R}),B_.info({unitType:I,sourceHash:R},"unit source hash updated")}})},S=Me(""),y=M9e(S,100),C=V9e(async()=>y.value?(await e.search(y.value)).map(w=>t[w]):Object.values(t),[]);return{initialize:b,components:t,entities:i,onComponentUpdated:r,onComponentRemoved:a,onEntityUpdated:c,onEntityRemoved:u,search:S,filteredComponents:C,unitSourceHashes:s,onUnitSourceHashChanged:f}});function xOt(n){return new Worker(""+new URL("graph-resolver-LVQiD89a.js",import.meta.url).href,{type:"module",name:n?.name})}function R2e(n,e){let t=null;const{on:i,trigger:s}=$s(),{on:r,trigger:o}=$s(),a=()=>{t=new n(e),t.onerror=c=>{B_.error({message:c.message,filename:c.filename,lineno:c.lineno,colno:c.colno},"worker error, restarting worker"),o(new Error(`Worker error: ${c.message}`)),t?.terminate(),t=null,a()},t.onmessage=c=>{s(c.data)}},l=c=>{t||a(),t.postMessage(c)};return a(),{onMessage:i,onError:r,postMessage:l}}const{onMessage:ROt,onError:DOt,postMessage:XW}=R2e(xOt);function rX(n,e){const t=qB(),i=Me(!1),s=Me(!1),r=ca(new Map),o=ca(new Map),a=new Set,l=async b=>{await Tb(i).toBe(!0),XW(b)},c=t_(()=>{l({type:"process",stateId:t,nodeIds:Array.from(a)}),a.clear()},100),d=t_(()=>{s.value=!0},100),u=async b=>{const S=h.get(b)??[];for(const y of S)y();await l({type:"invalidate",stateId:t,nodeId:b}),a.add(b),c()},h=new Map,f=(b,S)=>{e.trace({nodeId:b,dependencies:S},"setting dependencies");const y=[];for(const C of S)y.push(rt(()=>o.get(C),()=>{e.debug({nodeId:b,dependency:C},"re-evaluating resolver since dependency has changed"),s.value&&u(b)}));h.set(b,y)},g=(b,S)=>{e.trace({nodeId:b,value:S},"setting output"),o.set(b,S)},p=()=>{e.debug({stateId:t},"creating state"),XW({type:"create-state",nodes:Object.fromEntries(r),stateId:t,factoryName:n.factoryName})};return ROt(b=>{if(b.type==="ready"){p();return}if(b.stateId===t)switch(b.type){case"state-ready":{e.debug({stateId:t},"state ready"),i.value=!0;break}case"dependencies":{f(b.nodeId,b.dependencies);break}case"output":{g(b.nodeId,b.value),d();break}}}),p(),DOt(()=>{i.value=!1}),ir(()=>{e.debug({stateId:t},"disposing state"),i.value&&XW({type:"dispose-state",stateId:t})}),{inputs:r,outputs:o,get:b=>o.get(b),set:async(b,S)=>{r.set(b,S),await l({type:"update-input",stateId:t,nodeId:b,node:JSON.parse(JSON.stringify(S))}),a.add(b),c()},delete:b=>{r.delete(b),o.delete(b),l({type:"delete-input",stateId:t,nodeId:b})}}}function NOt(n){return n.meta.defaultNamePrefix??n.type.split(".").pop()}const CD=Ip({name:"project-instances",getStoreId:n=>`projects/${n}/instances`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Xd(n,()=>{const s=dr(new Map),r=ca(new Map),o=ca(new Map),a=new Set,l=$f(),{$client:c}=Ms(),{inputs:d,outputs:u,get:h,set:f,delete:g}=rX(eQe,t),{inputs:p,outputs:m,get:v,set:_,delete:b}=rX(aQe,t),{on:S,trigger:y}=$s(),{on:C,trigger:T}=$s(),{on:w,trigger:I}=$s(),{on:R,trigger:D}=$s(),{on:L,trigger:k}=$s(),{on:x,trigger:N}=$s(),{on:A,trigger:B}=$s(),V=ca(new Map),O=de=>{const Ie=V.get(de.type)??[];Ie.push(de),V.set(de.type,Ie)},M=(de,Ie)=>{const it=(V.get(de)??[]).filter(mt=>mt.id!==Ie);V.set(de,it)},P=de=>{const Ie=l.components[de.type];Ie&&(t.debug({instance:de},"updating instance state"),f(`instance:${de.id}`,{kind:"instance",instance:de,component:Ie}),B9e(()=>h(`instance:${de.id}`),$e=>{if(!$e){t.error({msg:"cannot get resolved instance inputs after instance state update",instance:de});return}const it=mL($e);_(de.id,{instance:de,resolvedInputs:it,component:Ie}),T({instance:de,resolvedInputs:it})}))},W=de=>{P(de),s.set(de.id,de)},H=(de,Ie)=>{t.debug({instanceId:de,instanceName:Ie},"deleting instance state"),g(`instance:${de}`),b(de),I(de),s.delete(de),a.delete(Ie)},F=de=>{t.debug({hub:de},"updating hub state"),f(`hub:${de.id}`,{kind:"hub",hub:de}),r.set(de.id,de)},U=async()=>{const de=await c.project.getProject.query({projectId:e});for(const $e of de.instances)W($e),O($e);for(const $e of de.hubs)F($e);for(const $e of de.compositeInstances)Z($e);const{unsubscribe:Ie}=c.project.watchCompositeInstances.subscribe({projectId:e},{onData($e){switch($e.type){case"updated":Z($e.instance);break;case"deleted":o.delete($e.instanceId),g(`instance:${$e.instanceId}`);break}}});i(Ie)},Z=de=>{o.set(de.instance.id,de);const Ie=s.get(de.instance.id);Ie?(Ie.outputs=de.instance.outputs,Ie.resolvedOutputs=de.instance.resolvedOutputs,P(Ie)):(P(de.instance),O(de.instance));for(const $e of de.children)P($e),O(de.instance);D(de)},X=async(de,Ie)=>{await c.project.updateInstance.mutate({projectId:e,instanceId:de.id,patch:ole(de,Ie)})},G=async(de,Ie)=>{await c.project.updateHub.mutate({projectId:e,hubId:de.id,patch:ole(de,Ie)})},he=de=>{const Ie=l.components[de],$e=NOt(Ie);let it=1,mt=`${$e}-${it}`;for(;a.has(mt);)it++,mt=`${$e}-${it}`;return mt},_e=P_(),ee=async(de,Ie)=>{const $e=await c.terminal.getOrCreateSession.mutate({projectId:e,instanceId:de.id,terminalName:Ie});console.log("arrived session",AM.parse($e)),_e.openTerminalPanel(AM.parse($e))},{on:Q,trigger:Y}=$s(),{on:z,trigger:j}=$s(),{on:ie,trigger:J}=$s(),{on:ve,trigger:Ne}=$s(),{on:Te,trigger:Ce}=$s(),ye=async(de,Ie,$e,it=!0)=>{const mt=de.inputs??{},It=mt[Ie]??[];It.push($e),mt[Ie]=It,de.inputs=mt,Y({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["inputs"])},Ae=async(de,Ie,$e,it=!0)=>{const mt=de.hubInputs??{},It=mt[Ie]??[];It.push($e),mt[Ie]=It,de.hubInputs=mt,j({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["hubInputs"])},Fe=async(de,Ie,$e=!0)=>{const it=de.injectionInputs??[];it.push(Ie),de.injectionInputs=it,J({instance:de,input:Ie}),W(de),$e&&await X(de,["injectionInputs"])},je=async(de,Ie,$e=!0)=>{const it=de.inputs??[];it.push(Ie),de.inputs=it,Ne({hub:de,input:Ie}),F(de),$e&&await G(de,["inputs"])},et=async(de,Ie,$e=!0)=>{const it=de.injectionInputs??[];it.push(Ie),de.injectionInputs=it,Ce({hub:de,input:Ie}),F(de),$e&&await G(de,["injectionInputs"])},kt=(de,Ie)=>{de[Ie]||delete de[Ie],Array.isArray(de[Ie])&&!de[Ie].length&&delete de[Ie]},{on:Yt,trigger:zt}=$s(),{on:oi,trigger:Wt}=$s(),{on:Mt,trigger:ln}=$s(),{on:Li,trigger:Wn}=$s(),{on:Un,trigger:gn}=$s(),xi=async(de,Ie,$e,it=!0)=>{const mt=de.inputs??{};let It=mt[Ie]??[];It=It.filter(pn=>pn.instanceId!==$e.instanceId||pn.output!==$e.output),mt[Ie]=It,kt(mt,Ie),de.inputs=mt,zt({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["inputs"])},gr=async(de,Ie,$e,it=!0)=>{const mt=de.hubInputs??{};let It=mt[Ie]??[];It=It.filter(pn=>pn.hubId!==$e.hubId),mt[Ie]=It,kt(mt,Ie),de.hubInputs=mt,Wt({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["hubInputs"])},Hi=async(de,Ie,$e=!0)=>{const mt=(de.injectionInputs??[]).filter(It=>It.hubId!==Ie.hubId);de.injectionInputs=mt,ln({instance:de,input:Ie}),W(de),$e&&await X(de,["injectionInputs"])},qr=async(de,Ie,$e=!0)=>{const mt=(de.inputs??[]).filter(It=>It.instanceId!==Ie.instanceId||It.output!==Ie.output);de.inputs=mt,Wn({hub:de,input:Ie}),F(de),$e&&await G(de,["inputs"])},nn=async(de,Ie,$e=!0)=>{const mt=(de.injectionInputs??[]).filter(It=>It.hubId!==Ie.hubId);de.injectionInputs=mt,gn({hub:de,input:Ie}),F(de),$e&&await G(de,["injectionInputs"])},sr=async(de,Ie)=>{const $e=he(de),mt={id:lle(de,$e),type:de,name:$e,position:Ie};W(mt),a.add(mt.name),O(mt),await y(mt),h(`instance:${mt.id}`),await c.project.createInstance.mutate({projectId:e,instance:mt})},we=(de,Ie,$e)=>{for(const[it,mt]of Object.entries(de.inputs??{}))for(const It of mt)It.instanceId===Ie&&(xi(de,it,It,!1),ye(de,it,{instanceId:$e,output:It.output},!1))},Ke=(de,Ie,$e)=>{for(const it of de.inputs??[])it.instanceId===Ie&&(qr(de,it,!1),je(de,{instanceId:$e,output:it.output},!1))},pt=async(de,Ie,$e)=>{const it=s.get(de);if(!it)throw new Error(`Instance ${de} not found`);if(it.name!==Ie){const mt=it.name,It=lle(it.type,Ie);k({oldName:mt,oldId:de,newName:Ie,newId:It}),a.add(Ie),it.id=It,it.name=Ie,W(it);for(const pn of s.values())pn.id!==it.id&&we(pn,de,It);for(const pn of r.values())Ke(pn,de,It);H(de,mt),await c.project.renameInstance.mutate({projectId:e,instanceId:de,newName:Ie})}JSON.stringify(it.args)!==JSON.stringify($e)&&(it.args=$e,W(it),await X(it,["args"]),h(`instance:${it.id}`))},at=(de,Ie)=>{for(const[$e,it]of Object.entries(de.inputs??{}))for(const mt of it)mt.instanceId===Ie&&xi(de,$e,mt,!1)},oe=(de,Ie)=>{for(const $e of de.inputs??[])$e.instanceId===Ie&&qr(de,$e,!1)},ce=async de=>{for(const Ie of s.values())Ie.id!==de.id&&at(Ie,de.id);for(const Ie of r.values())oe(Ie,de.id);I(de.id),H(de.id,de.name),M(de.type,de.id),await c.project.deleteInstance.mutate({projectId:e,instanceId:de.id})},ae=async de=>{const Ie={id:qB(),position:de};F(Ie),h(`hub:${Ie.id}`),N(Ie),await c.project.createHub.mutate({projectId:e,hub:Ie})},fe=(de,Ie)=>{for(const $e of de.injectionInputs??[])$e.hubId===Ie&&Hi(de,$e,!1);for(const[$e,it]of Object.entries(de.hubInputs??{}))for(const mt of it)mt.hubId===Ie&&gr(de,$e,mt,!1)},Se=(de,Ie)=>{for(const $e of de.injectionInputs??[])$e.hubId===Ie&&nn(de,$e,!1)};return{initialize:U,instances:s,hubs:r,patchInstance:X,patchHub:G,createInstance:sr,updateInstance:pt,deleteInstance:ce,createHub:ae,deleteHub:async de=>{r.delete(de.id);for(const Ie of s.values())fe(Ie,de.id);for(const Ie of r.values())Ie.id!==de.id&&Se(Ie,de.id);await B(de.id),await c.project.deleteHub.mutate({projectId:e,hubId:de.id})},openTerminal:ee,componentTypeToInstancesMap:V,compositeInstances:o,onCompositeInstanceUpdated:R,onInstanceCreated:S,onInstanceUpdated:C,onInstanceNameChanged:L,onInstanceDeleted:w,onHubCreated:x,onHubDeleted:A,onInstanceInputAdded:Q,onInstanceHubInputAdded:z,onInstanceInjectionInputAdded:ie,onHubInputAdded:ve,onHubInjectionInputAdded:Te,addInstanceInput:ye,addInstanceHubInput:Ae,addInstanceInjectionInput:Fe,addHubInput:je,addHubInjectionInput:et,onInstanceInputRemoved:Yt,onInstanceHubInputRemoved:oi,onInstanceInjectionInputRemoved:Mt,onHubInputRemoved:Li,onHubInjectionInputRemoved:Un,removeInstanceInput:xi,removeInstanceHubInput:gr,removeInstanceInjectionInput:Hi,removeHubInput:qr,removeHubInjectionInput:nn,addComponentInstance:O,updateInstanceState:W,updateHubState:F,deleteInstanceState:H,deleteComponentInstance:M,getInputResolverOutput:h,getValidationOutput:v,inputResolverInputs:d,inputResolverOutputs:u,validationInputs:p,validationOutputs:m}})}),wD=Ip({name:"project-operations",getStoreId:n=>`projects/${n}/operations`,create:({storeId:n,id:[e],onDeactivated:t})=>Xd(n,()=>{const i=ca(new Map),s=Me([]),{$client:r}=Ms(),{trigger:o,on:a}=$s(),l=async()=>{const h=await r.operation.getMany.query({projectId:e});for(const g of h)i.set(g.id,g);s.value=h;const{unsubscribe:f}=r.operation.watch.subscribe({projectId:e},{onData(g){i.has(g.id)?(i.set(g.id,g),s.value=s.value.map(p=>p.id===g.id?g:p)):(i.set(g.id,g),s.value=[g,...s.value]),Rz(g.status)&&o(g)}});t(f)},c=async h=>await r.operation.launch.mutate(h);return{initialize:l,operations:s,operationsMap:i,launchOperation:c,launchInstanceOperation:async(h,f,g)=>await c({projectId:e,type:h,instanceIds:[f.id],options:g}),cancelOperation:async h=>{await r.operation.cancel.mutate({operationId:h})},onOperationFinished:a}})}),n3=Ip({name:"project-state",getStoreId:n=>`projects/${n}/state`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Xd(n,()=>{const s=CD(e),r=wD(e),o=$f(),a=dr(new Map),{$client:l}=Ms(),c=$t(new Map),{inputs:d,outputs:u,get:h,set:f,delete:g}=rX(oQe,t),p=async()=>{const C=await l.state.getInstanceStates.query({projectId:e});for(const w of C)a.set(w.id,w);c.value=ale(a);const{unsubscribe:T}=l.state.watchInstanceStates.subscribe({projectId:e},{onData(w){t.debug({msg:"instance state patch",patch:w});const I=Uje(a,w),R=s.instances.get(I.id),D=s.getInputResolverOutput(`instance:${I.id}`);if(!R||!D)return;const L=o.components[R.type],k=mL(D);f(R.id,{instance:R,component:L,resolvedInputs:k,state:I,sourceHash:zT(L)?o.unitSourceHashes.get(R.type):void 0})}});i(T)};r.onOperationFinished(()=>{c.value=ale(a)});const m=C=>a.get(C)??cLe(C);s.onInstanceUpdated(({instance:C,resolvedInputs:T})=>{const w=o.components[C.type];f(C.id,{instance:C,component:w,resolvedInputs:T,state:a.get(C.id),sourceHash:o.unitSourceHashes.get(C.type)})}),s.onInstanceDeleted(C=>{g(C)}),o.onUnitSourceHashChanged(({unitType:C,sourceHash:T})=>{const w=s.componentTypeToInstancesMap.get(C)??[];for(const I of w){const R=s.getInputResolverOutput(`instance:${I.id}`);if(!R)continue;const D=mL(R),L=o.components[I.type];f(I.id,{instance:I,component:L,resolvedInputs:D,state:a.get(I.id),sourceHash:T})}});const v=C=>{const T=a.get(C);if(!T?.latestOperationId)return null;const w=r.operationsMap.get(T.latestOperationId);return w?Rz(w.status)?null:w:null},_=ue(()=>Array.from(s.instances.values()).filter(C=>{const T=a.get(C.id);if(!T||!T.latestOperationId)return!0;const w=r.operationsMap.get(T.latestOperationId);if(w&&!Rz(w.status)||s.getValidationOutput(C.id)?.status!=="ok")return!1;if(T.status!=="created")return!0;const R=h(C.id);return R?.inputHash?T.inputHash!==R.inputHash:!1})),b=P_();return{initialize:p,instanceStates:a,getInstanceState:m,instancesToAutoUpdate:_,getInputHashOutput:h,openInstanceLogs:async C=>{const T=a.get(C.id);T?.latestOperationId&&b.openLogsPanel(e,T.latestOperationId,C.id)},getPageContent:async(C,T)=>await l.state.getInstancePageContent.query({projectId:e,instanceId:C,pageName:T})??[],dependentInstanceStateMap:c,getActiveInstanceOperation:v,inputHashInputs:d,inputHashOutputs:u}})}),use=Ip({name:"project",getStoreId:n=>`projects/${n}`,create:({storeId:n,id:[e]})=>Xd(n,()=>{const t=Me(!1),i=wD(e),s=CD(e),r=n3(e),o=async()=>{await Promise.all([r.initialize(),s.initialize(),i.initialize()]),t.value=!0};let a=null;return{projectId:e,initialized:t,ensureInitialized:()=>{if(!t.value)return a||(a=o(),a)}}})}),hse=Ip({name:"project-secrets",getStoreId:n=>`projects/${n}/secrets`,create:({storeId:n,id:[e]})=>Xd(n,()=>{const{$client:t}=Ms(),i=Me(null),s=async()=>(i.value!==null||(i.value=await t.secret.isLocked.query({projectId:e})),i.value),r=async l=>{const c=await t.secret.unlock.mutate({projectId:e,passphrase:l});return c&&(i.value=!1),c},o=async l=>await t.secret.get.query({projectId:e,instanceKey:l.id}),a=async(l,c)=>{await t.secret.set.mutate({projectId:e,instanceId:l.id,values:c})};return{isLocked:ue(()=>i.value??!1),checkIsLocked:s,unlock:r,getSecrets:o,setSecrets:a}})});function _h(){return{projectStore:use(),instancesStore:CD(),secretsStore:hse(),operationsStore:wD(),stateStore:n3()}}function D2e(n){return{projectStore:use(n),instancesStore:CD(n),secretsStore:hse(n),operationsStore:wD(n),stateStore:n3(n)}}function kOt(n){return{projectStore:use.weak(n),instancesStore:CD.weak(n),secretsStore:hse.weak(n),operationsStore:wD.weak(n),stateStore:n3.weak(n)}}function AOt(n,e){return e.default?n===e.default||!n:Array.isArray(n)?n.length===0:!n}function OOt(n,e){const t={...n};for(const i in e){const s=e[i];s.schema.default&&!t[i]&&(s.schema.type==="anyOf"||s.schema.type==="boolean")&&(t[i]=s.schema.default)}return t}function N2e(n,e){const t={};for(const i in n)e[i]&&!AOt(n[i],e[i].schema)&&(t[i]=n[i]);return t}function MOt(n,e){return Array.isArray(n)?n.length===0?"[]":typeof n[0]=="object"?"[...]":n.join(", "):typeof n=="object"?"{...}":typeof n=="string"&&e.language?"...":String(n)}const POt=Tt({id:String,text:String,...Cp(RB({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),k2e=Ei()({name:"VTooltip",props:POt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),{scopeId:s}=xB(),r=Zd(),o=ue(()=>n.id||`v-tooltip-${r}`),a=Me(),l=ue(()=>n.location.split(" ").length>1?n.location:n.location+" center"),c=ue(()=>n.origin==="auto"||n.origin==="overlap"||n.origin.split(" ").length>1||n.location.split(" ").length>1?n.origin:n.origin+" center"),d=ue(()=>n.transition?n.transition:i.value?"scale-transition":"fade-transition"),u=ue(()=>qt({"aria-describedby":o.value},n.activatorProps));return tn(()=>{const h=i_.filterProps(n);return K(i_,qt({ref:a,class:["v-tooltip",n.class],style:n.style,id:o.value},h,{modelValue:i.value,"onUpdate:modelValue":f=>i.value=f,transition:d.value,absolute:!0,location:l.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:u.value,_disableGlobalStack:!0},s),{activator:t.activator,default:function(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];return t.default?.(...g)??n.text}})}),M_({},a)}}),FOt=Dt({__name:"ComponentNodeEditor",props:WS({component:{},instance:{},state:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const{instancesStore:e}=_h(),t=pf(n,"modelValue"),i=Me(n.instance.name),s=dr(OOt(n.instance.args??{},n.component.args)),r=async()=>{t.value=!1,await Vi(),Object.assign(s,n.instance.args)},o=async()=>{e.updateInstance(n.instance.id,i.value,N2e(s,n.component.args)),await Vi(),t.value=!1};return(a,l)=>{const c=KIe;return xe(),ot(i_,{modelValue:t.value,"onUpdate:modelValue":l[1]||(l[1]=d=>t.value=d),contained:"",opacity:1,width:"100%",height:"100%",class:"nowheel nodrag",transition:!1,style:{"border-radius":"6px"}},{default:We(()=>[K(wc,{height:"100%",variant:"flat",color:a.component.meta.color??"#2d2d2d"},{default:We(()=>[K(vf,{class:"d-flex flex-column ga-2 px-2 py-2",style:{height:"calc(100% - 53px)",overflow:"scroll"}},{default:We(()=>[K(k2e,{"open-on-hover":a.state.status!=="not_created",location:"top"},{activator:We(({props:d})=>[K(_f,qt({modelValue:le(i),"onUpdate:modelValue":l[0]||(l[0]=u=>pi(i)?i.value=u:null)},d,{label:"Name",variant:"outlined",density:"compact",readonly:a.state.status!=="not_created",style:{"max-height":"40px"},"hide-details":""}),null,16,["modelValue","readonly"])]),default:We(()=>[l[2]||(l[2]=gi(" The name cannot be changed after the instance is created "))]),_:1},8,["open-on-hover"]),(xe(!0),gt(Ct,null,Ka(a.component.args,(d,u)=>(xe(),ot(c,{key:u,modelValue:le(s)[u],"onUpdate:modelValue":h=>le(s)[u]=h,name:u,arg:d,instance:a.instance},null,8,["modelValue","onUpdate:modelValue","name","arg","instance"]))),128))]),_:1}),K(Su),K(ch,{class:"d-flex py-0"},{default:We(()=>[l[5]||(l[5]=Fi("div",{class:"text-overline text-disabled"},"editing",-1)),K(Ud),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"error",onClick:r},{default:We(()=>[K(Ui,null,{default:We(()=>l[3]||(l[3]=[gi("mdi-cancel")])),_:1})]),_:1}),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"success",onClick:o},{default:We(()=>[K(Ui,null,{default:We(()=>l[4]||(l[4]=[gi("mdi-check")])),_:1})]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"])}}}),BOt=Xs(FOt,[["__scopeId","data-v-7967a298"]]),VOt=Dt({__name:"ComponentSecretEditor",props:WS({component:{},instance:{},initialSecrets:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const{secretsStore:e}=_h(),t=pf(n,"modelValue"),i=dr({...n.initialSecrets}),s=async()=>{t.value=!1,await Vi(),Object.assign(i,n.initialSecrets)},r=async()=>{const o=N2e(i,n.component.secrets);await Vi(),t.value=!1,e.setSecrets(n.instance,o)};return(o,a)=>{const l=KIe;return xe(),ot(i_,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=c=>t.value=c),contained:"",opacity:1,width:"100%",height:"100%",class:"nowheel nodrag",transition:!1,style:{"border-radius":"6px"}},{default:We(()=>[K(wc,{height:"100%",variant:"flat",color:o.component.meta.color??"#2d2d2d"},{default:We(()=>[K(vf,{class:"d-flex flex-column ga-2 px-2 py-2",style:{height:"calc(100% - 53px)",overflow:"scroll"}},{default:We(()=>[(xe(!0),gt(Ct,null,Ka(o.component.secrets,(c,d)=>(xe(),ot(l,{key:d,modelValue:le(i)[d],"onUpdate:modelValue":u=>le(i)[d]=u,name:d,arg:c,instance:o.instance,"is-secret":""},null,8,["modelValue","onUpdate:modelValue","name","arg","instance"]))),128))]),_:1}),K(Su),K(ch,{class:"d-flex py-0"},{default:We(()=>[a[3]||(a[3]=Fi("div",{class:"text-overline text-disabled"},"editing secrets",-1)),K(Ud),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"error",onClick:s},{default:We(()=>[K(Ui,null,{default:We(()=>a[1]||(a[1]=[gi("mdi-cancel")])),_:1})]),_:1}),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"success",onClick:r},{default:We(()=>[K(Ui,null,{default:We(()=>a[2]||(a[2]=[gi("mdi-check")])),_:1})]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"])}}}),HOt=Xs(VOt,[["__scopeId","data-v-c26aaf1f"]]);function s3(n){return BS()?(ir(n),!0):!1}function Rg(n){return typeof n=="function"?n():le(n)}const WOt=typeof window<"u"&&typeof document<"u",UOt=n=>typeof n<"u",$Ot=Object.prototype.toString,zOt=n=>$Ot.call(n)==="[object Object]",GOt=()=>{};function qOt(n,e){function t(...i){return new Promise((s,r)=>{Promise.resolve(n(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(s).catch(r)})}return t}const A2e=n=>n();function KOt(n=A2e){const e=Me(!0);function t(){e.value=!1}function i(){e.value=!0}const s=(...r)=>{e.value&&n(...r)};return{isActive:VS(e),pause:t,resume:i,eventFilter:s}}function Fme(n,e=!1,t="Timeout"){return new Promise((i,s)=>{setTimeout(e?()=>s(t):i,n)})}function jOt(n,e,t={}){const{eventFilter:i=A2e,...s}=t;return rt(n,qOt(i,e),s)}function Xy(n,e,t={}){const{eventFilter:i,...s}=t,{eventFilter:r,pause:o,resume:a,isActive:l}=KOt(i);return{stop:jOt(n,e,{...s,eventFilter:r}),pause:o,resume:a,isActive:l}}function YOt(n,e={}){if(!pi(n))return dR(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=eEe(()=>({get(){return n.value[i]},set(s){var r;if((r=Rg(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function oX(n,e=!1){function t(u,{flush:h="sync",deep:f=!1,timeout:g,throwOnTimeout:p}={}){let m=null;const _=[new Promise(b=>{m=rt(n,S=>{u(S)!==e&&(m?.(),b(S))},{flush:h,deep:f,immediate:!0})})];return g!=null&&_.push(Fme(g,p).then(()=>Rg(n)).finally(()=>m?.())),Promise.race(_)}function i(u,h){if(!pi(u))return t(S=>S===u,h);const{flush:f="sync",deep:g=!1,timeout:p,throwOnTimeout:m}=h??{};let v=null;const b=[new Promise(S=>{v=rt([n,u],([y,C])=>{e!==(y===C)&&(v?.(),S(y))},{flush:f,deep:g,immediate:!0})})];return p!=null&&b.push(Fme(p,m).then(()=>Rg(n)).finally(()=>(v?.(),Rg(n)))),Promise.race(b)}function s(u){return t(h=>!!h,u)}function r(u){return i(null,u)}function o(u){return i(void 0,u)}function a(u){return t(Number.isNaN,u)}function l(u,h){return t(f=>{const g=Array.from(f);return g.includes(u)||g.includes(Rg(u))},h)}function c(u){return d(1,u)}function d(u=1,h){let f=-1;return t(()=>(f+=1,f>=u),h)}return Array.isArray(Rg(n))?{toMatch:t,toContains:l,changed:c,changedTimes:d,get not(){return oX(n,!e)}}:{toMatch:t,toBe:i,toBeTruthy:s,toBeNull:r,toBeNaN:a,toBeUndefined:o,changed:c,changedTimes:d,get not(){return oX(n,!e)}}}function aX(n){return oX(n)}function QOt(n){var e;const t=Rg(n);return(e=t?.$el)!=null?e:t}const O2e=WOt?window:void 0;function M2e(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=O2e):[e,t,i,s]=n,!e)return GOt;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,u,h,f)=>(d.addEventListener(u,h,f),()=>d.removeEventListener(u,h,f)),l=rt(()=>[QOt(e),Rg(s)],([d,u])=>{if(o(),!d)return;const h=zOt(u)?{...u}:u;r.push(...t.flatMap(f=>i.map(g=>a(d,f,g,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return s3(c),c}function XOt(n){return typeof n=="function"?n:typeof n=="string"?e=>e.key===n:Array.isArray(n)?e=>n.includes(e.key):()=>!0}function Bme(...n){let e,t,i={};n.length===3?(e=n[0],t=n[1],i=n[2]):n.length===2?typeof n[1]=="object"?(e=!0,t=n[0],i=n[1]):(e=n[0],t=n[1]):(e=!0,t=n[0]);const{target:s=O2e,eventName:r="keydown",passive:o=!1,dedupe:a=!1}=i,l=XOt(e);return M2e(s,r,d=>{d.repeat&&Rg(a)||l(d)&&t(d)},o)}function ZOt(n){return JSON.parse(JSON.stringify(n))}function ZW(n,e,t,i={}){var s,r,o;const{clone:a=!1,passive:l=!1,eventName:c,deep:d=!1,defaultValue:u,shouldEmit:h}=i,f=wr(),g=t||f?.emit||((s=f?.$emit)==null?void 0:s.bind(f))||((o=(r=f?.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(f?.proxy));let p=c;e||(e="modelValue"),p=p||`update:${e.toString()}`;const m=b=>a?typeof a=="function"?a(b):ZOt(b):b,v=()=>UOt(n[e])?m(n[e]):u,_=b=>{h?h(b)&&g(p,b):g(p,b)};if(l){const b=v(),S=Me(b);let y=!1;return rt(()=>n[e],C=>{y||(y=!0,S.value=m(C),Vi(()=>y=!1))}),rt(S,C=>{!y&&(C!==n[e]||d)&&_(C)},{deep:d}),S}else return ue({get(){return v()},set(b){_(b)}})}var JOt={value:()=>{}};function r3(){for(var n=0,e=arguments.length,t={},i;n<e;++n){if(!(i=arguments[n]+"")||i in t||/[\s.]/.test(i))throw new Error("illegal type: "+i);t[i]=[]}return new IO(t)}function IO(n){this._=n}function eMt(n,e){return n.trim().split(/^|\s+/).map(function(t){var i="",s=t.indexOf(".");if(s>=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}IO.prototype=r3.prototype={constructor:IO,on:function(n,e){var t=this._,i=eMt(n+"",t),s,r=-1,o=i.length;if(arguments.length<2){for(;++r<o;)if((s=(n=i[r]).type)&&(s=tMt(t[s],n.name)))return s;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++r<o;)if(s=(n=i[r]).type)t[s]=Vme(t[s],n.name,e);else if(e==null)for(s in t)t[s]=Vme(t[s],n.name,null);return this},copy:function(){var n={},e=this._;for(var t in e)n[t]=e[t].slice();return new IO(n)},call:function(n,e){if((s=arguments.length-2)>0)for(var t=new Array(s),i=0,s,r;i<s;++i)t[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(r=this._[n],i=0,s=r.length;i<s;++i)r[i].value.apply(e,t)},apply:function(n,e,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var i=this._[n],s=0,r=i.length;s<r;++s)i[s].value.apply(e,t)}};function tMt(n,e){for(var t=0,i=n.length,s;t<i;++t)if((s=n[t]).name===e)return s.value}function Vme(n,e,t){for(var i=0,s=n.length;i<s;++i)if(n[i].name===e){n[i]=JOt,n=n.slice(0,i).concat(n.slice(i+1));break}return t!=null&&n.push({name:e,value:t}),n}var lX="http://www.w3.org/1999/xhtml";const Hme={svg:"http://www.w3.org/2000/svg",xhtml:lX,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function o3(n){var e=n+="",t=e.indexOf(":");return t>=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),Hme.hasOwnProperty(e)?{space:Hme[e],local:n}:n}function iMt(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===lX&&e.documentElement.namespaceURI===lX?e.createElement(n):e.createElementNS(t,n)}}function nMt(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function P2e(n){var e=o3(n);return(e.local?nMt:iMt)(e)}function sMt(){}function fse(n){return n==null?sMt:function(){return this.querySelector(n)}}function rMt(n){typeof n!="function"&&(n=fse(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=new Array(o),l,c,d=0;d<o;++d)(l=r[d])&&(c=n.call(l,l.__data__,d,r))&&("__data__"in l&&(c.__data__=l.__data__),a[d]=c);return new sd(i,this._parents)}function oMt(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function aMt(){return[]}function F2e(n){return n==null?aMt:function(){return this.querySelectorAll(n)}}function lMt(n){return function(){return oMt(n.apply(this,arguments))}}function cMt(n){typeof n=="function"?n=lMt(n):n=F2e(n);for(var e=this._groups,t=e.length,i=[],s=[],r=0;r<t;++r)for(var o=e[r],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(i.push(n.call(l,l.__data__,c,o)),s.push(l));return new sd(i,s)}function B2e(n){return function(){return this.matches(n)}}function V2e(n){return function(e){return e.matches(n)}}var dMt=Array.prototype.find;function uMt(n){return function(){return dMt.call(this.children,n)}}function hMt(){return this.firstElementChild}function fMt(n){return this.select(n==null?hMt:uMt(typeof n=="function"?n:V2e(n)))}var gMt=Array.prototype.filter;function pMt(){return Array.from(this.children)}function mMt(n){return function(){return gMt.call(this.children,n)}}function _Mt(n){return this.selectAll(n==null?pMt:mMt(typeof n=="function"?n:V2e(n)))}function vMt(n){typeof n!="function"&&(n=B2e(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=[],l,c=0;c<o;++c)(l=r[c])&&n.call(l,l.__data__,c,r)&&a.push(l);return new sd(i,this._parents)}function H2e(n){return new Array(n.length)}function bMt(){return new sd(this._enter||this._groups.map(H2e),this._parents)}function NF(n,e){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=e}NF.prototype={constructor:NF,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,e){return this._parent.insertBefore(n,e)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function SMt(n){return function(){return n}}function yMt(n,e,t,i,s,r){for(var o=0,a,l=e.length,c=r.length;o<c;++o)(a=e[o])?(a.__data__=r[o],i[o]=a):t[o]=new NF(n,r[o]);for(;o<l;++o)(a=e[o])&&(s[o]=a)}function CMt(n,e,t,i,s,r,o){var a,l,c=new Map,d=e.length,u=r.length,h=new Array(d),f;for(a=0;a<d;++a)(l=e[a])&&(h[a]=f=o.call(l,l.__data__,a,e)+"",c.has(f)?s[a]=l:c.set(f,l));for(a=0;a<u;++a)f=o.call(n,r[a],a,r)+"",(l=c.get(f))?(i[a]=l,l.__data__=r[a],c.delete(f)):t[a]=new NF(n,r[a]);for(a=0;a<d;++a)(l=e[a])&&c.get(h[a])===l&&(s[a]=l)}function wMt(n){return n.__data__}function EMt(n,e){if(!arguments.length)return Array.from(this,wMt);var t=e?CMt:yMt,i=this._parents,s=this._groups;typeof n!="function"&&(n=SMt(n));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var d=i[c],u=s[c],h=u.length,f=TMt(n.call(d,d&&d.__data__,c,i)),g=f.length,p=a[c]=new Array(g),m=o[c]=new Array(g),v=l[c]=new Array(h);t(d,u,p,m,v,f,e);for(var _=0,b=0,S,y;_<g;++_)if(S=p[_]){for(_>=b&&(b=_+1);!(y=m[b])&&++b<g;);S._next=y||null}}return o=new sd(o,i),o._enter=a,o._exit=l,o}function TMt(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function IMt(){return new sd(this._exit||this._groups.map(H2e),this._parents)}function LMt(n,e,t){var i=this.enter(),s=this,r=this.exit();return typeof n=="function"?(i=n(i),i&&(i=i.selection())):i=i.append(n+""),e!=null&&(s=e(s),s&&(s=s.selection())),t==null?r.remove():t(r),i&&s?i.merge(s).order():s}function xMt(n){for(var e=n.selection?n.selection():n,t=this._groups,i=e._groups,s=t.length,r=i.length,o=Math.min(s,r),a=new Array(s),l=0;l<o;++l)for(var c=t[l],d=i[l],u=c.length,h=a[l]=new Array(u),f,g=0;g<u;++g)(f=c[g]||d[g])&&(h[g]=f);for(;l<s;++l)a[l]=t[l];return new sd(a,this._parents)}function RMt(){for(var n=this._groups,e=-1,t=n.length;++e<t;)for(var i=n[e],s=i.length-1,r=i[s],o;--s>=0;)(o=i[s])&&(r&&o.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(o,r),r=o);return this}function DMt(n){n||(n=NMt);function e(u,h){return u&&h?n(u.__data__,h.__data__):!u-!h}for(var t=this._groups,i=t.length,s=new Array(i),r=0;r<i;++r){for(var o=t[r],a=o.length,l=s[r]=new Array(a),c,d=0;d<a;++d)(c=o[d])&&(l[d]=c);l.sort(e)}return new sd(s,this._parents).order()}function NMt(n,e){return n<e?-1:n>e?1:n>=e?0:NaN}function kMt(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function AMt(){return Array.from(this)}function OMt(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var i=n[e],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null}function MMt(){let n=0;for(const e of this)++n;return n}function PMt(){return!this.node()}function FMt(n){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var s=e[t],r=0,o=s.length,a;r<o;++r)(a=s[r])&&n.call(a,a.__data__,r,s);return this}function BMt(n){return function(){this.removeAttribute(n)}}function VMt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function HMt(n,e){return function(){this.setAttribute(n,e)}}function WMt(n,e){return function(){this.setAttributeNS(n.space,n.local,e)}}function UMt(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttribute(n):this.setAttribute(n,t)}}function $Mt(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function zMt(n,e){var t=o3(n);if(arguments.length<2){var i=this.node();return t.local?i.getAttributeNS(t.space,t.local):i.getAttribute(t)}return this.each((e==null?t.local?VMt:BMt:typeof e=="function"?t.local?$Mt:UMt:t.local?WMt:HMt)(t,e))}function W2e(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function GMt(n){return function(){this.style.removeProperty(n)}}function qMt(n,e,t){return function(){this.style.setProperty(n,e,t)}}function KMt(n,e,t){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function jMt(n,e,t){return arguments.length>1?this.each((e==null?GMt:typeof e=="function"?KMt:qMt)(n,e,t??"")):VE(this.node(),n)}function VE(n,e){return n.style.getPropertyValue(e)||W2e(n).getComputedStyle(n,null).getPropertyValue(e)}function YMt(n){return function(){delete this[n]}}function QMt(n,e){return function(){this[n]=e}}function XMt(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function ZMt(n,e){return arguments.length>1?this.each((e==null?YMt:typeof e=="function"?XMt:QMt)(n,e)):this.node()[n]}function U2e(n){return n.trim().split(/^|\s+/)}function gse(n){return n.classList||new $2e(n)}function $2e(n){this._node=n,this._names=U2e(n.getAttribute("class")||"")}$2e.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function z2e(n,e){for(var t=gse(n),i=-1,s=e.length;++i<s;)t.add(e[i])}function G2e(n,e){for(var t=gse(n),i=-1,s=e.length;++i<s;)t.remove(e[i])}function JMt(n){return function(){z2e(this,n)}}function ePt(n){return function(){G2e(this,n)}}function tPt(n,e){return function(){(e.apply(this,arguments)?z2e:G2e)(this,n)}}function iPt(n,e){var t=U2e(n+"");if(arguments.length<2){for(var i=gse(this.node()),s=-1,r=t.length;++s<r;)if(!i.contains(t[s]))return!1;return!0}return this.each((typeof e=="function"?tPt:e?JMt:ePt)(t,e))}function nPt(){this.textContent=""}function sPt(n){return function(){this.textContent=n}}function rPt(n){return function(){var e=n.apply(this,arguments);this.textContent=e??""}}function oPt(n){return arguments.length?this.each(n==null?nPt:(typeof n=="function"?rPt:sPt)(n)):this.node().textContent}function aPt(){this.innerHTML=""}function lPt(n){return function(){this.innerHTML=n}}function cPt(n){return function(){var e=n.apply(this,arguments);this.innerHTML=e??""}}function dPt(n){return arguments.length?this.each(n==null?aPt:(typeof n=="function"?cPt:lPt)(n)):this.node().innerHTML}function uPt(){this.nextSibling&&this.parentNode.appendChild(this)}function hPt(){return this.each(uPt)}function fPt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gPt(){return this.each(fPt)}function pPt(n){var e=typeof n=="function"?n:P2e(n);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function mPt(){return null}function _Pt(n,e){var t=typeof n=="function"?n:P2e(n),i=e==null?mPt:typeof e=="function"?e:fse(e);return this.select(function(){return this.insertBefore(t.apply(this,arguments),i.apply(this,arguments)||null)})}function vPt(){var n=this.parentNode;n&&n.removeChild(this)}function bPt(){return this.each(vPt)}function SPt(){var n=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function yPt(){var n=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function CPt(n){return this.select(n?yPt:SPt)}function wPt(n){return arguments.length?this.property("__data__",n):this.node().__data__}function EPt(n){return function(e){n.call(this,e,this.__data__)}}function TPt(n){return n.trim().split(/^|\s+/).map(function(e){var t="",i=e.indexOf(".");return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function IPt(n){return function(){var e=this.__on;if(e){for(var t=0,i=-1,s=e.length,r;t<s;++t)r=e[t],(!n.type||r.type===n.type)&&r.name===n.name?this.removeEventListener(r.type,r.listener,r.options):e[++i]=r;++i?e.length=i:delete this.__on}}}function LPt(n,e,t){return function(){var i=this.__on,s,r=EPt(e);if(i){for(var o=0,a=i.length;o<a;++o)if((s=i[o]).type===n.type&&s.name===n.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=r,s.options=t),s.value=e;return}}this.addEventListener(n.type,r,t),s={type:n.type,name:n.name,value:e,listener:r,options:t},i?i.push(s):this.__on=[s]}}function xPt(n,e,t){var i=TPt(n+""),s,r=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,d;l<c;++l)for(s=0,d=a[l];s<r;++s)if((o=i[s]).type===d.type&&o.name===d.name)return d.value}return}for(a=e?LPt:IPt,s=0;s<r;++s)this.each(a(i[s],e,t));return this}function q2e(n,e,t){var i=W2e(n),s=i.CustomEvent;typeof s=="function"?s=new s(e,t):(s=i.document.createEvent("Event"),t?(s.initEvent(e,t.bubbles,t.cancelable),s.detail=t.detail):s.initEvent(e,!1,!1)),n.dispatchEvent(s)}function RPt(n,e){return function(){return q2e(this,n,e)}}function DPt(n,e){return function(){return q2e(this,n,e.apply(this,arguments))}}function NPt(n,e){return this.each((typeof e=="function"?DPt:RPt)(n,e))}function*kPt(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var i=n[e],s=0,r=i.length,o;s<r;++s)(o=i[s])&&(yield o)}var K2e=[null];function sd(n,e){this._groups=n,this._parents=e}function ED(){return new sd([[document.documentElement]],K2e)}function APt(){return this}sd.prototype=ED.prototype={constructor:sd,select:rMt,selectAll:cMt,selectChild:fMt,selectChildren:_Mt,filter:vMt,data:EMt,enter:bMt,exit:IMt,join:LMt,merge:xMt,selection:APt,order:RMt,sort:DMt,call:kMt,nodes:AMt,node:OMt,size:MMt,empty:PMt,each:FMt,attr:zMt,style:jMt,property:ZMt,classed:iPt,text:oPt,html:dPt,raise:hPt,lower:gPt,append:pPt,insert:_Pt,remove:bPt,clone:CPt,datum:wPt,on:xPt,dispatch:NPt,[Symbol.iterator]:kPt};function Lu(n){return typeof n=="string"?new sd([[document.querySelector(n)]],[document.documentElement]):new sd([[n]],K2e)}function OPt(n){let e;for(;e=n.sourceEvent;)n=e;return n}function $h(n,e){if(n=OPt(n),e===void 0&&(e=n.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var i=t.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var s=e.getBoundingClientRect();return[n.clientX-s.left-e.clientLeft,n.clientY-s.top-e.clientTop]}}return[n.pageX,n.pageY]}const MPt={passive:!1},Xx={capture:!0,passive:!1};function JW(n){n.stopImmediatePropagation()}function Mw(n){n.preventDefault(),n.stopImmediatePropagation()}function j2e(n){var e=n.document.documentElement,t=Lu(n).on("dragstart.drag",Mw,Xx);"onselectstart"in e?t.on("selectstart.drag",Mw,Xx):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Y2e(n,e){var t=n.document.documentElement,i=Lu(n).on("dragstart.drag",null);e&&(i.on("click.drag",Mw,Xx),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in t?i.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}const rA=n=>()=>n;function cX(n,{sourceEvent:e,subject:t,target:i,identifier:s,active:r,x:o,y:a,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}cX.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function PPt(n){return!n.ctrlKey&&!n.button}function FPt(){return this.parentNode}function BPt(n,e){return e??{x:n.x,y:n.y}}function VPt(){return navigator.maxTouchPoints||"ontouchstart"in this}function HPt(){var n=PPt,e=FPt,t=BPt,i=VPt,s={},r=r3("start","drag","end"),o=0,a,l,c,d,u=0;function h(S){S.on("mousedown.drag",f).filter(i).on("touchstart.drag",m).on("touchmove.drag",v,MPt).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(S,y){if(!(d||!n.call(this,S,y))){var C=b(this,e.call(this,S,y),S,y,"mouse");C&&(Lu(S.view).on("mousemove.drag",g,Xx).on("mouseup.drag",p,Xx),j2e(S.view),JW(S),c=!1,a=S.clientX,l=S.clientY,C("start",S))}}function g(S){if(Mw(S),!c){var y=S.clientX-a,C=S.clientY-l;c=y*y+C*C>u}s.mouse("drag",S)}function p(S){Lu(S.view).on("mousemove.drag mouseup.drag",null),Y2e(S.view,c),Mw(S),s.mouse("end",S)}function m(S,y){if(n.call(this,S,y)){var C=S.changedTouches,T=e.call(this,S,y),w=C.length,I,R;for(I=0;I<w;++I)(R=b(this,T,S,y,C[I].identifier,C[I]))&&(JW(S),R("start",S,C[I]))}}function v(S){var y=S.changedTouches,C=y.length,T,w;for(T=0;T<C;++T)(w=s[y[T].identifier])&&(Mw(S),w("drag",S,y[T]))}function _(S){var y=S.changedTouches,C=y.length,T,w;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),T=0;T<C;++T)(w=s[y[T].identifier])&&(JW(S),w("end",S,y[T]))}function b(S,y,C,T,w,I){var R=r.copy(),D=$h(I||C,y),L,k,x;if((x=t.call(S,new cX("beforestart",{sourceEvent:C,target:h,identifier:w,active:o,x:D[0],y:D[1],dx:0,dy:0,dispatch:R}),T))!=null)return L=x.x-D[0]||0,k=x.y-D[1]||0,function N(A,B,V){var O=D,M;switch(A){case"start":s[w]=N,M=o++;break;case"end":delete s[w],--o;case"drag":D=$h(V||B,y),M=o;break}R.call(A,S,new cX(A,{sourceEvent:B,subject:x,target:h,identifier:w,active:M,x:D[0]+L,y:D[1]+k,dx:D[0]-O[0],dy:D[1]-O[1],dispatch:R}),T)}}return h.filter=function(S){return arguments.length?(n=typeof S=="function"?S:rA(!!S),h):n},h.container=function(S){return arguments.length?(e=typeof S=="function"?S:rA(S),h):e},h.subject=function(S){return arguments.length?(t=typeof S=="function"?S:rA(S),h):t},h.touchable=function(S){return arguments.length?(i=typeof S=="function"?S:rA(!!S),h):i},h.on=function(){var S=r.on.apply(r,arguments);return S===r?h:S},h.clickDistance=function(S){return arguments.length?(u=(S=+S)*S,h):Math.sqrt(u)},h}function pse(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function Q2e(n,e){var t=Object.create(n.prototype);for(var i in e)t[i]=e[i];return t}function TD(){}var Zx=.7,kF=1/Zx,Pw="\\s*([+-]?\\d+)\\s*",Jx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WPt=/^#([0-9a-f]{3,8})$/,UPt=new RegExp(`^rgb\\(${Pw},${Pw},${Pw}\\)$`),$Pt=new RegExp(`^rgb\\(${ff},${ff},${ff}\\)$`),zPt=new RegExp(`^rgba\\(${Pw},${Pw},${Pw},${Jx}\\)$`),GPt=new RegExp(`^rgba\\(${ff},${ff},${ff},${Jx}\\)$`),qPt=new RegExp(`^hsl\\(${Jx},${ff},${ff}\\)$`),KPt=new RegExp(`^hsla\\(${Jx},${ff},${ff},${Jx}\\)$`),Wme={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};pse(TD,eR,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Ume,formatHex:Ume,formatHex8:jPt,formatHsl:YPt,formatRgb:$me,toString:$me});function Ume(){return this.rgb().formatHex()}function jPt(){return this.rgb().formatHex8()}function YPt(){return X2e(this).formatHsl()}function $me(){return this.rgb().formatRgb()}function eR(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=WPt.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?zme(e):t===3?new dc(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?oA(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?oA(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=UPt.exec(n))?new dc(e[1],e[2],e[3],1):(e=$Pt.exec(n))?new dc(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=zPt.exec(n))?oA(e[1],e[2],e[3],e[4]):(e=GPt.exec(n))?oA(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qPt.exec(n))?Kme(e[1],e[2]/100,e[3]/100,1):(e=KPt.exec(n))?Kme(e[1],e[2]/100,e[3]/100,e[4]):Wme.hasOwnProperty(n)?zme(Wme[n]):n==="transparent"?new dc(NaN,NaN,NaN,0):null}function zme(n){return new dc(n>>16&255,n>>8&255,n&255,1)}function oA(n,e,t,i){return i<=0&&(n=e=t=NaN),new dc(n,e,t,i)}function QPt(n){return n instanceof TD||(n=eR(n)),n?(n=n.rgb(),new dc(n.r,n.g,n.b,n.opacity)):new dc}function dX(n,e,t,i){return arguments.length===1?QPt(n):new dc(n,e,t,i??1)}function dc(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}pse(dc,dX,Q2e(TD,{brighter(n){return n=n==null?kF:Math.pow(kF,n),new dc(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?Zx:Math.pow(Zx,n),new dc(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new dc(Ub(this.r),Ub(this.g),Ub(this.b),AF(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gme,formatHex:Gme,formatHex8:XPt,formatRgb:qme,toString:qme}));function Gme(){return`#${_b(this.r)}${_b(this.g)}${_b(this.b)}`}function XPt(){return`#${_b(this.r)}${_b(this.g)}${_b(this.b)}${_b((isNaN(this.opacity)?1:this.opacity)*255)}`}function qme(){const n=AF(this.opacity);return`${n===1?"rgb(":"rgba("}${Ub(this.r)}, ${Ub(this.g)}, ${Ub(this.b)}${n===1?")":`, ${n})`}`}function AF(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Ub(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function _b(n){return n=Ub(n),(n<16?"0":"")+n.toString(16)}function Kme(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new xu(n,e,t,i)}function X2e(n){if(n instanceof xu)return new xu(n.h,n.s,n.l,n.opacity);if(n instanceof TD||(n=eR(n)),!n)return new xu;if(n instanceof xu)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),r=Math.max(e,t,i),o=NaN,a=r-s,l=(r+s)/2;return a?(e===r?o=(t-i)/a+(t<i)*6:t===r?o=(i-e)/a+2:o=(e-t)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new xu(o,a,l,n.opacity)}function ZPt(n,e,t,i){return arguments.length===1?X2e(n):new xu(n,e,t,i??1)}function xu(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}pse(xu,ZPt,Q2e(TD,{brighter(n){return n=n==null?kF:Math.pow(kF,n),new xu(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?Zx:Math.pow(Zx,n),new xu(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new dc(eU(n>=240?n-240:n+120,s,i),eU(n,s,i),eU(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new xu(jme(this.h),aA(this.s),aA(this.l),AF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=AF(this.opacity);return`${n===1?"hsl(":"hsla("}${jme(this.h)}, ${aA(this.s)*100}%, ${aA(this.l)*100}%${n===1?")":`, ${n})`}`}}));function jme(n){return n=(n||0)%360,n<0?n+360:n}function aA(n){return Math.max(0,Math.min(1,n||0))}function eU(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const Z2e=n=>()=>n;function JPt(n,e){return function(t){return n+t*e}}function e2t(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function t2t(n){return(n=+n)==1?J2e:function(e,t){return t-e?e2t(e,t,n):Z2e(isNaN(e)?t:e)}}function J2e(n,e){var t=e-n;return t?JPt(n,t):Z2e(isNaN(n)?e:n)}const Yme=function n(e){var t=t2t(e);function i(s,r){var o=t((s=dX(s)).r,(r=dX(r)).r),a=t(s.g,r.g),l=t(s.b,r.b),c=J2e(s.opacity,r.opacity);return function(d){return s.r=o(d),s.g=a(d),s.b=l(d),s.opacity=c(d),s+""}}return i.gamma=n,i}(1);function am(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}var uX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tU=new RegExp(uX.source,"g");function i2t(n){return function(){return n}}function n2t(n){return function(e){return n(e)+""}}function s2t(n,e){var t=uX.lastIndex=tU.lastIndex=0,i,s,r,o=-1,a=[],l=[];for(n=n+"",e=e+"";(i=uX.exec(n))&&(s=tU.exec(e));)(r=s.index)>t&&(r=e.slice(t,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:am(i,s)})),t=tU.lastIndex;return t<e.length&&(r=e.slice(t),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?n2t(l[0].x):i2t(e):(e=l.length,function(c){for(var d=0,u;d<e;++d)a[(u=l[d]).i]=u.x(c);return a.join("")})}var Qme=180/Math.PI,hX={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eFe(n,e,t,i,s,r){var o,a,l;return(o=Math.sqrt(n*n+e*e))&&(n/=o,e/=o),(l=n*t+e*i)&&(t-=n*l,i-=e*l),(a=Math.sqrt(t*t+i*i))&&(t/=a,i/=a,l/=a),n*i<e*t&&(n=-n,e=-e,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(e,n)*Qme,skewX:Math.atan(l)*Qme,scaleX:o,scaleY:a}}var lA;function r2t(n){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return e.isIdentity?hX:eFe(e.a,e.b,e.c,e.d,e.e,e.f)}function o2t(n){return n==null||(lA||(lA=document.createElementNS("http://www.w3.org/2000/svg","g")),lA.setAttribute("transform",n),!(n=lA.transform.baseVal.consolidate()))?hX:(n=n.matrix,eFe(n.a,n.b,n.c,n.d,n.e,n.f))}function tFe(n,e,t,i){function s(c){return c.length?c.pop()+" ":""}function r(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push("translate(",null,e,null,t);g.push({i:p-4,x:am(c,u)},{i:p-2,x:am(d,h)})}else(u||h)&&f.push("translate("+u+e+h+t)}function o(c,d,u,h){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(s(u)+"rotate(",null,i)-2,x:am(c,d)})):d&&u.push(s(u)+"rotate("+d+i)}function a(c,d,u,h){c!==d?h.push({i:u.push(s(u)+"skewX(",null,i)-2,x:am(c,d)}):d&&u.push(s(u)+"skewX("+d+i)}function l(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push(s(f)+"scale(",null,",",null,")");g.push({i:p-4,x:am(c,u)},{i:p-2,x:am(d,h)})}else(u!==1||h!==1)&&f.push(s(f)+"scale("+u+","+h+")")}return function(c,d){var u=[],h=[];return c=n(c),d=n(d),r(c.translateX,c.translateY,d.translateX,d.translateY,u,h),o(c.rotate,d.rotate,u,h),a(c.skewX,d.skewX,u,h),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var g=-1,p=h.length,m;++g<p;)u[(m=h[g]).i]=m.x(f);return u.join("")}}}var a2t=tFe(r2t,"px, ","px)","deg)"),l2t=tFe(o2t,", ",")",")"),c2t=1e-12;function Xme(n){return((n=Math.exp(n))+1/n)/2}function d2t(n){return((n=Math.exp(n))-1/n)/2}function u2t(n){return((n=Math.exp(2*n))-1)/(n+1)}const h2t=function n(e,t,i){function s(r,o){var a=r[0],l=r[1],c=r[2],d=o[0],u=o[1],h=o[2],f=d-a,g=u-l,p=f*f+g*g,m,v;if(p<c2t)v=Math.log(h/c)/e,m=function(T){return[a+T*f,l+T*g,c*Math.exp(e*T*v)]};else{var _=Math.sqrt(p),b=(h*h-c*c+i*p)/(2*c*t*_),S=(h*h-c*c-i*p)/(2*h*t*_),y=Math.log(Math.sqrt(b*b+1)-b),C=Math.log(Math.sqrt(S*S+1)-S);v=(C-y)/e,m=function(T){var w=T*v,I=Xme(y),R=c/(t*_)*(I*u2t(e*w+y)-d2t(y));return[a+R*f,l+R*g,c*I/Xme(e*w+y)]}}return m.duration=v*1e3*e/Math.SQRT2,m}return s.rho=function(r){var o=Math.max(.001,+r),a=o*o,l=a*a;return n(o,a,l)},s}(Math.SQRT2,2,4);var HE=0,LT=0,k1=0,iFe=1e3,OF,xT,MF=0,OS=0,a3=0,tR=typeof performance=="object"&&performance.now?performance:Date,nFe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function mse(){return OS||(nFe(f2t),OS=tR.now()+a3)}function f2t(){OS=0}function PF(){this._call=this._time=this._next=null}PF.prototype=sFe.prototype={constructor:PF,restart:function(n,e,t){if(typeof n!="function")throw new TypeError("callback is not a function");t=(t==null?mse():+t)+(e==null?0:+e),!this._next&&xT!==this&&(xT?xT._next=this:OF=this,xT=this),this._call=n,this._time=t,fX()},stop:function(){this._call&&(this._call=null,this._time=1/0,fX())}};function sFe(n,e,t){var i=new PF;return i.restart(n,e,t),i}function g2t(){mse(),++HE;for(var n=OF,e;n;)(e=OS-n._time)>=0&&n._call.call(void 0,e),n=n._next;--HE}function Zme(){OS=(MF=tR.now())+a3,HE=LT=0;try{g2t()}finally{HE=0,m2t(),OS=0}}function p2t(){var n=tR.now(),e=n-MF;e>iFe&&(a3-=e,MF=n)}function m2t(){for(var n,e=OF,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:OF=t);xT=n,fX(i)}function fX(n){if(!HE){LT&&(LT=clearTimeout(LT));var e=n-OS;e>24?(n<1/0&&(LT=setTimeout(Zme,n-tR.now()-a3)),k1&&(k1=clearInterval(k1))):(k1||(MF=tR.now(),k1=setInterval(p2t,iFe)),HE=1,nFe(Zme))}}function Jme(n,e,t){var i=new PF;return e=e==null?0:+e,i.restart(s=>{i.stop(),n(s+e)},e,t),i}var _2t=r3("start","end","cancel","interrupt"),v2t=[],rFe=0,e_e=1,gX=2,LO=3,t_e=4,pX=5,xO=6;function l3(n,e,t,i,s,r){var o=n.__transition;if(!o)n.__transition={};else if(t in o)return;b2t(n,t,{name:e,index:i,group:s,on:_2t,tween:v2t,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:rFe})}function _se(n,e){var t=vh(n,e);if(t.state>rFe)throw new Error("too late; already scheduled");return t}function zf(n,e){var t=vh(n,e);if(t.state>LO)throw new Error("too late; already running");return t}function vh(n,e){var t=n.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function b2t(n,e,t){var i=n.__transition,s;i[e]=t,t.timer=sFe(r,0,t.time);function r(c){t.state=e_e,t.timer.restart(o,t.delay,t.time),t.delay<=c&&o(c-t.delay)}function o(c){var d,u,h,f;if(t.state!==e_e)return l();for(d in i)if(f=i[d],f.name===t.name){if(f.state===LO)return Jme(o);f.state===t_e?(f.state=xO,f.timer.stop(),f.on.call("interrupt",n,n.__data__,f.index,f.group),delete i[d]):+d<e&&(f.state=xO,f.timer.stop(),f.on.call("cancel",n,n.__data__,f.index,f.group),delete i[d])}if(Jme(function(){t.state===LO&&(t.state=t_e,t.timer.restart(a,t.delay,t.time),a(c))}),t.state=gX,t.on.call("start",n,n.__data__,t.index,t.group),t.state===gX){for(t.state=LO,s=new Array(h=t.tween.length),d=0,u=-1;d<h;++d)(f=t.tween[d].value.call(n,n.__data__,t.index,t.group))&&(s[++u]=f);s.length=u+1}}function a(c){for(var d=c<t.duration?t.ease.call(null,c/t.duration):(t.timer.restart(l),t.state=pX,1),u=-1,h=s.length;++u<h;)s[u].call(n,d);t.state===pX&&(t.on.call("end",n,n.__data__,t.index,t.group),l())}function l(){t.state=xO,t.timer.stop(),delete i[e];for(var c in i)return;delete n.__transition}}function RO(n,e){var t=n.__transition,i,s,r=!0,o;if(t){e=e==null?null:e+"";for(o in t){if((i=t[o]).name!==e){r=!1;continue}s=i.state>gX&&i.state<pX,i.state=xO,i.timer.stop(),i.on.call(s?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete t[o]}r&&delete n.__transition}}function S2t(n){return this.each(function(){RO(this,n)})}function y2t(n,e){var t,i;return function(){var s=zf(this,n),r=s.tween;if(r!==t){i=t=r;for(var o=0,a=i.length;o<a;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}s.tween=i}}function C2t(n,e,t){var i,s;if(typeof t!="function")throw new Error;return function(){var r=zf(this,n),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:e,value:t},l=0,c=s.length;l<c;++l)if(s[l].name===e){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function w2t(n,e){var t=this._id;if(n+="",arguments.length<2){for(var i=vh(this.node(),t).tween,s=0,r=i.length,o;s<r;++s)if((o=i[s]).name===n)return o.value;return null}return this.each((e==null?y2t:C2t)(t,n,e))}function vse(n,e,t){var i=n._id;return n.each(function(){var s=zf(this,i);(s.value||(s.value={}))[e]=t.apply(this,arguments)}),function(s){return vh(s,i).value[e]}}function oFe(n,e){var t;return(typeof e=="number"?am:e instanceof eR?Yme:(t=eR(e))?(e=t,Yme):s2t)(n,e)}function E2t(n){return function(){this.removeAttribute(n)}}function T2t(n){return function(){this.removeAttributeNS(n.space,n.local)}}function I2t(n,e,t){var i,s=t+"",r;return function(){var o=this.getAttribute(n);return o===s?null:o===i?r:r=e(i=o,t)}}function L2t(n,e,t){var i,s=t+"",r;return function(){var o=this.getAttributeNS(n.space,n.local);return o===s?null:o===i?r:r=e(i=o,t)}}function x2t(n,e,t){var i,s,r;return function(){var o,a=t(this),l;return a==null?void this.removeAttribute(n):(o=this.getAttribute(n),l=a+"",o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a)))}}function R2t(n,e,t){var i,s,r;return function(){var o,a=t(this),l;return a==null?void this.removeAttributeNS(n.space,n.local):(o=this.getAttributeNS(n.space,n.local),l=a+"",o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a)))}}function D2t(n,e){var t=o3(n),i=t==="transform"?l2t:oFe;return this.attrTween(n,typeof e=="function"?(t.local?R2t:x2t)(t,i,vse(this,"attr."+n,e)):e==null?(t.local?T2t:E2t)(t):(t.local?L2t:I2t)(t,i,e))}function N2t(n,e){return function(t){this.setAttribute(n,e.call(this,t))}}function k2t(n,e){return function(t){this.setAttributeNS(n.space,n.local,e.call(this,t))}}function A2t(n,e){var t,i;function s(){var r=e.apply(this,arguments);return r!==i&&(t=(i=r)&&k2t(n,r)),t}return s._value=e,s}function O2t(n,e){var t,i;function s(){var r=e.apply(this,arguments);return r!==i&&(t=(i=r)&&N2t(n,r)),t}return s._value=e,s}function M2t(n,e){var t="attr."+n;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;var i=o3(n);return this.tween(t,(i.local?A2t:O2t)(i,e))}function P2t(n,e){return function(){_se(this,n).delay=+e.apply(this,arguments)}}function F2t(n,e){return e=+e,function(){_se(this,n).delay=e}}function B2t(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?P2t:F2t)(e,n)):vh(this.node(),e).delay}function V2t(n,e){return function(){zf(this,n).duration=+e.apply(this,arguments)}}function H2t(n,e){return e=+e,function(){zf(this,n).duration=e}}function W2t(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?V2t:H2t)(e,n)):vh(this.node(),e).duration}function U2t(n,e){if(typeof e!="function")throw new Error;return function(){zf(this,n).ease=e}}function $2t(n){var e=this._id;return arguments.length?this.each(U2t(e,n)):vh(this.node(),e).ease}function z2t(n,e){return function(){var t=e.apply(this,arguments);if(typeof t!="function")throw new Error;zf(this,n).ease=t}}function G2t(n){if(typeof n!="function")throw new Error;return this.each(z2t(this._id,n))}function q2t(n){typeof n!="function"&&(n=B2e(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=[],l,c=0;c<o;++c)(l=r[c])&&n.call(l,l.__data__,c,r)&&a.push(l);return new mp(i,this._parents,this._name,this._id)}function K2t(n){if(n._id!==this._id)throw new Error;for(var e=this._groups,t=n._groups,i=e.length,s=t.length,r=Math.min(i,s),o=new Array(i),a=0;a<r;++a)for(var l=e[a],c=t[a],d=l.length,u=o[a]=new Array(d),h,f=0;f<d;++f)(h=l[f]||c[f])&&(u[f]=h);for(;a<i;++a)o[a]=e[a];return new mp(o,this._parents,this._name,this._id)}function j2t(n){return(n+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||e==="start"})}function Y2t(n,e,t){var i,s,r=j2t(e)?_se:zf;return function(){var o=r(this,n),a=o.on;a!==i&&(s=(i=a).copy()).on(e,t),o.on=s}}function Q2t(n,e){var t=this._id;return arguments.length<2?vh(this.node(),t).on.on(n):this.each(Y2t(t,n,e))}function X2t(n){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}}function Z2t(){return this.on("end.remove",X2t(this._id))}function J2t(n){var e=this._name,t=this._id;typeof n!="function"&&(n=fse(n));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var a=i[o],l=a.length,c=r[o]=new Array(l),d,u,h=0;h<l;++h)(d=a[h])&&(u=n.call(d,d.__data__,h,a))&&("__data__"in d&&(u.__data__=d.__data__),c[h]=u,l3(c[h],e,t,h,c,vh(d,t)));return new mp(r,this._parents,e,t)}function eFt(n){var e=this._name,t=this._id;typeof n!="function"&&(n=F2e(n));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var l=i[a],c=l.length,d,u=0;u<c;++u)if(d=l[u]){for(var h=n.call(d,d.__data__,u,l),f,g=vh(d,t),p=0,m=h.length;p<m;++p)(f=h[p])&&l3(f,e,t,p,h,g);r.push(h),o.push(d)}return new mp(r,o,e,t)}var tFt=ED.prototype.constructor;function iFt(){return new tFt(this._groups,this._parents)}function nFt(n,e){var t,i,s;return function(){var r=VE(this,n),o=(this.style.removeProperty(n),VE(this,n));return r===o?null:r===t&&o===i?s:s=e(t=r,i=o)}}function aFe(n){return function(){this.style.removeProperty(n)}}function sFt(n,e,t){var i,s=t+"",r;return function(){var o=VE(this,n);return o===s?null:o===i?r:r=e(i=o,t)}}function rFt(n,e,t){var i,s,r;return function(){var o=VE(this,n),a=t(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(n),VE(this,n))),o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a))}}function oFt(n,e){var t,i,s,r="style."+e,o="end."+r,a;return function(){var l=zf(this,n),c=l.on,d=l.value[r]==null?a||(a=aFe(e)):void 0;(c!==t||s!==d)&&(i=(t=c).copy()).on(o,s=d),l.on=i}}function aFt(n,e,t){var i=(n+="")=="transform"?a2t:oFe;return e==null?this.styleTween(n,nFt(n,i)).on("end.style."+n,aFe(n)):typeof e=="function"?this.styleTween(n,rFt(n,i,vse(this,"style."+n,e))).each(oFt(this._id,n)):this.styleTween(n,sFt(n,i,e),t).on("end.style."+n,null)}function lFt(n,e,t){return function(i){this.style.setProperty(n,e.call(this,i),t)}}function cFt(n,e,t){var i,s;function r(){var o=e.apply(this,arguments);return o!==s&&(i=(s=o)&&lFt(n,o,t)),i}return r._value=e,r}function dFt(n,e,t){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,cFt(n,e,t??""))}function uFt(n){return function(){this.textContent=n}}function hFt(n){return function(){var e=n(this);this.textContent=e??""}}function fFt(n){return this.tween("text",typeof n=="function"?hFt(vse(this,"text",n)):uFt(n==null?"":n+""))}function gFt(n){return function(e){this.textContent=n.call(this,e)}}function pFt(n){var e,t;function i(){var s=n.apply(this,arguments);return s!==t&&(e=(t=s)&&gFt(s)),e}return i._value=n,i}function mFt(n){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;return this.tween(e,pFt(n))}function _Ft(){for(var n=this._name,e=this._id,t=lFe(),i=this._groups,s=i.length,r=0;r<s;++r)for(var o=i[r],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var d=vh(l,e);l3(l,n,t,c,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mp(i,this._parents,n,t)}function vFt(){var n,e,t=this,i=t._id,s=t.size();return new Promise(function(r,o){var a={value:o},l={value:function(){--s===0&&r()}};t.each(function(){var c=zf(this,i),d=c.on;d!==n&&(e=(n=d).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),s===0&&r()})}var bFt=0;function mp(n,e,t,i){this._groups=n,this._parents=e,this._name=t,this._id=i}function lFe(){return++bFt}var ng=ED.prototype;mp.prototype={constructor:mp,select:J2t,selectAll:eFt,selectChild:ng.selectChild,selectChildren:ng.selectChildren,filter:q2t,merge:K2t,selection:iFt,transition:_Ft,call:ng.call,nodes:ng.nodes,node:ng.node,size:ng.size,empty:ng.empty,each:ng.each,on:Q2t,attr:D2t,attrTween:M2t,style:aFt,styleTween:dFt,text:fFt,textTween:mFt,remove:Z2t,tween:w2t,delay:B2t,duration:W2t,ease:$2t,easeVarying:G2t,end:vFt,[Symbol.iterator]:ng[Symbol.iterator]};function SFt(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var yFt={time:null,delay:0,duration:250,ease:SFt};function CFt(n,e){for(var t;!(t=n.__transition)||!(t=t[e]);)if(!(n=n.parentNode))throw new Error(`transition ${e} not found`);return t}function wFt(n){var e,t;n instanceof mp?(e=n._id,n=n._name):(e=lFe(),(t=yFt).time=mse(),n=n==null?null:n+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var o=i[r],a=o.length,l,c=0;c<a;++c)(l=o[c])&&l3(l,n,e,c,o,t||CFt(l,e));return new mp(i,this._parents,n,e)}ED.prototype.interrupt=S2t;ED.prototype.transition=wFt;const cA=n=>()=>n;function EFt(n,{sourceEvent:e,target:t,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Wg(n,e,t){this.k=n,this.x=e,this.y=t}Wg.prototype={constructor:Wg,scale:function(n){return n===1?this:new Wg(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new Wg(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var WE=new Wg(1,0,0);Wg.prototype;function iU(n){n.stopImmediatePropagation()}function A1(n){n.preventDefault(),n.stopImmediatePropagation()}function TFt(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function IFt(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function i_e(){return this.__zoom||WE}function LFt(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function xFt(){return navigator.maxTouchPoints||"ontouchstart"in this}function RFt(n,e,t){var i=n.invertX(e[0][0])-t[0][0],s=n.invertX(e[1][0])-t[1][0],r=n.invertY(e[0][1])-t[0][1],o=n.invertY(e[1][1])-t[1][1];return n.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function DFt(){var n=TFt,e=IFt,t=RFt,i=LFt,s=xFt,r=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=h2t,c=r3("start","zoom","end"),d,u,h,f=500,g=150,p=0,m=10;function v(x){x.property("__zoom",i_e).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",R).filter(s).on("touchstart.zoom",D).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(x,N,A,B){var V=x.selection?x.selection():x;V.property("__zoom",i_e),x!==V?y(x,N,A,B):V.interrupt().each(function(){C(this,arguments).event(B).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},v.scaleBy=function(x,N,A,B){v.scaleTo(x,function(){var V=this.__zoom.k,O=typeof N=="function"?N.apply(this,arguments):N;return V*O},A,B)},v.scaleTo=function(x,N,A,B){v.transform(x,function(){var V=e.apply(this,arguments),O=this.__zoom,M=A==null?S(V):typeof A=="function"?A.apply(this,arguments):A,P=O.invert(M),W=typeof N=="function"?N.apply(this,arguments):N;return t(b(_(O,W),M,P),V,o)},A,B)},v.translateBy=function(x,N,A,B){v.transform(x,function(){return t(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof A=="function"?A.apply(this,arguments):A),e.apply(this,arguments),o)},null,B)},v.translateTo=function(x,N,A,B,V){v.transform(x,function(){var O=e.apply(this,arguments),M=this.__zoom,P=B==null?S(O):typeof B=="function"?B.apply(this,arguments):B;return t(WE.translate(P[0],P[1]).scale(M.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof A=="function"?-A.apply(this,arguments):-A),O,o)},B,V)};function _(x,N){return N=Math.max(r[0],Math.min(r[1],N)),N===x.k?x:new Wg(N,x.x,x.y)}function b(x,N,A){var B=N[0]-A[0]*x.k,V=N[1]-A[1]*x.k;return B===x.x&&V===x.y?x:new Wg(x.k,B,V)}function S(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function y(x,N,A,B){x.on("start.zoom",function(){C(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(B).end()}).tween("zoom",function(){var V=this,O=arguments,M=C(V,O).event(B),P=e.apply(V,O),W=A==null?S(P):typeof A=="function"?A.apply(V,O):A,H=Math.max(P[1][0]-P[0][0],P[1][1]-P[0][1]),F=V.__zoom,U=typeof N=="function"?N.apply(V,O):N,Z=l(F.invert(W).concat(H/F.k),U.invert(W).concat(H/U.k));return function(X){if(X===1)X=U;else{var G=Z(X),he=H/G[2];X=new Wg(he,W[0]-G[0]*he,W[1]-G[1]*he)}M.zoom(null,X)}})}function C(x,N,A){return!A&&x.__zooming||new T(x,N)}function T(x,N){this.that=x,this.args=N,this.active=0,this.sourceEvent=null,this.extent=e.apply(x,N),this.taps=0}T.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,N){return this.mouse&&x!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var N=Lu(this.that).datum();c.call(x,this.that,new EFt(x,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:c}),N)}};function w(x,...N){if(!n.apply(this,arguments))return;var A=C(this,N).event(x),B=this.__zoom,V=Math.max(r[0],Math.min(r[1],B.k*Math.pow(2,i.apply(this,arguments)))),O=$h(x);if(A.wheel)(A.mouse[0][0]!==O[0]||A.mouse[0][1]!==O[1])&&(A.mouse[1]=B.invert(A.mouse[0]=O)),clearTimeout(A.wheel);else{if(B.k===V)return;A.mouse=[O,B.invert(O)],RO(this),A.start()}A1(x),A.wheel=setTimeout(M,g),A.zoom("mouse",t(b(_(B,V),A.mouse[0],A.mouse[1]),A.extent,o));function M(){A.wheel=null,A.end()}}function I(x,...N){if(h||!n.apply(this,arguments))return;var A=x.currentTarget,B=C(this,N,!0).event(x),V=Lu(x.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",H,!0),O=$h(x,A),M=x.clientX,P=x.clientY;j2e(x.view),iU(x),B.mouse=[O,this.__zoom.invert(O)],RO(this),B.start();function W(F){if(A1(F),!B.moved){var U=F.clientX-M,Z=F.clientY-P;B.moved=U*U+Z*Z>p}B.event(F).zoom("mouse",t(b(B.that.__zoom,B.mouse[0]=$h(F,A),B.mouse[1]),B.extent,o))}function H(F){V.on("mousemove.zoom mouseup.zoom",null),Y2e(F.view,B.moved),A1(F),B.event(F).end()}}function R(x,...N){if(n.apply(this,arguments)){var A=this.__zoom,B=$h(x.changedTouches?x.changedTouches[0]:x,this),V=A.invert(B),O=A.k*(x.shiftKey?.5:2),M=t(b(_(A,O),B,V),e.apply(this,N),o);A1(x),a>0?Lu(this).transition().duration(a).call(y,M,B,x):Lu(this).call(v.transform,M,B,x)}}function D(x,...N){if(n.apply(this,arguments)){var A=x.touches,B=A.length,V=C(this,N,x.changedTouches.length===B).event(x),O,M,P,W;for(iU(x),M=0;M<B;++M)P=A[M],W=$h(P,this),W=[W,this.__zoom.invert(W),P.identifier],V.touch0?!V.touch1&&V.touch0[2]!==W[2]&&(V.touch1=W,V.taps=0):(V.touch0=W,O=!0,V.taps=1+!!d);d&&(d=clearTimeout(d)),O&&(V.taps<2&&(u=W[0],d=setTimeout(function(){d=null},f)),RO(this),V.start())}}function L(x,...N){if(this.__zooming){var A=C(this,N).event(x),B=x.changedTouches,V=B.length,O,M,P,W;for(A1(x),O=0;O<V;++O)M=B[O],P=$h(M,this),A.touch0&&A.touch0[2]===M.identifier?A.touch0[0]=P:A.touch1&&A.touch1[2]===M.identifier&&(A.touch1[0]=P);if(M=A.that.__zoom,A.touch1){var H=A.touch0[0],F=A.touch0[1],U=A.touch1[0],Z=A.touch1[1],X=(X=U[0]-H[0])*X+(X=U[1]-H[1])*X,G=(G=Z[0]-F[0])*G+(G=Z[1]-F[1])*G;M=_(M,Math.sqrt(X/G)),P=[(H[0]+U[0])/2,(H[1]+U[1])/2],W=[(F[0]+Z[0])/2,(F[1]+Z[1])/2]}else if(A.touch0)P=A.touch0[0],W=A.touch0[1];else return;A.zoom("touch",t(b(M,P,W),A.extent,o))}}function k(x,...N){if(this.__zooming){var A=C(this,N).event(x),B=x.changedTouches,V=B.length,O,M;for(iU(x),h&&clearTimeout(h),h=setTimeout(function(){h=null},f),O=0;O<V;++O)M=B[O],A.touch0&&A.touch0[2]===M.identifier?delete A.touch0:A.touch1&&A.touch1[2]===M.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),A.taps===2&&(M=$h(M,this),Math.hypot(u[0]-M[0],u[1]-M[1])<m)){var P=Lu(this).on("dblclick.zoom");P&&P.apply(this,arguments)}}}return v.wheelDelta=function(x){return arguments.length?(i=typeof x=="function"?x:cA(+x),v):i},v.filter=function(x){return arguments.length?(n=typeof x=="function"?x:cA(!!x),v):n},v.touchable=function(x){return arguments.length?(s=typeof x=="function"?x:cA(!!x),v):s},v.extent=function(x){return arguments.length?(e=typeof x=="function"?x:cA([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),v):e},v.scaleExtent=function(x){return arguments.length?(r[0]=+x[0],r[1]=+x[1],v):[r[0],r[1]]},v.translateExtent=function(x){return arguments.length?(o[0][0]=+x[0][0],o[1][0]=+x[1][0],o[0][1]=+x[0][1],o[1][1]=+x[1][1],v):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},v.constrain=function(x){return arguments.length?(t=x,v):t},v.duration=function(x){return arguments.length?(a=+x,v):a},v.interpolate=function(x){return arguments.length?(l=x,v):l},v.on=function(){var x=c.on.apply(c,arguments);return x===c?v:x},v.clickDistance=function(x){return arguments.length?(p=(x=+x)*x,v):Math.sqrt(p)},v.tapDistance=function(x){return arguments.length?(m=+x,v):m},v}var Kt=(n=>(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))(Kt||{}),bse=(n=>(n.Partial="partial",n.Full="full",n))(bse||{}),Jv=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(Jv||{}),x_=(n=>(n.Strict="strict",n.Loose="loose",n))(x_||{}),mX=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(mX||{}),kI=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(kI||{});function _X(n){var e,t;const i=((t=(e=n.composedPath)==null?void 0:e.call(n))==null?void 0:t[0])||n.target,s=typeof i?.hasAttribute=="function"?i.hasAttribute("contenteditable"):!1,r=typeof i?.closest=="function"?i.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(i?.nodeName)||s||!!r}function NFt(n){return n.ctrlKey||n.metaKey||n.shiftKey}function n_e(n,e,t,i){const s=e.replace("+",`
938
+ `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const _ of g){let b={type:"element",tagName:"span",properties:{..._.htmlAttrs},children:[{type:"text",value:_.content}]};const S=sX(_.htmlStyle||IF(_));S&&(b.properties.style=S);for(const y of s)b=y?.span?.call(h,b,p+1,v,m,_)||b;a==="inline"?o.children.push(b):a==="classic"&&m.children.push(b),v+=_.content.length}if(a==="classic"){for(const _ of s)m=_?.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&&e3(f,i),f}function zAt(n){return n.map(e=>{const t=[];let i="",s=0;return e.forEach((r,o)=>{const l=!(r.fontStyle&&(r.fontStyle&Ha.Underline||r.fontStyle&Ha.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 GAt(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 qAt(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||sX(IF(s)),o=i.htmlStyle||sX(IF(i)),a=s.fontStyle&&(s.fontStyle&Ha.Underline||s.fontStyle&Ha.Strikethrough),l=i.fontStyle&&(i.fontStyle&Ha.Underline||i.fontStyle&Ha.Strikethrough);!a&&!l&&r===o?s.content+=i.content:t.push({...i})}return t})}const KAt=mAt;function jAt(n,e,t){const i={meta:{},options:t,codeToHast:(r,o)=>DF(n,r,o),codeToTokens:(r,o)=>RF(n,r,o)};let s=KAt(DF(n,e,t,i));for(const r of LF(t))s=r.postprocess?.call(i,s,t)||s;return s}const kme={light:"#333333",dark:"#bbbbbb"},Ame={light:"#fffffe",dark:"#1e1e1e"},Ome="__shiki_resolved";function cse(n){if(n?.[Ome])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"?kme.light:kme.dark),t||(t=e.type==="light"?Ame.light:Ame.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,Ome,{enumerable:!1,writable:!1,value:!0}),e}async function E2e(n){return Array.from(new Set((await Promise.all(n.filter(e=>!v2e(e)).map(async e=>await _2e(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function T2e(n){return(await Promise.all(n.map(async t=>b2e(t)?null:cse(await _2e(t))))).filter(t=>!!t)}let YAt=3;function QAt(n,e=3){e>YAt||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let GC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class XAt extends ekt{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=cse(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=bF.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 GC(`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 GC(`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 ZAt{_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 JAt(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 GC("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),i=(n.themes||[]).flat(1).map(cse),s=new ZAt(n.engine,t),r=new XAt(s,i,t,n.langAlias);let o;function a(_){m();const b=r.getGrammar(typeof _=="string"?_:_.name);if(!b)throw new GC(`Language \`${_}\` not found, you may need to load it first`);return b}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const b=r.getTheme(_);if(!b)throw new GC(`Theme \`${_}\` not found, you may need to load it first`);return b}function c(_){m();const b=l(_);o!==_&&(r.setTheme(b),o=_);const S=r.getColorMap();return{theme:b,colorMap:S}}function d(){return m(),r.getLoadedThemes()}function u(){return m(),r.getLoadedLanguages()}function h(..._){m(),r.loadLanguages(_.flat(1))}async function f(..._){return h(await E2e(_))}function g(..._){m();for(const b of _.flat(1))r.loadTheme(b)}async function p(..._){return m(),g(await T2e(_))}function m(){if(e)throw new GC("Shiki instance has been disposed")}function v(){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:v,[Symbol.dispose]:v}}async function eOt(n){n.engine||QAt("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,i]=await Promise.all([T2e(n.themes||[]),E2e(n.langs||[]),n.engine]);return JAt({...n,themes:e,langs:t,engine:i})}async function tOt(n){const e=await eOt(n);return{getLastGrammarState:(...t)=>PAt(e,...t),codeToTokensBase:(t,i)=>lse(e,t,i),codeToTokensWithThemes:(t,i)=>w2e(e,t,i),codeToTokens:(t,i)=>RF(e,t,i),codeToHast:(t,i)=>DF(e,t,i),codeToHtml:(t,i)=>jAt(e,t,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function iOt(n){const e=n.langs,t=n.themes,i=n.engine;async function s(r){function o(u){if(typeof u=="string"){if(v2e(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(b2e(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 tOt({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 I2e=[{id:"abap",name:"ABAP",import:()=>re(()=>import("./C-LNjlSw.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>re(()=>import("./SpSV0q3Y.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>re(()=>import("./CwwkfVSR.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>re(()=>import("./CW2Vrioc.js").then(n=>n.f),__vite__mapDeps([2,3,4,5]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>re(()=>import("./1FBXtL6T.js"),__vite__mapDeps([6,2,3,4,5,7]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>re(()=>import("./Pmp26Uib.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>re(()=>import("./QX45V2Sx.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>re(()=>import("./32uRPJ4N.js"),__vite__mapDeps([8,3,4,5,9,10,11]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>re(()=>import("./3x3noH9Z.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>re(()=>import("./bbDxRicf.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>re(()=>import("./DUyX-Nai.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>re(()=>import("./8iK_SAcF.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>re(()=>import("./zH8SnKTm.js"),__vite__mapDeps([12,11,4,13,5,14]),import.meta.url)},{id:"awk",name:"AWK",import:()=>re(()=>import("./BInbHe_J.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>re(()=>import("./C96HV_dC.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>re(()=>import("./DVZd9B17.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>re(()=>import("./BoKiGodi.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>re(()=>import("./D08WgyRC.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>re(()=>import("./CHM0blh-.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>re(()=>import("./6nHXG8SA.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>re(()=>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:()=>re(()=>import("./CquLrc37.js"),__vite__mapDeps([18,19]),import.meta.url)},{id:"c",name:"C",import:()=>re(()=>import("./Dql7v_Bn.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>re(()=>import("./CSgDAwbP.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>re(()=>import("./CYx6PXAq.js"),__vite__mapDeps([20,21]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>re(()=>import("./D_3VmgUT.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>re(()=>import("./P80f7IUj.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>re(()=>import("./Cn55uXmY.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>re(()=>import("./B9Kps4VT.js"),__vite__mapDeps([22,3,4,5,10]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>re(()=>import("./Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>re(()=>import("./DPjEyH5T.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>re(()=>import("./M64VA-8k.js"),__vite__mapDeps([23,4]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>re(()=>import("./kdhEWpvT.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>re(()=>import("./COqw26dr.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>re(()=>import("./BzgE5b26.js"),__vite__mapDeps([24,25,26,27,17]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>re(()=>import("./CYBft37h.js"),__vite__mapDeps([28,3,4,5,17,27,29]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>re(()=>import("./CHadp7IV.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>re(()=>import("./B0QpCHAm.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>re(()=>import("./fuZLfV_i.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>re(()=>import("./D82EKSYY.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>re(()=>import("./afimtvtX.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>re(()=>import("./BLe-5KzV.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>re(()=>import("./CF10PKvl.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>re(()=>import("./os-I7NdE.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>re(()=>import("./BmXAJ9_W.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>re(()=>import("./D97Zzqfu.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>re(()=>import("./BcOcwvcX.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>re(()=>import("./Da5cRb03.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>re(()=>import("./WwEXBnAl.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>re(()=>import("./BG8T9Pi3.js"),__vite__mapDeps([30,13,3,4,5,16]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>re(()=>import("./Wlg0E1_o.js"),__vite__mapDeps([31,3,4,5]),import.meta.url)},{id:"elm",name:"Elm",import:()=>re(()=>import("./RUaqLVwG.js"),__vite__mapDeps([32,26,27]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>re(()=>import("./BAsAT7ku.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>re(()=>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:()=>re(()=>import("./BjMo22yv.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>re(()=>import("./D1HCxHaw.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>re(()=>import("./Bl2oy6fF.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>re(()=>import("./C4IJs8-o.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>re(()=>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:()=>re(()=>import("./-gUCin__.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>re(()=>import("./hIfYPPDs.js"),__vite__mapDeps([43,44]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>re(()=>import("./8VYUoF4n.js"),__vite__mapDeps([45,46,47]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>re(()=>import("./CBs8Keu3.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>re(()=>import("./DkwncUOv.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>re(()=>import("./D0YGMca9.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>re(()=>import("./Bp_PLy4w.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>re(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>re(()=>import("./BFdI9D2b.js"),__vite__mapDeps([50,29]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>re(()=>import("./DfbSQCnh.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>re(()=>import("./DCIw00iZ.js"),__vite__mapDeps([51,4,13,5,3]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>re(()=>import("./C1s3v70Z.js"),__vite__mapDeps([52,13,5,4,3]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>re(()=>import("./BgLz8NXr.js"),__vite__mapDeps([26,27]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>re(()=>import("./CFetOo1p.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>re(()=>import("./ClSdsI-R.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>re(()=>import("./DFFYXpeI.js"),__vite__mapDeps([36,4,13,37,38]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>re(()=>import("./PDBGRe-6.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>re(()=>import("./itr3s8OG.js"),__vite__mapDeps([53,3,4,5,17]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>re(()=>import("./gI3nN7Ut.js"),__vite__mapDeps([35,4,5]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>re(()=>import("./C9-wYoAy.js"),__vite__mapDeps([54,3,4,5,40]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>re(()=>import("./Df6bDoY_.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>re(()=>import("./DC3yV9u3.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>re(()=>import("./BWvSN4gD.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>re(()=>import("./D5-asLiD.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>re(()=>import("./B2VXiYNb.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>re(()=>import("./BHuRbl13.js"),__vite__mapDeps([3,4,5]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>re(()=>import("./CCouqEzj.js"),__vite__mapDeps([16,3,4,5]),import.meta.url)},{id:"http",name:"HTTP",import:()=>re(()=>import("./CJ1eVxFS.js"),__vite__mapDeps([55,29,11,9,10,36,4,13,37,38]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>re(()=>import("./Cqtoupvr.js"),__vite__mapDeps([56,57]),import.meta.url)},{id:"hy",name:"Hy",import:()=>re(()=>import("./DFXneXwc.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>re(()=>import("./E_RAAYUa.js"),[],import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>re(()=>import("./BEwlwnbL.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>re(()=>import("./CtpALBBA.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>re(()=>import("./ryoHgIpY.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>re(()=>import("./BFKVEqu8.js"),__vite__mapDeps([58,3,4,5]),import.meta.url)},{id:"jison",name:"Jison",import:()=>re(()=>import("./BVgHyAf_.js"),__vite__mapDeps([59,4]),import.meta.url)},{id:"json",name:"JSON",import:()=>re(()=>import("./Cp-IABpG.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>re(()=>import("./C9tS-k6U.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>re(()=>import("./Des-eS-w.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>re(()=>import("./DcaNXYhu.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>re(()=>import("./caUT6aIO.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>re(()=>import("./C2t-YnRu.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>re(()=>import("./h0LN4FIn.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>re(()=>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:()=>re(()=>import("./BdnUsdx6.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>re(()=>import("./BKLW6Or0.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>re(()=>import("./BfB9GJr7.js"),__vite__mapDeps([62,63,61]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>re(()=>import("./Bc5W3P_y.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>re(()=>import("./DqnT6WTg.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>re(()=>import("./BDJi0rE3.js"),__vite__mapDeps([64,3,4,5,11]),import.meta.url)},{id:"llvm",name:"LLVM IR",import:()=>re(()=>import("./DLpp9LvF.js"),[],import.meta.url)},{id:"log",name:"Log file",import:()=>re(()=>import("./BPQEJVH-.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>re(()=>import("./BB0-839A.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>re(()=>import("./C9lfyjdU.js"),__vite__mapDeps([39,27]),import.meta.url)},{id:"luau",name:"Luau",import:()=>re(()=>import("./BUGa-R-r.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>re(()=>import("./BoASPUxF.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>re(()=>import("./C9sg6759.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>re(()=>import("./B82-JnRn.js"),__vite__mapDeps([65,5,66,7,4]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>re(()=>import("./Coy0nst6.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>re(()=>import("./DREyJzTe.js"),__vite__mapDeps([67,44,40,16,3,4,5]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>re(()=>import("./DHd_1LBM.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>re(()=>import("./DfYh35At.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>re(()=>import("./B7zkapVa.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>re(()=>import("./DmN1BIHU.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>re(()=>import("./BkPM1oy1.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>re(()=>import("./DRg8JJMk.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>re(()=>import("./BU0udk1K.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>re(()=>import("./Dykf6cri.js"),__vite__mapDeps([68,39,27]),import.meta.url)},{id:"nim",name:"Nim",import:()=>re(()=>import("./D_T-aAMc.js"),__vite__mapDeps([69,27,3,4,5,9,10,26,44]),import.meta.url)},{id:"nix",name:"Nix",import:()=>re(()=>import("./CDCQC_zV.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>re(()=>import("./DOiXYxxS.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>re(()=>import("./P9Jyl3kd.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>re(()=>import("./CFJys5tQ.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>re(()=>import("./SN78sQLf.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>re(()=>import("./DLb4zeju.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>re(()=>import("./G3-HApOe.js"),__vite__mapDeps([70,3,4,5,9,10,17]),import.meta.url)},{id:"php",name:"PHP",import:()=>re(()=>import("./C8_cZGvL.js"),__vite__mapDeps([71,3,4,5,9,10,17,11]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>re(()=>import("./DbnbuKy4.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>re(()=>import("./BTJTHyun.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>re(()=>import("./C0HS_06l.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>re(()=>import("./CXtECtnM.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>re(()=>import("./CEu0bR-o.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>re(()=>import("./B9QZihn4.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>re(()=>import("./Dd19v3D-.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>re(()=>import("./BRGHnwaO.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>re(()=>import("./DyJlTyXw.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>re(()=>import("./DJs7a6wl.js"),__vite__mapDeps([72,4,5,3]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>re(()=>import("./BMWR74SV.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>re(()=>import("./CtrldY6v.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>re(()=>import("./CXTBPihj.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>re(()=>import("./CNgRkp1_.js"),__vite__mapDeps([73,4]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>re(()=>import("./C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>re(()=>import("./diaQH6uK.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>re(()=>import("./Cpx7UCi2.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>re(()=>import("./BauLn-NW.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>re(()=>import("./CrUG655c.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>re(()=>import("./CChMg1-B.js"),__vite__mapDeps([74,3,4,5,75]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>re(()=>import("./C-SQnVFl.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>re(()=>import("./CDVJQ6XC.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>re(()=>import("./C3B-1QV4.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>re(()=>import("./LUZpk28X.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>re(()=>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:()=>re(()=>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:()=>re(()=>import("./B1yitclQ.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>re(()=>import("./Bv2DfwTI.js"),__vite__mapDeps([78,17]),import.meta.url)},{id:"sass",name:"Sass",import:()=>re(()=>import("./Cj5Yp3dK.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>re(()=>import("./C151Ov-r.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>re(()=>import("./BlI8fBv_.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>re(()=>import("./mtNz0_Xw.js"),__vite__mapDeps([7,5]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>re(()=>import("./DVxCFoDh.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>re(()=>import("./CeDfCXaY.js"),__vite__mapDeps([79,80]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>re(()=>import("./enPR0-Fz.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>re(()=>import("./BIzIjuvV.js"),__vite__mapDeps([81,29]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>re(()=>import("./BKe6jfpc.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>re(()=>import("./BbcW6ACK.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>re(()=>import("./CEizyJ1q.js"),__vite__mapDeps([82,3,4,5]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>re(()=>import("./BRZ36xJF.js"),__vite__mapDeps([83,84]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>re(()=>import("./C2pHKz2C.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>re(()=>import("./Bc-MNOVW.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>re(()=>import("./_ykCGR6B.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>re(()=>import("./CFfumueS.js"),__vite__mapDeps([85,17]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>re(()=>import("./DgWikGMS.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>re(()=>import("./CrtRcjh8.js"),__vite__mapDeps([86,4,13,5,14]),import.meta.url)},{id:"swift",name:"Swift",import:()=>re(()=>import("./fve9TYiY.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>re(()=>import("./CVTao1yP.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>re(()=>import("./BgWFZNIN.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>re(()=>import("./Z9sDDOrt.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>re(()=>import("./QIJgUcNo.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>re(()=>import("./dwOrl1Do.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>re(()=>import("./Da4t7zrk.js"),__vite__mapDeps([87,88,4,5]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>re(()=>import("./lrsjGwJC.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>re(()=>import("./BAmeXbWa.js"),__vite__mapDeps([63,61]),import.meta.url)},{id:"toml",name:"TOML",import:()=>re(()=>import("./DpWJAGvS.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>re(()=>import("./Cc-FHe7z.js"),__vite__mapDeps([89,13,5,4,26,27,3,17,9,10]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>re(()=>import("./B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>re(()=>import("./nsowKw4B.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>re(()=>import("./BsS91CYL.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>re(()=>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:()=>re(()=>import("./CYoF9-Z5.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>re(()=>import("./Df68jz8_.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>re(()=>import("./C5DMNY_Y.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>re(()=>import("./Bx8CTVFK.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>re(()=>import("./wef_wrfO.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>re(()=>import("./gsC4jtYg.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>re(()=>import("./BQ8w6xss.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>re(()=>import("./B-n0qIwP.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>re(()=>import("./2vEc2rIP.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>re(()=>import("./C5CPwoy2.js"),__vite__mapDeps([91,5,4,13,11,16,3]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>re(()=>import("./CKfMBS6n.js"),__vite__mapDeps([92,91,5,4,13,11,16,3]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>re(()=>import("./BvCpsbMi.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>re(()=>import("./BIkblFNm.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>re(()=>import("./BV7otONQ.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>re(()=>import("./Dx-B1_4e.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>re(()=>import("./y_XAX2KJ.js"),[],import.meta.url)},{id:"wit",name:"WebAssembly Interface Types",import:()=>re(()=>import("./5i3qLPDT.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>re(()=>import("./BdBarL6S.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>re(()=>import("./CCLpvtro.js"),__vite__mapDeps([9,10]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>re(()=>import("./Chm2_3hY.js"),__vite__mapDeps([93,9,10]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>re(()=>import("./Buea-lGh.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>re(()=>import("./Y7AfTJ_q.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>re(()=>import("./CK-KhNJq.js"),[],import.meta.url)}],nOt=Object.fromEntries(I2e.map(n=>[n.id,n.import])),sOt=Object.fromEntries(I2e.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),rOt={...nOt,...sOt},oOt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>re(()=>import("./C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>re(()=>import("./D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>re(()=>import("./Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>re(()=>import("./Btyk0a-E.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>re(()=>import("./q-j0iyEw.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>re(()=>import("./brDaU2vB.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>re(()=>import("./BR7mELCv.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>re(()=>import("./C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>re(()=>import("./BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>re(()=>import("./BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>re(()=>import("./BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>re(()=>import("./C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>re(()=>import("./DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>re(()=>import("./Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>re(()=>import("./DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>re(()=>import("./E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>re(()=>import("./DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>re(()=>import("./D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>re(()=>import("./BfjtVDDH.js"),[],import.meta.url)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>re(()=>import("./Hhtzho9R.js"),[],import.meta.url)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>re(()=>import("./DFR6f4Jn.js"),[],import.meta.url)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>re(()=>import("./BFVdkX1U.js"),[],import.meta.url)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>re(()=>import("./7i6GEmcB.js"),[],import.meta.url)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>re(()=>import("./Dcsh5twl.js"),[],import.meta.url)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>re(()=>import("./leinZj1a.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>re(()=>import("./DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>re(()=>import("./CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>re(()=>import("./CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>re(()=>import("./DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>re(()=>import("./DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>re(()=>import("./B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>re(()=>import("./D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>re(()=>import("./BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>re(()=>import("./B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>re(()=>import("./CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>re(()=>import("./Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>re(()=>import("./CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>re(()=>import("./CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>re(()=>import("./D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>re(()=>import("./C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>re(()=>import("./Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>re(()=>import("./DVMEJ2y_.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>re(()=>import("./PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>re(()=>import("./3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>re(()=>import("./CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>re(()=>import("./bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>re(()=>import("./BHrmToEH.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>re(()=>import("./CnK8MTSM.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>re(()=>import("./NleAzG8P.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>re(()=>import("./BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>re(()=>import("./DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>re(()=>import("./Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>re(()=>import("./DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>re(()=>import("./L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>re(()=>import("./CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>re(()=>import("./hegEt444.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>re(()=>import("./DU1UobuO.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>re(()=>import("./Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>re(()=>import("./D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>re(()=>import("./CVO1_9PV.js"),[],import.meta.url)}],aOt=Object.fromEntries(oOt.map(n=>[n.id,n.import]));class dse extends Error{constructor(e){super(e),this.name="ShikiError"}}function lOt(){return 2147483648}function cOt(){return typeof performance<"u"?performance.now():Date.now()}const dOt=(n,e)=>n+(e-n%e)%e;async function uOt(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=lOt();if(f>p)return!1;for(let m=1;m<=4;m*=2){let v=g*(1+.2/m);v=Math.min(v,f+100663296);const _=Math.min(p,dOt(Math.max(f,v),65536));if(o(_))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 v=g;for(;f[v]&&!(v>=m);)++v;if(v-g>16&&f.buffer&&l)return l.decode(f.subarray(g,v));let _="";for(;g<v;){let b=f[g++];if(!(b&128)){_+=String.fromCharCode(b);continue}const S=f[g++]&63;if((b&224)===192){_+=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)_+=String.fromCharCode(b);else{const C=b-65536;_+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return _}function d(f,g){return f?c(i.HEAPU8,f,g):""}const u={emscripten_get_now:cOt,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 hOt=Object.defineProperty,fOt=(n,e,t)=>e in n?hOt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Eo=(n,e,t)=>fOt(n,typeof e!="symbol"?e+"":e,t);let Wo=null;function gOt(n){throw new dse(n.UTF8ToString(n.getLastOnigError()))}class t3{constructor(e){Eo(this,"utf16Length"),Eo(this,"utf8Length"),Eo(this,"utf16Value"),Eo(this,"utf8Value"),Eo(this,"utf16OffsetToUtf8"),Eo(this,"utf8OffsetToUtf16");const t=e.length,i=t3._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 i3=class Mh{constructor(e){if(Eo(this,"id",++Mh.LAST_ID),Eo(this,"_onigBinding"),Eo(this,"content"),Eo(this,"utf16Length"),Eo(this,"utf8Length"),Eo(this,"utf16OffsetToUtf8"),Eo(this,"utf8OffsetToUtf16"),Eo(this,"ptr"),!Wo)throw new dse("Must invoke loadWasm first.");this._onigBinding=Wo,this.content=e;const t=new t3(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)}};Eo(i3,"LAST_ID",0);Eo(i3,"_sharedPtr",0);Eo(i3,"_sharedPtrInUse",!1);let L2e=i3;class pOt{constructor(e){if(Eo(this,"_onigBinding"),Eo(this,"_ptr"),!Wo)throw new dse("Must invoke loadWasm first.");const t=[],i=[];for(let a=0,l=e.length;a<l;a++){const c=new t3(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&&gOt(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 L2e(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 mOt(n){return typeof n.instantiator=="function"}function _Ot(n){return typeof n.default=="function"}function vOt(n){return typeof n.data<"u"}function bOt(n){return typeof Response<"u"&&n instanceof Response}function SOt(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 sA;function yOt(n){if(sA)return sA;async function e(){Wo=await uOt(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),mOt(i)?i=await i.instantiator(t):_Ot(i)?i=await i.default(t):(vOt(i)&&(i=i.data),bOt(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await COt(i)(t):i=await wOt(i)(t):SOt(i)?i=await QW(i)(t):i instanceof WebAssembly.Module?i=await QW(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await QW(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return sA=e(),sA}function QW(n){return e=>WebAssembly.instantiate(n,e)}function COt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function wOt(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function EOt(n){return n&&await yOt(n),{createScanner(e){return new pOt(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new L2e(e)}}}const TOt=iOt({langs:rOt,themes:aOt,engine:()=>EOt(re(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),IOt=await TOt({themes:["dark-plus"],langs:["nix"]});b4.register({id:"nix"});b4.setLanguageConfiguration("nix",{brackets:[["{","}"],["[","]"],["(",")"]]});ikt(IOt,tse);self.MonacoEnvironment={getWorker(n,e){switch(e){case"yaml":return new HDt;default:return new WDt}}};const Mme=new Map,LOt=gNt(tse,{});_z.config({monaco:tse});function Pme(n){for(const[e,{schema:t}]of Object.entries(n.args))x2e(t)&&(Mme.set(`${n.type}.${e}`,{fileMatch:[`${n.type}.${e}`],uri:`library://${n.type}/${e}`,schema:t}),LOt.update({schemas:Array.from(Mme.values())}))}function x2e(n){return n.type==="object"?!0:n.type==="array"?x2e(n.items):!1}const $f=Xd("library",()=>{const{$client:n}=Ms(),e=new DQe({tokenize:"forward"}),t=ca({}),i=ca({}),s=ca(new Map),{on:r,trigger:o}=$s(),{on:a,trigger:l}=$s(),{on:c,trigger:d}=$s(),{on:u,trigger:h}=$s(),{on:f,trigger:g}=$s(),p=T=>{switch(T.type){case"component-updated":o(T.component);break;case"component-removed":l(T.componentType);break;case"entity-updated":d(T.entity);break;case"entity-removed":h(T.entityType);break}},m=T=>{const w=T.meta.displayName??Sl(T.type,T.meta);e.add(T.type,T.type),e.add(T.type,w),T.meta.description&&e.add(T.type,T.meta.description)},v=async T=>{await e.remove(T.type),m(T)},_=T=>{switch(lQe(t,i,T),p(T),T.type){case"component-updated":v(T.component),Pme(T.component);break;case"component-removed":e.remove(T.componentType);break}},b=async()=>{const T=await n.library.get.query();Object.assign(t,T.components),Object.assign(i,T.entities);for(const I of Object.values(t))m(I),Pme(I);const w=await n.library.getUnitSourceHashes.query();for(const{unitType:I,sourceHash:R}of w)s.set(I,R);n.library.watch.subscribe(void 0,{onData(I){for(const R of I)_(R)}}),n.library.watchUnitSourceHashes.subscribe(void 0,{onData({unitType:I,sourceHash:R}){s.set(I,R),g({unitType:I,sourceHash:R}),B_.info({unitType:I,sourceHash:R},"unit source hash updated")}})},S=Me(""),y=M9e(S,100),C=V9e(async()=>y.value?(await e.search(y.value)).map(w=>t[w]):Object.values(t),[]);return{initialize:b,components:t,entities:i,onComponentUpdated:r,onComponentRemoved:a,onEntityUpdated:c,onEntityRemoved:u,search:S,filteredComponents:C,unitSourceHashes:s,onUnitSourceHashChanged:f}});function xOt(n){return new Worker(""+new URL("graph-resolver-CY8ix4Bk.js",import.meta.url).href,{type:"module",name:n?.name})}function R2e(n,e){let t=null;const{on:i,trigger:s}=$s(),{on:r,trigger:o}=$s(),a=()=>{t=new n(e),t.onerror=c=>{B_.error({message:c.message,filename:c.filename,lineno:c.lineno,colno:c.colno},"worker error, restarting worker"),o(new Error(`Worker error: ${c.message}`)),t?.terminate(),t=null,a()},t.onmessage=c=>{s(c.data)}},l=c=>{t||a(),t.postMessage(c)};return a(),{onMessage:i,onError:r,postMessage:l}}const{onMessage:ROt,onError:DOt,postMessage:XW}=R2e(xOt);function rX(n,e){const t=qB(),i=Me(!1),s=Me(!1),r=ca(new Map),o=ca(new Map),a=new Set,l=async b=>{await Tb(i).toBe(!0),XW(b)},c=t_(()=>{l({type:"process",stateId:t,nodeIds:Array.from(a)}),a.clear()},100),d=t_(()=>{s.value=!0},100),u=async b=>{const S=h.get(b)??[];for(const y of S)y();await l({type:"invalidate",stateId:t,nodeId:b}),a.add(b),c()},h=new Map,f=(b,S)=>{e.trace({nodeId:b,dependencies:S},"setting dependencies");const y=[];for(const C of S)y.push(rt(()=>o.get(C),()=>{e.debug({nodeId:b,dependency:C},"re-evaluating resolver since dependency has changed"),s.value&&u(b)}));h.set(b,y)},g=(b,S)=>{e.trace({nodeId:b,value:S},"setting output"),o.set(b,S)},p=()=>{e.debug({stateId:t},"creating state"),XW({type:"create-state",nodes:Object.fromEntries(r),stateId:t,factoryName:n.factoryName})};return ROt(b=>{if(b.type==="ready"){p();return}if(b.stateId===t)switch(b.type){case"state-ready":{e.debug({stateId:t},"state ready"),i.value=!0;break}case"dependencies":{f(b.nodeId,b.dependencies);break}case"output":{g(b.nodeId,b.value),d();break}}}),p(),DOt(()=>{i.value=!1}),ir(()=>{e.debug({stateId:t},"disposing state"),i.value&&XW({type:"dispose-state",stateId:t})}),{inputs:r,outputs:o,get:b=>o.get(b),set:async(b,S)=>{r.set(b,S),await l({type:"update-input",stateId:t,nodeId:b,node:JSON.parse(JSON.stringify(S))}),a.add(b),c()},delete:b=>{r.delete(b),o.delete(b),l({type:"delete-input",stateId:t,nodeId:b})}}}function NOt(n){return n.meta.defaultNamePrefix??n.type.split(".").pop()}const CD=Ip({name:"project-instances",getStoreId:n=>`projects/${n}/instances`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Xd(n,()=>{const s=dr(new Map),r=ca(new Map),o=ca(new Map),a=new Set,l=$f(),{$client:c}=Ms(),{inputs:d,outputs:u,get:h,set:f,delete:g}=rX(eQe,t),{inputs:p,outputs:m,get:v,set:_,delete:b}=rX(aQe,t),{on:S,trigger:y}=$s(),{on:C,trigger:T}=$s(),{on:w,trigger:I}=$s(),{on:R,trigger:D}=$s(),{on:L,trigger:k}=$s(),{on:x,trigger:N}=$s(),{on:A,trigger:B}=$s(),V=ca(new Map),O=de=>{const Ie=V.get(de.type)??[];Ie.push(de),V.set(de.type,Ie)},M=(de,Ie)=>{const it=(V.get(de)??[]).filter(mt=>mt.id!==Ie);V.set(de,it)},P=de=>{const Ie=l.components[de.type];Ie&&(t.debug({instance:de},"updating instance state"),f(`instance:${de.id}`,{kind:"instance",instance:de,component:Ie}),B9e(()=>h(`instance:${de.id}`),$e=>{if(!$e){t.error({msg:"cannot get resolved instance inputs after instance state update",instance:de});return}const it=mL($e);_(de.id,{instance:de,resolvedInputs:it,component:Ie}),T({instance:de,resolvedInputs:it})}))},W=de=>{P(de),s.set(de.id,de)},H=(de,Ie)=>{t.debug({instanceId:de,instanceName:Ie},"deleting instance state"),g(`instance:${de}`),b(de),I(de),s.delete(de),a.delete(Ie)},F=de=>{t.debug({hub:de},"updating hub state"),f(`hub:${de.id}`,{kind:"hub",hub:de}),r.set(de.id,de)},U=async()=>{const de=await c.project.getProject.query({projectId:e});for(const $e of de.instances)W($e),O($e);for(const $e of de.hubs)F($e);for(const $e of de.compositeInstances)Z($e);const{unsubscribe:Ie}=c.project.watchCompositeInstances.subscribe({projectId:e},{onData($e){switch($e.type){case"updated":Z($e.instance);break;case"deleted":o.delete($e.instanceId),g(`instance:${$e.instanceId}`);break}}});i(Ie)},Z=de=>{o.set(de.instance.id,de);const Ie=s.get(de.instance.id);Ie?(Ie.outputs=de.instance.outputs,Ie.resolvedOutputs=de.instance.resolvedOutputs,P(Ie)):(P(de.instance),O(de.instance));for(const $e of de.children)P($e),O(de.instance);D(de)},X=async(de,Ie)=>{await c.project.updateInstance.mutate({projectId:e,instanceId:de.id,patch:ole(de,Ie)})},G=async(de,Ie)=>{await c.project.updateHub.mutate({projectId:e,hubId:de.id,patch:ole(de,Ie)})},he=de=>{const Ie=l.components[de],$e=NOt(Ie);let it=1,mt=`${$e}-${it}`;for(;a.has(mt);)it++,mt=`${$e}-${it}`;return mt},_e=P_(),ee=async(de,Ie)=>{const $e=await c.terminal.getOrCreateSession.mutate({projectId:e,instanceId:de.id,terminalName:Ie});console.log("arrived session",AM.parse($e)),_e.openTerminalPanel(AM.parse($e))},{on:Q,trigger:Y}=$s(),{on:z,trigger:j}=$s(),{on:ie,trigger:J}=$s(),{on:ve,trigger:Ne}=$s(),{on:Te,trigger:Ce}=$s(),ye=async(de,Ie,$e,it=!0)=>{const mt=de.inputs??{},It=mt[Ie]??[];It.push($e),mt[Ie]=It,de.inputs=mt,Y({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["inputs"])},Ae=async(de,Ie,$e,it=!0)=>{const mt=de.hubInputs??{},It=mt[Ie]??[];It.push($e),mt[Ie]=It,de.hubInputs=mt,j({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["hubInputs"])},Fe=async(de,Ie,$e=!0)=>{const it=de.injectionInputs??[];it.push(Ie),de.injectionInputs=it,J({instance:de,input:Ie}),W(de),$e&&await X(de,["injectionInputs"])},je=async(de,Ie,$e=!0)=>{const it=de.inputs??[];it.push(Ie),de.inputs=it,Ne({hub:de,input:Ie}),F(de),$e&&await G(de,["inputs"])},et=async(de,Ie,$e=!0)=>{const it=de.injectionInputs??[];it.push(Ie),de.injectionInputs=it,Ce({hub:de,input:Ie}),F(de),$e&&await G(de,["injectionInputs"])},kt=(de,Ie)=>{de[Ie]||delete de[Ie],Array.isArray(de[Ie])&&!de[Ie].length&&delete de[Ie]},{on:Yt,trigger:zt}=$s(),{on:oi,trigger:Wt}=$s(),{on:Mt,trigger:ln}=$s(),{on:Li,trigger:Wn}=$s(),{on:Un,trigger:gn}=$s(),xi=async(de,Ie,$e,it=!0)=>{const mt=de.inputs??{};let It=mt[Ie]??[];It=It.filter(pn=>pn.instanceId!==$e.instanceId||pn.output!==$e.output),mt[Ie]=It,kt(mt,Ie),de.inputs=mt,zt({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["inputs"])},gr=async(de,Ie,$e,it=!0)=>{const mt=de.hubInputs??{};let It=mt[Ie]??[];It=It.filter(pn=>pn.hubId!==$e.hubId),mt[Ie]=It,kt(mt,Ie),de.hubInputs=mt,Wt({instance:de,inputName:Ie,input:$e}),W(de),it&&await X(de,["hubInputs"])},Hi=async(de,Ie,$e=!0)=>{const mt=(de.injectionInputs??[]).filter(It=>It.hubId!==Ie.hubId);de.injectionInputs=mt,ln({instance:de,input:Ie}),W(de),$e&&await X(de,["injectionInputs"])},qr=async(de,Ie,$e=!0)=>{const mt=(de.inputs??[]).filter(It=>It.instanceId!==Ie.instanceId||It.output!==Ie.output);de.inputs=mt,Wn({hub:de,input:Ie}),F(de),$e&&await G(de,["inputs"])},nn=async(de,Ie,$e=!0)=>{const mt=(de.injectionInputs??[]).filter(It=>It.hubId!==Ie.hubId);de.injectionInputs=mt,gn({hub:de,input:Ie}),F(de),$e&&await G(de,["injectionInputs"])},sr=async(de,Ie)=>{const $e=he(de),mt={id:lle(de,$e),type:de,name:$e,position:Ie};W(mt),a.add(mt.name),O(mt),await y(mt),h(`instance:${mt.id}`),await c.project.createInstance.mutate({projectId:e,instance:mt})},we=(de,Ie,$e)=>{for(const[it,mt]of Object.entries(de.inputs??{}))for(const It of mt)It.instanceId===Ie&&(xi(de,it,It,!1),ye(de,it,{instanceId:$e,output:It.output},!1))},Ke=(de,Ie,$e)=>{for(const it of de.inputs??[])it.instanceId===Ie&&(qr(de,it,!1),je(de,{instanceId:$e,output:it.output},!1))},pt=async(de,Ie,$e)=>{const it=s.get(de);if(!it)throw new Error(`Instance ${de} not found`);if(it.name!==Ie){const mt=it.name,It=lle(it.type,Ie);k({oldName:mt,oldId:de,newName:Ie,newId:It}),a.add(Ie),it.id=It,it.name=Ie,W(it);for(const pn of s.values())pn.id!==it.id&&we(pn,de,It);for(const pn of r.values())Ke(pn,de,It);H(de,mt),await c.project.renameInstance.mutate({projectId:e,instanceId:de,newName:Ie})}JSON.stringify(it.args)!==JSON.stringify($e)&&(it.args=$e,W(it),await X(it,["args"]),h(`instance:${it.id}`))},at=(de,Ie)=>{for(const[$e,it]of Object.entries(de.inputs??{}))for(const mt of it)mt.instanceId===Ie&&xi(de,$e,mt,!1)},oe=(de,Ie)=>{for(const $e of de.inputs??[])$e.instanceId===Ie&&qr(de,$e,!1)},ce=async de=>{for(const Ie of s.values())Ie.id!==de.id&&at(Ie,de.id);for(const Ie of r.values())oe(Ie,de.id);I(de.id),H(de.id,de.name),M(de.type,de.id),await c.project.deleteInstance.mutate({projectId:e,instanceId:de.id})},ae=async de=>{const Ie={id:qB(),position:de};F(Ie),h(`hub:${Ie.id}`),N(Ie),await c.project.createHub.mutate({projectId:e,hub:Ie})},fe=(de,Ie)=>{for(const $e of de.injectionInputs??[])$e.hubId===Ie&&Hi(de,$e,!1);for(const[$e,it]of Object.entries(de.hubInputs??{}))for(const mt of it)mt.hubId===Ie&&gr(de,$e,mt,!1)},Se=(de,Ie)=>{for(const $e of de.injectionInputs??[])$e.hubId===Ie&&nn(de,$e,!1)};return{initialize:U,instances:s,hubs:r,patchInstance:X,patchHub:G,createInstance:sr,updateInstance:pt,deleteInstance:ce,createHub:ae,deleteHub:async de=>{r.delete(de.id);for(const Ie of s.values())fe(Ie,de.id);for(const Ie of r.values())Ie.id!==de.id&&Se(Ie,de.id);await B(de.id),await c.project.deleteHub.mutate({projectId:e,hubId:de.id})},openTerminal:ee,componentTypeToInstancesMap:V,compositeInstances:o,onCompositeInstanceUpdated:R,onInstanceCreated:S,onInstanceUpdated:C,onInstanceNameChanged:L,onInstanceDeleted:w,onHubCreated:x,onHubDeleted:A,onInstanceInputAdded:Q,onInstanceHubInputAdded:z,onInstanceInjectionInputAdded:ie,onHubInputAdded:ve,onHubInjectionInputAdded:Te,addInstanceInput:ye,addInstanceHubInput:Ae,addInstanceInjectionInput:Fe,addHubInput:je,addHubInjectionInput:et,onInstanceInputRemoved:Yt,onInstanceHubInputRemoved:oi,onInstanceInjectionInputRemoved:Mt,onHubInputRemoved:Li,onHubInjectionInputRemoved:Un,removeInstanceInput:xi,removeInstanceHubInput:gr,removeInstanceInjectionInput:Hi,removeHubInput:qr,removeHubInjectionInput:nn,addComponentInstance:O,updateInstanceState:W,updateHubState:F,deleteInstanceState:H,deleteComponentInstance:M,getInputResolverOutput:h,getValidationOutput:v,inputResolverInputs:d,inputResolverOutputs:u,validationInputs:p,validationOutputs:m}})}),wD=Ip({name:"project-operations",getStoreId:n=>`projects/${n}/operations`,create:({storeId:n,id:[e],onDeactivated:t})=>Xd(n,()=>{const i=ca(new Map),s=Me([]),{$client:r}=Ms(),{trigger:o,on:a}=$s(),l=async()=>{const h=await r.operation.getMany.query({projectId:e});for(const g of h)i.set(g.id,g);s.value=h;const{unsubscribe:f}=r.operation.watch.subscribe({projectId:e},{onData(g){i.has(g.id)?(i.set(g.id,g),s.value=s.value.map(p=>p.id===g.id?g:p)):(i.set(g.id,g),s.value=[g,...s.value]),Rz(g.status)&&o(g)}});t(f)},c=async h=>await r.operation.launch.mutate(h);return{initialize:l,operations:s,operationsMap:i,launchOperation:c,launchInstanceOperation:async(h,f,g)=>await c({projectId:e,type:h,instanceIds:[f.id],options:g}),cancelOperation:async h=>{await r.operation.cancel.mutate({operationId:h})},onOperationFinished:a}})}),n3=Ip({name:"project-state",getStoreId:n=>`projects/${n}/state`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Xd(n,()=>{const s=CD(e),r=wD(e),o=$f(),a=dr(new Map),{$client:l}=Ms(),c=$t(new Map),{inputs:d,outputs:u,get:h,set:f,delete:g}=rX(oQe,t),p=async()=>{const C=await l.state.getInstanceStates.query({projectId:e});for(const w of C)a.set(w.id,w);c.value=ale(a);const{unsubscribe:T}=l.state.watchInstanceStates.subscribe({projectId:e},{onData(w){t.debug({msg:"instance state patch",patch:w});const I=Uje(a,w),R=s.instances.get(I.id),D=s.getInputResolverOutput(`instance:${I.id}`);if(!R||!D)return;const L=o.components[R.type],k=mL(D);f(R.id,{instance:R,component:L,resolvedInputs:k,state:I,sourceHash:zT(L)?o.unitSourceHashes.get(R.type):void 0})}});i(T)};r.onOperationFinished(()=>{c.value=ale(a)});const m=C=>a.get(C)??cLe(C);s.onInstanceUpdated(({instance:C,resolvedInputs:T})=>{const w=o.components[C.type];f(C.id,{instance:C,component:w,resolvedInputs:T,state:a.get(C.id),sourceHash:o.unitSourceHashes.get(C.type)})}),s.onInstanceDeleted(C=>{g(C)}),o.onUnitSourceHashChanged(({unitType:C,sourceHash:T})=>{const w=s.componentTypeToInstancesMap.get(C)??[];for(const I of w){const R=s.getInputResolverOutput(`instance:${I.id}`);if(!R)continue;const D=mL(R),L=o.components[I.type];f(I.id,{instance:I,component:L,resolvedInputs:D,state:a.get(I.id),sourceHash:T})}});const v=C=>{const T=a.get(C);if(!T?.latestOperationId)return null;const w=r.operationsMap.get(T.latestOperationId);return w?Rz(w.status)?null:w:null},_=ue(()=>Array.from(s.instances.values()).filter(C=>{const T=a.get(C.id);if(!T||!T.latestOperationId)return!0;const w=r.operationsMap.get(T.latestOperationId);if(w&&!Rz(w.status)||s.getValidationOutput(C.id)?.status!=="ok")return!1;if(T.status!=="created")return!0;const R=h(C.id);return R?.inputHash?T.inputHash!==R.inputHash:!1})),b=P_();return{initialize:p,instanceStates:a,getInstanceState:m,instancesToAutoUpdate:_,getInputHashOutput:h,openInstanceLogs:async C=>{const T=a.get(C.id);T?.latestOperationId&&b.openLogsPanel(e,T.latestOperationId,C.id)},getPageContent:async(C,T)=>await l.state.getInstancePageContent.query({projectId:e,instanceId:C,pageName:T})??[],dependentInstanceStateMap:c,getActiveInstanceOperation:v,inputHashInputs:d,inputHashOutputs:u}})}),use=Ip({name:"project",getStoreId:n=>`projects/${n}`,create:({storeId:n,id:[e]})=>Xd(n,()=>{const t=Me(!1),i=wD(e),s=CD(e),r=n3(e),o=async()=>{await Promise.all([r.initialize(),s.initialize(),i.initialize()]),t.value=!0};let a=null;return{projectId:e,initialized:t,ensureInitialized:()=>{if(!t.value)return a||(a=o(),a)}}})}),hse=Ip({name:"project-secrets",getStoreId:n=>`projects/${n}/secrets`,create:({storeId:n,id:[e]})=>Xd(n,()=>{const{$client:t}=Ms(),i=Me(null),s=async()=>(i.value!==null||(i.value=await t.secret.isLocked.query({projectId:e})),i.value),r=async l=>{const c=await t.secret.unlock.mutate({projectId:e,passphrase:l});return c&&(i.value=!1),c},o=async l=>await t.secret.get.query({projectId:e,instanceKey:l.id}),a=async(l,c)=>{await t.secret.set.mutate({projectId:e,instanceId:l.id,values:c})};return{isLocked:ue(()=>i.value??!1),checkIsLocked:s,unlock:r,getSecrets:o,setSecrets:a}})});function _h(){return{projectStore:use(),instancesStore:CD(),secretsStore:hse(),operationsStore:wD(),stateStore:n3()}}function D2e(n){return{projectStore:use(n),instancesStore:CD(n),secretsStore:hse(n),operationsStore:wD(n),stateStore:n3(n)}}function kOt(n){return{projectStore:use.weak(n),instancesStore:CD.weak(n),secretsStore:hse.weak(n),operationsStore:wD.weak(n),stateStore:n3.weak(n)}}function AOt(n,e){if(e.default){if(!n)return!0;const t=JSON.stringify(e.default),i=JSON.stringify(n);return t===i}return Array.isArray(n)?n.length===0:!n}function OOt(n,e){const t={...n};for(const i in e){const s=e[i];s.schema.default&&!t[i]&&(s.schema.type==="anyOf"||s.schema.type==="boolean")&&(t[i]=s.schema.default)}return t}function N2e(n,e){const t={};for(const i in n)e[i]&&!AOt(n[i],e[i].schema)&&(t[i]=n[i]);return t}function MOt(n,e){return Array.isArray(n)?n.length===0?"[]":typeof n[0]=="object"?"[...]":n.join(", "):typeof n=="object"?"{...}":typeof n=="string"&&e.language?"...":String(n)}const POt=Tt({id:String,text:String,...Cp(RB({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),k2e=Ei()({name:"VTooltip",props:POt(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:t}=e;const i=Ks(n,"modelValue"),{scopeId:s}=xB(),r=Zd(),o=ue(()=>n.id||`v-tooltip-${r}`),a=Me(),l=ue(()=>n.location.split(" ").length>1?n.location:n.location+" center"),c=ue(()=>n.origin==="auto"||n.origin==="overlap"||n.origin.split(" ").length>1||n.location.split(" ").length>1?n.origin:n.origin+" center"),d=ue(()=>n.transition?n.transition:i.value?"scale-transition":"fade-transition"),u=ue(()=>qt({"aria-describedby":o.value},n.activatorProps));return tn(()=>{const h=i_.filterProps(n);return K(i_,qt({ref:a,class:["v-tooltip",n.class],style:n.style,id:o.value},h,{modelValue:i.value,"onUpdate:modelValue":f=>i.value=f,transition:d.value,absolute:!0,location:l.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:u.value,_disableGlobalStack:!0},s),{activator:t.activator,default:function(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];return t.default?.(...g)??n.text}})}),M_({},a)}}),FOt=Dt({__name:"ComponentNodeEditor",props:WS({component:{},instance:{},state:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const{instancesStore:e}=_h(),t=pf(n,"modelValue"),i=Me(n.instance.name),s=dr(OOt(n.instance.args??{},n.component.args)),r=async()=>{t.value=!1,await Vi(),Object.assign(s,n.instance.args)},o=async()=>{e.updateInstance(n.instance.id,i.value,N2e(s,n.component.args)),await Vi(),t.value=!1};return(a,l)=>{const c=KIe;return xe(),ot(i_,{modelValue:t.value,"onUpdate:modelValue":l[1]||(l[1]=d=>t.value=d),contained:"",opacity:1,width:"100%",height:"100%",class:"nowheel nodrag",transition:!1,style:{"border-radius":"6px"}},{default:We(()=>[K(wc,{height:"100%",variant:"flat",color:a.component.meta.color??"#2d2d2d"},{default:We(()=>[K(vf,{class:"d-flex flex-column ga-2 px-2 py-2",style:{height:"calc(100% - 53px)",overflow:"scroll"}},{default:We(()=>[K(k2e,{"open-on-hover":a.state.status!=="not_created",location:"top"},{activator:We(({props:d})=>[K(_f,qt({modelValue:le(i),"onUpdate:modelValue":l[0]||(l[0]=u=>pi(i)?i.value=u:null)},d,{label:"Name",variant:"outlined",density:"compact",readonly:a.state.status!=="not_created",style:{"max-height":"40px"},"hide-details":""}),null,16,["modelValue","readonly"])]),default:We(()=>[l[2]||(l[2]=gi(" The name cannot be changed after the instance is created "))]),_:1},8,["open-on-hover"]),(xe(!0),gt(Ct,null,Ka(a.component.args,(d,u)=>(xe(),ot(c,{key:u,modelValue:le(s)[u],"onUpdate:modelValue":h=>le(s)[u]=h,name:u,arg:d,instance:a.instance},null,8,["modelValue","onUpdate:modelValue","name","arg","instance"]))),128))]),_:1}),K(Su),K(ch,{class:"d-flex py-0"},{default:We(()=>[l[5]||(l[5]=Fi("div",{class:"text-overline text-disabled"},"editing",-1)),K(Ud),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"error",onClick:r},{default:We(()=>[K(Ui,null,{default:We(()=>l[3]||(l[3]=[gi("mdi-cancel")])),_:1})]),_:1}),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"success",onClick:o},{default:We(()=>[K(Ui,null,{default:We(()=>l[4]||(l[4]=[gi("mdi-check")])),_:1})]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"])}}}),BOt=Xs(FOt,[["__scopeId","data-v-7967a298"]]),VOt=Dt({__name:"ComponentSecretEditor",props:WS({component:{},instance:{},initialSecrets:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const{secretsStore:e}=_h(),t=pf(n,"modelValue"),i=dr({...n.initialSecrets}),s=async()=>{t.value=!1,await Vi(),Object.assign(i,n.initialSecrets)},r=async()=>{const o=N2e(i,n.component.secrets);await Vi(),t.value=!1,e.setSecrets(n.instance,o)};return(o,a)=>{const l=KIe;return xe(),ot(i_,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=c=>t.value=c),contained:"",opacity:1,width:"100%",height:"100%",class:"nowheel nodrag",transition:!1,style:{"border-radius":"6px"}},{default:We(()=>[K(wc,{height:"100%",variant:"flat",color:o.component.meta.color??"#2d2d2d"},{default:We(()=>[K(vf,{class:"d-flex flex-column ga-2 px-2 py-2",style:{height:"calc(100% - 53px)",overflow:"scroll"}},{default:We(()=>[(xe(!0),gt(Ct,null,Ka(o.component.secrets,(c,d)=>(xe(),ot(l,{key:d,modelValue:le(i)[d],"onUpdate:modelValue":u=>le(i)[d]=u,name:d,arg:c,instance:o.instance,"is-secret":""},null,8,["modelValue","onUpdate:modelValue","name","arg","instance"]))),128))]),_:1}),K(Su),K(ch,{class:"d-flex py-0"},{default:We(()=>[a[3]||(a[3]=Fi("div",{class:"text-overline text-disabled"},"editing secrets",-1)),K(Ud),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"error",onClick:s},{default:We(()=>[K(Ui,null,{default:We(()=>a[1]||(a[1]=[gi("mdi-cancel")])),_:1})]),_:1}),K(ps,{size:"small",variant:"tonal",class:"toolbar-button",color:"success",onClick:r},{default:We(()=>[K(Ui,null,{default:We(()=>a[2]||(a[2]=[gi("mdi-check")])),_:1})]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue"])}}}),HOt=Xs(VOt,[["__scopeId","data-v-c26aaf1f"]]);function s3(n){return BS()?(ir(n),!0):!1}function Rg(n){return typeof n=="function"?n():le(n)}const WOt=typeof window<"u"&&typeof document<"u",UOt=n=>typeof n<"u",$Ot=Object.prototype.toString,zOt=n=>$Ot.call(n)==="[object Object]",GOt=()=>{};function qOt(n,e){function t(...i){return new Promise((s,r)=>{Promise.resolve(n(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(s).catch(r)})}return t}const A2e=n=>n();function KOt(n=A2e){const e=Me(!0);function t(){e.value=!1}function i(){e.value=!0}const s=(...r)=>{e.value&&n(...r)};return{isActive:VS(e),pause:t,resume:i,eventFilter:s}}function Fme(n,e=!1,t="Timeout"){return new Promise((i,s)=>{setTimeout(e?()=>s(t):i,n)})}function jOt(n,e,t={}){const{eventFilter:i=A2e,...s}=t;return rt(n,qOt(i,e),s)}function Xy(n,e,t={}){const{eventFilter:i,...s}=t,{eventFilter:r,pause:o,resume:a,isActive:l}=KOt(i);return{stop:jOt(n,e,{...s,eventFilter:r}),pause:o,resume:a,isActive:l}}function YOt(n,e={}){if(!pi(n))return dR(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=eEe(()=>({get(){return n.value[i]},set(s){var r;if((r=Rg(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function oX(n,e=!1){function t(u,{flush:h="sync",deep:f=!1,timeout:g,throwOnTimeout:p}={}){let m=null;const _=[new Promise(b=>{m=rt(n,S=>{u(S)!==e&&(m?.(),b(S))},{flush:h,deep:f,immediate:!0})})];return g!=null&&_.push(Fme(g,p).then(()=>Rg(n)).finally(()=>m?.())),Promise.race(_)}function i(u,h){if(!pi(u))return t(S=>S===u,h);const{flush:f="sync",deep:g=!1,timeout:p,throwOnTimeout:m}=h??{};let v=null;const b=[new Promise(S=>{v=rt([n,u],([y,C])=>{e!==(y===C)&&(v?.(),S(y))},{flush:f,deep:g,immediate:!0})})];return p!=null&&b.push(Fme(p,m).then(()=>Rg(n)).finally(()=>(v?.(),Rg(n)))),Promise.race(b)}function s(u){return t(h=>!!h,u)}function r(u){return i(null,u)}function o(u){return i(void 0,u)}function a(u){return t(Number.isNaN,u)}function l(u,h){return t(f=>{const g=Array.from(f);return g.includes(u)||g.includes(Rg(u))},h)}function c(u){return d(1,u)}function d(u=1,h){let f=-1;return t(()=>(f+=1,f>=u),h)}return Array.isArray(Rg(n))?{toMatch:t,toContains:l,changed:c,changedTimes:d,get not(){return oX(n,!e)}}:{toMatch:t,toBe:i,toBeTruthy:s,toBeNull:r,toBeNaN:a,toBeUndefined:o,changed:c,changedTimes:d,get not(){return oX(n,!e)}}}function aX(n){return oX(n)}function QOt(n){var e;const t=Rg(n);return(e=t?.$el)!=null?e:t}const O2e=WOt?window:void 0;function M2e(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=O2e):[e,t,i,s]=n,!e)return GOt;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,u,h,f)=>(d.addEventListener(u,h,f),()=>d.removeEventListener(u,h,f)),l=rt(()=>[QOt(e),Rg(s)],([d,u])=>{if(o(),!d)return;const h=zOt(u)?{...u}:u;r.push(...t.flatMap(f=>i.map(g=>a(d,f,g,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return s3(c),c}function XOt(n){return typeof n=="function"?n:typeof n=="string"?e=>e.key===n:Array.isArray(n)?e=>n.includes(e.key):()=>!0}function Bme(...n){let e,t,i={};n.length===3?(e=n[0],t=n[1],i=n[2]):n.length===2?typeof n[1]=="object"?(e=!0,t=n[0],i=n[1]):(e=n[0],t=n[1]):(e=!0,t=n[0]);const{target:s=O2e,eventName:r="keydown",passive:o=!1,dedupe:a=!1}=i,l=XOt(e);return M2e(s,r,d=>{d.repeat&&Rg(a)||l(d)&&t(d)},o)}function ZOt(n){return JSON.parse(JSON.stringify(n))}function ZW(n,e,t,i={}){var s,r,o;const{clone:a=!1,passive:l=!1,eventName:c,deep:d=!1,defaultValue:u,shouldEmit:h}=i,f=wr(),g=t||f?.emit||((s=f?.$emit)==null?void 0:s.bind(f))||((o=(r=f?.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(f?.proxy));let p=c;e||(e="modelValue"),p=p||`update:${e.toString()}`;const m=b=>a?typeof a=="function"?a(b):ZOt(b):b,v=()=>UOt(n[e])?m(n[e]):u,_=b=>{h?h(b)&&g(p,b):g(p,b)};if(l){const b=v(),S=Me(b);let y=!1;return rt(()=>n[e],C=>{y||(y=!0,S.value=m(C),Vi(()=>y=!1))}),rt(S,C=>{!y&&(C!==n[e]||d)&&_(C)},{deep:d}),S}else return ue({get(){return v()},set(b){_(b)}})}var JOt={value:()=>{}};function r3(){for(var n=0,e=arguments.length,t={},i;n<e;++n){if(!(i=arguments[n]+"")||i in t||/[\s.]/.test(i))throw new Error("illegal type: "+i);t[i]=[]}return new IO(t)}function IO(n){this._=n}function eMt(n,e){return n.trim().split(/^|\s+/).map(function(t){var i="",s=t.indexOf(".");if(s>=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}IO.prototype=r3.prototype={constructor:IO,on:function(n,e){var t=this._,i=eMt(n+"",t),s,r=-1,o=i.length;if(arguments.length<2){for(;++r<o;)if((s=(n=i[r]).type)&&(s=tMt(t[s],n.name)))return s;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++r<o;)if(s=(n=i[r]).type)t[s]=Vme(t[s],n.name,e);else if(e==null)for(s in t)t[s]=Vme(t[s],n.name,null);return this},copy:function(){var n={},e=this._;for(var t in e)n[t]=e[t].slice();return new IO(n)},call:function(n,e){if((s=arguments.length-2)>0)for(var t=new Array(s),i=0,s,r;i<s;++i)t[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(r=this._[n],i=0,s=r.length;i<s;++i)r[i].value.apply(e,t)},apply:function(n,e,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var i=this._[n],s=0,r=i.length;s<r;++s)i[s].value.apply(e,t)}};function tMt(n,e){for(var t=0,i=n.length,s;t<i;++t)if((s=n[t]).name===e)return s.value}function Vme(n,e,t){for(var i=0,s=n.length;i<s;++i)if(n[i].name===e){n[i]=JOt,n=n.slice(0,i).concat(n.slice(i+1));break}return t!=null&&n.push({name:e,value:t}),n}var lX="http://www.w3.org/1999/xhtml";const Hme={svg:"http://www.w3.org/2000/svg",xhtml:lX,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function o3(n){var e=n+="",t=e.indexOf(":");return t>=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),Hme.hasOwnProperty(e)?{space:Hme[e],local:n}:n}function iMt(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===lX&&e.documentElement.namespaceURI===lX?e.createElement(n):e.createElementNS(t,n)}}function nMt(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function P2e(n){var e=o3(n);return(e.local?nMt:iMt)(e)}function sMt(){}function fse(n){return n==null?sMt:function(){return this.querySelector(n)}}function rMt(n){typeof n!="function"&&(n=fse(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=new Array(o),l,c,d=0;d<o;++d)(l=r[d])&&(c=n.call(l,l.__data__,d,r))&&("__data__"in l&&(c.__data__=l.__data__),a[d]=c);return new sd(i,this._parents)}function oMt(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function aMt(){return[]}function F2e(n){return n==null?aMt:function(){return this.querySelectorAll(n)}}function lMt(n){return function(){return oMt(n.apply(this,arguments))}}function cMt(n){typeof n=="function"?n=lMt(n):n=F2e(n);for(var e=this._groups,t=e.length,i=[],s=[],r=0;r<t;++r)for(var o=e[r],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(i.push(n.call(l,l.__data__,c,o)),s.push(l));return new sd(i,s)}function B2e(n){return function(){return this.matches(n)}}function V2e(n){return function(e){return e.matches(n)}}var dMt=Array.prototype.find;function uMt(n){return function(){return dMt.call(this.children,n)}}function hMt(){return this.firstElementChild}function fMt(n){return this.select(n==null?hMt:uMt(typeof n=="function"?n:V2e(n)))}var gMt=Array.prototype.filter;function pMt(){return Array.from(this.children)}function mMt(n){return function(){return gMt.call(this.children,n)}}function _Mt(n){return this.selectAll(n==null?pMt:mMt(typeof n=="function"?n:V2e(n)))}function vMt(n){typeof n!="function"&&(n=B2e(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=[],l,c=0;c<o;++c)(l=r[c])&&n.call(l,l.__data__,c,r)&&a.push(l);return new sd(i,this._parents)}function H2e(n){return new Array(n.length)}function bMt(){return new sd(this._enter||this._groups.map(H2e),this._parents)}function NF(n,e){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=e}NF.prototype={constructor:NF,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,e){return this._parent.insertBefore(n,e)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function SMt(n){return function(){return n}}function yMt(n,e,t,i,s,r){for(var o=0,a,l=e.length,c=r.length;o<c;++o)(a=e[o])?(a.__data__=r[o],i[o]=a):t[o]=new NF(n,r[o]);for(;o<l;++o)(a=e[o])&&(s[o]=a)}function CMt(n,e,t,i,s,r,o){var a,l,c=new Map,d=e.length,u=r.length,h=new Array(d),f;for(a=0;a<d;++a)(l=e[a])&&(h[a]=f=o.call(l,l.__data__,a,e)+"",c.has(f)?s[a]=l:c.set(f,l));for(a=0;a<u;++a)f=o.call(n,r[a],a,r)+"",(l=c.get(f))?(i[a]=l,l.__data__=r[a],c.delete(f)):t[a]=new NF(n,r[a]);for(a=0;a<d;++a)(l=e[a])&&c.get(h[a])===l&&(s[a]=l)}function wMt(n){return n.__data__}function EMt(n,e){if(!arguments.length)return Array.from(this,wMt);var t=e?CMt:yMt,i=this._parents,s=this._groups;typeof n!="function"&&(n=SMt(n));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var d=i[c],u=s[c],h=u.length,f=TMt(n.call(d,d&&d.__data__,c,i)),g=f.length,p=a[c]=new Array(g),m=o[c]=new Array(g),v=l[c]=new Array(h);t(d,u,p,m,v,f,e);for(var _=0,b=0,S,y;_<g;++_)if(S=p[_]){for(_>=b&&(b=_+1);!(y=m[b])&&++b<g;);S._next=y||null}}return o=new sd(o,i),o._enter=a,o._exit=l,o}function TMt(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function IMt(){return new sd(this._exit||this._groups.map(H2e),this._parents)}function LMt(n,e,t){var i=this.enter(),s=this,r=this.exit();return typeof n=="function"?(i=n(i),i&&(i=i.selection())):i=i.append(n+""),e!=null&&(s=e(s),s&&(s=s.selection())),t==null?r.remove():t(r),i&&s?i.merge(s).order():s}function xMt(n){for(var e=n.selection?n.selection():n,t=this._groups,i=e._groups,s=t.length,r=i.length,o=Math.min(s,r),a=new Array(s),l=0;l<o;++l)for(var c=t[l],d=i[l],u=c.length,h=a[l]=new Array(u),f,g=0;g<u;++g)(f=c[g]||d[g])&&(h[g]=f);for(;l<s;++l)a[l]=t[l];return new sd(a,this._parents)}function RMt(){for(var n=this._groups,e=-1,t=n.length;++e<t;)for(var i=n[e],s=i.length-1,r=i[s],o;--s>=0;)(o=i[s])&&(r&&o.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(o,r),r=o);return this}function DMt(n){n||(n=NMt);function e(u,h){return u&&h?n(u.__data__,h.__data__):!u-!h}for(var t=this._groups,i=t.length,s=new Array(i),r=0;r<i;++r){for(var o=t[r],a=o.length,l=s[r]=new Array(a),c,d=0;d<a;++d)(c=o[d])&&(l[d]=c);l.sort(e)}return new sd(s,this._parents).order()}function NMt(n,e){return n<e?-1:n>e?1:n>=e?0:NaN}function kMt(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function AMt(){return Array.from(this)}function OMt(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var i=n[e],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null}function MMt(){let n=0;for(const e of this)++n;return n}function PMt(){return!this.node()}function FMt(n){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var s=e[t],r=0,o=s.length,a;r<o;++r)(a=s[r])&&n.call(a,a.__data__,r,s);return this}function BMt(n){return function(){this.removeAttribute(n)}}function VMt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function HMt(n,e){return function(){this.setAttribute(n,e)}}function WMt(n,e){return function(){this.setAttributeNS(n.space,n.local,e)}}function UMt(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttribute(n):this.setAttribute(n,t)}}function $Mt(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function zMt(n,e){var t=o3(n);if(arguments.length<2){var i=this.node();return t.local?i.getAttributeNS(t.space,t.local):i.getAttribute(t)}return this.each((e==null?t.local?VMt:BMt:typeof e=="function"?t.local?$Mt:UMt:t.local?WMt:HMt)(t,e))}function W2e(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function GMt(n){return function(){this.style.removeProperty(n)}}function qMt(n,e,t){return function(){this.style.setProperty(n,e,t)}}function KMt(n,e,t){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function jMt(n,e,t){return arguments.length>1?this.each((e==null?GMt:typeof e=="function"?KMt:qMt)(n,e,t??"")):VE(this.node(),n)}function VE(n,e){return n.style.getPropertyValue(e)||W2e(n).getComputedStyle(n,null).getPropertyValue(e)}function YMt(n){return function(){delete this[n]}}function QMt(n,e){return function(){this[n]=e}}function XMt(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function ZMt(n,e){return arguments.length>1?this.each((e==null?YMt:typeof e=="function"?XMt:QMt)(n,e)):this.node()[n]}function U2e(n){return n.trim().split(/^|\s+/)}function gse(n){return n.classList||new $2e(n)}function $2e(n){this._node=n,this._names=U2e(n.getAttribute("class")||"")}$2e.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function z2e(n,e){for(var t=gse(n),i=-1,s=e.length;++i<s;)t.add(e[i])}function G2e(n,e){for(var t=gse(n),i=-1,s=e.length;++i<s;)t.remove(e[i])}function JMt(n){return function(){z2e(this,n)}}function ePt(n){return function(){G2e(this,n)}}function tPt(n,e){return function(){(e.apply(this,arguments)?z2e:G2e)(this,n)}}function iPt(n,e){var t=U2e(n+"");if(arguments.length<2){for(var i=gse(this.node()),s=-1,r=t.length;++s<r;)if(!i.contains(t[s]))return!1;return!0}return this.each((typeof e=="function"?tPt:e?JMt:ePt)(t,e))}function nPt(){this.textContent=""}function sPt(n){return function(){this.textContent=n}}function rPt(n){return function(){var e=n.apply(this,arguments);this.textContent=e??""}}function oPt(n){return arguments.length?this.each(n==null?nPt:(typeof n=="function"?rPt:sPt)(n)):this.node().textContent}function aPt(){this.innerHTML=""}function lPt(n){return function(){this.innerHTML=n}}function cPt(n){return function(){var e=n.apply(this,arguments);this.innerHTML=e??""}}function dPt(n){return arguments.length?this.each(n==null?aPt:(typeof n=="function"?cPt:lPt)(n)):this.node().innerHTML}function uPt(){this.nextSibling&&this.parentNode.appendChild(this)}function hPt(){return this.each(uPt)}function fPt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gPt(){return this.each(fPt)}function pPt(n){var e=typeof n=="function"?n:P2e(n);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function mPt(){return null}function _Pt(n,e){var t=typeof n=="function"?n:P2e(n),i=e==null?mPt:typeof e=="function"?e:fse(e);return this.select(function(){return this.insertBefore(t.apply(this,arguments),i.apply(this,arguments)||null)})}function vPt(){var n=this.parentNode;n&&n.removeChild(this)}function bPt(){return this.each(vPt)}function SPt(){var n=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function yPt(){var n=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function CPt(n){return this.select(n?yPt:SPt)}function wPt(n){return arguments.length?this.property("__data__",n):this.node().__data__}function EPt(n){return function(e){n.call(this,e,this.__data__)}}function TPt(n){return n.trim().split(/^|\s+/).map(function(e){var t="",i=e.indexOf(".");return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function IPt(n){return function(){var e=this.__on;if(e){for(var t=0,i=-1,s=e.length,r;t<s;++t)r=e[t],(!n.type||r.type===n.type)&&r.name===n.name?this.removeEventListener(r.type,r.listener,r.options):e[++i]=r;++i?e.length=i:delete this.__on}}}function LPt(n,e,t){return function(){var i=this.__on,s,r=EPt(e);if(i){for(var o=0,a=i.length;o<a;++o)if((s=i[o]).type===n.type&&s.name===n.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=r,s.options=t),s.value=e;return}}this.addEventListener(n.type,r,t),s={type:n.type,name:n.name,value:e,listener:r,options:t},i?i.push(s):this.__on=[s]}}function xPt(n,e,t){var i=TPt(n+""),s,r=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,d;l<c;++l)for(s=0,d=a[l];s<r;++s)if((o=i[s]).type===d.type&&o.name===d.name)return d.value}return}for(a=e?LPt:IPt,s=0;s<r;++s)this.each(a(i[s],e,t));return this}function q2e(n,e,t){var i=W2e(n),s=i.CustomEvent;typeof s=="function"?s=new s(e,t):(s=i.document.createEvent("Event"),t?(s.initEvent(e,t.bubbles,t.cancelable),s.detail=t.detail):s.initEvent(e,!1,!1)),n.dispatchEvent(s)}function RPt(n,e){return function(){return q2e(this,n,e)}}function DPt(n,e){return function(){return q2e(this,n,e.apply(this,arguments))}}function NPt(n,e){return this.each((typeof e=="function"?DPt:RPt)(n,e))}function*kPt(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var i=n[e],s=0,r=i.length,o;s<r;++s)(o=i[s])&&(yield o)}var K2e=[null];function sd(n,e){this._groups=n,this._parents=e}function ED(){return new sd([[document.documentElement]],K2e)}function APt(){return this}sd.prototype=ED.prototype={constructor:sd,select:rMt,selectAll:cMt,selectChild:fMt,selectChildren:_Mt,filter:vMt,data:EMt,enter:bMt,exit:IMt,join:LMt,merge:xMt,selection:APt,order:RMt,sort:DMt,call:kMt,nodes:AMt,node:OMt,size:MMt,empty:PMt,each:FMt,attr:zMt,style:jMt,property:ZMt,classed:iPt,text:oPt,html:dPt,raise:hPt,lower:gPt,append:pPt,insert:_Pt,remove:bPt,clone:CPt,datum:wPt,on:xPt,dispatch:NPt,[Symbol.iterator]:kPt};function Lu(n){return typeof n=="string"?new sd([[document.querySelector(n)]],[document.documentElement]):new sd([[n]],K2e)}function OPt(n){let e;for(;e=n.sourceEvent;)n=e;return n}function $h(n,e){if(n=OPt(n),e===void 0&&(e=n.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var i=t.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var s=e.getBoundingClientRect();return[n.clientX-s.left-e.clientLeft,n.clientY-s.top-e.clientTop]}}return[n.pageX,n.pageY]}const MPt={passive:!1},Xx={capture:!0,passive:!1};function JW(n){n.stopImmediatePropagation()}function Mw(n){n.preventDefault(),n.stopImmediatePropagation()}function j2e(n){var e=n.document.documentElement,t=Lu(n).on("dragstart.drag",Mw,Xx);"onselectstart"in e?t.on("selectstart.drag",Mw,Xx):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Y2e(n,e){var t=n.document.documentElement,i=Lu(n).on("dragstart.drag",null);e&&(i.on("click.drag",Mw,Xx),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in t?i.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}const rA=n=>()=>n;function cX(n,{sourceEvent:e,subject:t,target:i,identifier:s,active:r,x:o,y:a,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}cX.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function PPt(n){return!n.ctrlKey&&!n.button}function FPt(){return this.parentNode}function BPt(n,e){return e??{x:n.x,y:n.y}}function VPt(){return navigator.maxTouchPoints||"ontouchstart"in this}function HPt(){var n=PPt,e=FPt,t=BPt,i=VPt,s={},r=r3("start","drag","end"),o=0,a,l,c,d,u=0;function h(S){S.on("mousedown.drag",f).filter(i).on("touchstart.drag",m).on("touchmove.drag",v,MPt).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(S,y){if(!(d||!n.call(this,S,y))){var C=b(this,e.call(this,S,y),S,y,"mouse");C&&(Lu(S.view).on("mousemove.drag",g,Xx).on("mouseup.drag",p,Xx),j2e(S.view),JW(S),c=!1,a=S.clientX,l=S.clientY,C("start",S))}}function g(S){if(Mw(S),!c){var y=S.clientX-a,C=S.clientY-l;c=y*y+C*C>u}s.mouse("drag",S)}function p(S){Lu(S.view).on("mousemove.drag mouseup.drag",null),Y2e(S.view,c),Mw(S),s.mouse("end",S)}function m(S,y){if(n.call(this,S,y)){var C=S.changedTouches,T=e.call(this,S,y),w=C.length,I,R;for(I=0;I<w;++I)(R=b(this,T,S,y,C[I].identifier,C[I]))&&(JW(S),R("start",S,C[I]))}}function v(S){var y=S.changedTouches,C=y.length,T,w;for(T=0;T<C;++T)(w=s[y[T].identifier])&&(Mw(S),w("drag",S,y[T]))}function _(S){var y=S.changedTouches,C=y.length,T,w;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),T=0;T<C;++T)(w=s[y[T].identifier])&&(JW(S),w("end",S,y[T]))}function b(S,y,C,T,w,I){var R=r.copy(),D=$h(I||C,y),L,k,x;if((x=t.call(S,new cX("beforestart",{sourceEvent:C,target:h,identifier:w,active:o,x:D[0],y:D[1],dx:0,dy:0,dispatch:R}),T))!=null)return L=x.x-D[0]||0,k=x.y-D[1]||0,function N(A,B,V){var O=D,M;switch(A){case"start":s[w]=N,M=o++;break;case"end":delete s[w],--o;case"drag":D=$h(V||B,y),M=o;break}R.call(A,S,new cX(A,{sourceEvent:B,subject:x,target:h,identifier:w,active:M,x:D[0]+L,y:D[1]+k,dx:D[0]-O[0],dy:D[1]-O[1],dispatch:R}),T)}}return h.filter=function(S){return arguments.length?(n=typeof S=="function"?S:rA(!!S),h):n},h.container=function(S){return arguments.length?(e=typeof S=="function"?S:rA(S),h):e},h.subject=function(S){return arguments.length?(t=typeof S=="function"?S:rA(S),h):t},h.touchable=function(S){return arguments.length?(i=typeof S=="function"?S:rA(!!S),h):i},h.on=function(){var S=r.on.apply(r,arguments);return S===r?h:S},h.clickDistance=function(S){return arguments.length?(u=(S=+S)*S,h):Math.sqrt(u)},h}function pse(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function Q2e(n,e){var t=Object.create(n.prototype);for(var i in e)t[i]=e[i];return t}function TD(){}var Zx=.7,kF=1/Zx,Pw="\\s*([+-]?\\d+)\\s*",Jx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WPt=/^#([0-9a-f]{3,8})$/,UPt=new RegExp(`^rgb\\(${Pw},${Pw},${Pw}\\)$`),$Pt=new RegExp(`^rgb\\(${ff},${ff},${ff}\\)$`),zPt=new RegExp(`^rgba\\(${Pw},${Pw},${Pw},${Jx}\\)$`),GPt=new RegExp(`^rgba\\(${ff},${ff},${ff},${Jx}\\)$`),qPt=new RegExp(`^hsl\\(${Jx},${ff},${ff}\\)$`),KPt=new RegExp(`^hsla\\(${Jx},${ff},${ff},${Jx}\\)$`),Wme={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};pse(TD,eR,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Ume,formatHex:Ume,formatHex8:jPt,formatHsl:YPt,formatRgb:$me,toString:$me});function Ume(){return this.rgb().formatHex()}function jPt(){return this.rgb().formatHex8()}function YPt(){return X2e(this).formatHsl()}function $me(){return this.rgb().formatRgb()}function eR(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=WPt.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?zme(e):t===3?new dc(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?oA(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?oA(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=UPt.exec(n))?new dc(e[1],e[2],e[3],1):(e=$Pt.exec(n))?new dc(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=zPt.exec(n))?oA(e[1],e[2],e[3],e[4]):(e=GPt.exec(n))?oA(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qPt.exec(n))?Kme(e[1],e[2]/100,e[3]/100,1):(e=KPt.exec(n))?Kme(e[1],e[2]/100,e[3]/100,e[4]):Wme.hasOwnProperty(n)?zme(Wme[n]):n==="transparent"?new dc(NaN,NaN,NaN,0):null}function zme(n){return new dc(n>>16&255,n>>8&255,n&255,1)}function oA(n,e,t,i){return i<=0&&(n=e=t=NaN),new dc(n,e,t,i)}function QPt(n){return n instanceof TD||(n=eR(n)),n?(n=n.rgb(),new dc(n.r,n.g,n.b,n.opacity)):new dc}function dX(n,e,t,i){return arguments.length===1?QPt(n):new dc(n,e,t,i??1)}function dc(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}pse(dc,dX,Q2e(TD,{brighter(n){return n=n==null?kF:Math.pow(kF,n),new dc(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?Zx:Math.pow(Zx,n),new dc(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new dc(Ub(this.r),Ub(this.g),Ub(this.b),AF(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gme,formatHex:Gme,formatHex8:XPt,formatRgb:qme,toString:qme}));function Gme(){return`#${_b(this.r)}${_b(this.g)}${_b(this.b)}`}function XPt(){return`#${_b(this.r)}${_b(this.g)}${_b(this.b)}${_b((isNaN(this.opacity)?1:this.opacity)*255)}`}function qme(){const n=AF(this.opacity);return`${n===1?"rgb(":"rgba("}${Ub(this.r)}, ${Ub(this.g)}, ${Ub(this.b)}${n===1?")":`, ${n})`}`}function AF(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Ub(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function _b(n){return n=Ub(n),(n<16?"0":"")+n.toString(16)}function Kme(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new xu(n,e,t,i)}function X2e(n){if(n instanceof xu)return new xu(n.h,n.s,n.l,n.opacity);if(n instanceof TD||(n=eR(n)),!n)return new xu;if(n instanceof xu)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),r=Math.max(e,t,i),o=NaN,a=r-s,l=(r+s)/2;return a?(e===r?o=(t-i)/a+(t<i)*6:t===r?o=(i-e)/a+2:o=(e-t)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new xu(o,a,l,n.opacity)}function ZPt(n,e,t,i){return arguments.length===1?X2e(n):new xu(n,e,t,i??1)}function xu(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}pse(xu,ZPt,Q2e(TD,{brighter(n){return n=n==null?kF:Math.pow(kF,n),new xu(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?Zx:Math.pow(Zx,n),new xu(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new dc(eU(n>=240?n-240:n+120,s,i),eU(n,s,i),eU(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new xu(jme(this.h),aA(this.s),aA(this.l),AF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=AF(this.opacity);return`${n===1?"hsl(":"hsla("}${jme(this.h)}, ${aA(this.s)*100}%, ${aA(this.l)*100}%${n===1?")":`, ${n})`}`}}));function jme(n){return n=(n||0)%360,n<0?n+360:n}function aA(n){return Math.max(0,Math.min(1,n||0))}function eU(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const Z2e=n=>()=>n;function JPt(n,e){return function(t){return n+t*e}}function e2t(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function t2t(n){return(n=+n)==1?J2e:function(e,t){return t-e?e2t(e,t,n):Z2e(isNaN(e)?t:e)}}function J2e(n,e){var t=e-n;return t?JPt(n,t):Z2e(isNaN(n)?e:n)}const Yme=function n(e){var t=t2t(e);function i(s,r){var o=t((s=dX(s)).r,(r=dX(r)).r),a=t(s.g,r.g),l=t(s.b,r.b),c=J2e(s.opacity,r.opacity);return function(d){return s.r=o(d),s.g=a(d),s.b=l(d),s.opacity=c(d),s+""}}return i.gamma=n,i}(1);function am(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}var uX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tU=new RegExp(uX.source,"g");function i2t(n){return function(){return n}}function n2t(n){return function(e){return n(e)+""}}function s2t(n,e){var t=uX.lastIndex=tU.lastIndex=0,i,s,r,o=-1,a=[],l=[];for(n=n+"",e=e+"";(i=uX.exec(n))&&(s=tU.exec(e));)(r=s.index)>t&&(r=e.slice(t,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:am(i,s)})),t=tU.lastIndex;return t<e.length&&(r=e.slice(t),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?n2t(l[0].x):i2t(e):(e=l.length,function(c){for(var d=0,u;d<e;++d)a[(u=l[d]).i]=u.x(c);return a.join("")})}var Qme=180/Math.PI,hX={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eFe(n,e,t,i,s,r){var o,a,l;return(o=Math.sqrt(n*n+e*e))&&(n/=o,e/=o),(l=n*t+e*i)&&(t-=n*l,i-=e*l),(a=Math.sqrt(t*t+i*i))&&(t/=a,i/=a,l/=a),n*i<e*t&&(n=-n,e=-e,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(e,n)*Qme,skewX:Math.atan(l)*Qme,scaleX:o,scaleY:a}}var lA;function r2t(n){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return e.isIdentity?hX:eFe(e.a,e.b,e.c,e.d,e.e,e.f)}function o2t(n){return n==null||(lA||(lA=document.createElementNS("http://www.w3.org/2000/svg","g")),lA.setAttribute("transform",n),!(n=lA.transform.baseVal.consolidate()))?hX:(n=n.matrix,eFe(n.a,n.b,n.c,n.d,n.e,n.f))}function tFe(n,e,t,i){function s(c){return c.length?c.pop()+" ":""}function r(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push("translate(",null,e,null,t);g.push({i:p-4,x:am(c,u)},{i:p-2,x:am(d,h)})}else(u||h)&&f.push("translate("+u+e+h+t)}function o(c,d,u,h){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(s(u)+"rotate(",null,i)-2,x:am(c,d)})):d&&u.push(s(u)+"rotate("+d+i)}function a(c,d,u,h){c!==d?h.push({i:u.push(s(u)+"skewX(",null,i)-2,x:am(c,d)}):d&&u.push(s(u)+"skewX("+d+i)}function l(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push(s(f)+"scale(",null,",",null,")");g.push({i:p-4,x:am(c,u)},{i:p-2,x:am(d,h)})}else(u!==1||h!==1)&&f.push(s(f)+"scale("+u+","+h+")")}return function(c,d){var u=[],h=[];return c=n(c),d=n(d),r(c.translateX,c.translateY,d.translateX,d.translateY,u,h),o(c.rotate,d.rotate,u,h),a(c.skewX,d.skewX,u,h),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var g=-1,p=h.length,m;++g<p;)u[(m=h[g]).i]=m.x(f);return u.join("")}}}var a2t=tFe(r2t,"px, ","px)","deg)"),l2t=tFe(o2t,", ",")",")"),c2t=1e-12;function Xme(n){return((n=Math.exp(n))+1/n)/2}function d2t(n){return((n=Math.exp(n))-1/n)/2}function u2t(n){return((n=Math.exp(2*n))-1)/(n+1)}const h2t=function n(e,t,i){function s(r,o){var a=r[0],l=r[1],c=r[2],d=o[0],u=o[1],h=o[2],f=d-a,g=u-l,p=f*f+g*g,m,v;if(p<c2t)v=Math.log(h/c)/e,m=function(T){return[a+T*f,l+T*g,c*Math.exp(e*T*v)]};else{var _=Math.sqrt(p),b=(h*h-c*c+i*p)/(2*c*t*_),S=(h*h-c*c-i*p)/(2*h*t*_),y=Math.log(Math.sqrt(b*b+1)-b),C=Math.log(Math.sqrt(S*S+1)-S);v=(C-y)/e,m=function(T){var w=T*v,I=Xme(y),R=c/(t*_)*(I*u2t(e*w+y)-d2t(y));return[a+R*f,l+R*g,c*I/Xme(e*w+y)]}}return m.duration=v*1e3*e/Math.SQRT2,m}return s.rho=function(r){var o=Math.max(.001,+r),a=o*o,l=a*a;return n(o,a,l)},s}(Math.SQRT2,2,4);var HE=0,LT=0,k1=0,iFe=1e3,OF,xT,MF=0,OS=0,a3=0,tR=typeof performance=="object"&&performance.now?performance:Date,nFe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function mse(){return OS||(nFe(f2t),OS=tR.now()+a3)}function f2t(){OS=0}function PF(){this._call=this._time=this._next=null}PF.prototype=sFe.prototype={constructor:PF,restart:function(n,e,t){if(typeof n!="function")throw new TypeError("callback is not a function");t=(t==null?mse():+t)+(e==null?0:+e),!this._next&&xT!==this&&(xT?xT._next=this:OF=this,xT=this),this._call=n,this._time=t,fX()},stop:function(){this._call&&(this._call=null,this._time=1/0,fX())}};function sFe(n,e,t){var i=new PF;return i.restart(n,e,t),i}function g2t(){mse(),++HE;for(var n=OF,e;n;)(e=OS-n._time)>=0&&n._call.call(void 0,e),n=n._next;--HE}function Zme(){OS=(MF=tR.now())+a3,HE=LT=0;try{g2t()}finally{HE=0,m2t(),OS=0}}function p2t(){var n=tR.now(),e=n-MF;e>iFe&&(a3-=e,MF=n)}function m2t(){for(var n,e=OF,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:OF=t);xT=n,fX(i)}function fX(n){if(!HE){LT&&(LT=clearTimeout(LT));var e=n-OS;e>24?(n<1/0&&(LT=setTimeout(Zme,n-tR.now()-a3)),k1&&(k1=clearInterval(k1))):(k1||(MF=tR.now(),k1=setInterval(p2t,iFe)),HE=1,nFe(Zme))}}function Jme(n,e,t){var i=new PF;return e=e==null?0:+e,i.restart(s=>{i.stop(),n(s+e)},e,t),i}var _2t=r3("start","end","cancel","interrupt"),v2t=[],rFe=0,e_e=1,gX=2,LO=3,t_e=4,pX=5,xO=6;function l3(n,e,t,i,s,r){var o=n.__transition;if(!o)n.__transition={};else if(t in o)return;b2t(n,t,{name:e,index:i,group:s,on:_2t,tween:v2t,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:rFe})}function _se(n,e){var t=vh(n,e);if(t.state>rFe)throw new Error("too late; already scheduled");return t}function zf(n,e){var t=vh(n,e);if(t.state>LO)throw new Error("too late; already running");return t}function vh(n,e){var t=n.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function b2t(n,e,t){var i=n.__transition,s;i[e]=t,t.timer=sFe(r,0,t.time);function r(c){t.state=e_e,t.timer.restart(o,t.delay,t.time),t.delay<=c&&o(c-t.delay)}function o(c){var d,u,h,f;if(t.state!==e_e)return l();for(d in i)if(f=i[d],f.name===t.name){if(f.state===LO)return Jme(o);f.state===t_e?(f.state=xO,f.timer.stop(),f.on.call("interrupt",n,n.__data__,f.index,f.group),delete i[d]):+d<e&&(f.state=xO,f.timer.stop(),f.on.call("cancel",n,n.__data__,f.index,f.group),delete i[d])}if(Jme(function(){t.state===LO&&(t.state=t_e,t.timer.restart(a,t.delay,t.time),a(c))}),t.state=gX,t.on.call("start",n,n.__data__,t.index,t.group),t.state===gX){for(t.state=LO,s=new Array(h=t.tween.length),d=0,u=-1;d<h;++d)(f=t.tween[d].value.call(n,n.__data__,t.index,t.group))&&(s[++u]=f);s.length=u+1}}function a(c){for(var d=c<t.duration?t.ease.call(null,c/t.duration):(t.timer.restart(l),t.state=pX,1),u=-1,h=s.length;++u<h;)s[u].call(n,d);t.state===pX&&(t.on.call("end",n,n.__data__,t.index,t.group),l())}function l(){t.state=xO,t.timer.stop(),delete i[e];for(var c in i)return;delete n.__transition}}function RO(n,e){var t=n.__transition,i,s,r=!0,o;if(t){e=e==null?null:e+"";for(o in t){if((i=t[o]).name!==e){r=!1;continue}s=i.state>gX&&i.state<pX,i.state=xO,i.timer.stop(),i.on.call(s?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete t[o]}r&&delete n.__transition}}function S2t(n){return this.each(function(){RO(this,n)})}function y2t(n,e){var t,i;return function(){var s=zf(this,n),r=s.tween;if(r!==t){i=t=r;for(var o=0,a=i.length;o<a;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}s.tween=i}}function C2t(n,e,t){var i,s;if(typeof t!="function")throw new Error;return function(){var r=zf(this,n),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:e,value:t},l=0,c=s.length;l<c;++l)if(s[l].name===e){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function w2t(n,e){var t=this._id;if(n+="",arguments.length<2){for(var i=vh(this.node(),t).tween,s=0,r=i.length,o;s<r;++s)if((o=i[s]).name===n)return o.value;return null}return this.each((e==null?y2t:C2t)(t,n,e))}function vse(n,e,t){var i=n._id;return n.each(function(){var s=zf(this,i);(s.value||(s.value={}))[e]=t.apply(this,arguments)}),function(s){return vh(s,i).value[e]}}function oFe(n,e){var t;return(typeof e=="number"?am:e instanceof eR?Yme:(t=eR(e))?(e=t,Yme):s2t)(n,e)}function E2t(n){return function(){this.removeAttribute(n)}}function T2t(n){return function(){this.removeAttributeNS(n.space,n.local)}}function I2t(n,e,t){var i,s=t+"",r;return function(){var o=this.getAttribute(n);return o===s?null:o===i?r:r=e(i=o,t)}}function L2t(n,e,t){var i,s=t+"",r;return function(){var o=this.getAttributeNS(n.space,n.local);return o===s?null:o===i?r:r=e(i=o,t)}}function x2t(n,e,t){var i,s,r;return function(){var o,a=t(this),l;return a==null?void this.removeAttribute(n):(o=this.getAttribute(n),l=a+"",o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a)))}}function R2t(n,e,t){var i,s,r;return function(){var o,a=t(this),l;return a==null?void this.removeAttributeNS(n.space,n.local):(o=this.getAttributeNS(n.space,n.local),l=a+"",o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a)))}}function D2t(n,e){var t=o3(n),i=t==="transform"?l2t:oFe;return this.attrTween(n,typeof e=="function"?(t.local?R2t:x2t)(t,i,vse(this,"attr."+n,e)):e==null?(t.local?T2t:E2t)(t):(t.local?L2t:I2t)(t,i,e))}function N2t(n,e){return function(t){this.setAttribute(n,e.call(this,t))}}function k2t(n,e){return function(t){this.setAttributeNS(n.space,n.local,e.call(this,t))}}function A2t(n,e){var t,i;function s(){var r=e.apply(this,arguments);return r!==i&&(t=(i=r)&&k2t(n,r)),t}return s._value=e,s}function O2t(n,e){var t,i;function s(){var r=e.apply(this,arguments);return r!==i&&(t=(i=r)&&N2t(n,r)),t}return s._value=e,s}function M2t(n,e){var t="attr."+n;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;var i=o3(n);return this.tween(t,(i.local?A2t:O2t)(i,e))}function P2t(n,e){return function(){_se(this,n).delay=+e.apply(this,arguments)}}function F2t(n,e){return e=+e,function(){_se(this,n).delay=e}}function B2t(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?P2t:F2t)(e,n)):vh(this.node(),e).delay}function V2t(n,e){return function(){zf(this,n).duration=+e.apply(this,arguments)}}function H2t(n,e){return e=+e,function(){zf(this,n).duration=e}}function W2t(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?V2t:H2t)(e,n)):vh(this.node(),e).duration}function U2t(n,e){if(typeof e!="function")throw new Error;return function(){zf(this,n).ease=e}}function $2t(n){var e=this._id;return arguments.length?this.each(U2t(e,n)):vh(this.node(),e).ease}function z2t(n,e){return function(){var t=e.apply(this,arguments);if(typeof t!="function")throw new Error;zf(this,n).ease=t}}function G2t(n){if(typeof n!="function")throw new Error;return this.each(z2t(this._id,n))}function q2t(n){typeof n!="function"&&(n=B2e(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s<t;++s)for(var r=e[s],o=r.length,a=i[s]=[],l,c=0;c<o;++c)(l=r[c])&&n.call(l,l.__data__,c,r)&&a.push(l);return new mp(i,this._parents,this._name,this._id)}function K2t(n){if(n._id!==this._id)throw new Error;for(var e=this._groups,t=n._groups,i=e.length,s=t.length,r=Math.min(i,s),o=new Array(i),a=0;a<r;++a)for(var l=e[a],c=t[a],d=l.length,u=o[a]=new Array(d),h,f=0;f<d;++f)(h=l[f]||c[f])&&(u[f]=h);for(;a<i;++a)o[a]=e[a];return new mp(o,this._parents,this._name,this._id)}function j2t(n){return(n+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||e==="start"})}function Y2t(n,e,t){var i,s,r=j2t(e)?_se:zf;return function(){var o=r(this,n),a=o.on;a!==i&&(s=(i=a).copy()).on(e,t),o.on=s}}function Q2t(n,e){var t=this._id;return arguments.length<2?vh(this.node(),t).on.on(n):this.each(Y2t(t,n,e))}function X2t(n){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}}function Z2t(){return this.on("end.remove",X2t(this._id))}function J2t(n){var e=this._name,t=this._id;typeof n!="function"&&(n=fse(n));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var a=i[o],l=a.length,c=r[o]=new Array(l),d,u,h=0;h<l;++h)(d=a[h])&&(u=n.call(d,d.__data__,h,a))&&("__data__"in d&&(u.__data__=d.__data__),c[h]=u,l3(c[h],e,t,h,c,vh(d,t)));return new mp(r,this._parents,e,t)}function eFt(n){var e=this._name,t=this._id;typeof n!="function"&&(n=F2e(n));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var l=i[a],c=l.length,d,u=0;u<c;++u)if(d=l[u]){for(var h=n.call(d,d.__data__,u,l),f,g=vh(d,t),p=0,m=h.length;p<m;++p)(f=h[p])&&l3(f,e,t,p,h,g);r.push(h),o.push(d)}return new mp(r,o,e,t)}var tFt=ED.prototype.constructor;function iFt(){return new tFt(this._groups,this._parents)}function nFt(n,e){var t,i,s;return function(){var r=VE(this,n),o=(this.style.removeProperty(n),VE(this,n));return r===o?null:r===t&&o===i?s:s=e(t=r,i=o)}}function aFe(n){return function(){this.style.removeProperty(n)}}function sFt(n,e,t){var i,s=t+"",r;return function(){var o=VE(this,n);return o===s?null:o===i?r:r=e(i=o,t)}}function rFt(n,e,t){var i,s,r;return function(){var o=VE(this,n),a=t(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(n),VE(this,n))),o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a))}}function oFt(n,e){var t,i,s,r="style."+e,o="end."+r,a;return function(){var l=zf(this,n),c=l.on,d=l.value[r]==null?a||(a=aFe(e)):void 0;(c!==t||s!==d)&&(i=(t=c).copy()).on(o,s=d),l.on=i}}function aFt(n,e,t){var i=(n+="")=="transform"?a2t:oFe;return e==null?this.styleTween(n,nFt(n,i)).on("end.style."+n,aFe(n)):typeof e=="function"?this.styleTween(n,rFt(n,i,vse(this,"style."+n,e))).each(oFt(this._id,n)):this.styleTween(n,sFt(n,i,e),t).on("end.style."+n,null)}function lFt(n,e,t){return function(i){this.style.setProperty(n,e.call(this,i),t)}}function cFt(n,e,t){var i,s;function r(){var o=e.apply(this,arguments);return o!==s&&(i=(s=o)&&lFt(n,o,t)),i}return r._value=e,r}function dFt(n,e,t){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,cFt(n,e,t??""))}function uFt(n){return function(){this.textContent=n}}function hFt(n){return function(){var e=n(this);this.textContent=e??""}}function fFt(n){return this.tween("text",typeof n=="function"?hFt(vse(this,"text",n)):uFt(n==null?"":n+""))}function gFt(n){return function(e){this.textContent=n.call(this,e)}}function pFt(n){var e,t;function i(){var s=n.apply(this,arguments);return s!==t&&(e=(t=s)&&gFt(s)),e}return i._value=n,i}function mFt(n){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;return this.tween(e,pFt(n))}function _Ft(){for(var n=this._name,e=this._id,t=lFe(),i=this._groups,s=i.length,r=0;r<s;++r)for(var o=i[r],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var d=vh(l,e);l3(l,n,t,c,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mp(i,this._parents,n,t)}function vFt(){var n,e,t=this,i=t._id,s=t.size();return new Promise(function(r,o){var a={value:o},l={value:function(){--s===0&&r()}};t.each(function(){var c=zf(this,i),d=c.on;d!==n&&(e=(n=d).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),s===0&&r()})}var bFt=0;function mp(n,e,t,i){this._groups=n,this._parents=e,this._name=t,this._id=i}function lFe(){return++bFt}var ng=ED.prototype;mp.prototype={constructor:mp,select:J2t,selectAll:eFt,selectChild:ng.selectChild,selectChildren:ng.selectChildren,filter:q2t,merge:K2t,selection:iFt,transition:_Ft,call:ng.call,nodes:ng.nodes,node:ng.node,size:ng.size,empty:ng.empty,each:ng.each,on:Q2t,attr:D2t,attrTween:M2t,style:aFt,styleTween:dFt,text:fFt,textTween:mFt,remove:Z2t,tween:w2t,delay:B2t,duration:W2t,ease:$2t,easeVarying:G2t,end:vFt,[Symbol.iterator]:ng[Symbol.iterator]};function SFt(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var yFt={time:null,delay:0,duration:250,ease:SFt};function CFt(n,e){for(var t;!(t=n.__transition)||!(t=t[e]);)if(!(n=n.parentNode))throw new Error(`transition ${e} not found`);return t}function wFt(n){var e,t;n instanceof mp?(e=n._id,n=n._name):(e=lFe(),(t=yFt).time=mse(),n=n==null?null:n+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var o=i[r],a=o.length,l,c=0;c<a;++c)(l=o[c])&&l3(l,n,e,c,o,t||CFt(l,e));return new mp(i,this._parents,n,e)}ED.prototype.interrupt=S2t;ED.prototype.transition=wFt;const cA=n=>()=>n;function EFt(n,{sourceEvent:e,target:t,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Wg(n,e,t){this.k=n,this.x=e,this.y=t}Wg.prototype={constructor:Wg,scale:function(n){return n===1?this:new Wg(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new Wg(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var WE=new Wg(1,0,0);Wg.prototype;function iU(n){n.stopImmediatePropagation()}function A1(n){n.preventDefault(),n.stopImmediatePropagation()}function TFt(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function IFt(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function i_e(){return this.__zoom||WE}function LFt(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function xFt(){return navigator.maxTouchPoints||"ontouchstart"in this}function RFt(n,e,t){var i=n.invertX(e[0][0])-t[0][0],s=n.invertX(e[1][0])-t[1][0],r=n.invertY(e[0][1])-t[0][1],o=n.invertY(e[1][1])-t[1][1];return n.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function DFt(){var n=TFt,e=IFt,t=RFt,i=LFt,s=xFt,r=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=h2t,c=r3("start","zoom","end"),d,u,h,f=500,g=150,p=0,m=10;function v(x){x.property("__zoom",i_e).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",R).filter(s).on("touchstart.zoom",D).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(x,N,A,B){var V=x.selection?x.selection():x;V.property("__zoom",i_e),x!==V?y(x,N,A,B):V.interrupt().each(function(){C(this,arguments).event(B).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},v.scaleBy=function(x,N,A,B){v.scaleTo(x,function(){var V=this.__zoom.k,O=typeof N=="function"?N.apply(this,arguments):N;return V*O},A,B)},v.scaleTo=function(x,N,A,B){v.transform(x,function(){var V=e.apply(this,arguments),O=this.__zoom,M=A==null?S(V):typeof A=="function"?A.apply(this,arguments):A,P=O.invert(M),W=typeof N=="function"?N.apply(this,arguments):N;return t(b(_(O,W),M,P),V,o)},A,B)},v.translateBy=function(x,N,A,B){v.transform(x,function(){return t(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof A=="function"?A.apply(this,arguments):A),e.apply(this,arguments),o)},null,B)},v.translateTo=function(x,N,A,B,V){v.transform(x,function(){var O=e.apply(this,arguments),M=this.__zoom,P=B==null?S(O):typeof B=="function"?B.apply(this,arguments):B;return t(WE.translate(P[0],P[1]).scale(M.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof A=="function"?-A.apply(this,arguments):-A),O,o)},B,V)};function _(x,N){return N=Math.max(r[0],Math.min(r[1],N)),N===x.k?x:new Wg(N,x.x,x.y)}function b(x,N,A){var B=N[0]-A[0]*x.k,V=N[1]-A[1]*x.k;return B===x.x&&V===x.y?x:new Wg(x.k,B,V)}function S(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function y(x,N,A,B){x.on("start.zoom",function(){C(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(B).end()}).tween("zoom",function(){var V=this,O=arguments,M=C(V,O).event(B),P=e.apply(V,O),W=A==null?S(P):typeof A=="function"?A.apply(V,O):A,H=Math.max(P[1][0]-P[0][0],P[1][1]-P[0][1]),F=V.__zoom,U=typeof N=="function"?N.apply(V,O):N,Z=l(F.invert(W).concat(H/F.k),U.invert(W).concat(H/U.k));return function(X){if(X===1)X=U;else{var G=Z(X),he=H/G[2];X=new Wg(he,W[0]-G[0]*he,W[1]-G[1]*he)}M.zoom(null,X)}})}function C(x,N,A){return!A&&x.__zooming||new T(x,N)}function T(x,N){this.that=x,this.args=N,this.active=0,this.sourceEvent=null,this.extent=e.apply(x,N),this.taps=0}T.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,N){return this.mouse&&x!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var N=Lu(this.that).datum();c.call(x,this.that,new EFt(x,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:c}),N)}};function w(x,...N){if(!n.apply(this,arguments))return;var A=C(this,N).event(x),B=this.__zoom,V=Math.max(r[0],Math.min(r[1],B.k*Math.pow(2,i.apply(this,arguments)))),O=$h(x);if(A.wheel)(A.mouse[0][0]!==O[0]||A.mouse[0][1]!==O[1])&&(A.mouse[1]=B.invert(A.mouse[0]=O)),clearTimeout(A.wheel);else{if(B.k===V)return;A.mouse=[O,B.invert(O)],RO(this),A.start()}A1(x),A.wheel=setTimeout(M,g),A.zoom("mouse",t(b(_(B,V),A.mouse[0],A.mouse[1]),A.extent,o));function M(){A.wheel=null,A.end()}}function I(x,...N){if(h||!n.apply(this,arguments))return;var A=x.currentTarget,B=C(this,N,!0).event(x),V=Lu(x.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",H,!0),O=$h(x,A),M=x.clientX,P=x.clientY;j2e(x.view),iU(x),B.mouse=[O,this.__zoom.invert(O)],RO(this),B.start();function W(F){if(A1(F),!B.moved){var U=F.clientX-M,Z=F.clientY-P;B.moved=U*U+Z*Z>p}B.event(F).zoom("mouse",t(b(B.that.__zoom,B.mouse[0]=$h(F,A),B.mouse[1]),B.extent,o))}function H(F){V.on("mousemove.zoom mouseup.zoom",null),Y2e(F.view,B.moved),A1(F),B.event(F).end()}}function R(x,...N){if(n.apply(this,arguments)){var A=this.__zoom,B=$h(x.changedTouches?x.changedTouches[0]:x,this),V=A.invert(B),O=A.k*(x.shiftKey?.5:2),M=t(b(_(A,O),B,V),e.apply(this,N),o);A1(x),a>0?Lu(this).transition().duration(a).call(y,M,B,x):Lu(this).call(v.transform,M,B,x)}}function D(x,...N){if(n.apply(this,arguments)){var A=x.touches,B=A.length,V=C(this,N,x.changedTouches.length===B).event(x),O,M,P,W;for(iU(x),M=0;M<B;++M)P=A[M],W=$h(P,this),W=[W,this.__zoom.invert(W),P.identifier],V.touch0?!V.touch1&&V.touch0[2]!==W[2]&&(V.touch1=W,V.taps=0):(V.touch0=W,O=!0,V.taps=1+!!d);d&&(d=clearTimeout(d)),O&&(V.taps<2&&(u=W[0],d=setTimeout(function(){d=null},f)),RO(this),V.start())}}function L(x,...N){if(this.__zooming){var A=C(this,N).event(x),B=x.changedTouches,V=B.length,O,M,P,W;for(A1(x),O=0;O<V;++O)M=B[O],P=$h(M,this),A.touch0&&A.touch0[2]===M.identifier?A.touch0[0]=P:A.touch1&&A.touch1[2]===M.identifier&&(A.touch1[0]=P);if(M=A.that.__zoom,A.touch1){var H=A.touch0[0],F=A.touch0[1],U=A.touch1[0],Z=A.touch1[1],X=(X=U[0]-H[0])*X+(X=U[1]-H[1])*X,G=(G=Z[0]-F[0])*G+(G=Z[1]-F[1])*G;M=_(M,Math.sqrt(X/G)),P=[(H[0]+U[0])/2,(H[1]+U[1])/2],W=[(F[0]+Z[0])/2,(F[1]+Z[1])/2]}else if(A.touch0)P=A.touch0[0],W=A.touch0[1];else return;A.zoom("touch",t(b(M,P,W),A.extent,o))}}function k(x,...N){if(this.__zooming){var A=C(this,N).event(x),B=x.changedTouches,V=B.length,O,M;for(iU(x),h&&clearTimeout(h),h=setTimeout(function(){h=null},f),O=0;O<V;++O)M=B[O],A.touch0&&A.touch0[2]===M.identifier?delete A.touch0:A.touch1&&A.touch1[2]===M.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),A.taps===2&&(M=$h(M,this),Math.hypot(u[0]-M[0],u[1]-M[1])<m)){var P=Lu(this).on("dblclick.zoom");P&&P.apply(this,arguments)}}}return v.wheelDelta=function(x){return arguments.length?(i=typeof x=="function"?x:cA(+x),v):i},v.filter=function(x){return arguments.length?(n=typeof x=="function"?x:cA(!!x),v):n},v.touchable=function(x){return arguments.length?(s=typeof x=="function"?x:cA(!!x),v):s},v.extent=function(x){return arguments.length?(e=typeof x=="function"?x:cA([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),v):e},v.scaleExtent=function(x){return arguments.length?(r[0]=+x[0],r[1]=+x[1],v):[r[0],r[1]]},v.translateExtent=function(x){return arguments.length?(o[0][0]=+x[0][0],o[1][0]=+x[1][0],o[0][1]=+x[0][1],o[1][1]=+x[1][1],v):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},v.constrain=function(x){return arguments.length?(t=x,v):t},v.duration=function(x){return arguments.length?(a=+x,v):a},v.interpolate=function(x){return arguments.length?(l=x,v):l},v.on=function(){var x=c.on.apply(c,arguments);return x===c?v:x},v.clickDistance=function(x){return arguments.length?(p=(x=+x)*x,v):Math.sqrt(p)},v.tapDistance=function(x){return arguments.length?(m=+x,v):m},v}var Kt=(n=>(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))(Kt||{}),bse=(n=>(n.Partial="partial",n.Full="full",n))(bse||{}),Jv=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(Jv||{}),x_=(n=>(n.Strict="strict",n.Loose="loose",n))(x_||{}),mX=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(mX||{}),kI=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(kI||{});function _X(n){var e,t;const i=((t=(e=n.composedPath)==null?void 0:e.call(n))==null?void 0:t[0])||n.target,s=typeof i?.hasAttribute=="function"?i.hasAttribute("contenteditable"):!1,r=typeof i?.closest=="function"?i.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(i?.nodeName)||s||!!r}function NFt(n){return n.ctrlKey||n.metaKey||n.shiftKey}function n_e(n,e,t,i){const s=e.replace("+",`
939
939
  `).replace(`
940
940
 
941
941
  `,`
@@ -1119,4 +1119,4 @@ ${o}
1119
1119
  a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},-${n.maskBorderRadius}z`);ja(V=>{if(p.value){const O=ym(p.value),M=H=>{if(H.sourceEvent.type!=="wheel"||!h.value||!f.value)return;const F=-H.sourceEvent.deltaY*(H.sourceEvent.deltaMode===1?.05:H.sourceEvent.deltaMode?1:.002)*n.zoomStep,U=l.value.zoom*2**F;f.value.scaleTo(h.value,U)},P=H=>{if(H.sourceEvent.type!=="mousemove"||!h.value||!f.value)return;const F=I.value*Math.max(1,l.value.zoom)*(n.inversePan?-1:1),U={x:l.value.x-H.sourceEvent.movementX*F,y:l.value.y-H.sourceEvent.movementY*F},Z=[[0,0],[d.value.width,d.value.height]],X=Kse.translate(U.x,U.y).scale(l.value.zoom),G=f.value.constrain()(X,Z,c.value);f.value.transform(h.value,G)},W=Azt().on("zoom",n.pannable?P:()=>{}).on("zoom.wheel",n.zoomable?M:()=>{});O.call(W),V(()=>{O.on("zoom",null)})}},{flush:"post"});function L(V){const[O,M]=Zp(V);e("click",{event:V,position:{x:O,y:M}})}function k(V,O){const M={event:V,node:O,connectedEdges:eb([O],a.value)};u.miniMapNodeClick(M),e("nodeClick",M)}function x(V,O){const M={event:V,node:O,connectedEdges:eb([O],a.value)};u.miniMapNodeDoubleClick(M),e("nodeDblclick",M)}function N(V,O){const M={event:V,node:O,connectedEdges:eb([O],a.value)};u.miniMapNodeMouseEnter(M),e("nodeMouseenter",M)}function A(V,O){const M={event:V,node:O,connectedEdges:eb([O],a.value)};u.miniMapNodeMouseMove(M),e("nodeMousemove",M)}function B(V,O){const M={event:V,node:O,connectedEdges:eb([O],a.value)};u.miniMapNodeMouseLeave(M),e("nodeMouseleave",M)}return(V,O)=>(xe(),ot(le(FFe),{position:V.position,class:qa(["vue-flow__minimap",{pannable:V.pannable,zoomable:V.zoomable}])},{default:We(()=>[(xe(),gt("svg",{ref_key:"el",ref:p,width:m.value,height:v.value,viewBox:[R.value.x,R.value.y,R.value.width,R.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${le(o)}`,onClick:L},[V.ariaLabel?(xe(),gt("title",{key:0,id:`vue-flow__minimap-${le(o)}`},rn(V.ariaLabel),9,Bzt)):ei("",!0),(xe(!0),gt(Ct,null,Ka(le(g),M=>(xe(),ot(Pzt,{id:M.id,key:M.id,position:M.computedPosition,dimensions:M.dimensions,selected:M.selected,dragging:M.dragging,style:fo(M.style),class:qa(y.value(M)),color:b.value(M),"border-radius":V.nodeBorderRadius,"stroke-color":S.value(M),"stroke-width":V.nodeStrokeWidth,"shape-rendering":le(_),type:M.type,hidden:M.hidden,onClick:P=>k(P,M),onDblclick:P=>x(P,M),onMouseenter:P=>N(P,M),onMousemove:P=>A(P,M),onMouseleave:P=>B(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)),Fi("path",{class:"vue-flow__minimap-mask",d:D.value,fill:V.maskColor,stroke:V.maskStrokeColor,"stroke-width":V.maskStrokeWidth,"fill-rule":"evenodd"},null,8,Vzt)],8,Fzt))]),_:1},8,["position","class"]))}});function l5e(n,e=!1){const t=ca(new Map),i=ca(new Map),s=x=>{const N=i.get(x.type)??[];i.set(x.type,[...N,x])},r=x=>{const N=i.get(x.type)??[];i.set(x.type,N.filter(A=>A.id!==x.id))},o=()=>({connectable:!e,deletable:!e,selectable:!e}),a=(x,N,A)=>{const B={id:N??qB(),type:A??"component",data:{instance:x},position:x.position??{x:0,y:0},...o()};return n.addNodes(B),t.set(x.id,B.id),s(x),B},l=x=>{n.addNodes({id:x.id,type:"hub",data:{hub:x},position:x.position,...o()})},c=()=>({animated:!0,updatable:!e,deletable:!e,selectable:!1,focusable:!1,data:{}}),d=x=>{const N=t.get(x);return N||B_.warn({msg:"could not find node id for instance",instanceId:x}),N},u=(x,N,A)=>{const B=d(A.instanceId);if(!B)return;const V=d(x.id);V&&n.addEdges({id:`${A.instanceId}:${A.output}->${x.id}:${N}`,type:"custom",source:B,sourceHandle:A.output,target:V,targetHandle:N,...c()})},h=x=>{for(const[N,A]of Object.entries(x.inputs??{}))for(const B of A)u(x,N,B)},f=(x,N,A)=>{const B=d(x.id);B&&n.addEdges({id:`${x.id}:${A.output}->outputs:${N}`,type:"custom",source:B,sourceHandle:A.output,target:"outputs",targetHandle:N,...c()})},g=(x,N,A)=>{const B=d(x.id);B&&n.addEdges({id:`${A.hubId}->${x.id}:${N}`,type:"custom",source:A.hubId,target:B,targetHandle:N,...c()})},p=x=>{for(const[N,A]of Object.entries(x.hubInputs??{}))for(const B of A)g(x,N,B)},m=(x,N)=>{const A=d(x.id);A&&n.addEdges({id:`${N.hubId}->${x.id}`,type:"custom",source:N.hubId,target:A,...c()})},v=x=>{for(const N of x.injectionInputs??[])m(x,N)},_=x=>{h(x),p(x),v(x)},b=(x,N)=>{const A=d(N.instanceId);A&&n.addEdges({id:`${N.instanceId}:${N.output}->${x.id}`,type:"custom",source:A,sourceHandle:N.output,target:x.id,...c()})},S=x=>{for(const N of x.inputs??[])b(x,N)},y=(x,N)=>{n.addEdges({id:`${N.hubId}->${x.id}`,type:"custom",source:N.hubId,target:x.id,...c()})},C=x=>{for(const N of x.injectionInputs??[])y(x,N)};return{instanceIdToNodeIdMap:t,createNodeFromInstance:a,createNodeFromHub:l,createEdgesForInstance:_,createEdgesForHub:x=>{S(x),C(x)},createEdgeForInstanceInput:u,createEdgeForInstanceOutput:f,createEdgeForInstanceHubInput:g,createEdgeForInstanceInjectionInput:m,createEdgeForHubInput:b,createEdgeForHubInjectionInput:y,removeNodeForInstance:x=>{const N=t.get(x.id);N&&(n.removeNodes(N),t.delete(x.id),r(x))},removeEdgeForInstanceInput:(x,N,A)=>{n.removeEdges(`${A.instanceId}:${A.output}->${x.id}:${N}`)},removeEdgeForInstanceHubInput:(x,N,A)=>{n.removeEdges(`${A.hubId}->${x.id}:${N}`)},removeEdgeForInstanceInjectionInput:(x,N)=>{n.removeEdges(`${N.hubId}->${x.id}`)},removeEdgeForHubInput:(x,N)=>{n.removeEdges(`${N.instanceId}:${N.output}->${x.id}`)},removeEdgeForHubInjectionInput:(x,N)=>{n.removeEdges(`${N.hubId}->${x.id}`)}}}function Wzt(n){return new Worker(""+new URL("edge-router-BFNVMcBx.js",import.meta.url).href,{type:"module",name:n?.name})}const{onMessage:Uzt,postMessage:_7,onError:$zt}=R2e(Wzt);function c5e(n){const e=qB(),t=Me(!1),i=async g=>{await Tb(t).toBe(!0),_7(g)},s=g=>{const{computedPosition:{x:p,y:m},dimensions:{width:v,height:_}}=g;return!v||!_?null:{id:g.id,x:p,y:m,width:v,height:_}},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=t_(()=>{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 v of g)if(v.type==="position"||v.type==="dimensions"){const _=n.findNode(v.id);o(_);const b=n.getConnectedEdges(v.id);for(const S of b)c(S);p=!0,m.add(v.id)}else v.type==="remove"&&(a(v.id),p=!0);p&&(u(),Vi(()=>{for(const v of m){const _=n.findNode(v);o(_);const b=n.getConnectedEdges(v);for(const S of b)c(S)}u()}))}),n.onEdgesChange(g=>{let p=!1;for(const m of g)m.type==="add"?Vi(()=>{const v=n.findEdge(m.item.id);l(v),u()}):m.type==="remove"&&(d(m.id),p=!0);p&&u()}),Uzt(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}}}),$zt(()=>{t.value=!1}),ir(()=>{B_.debug({routerId:e},"disposing edge router"),t.value&&_7({type:"dispose-router",routerId:e})});const h=n.nodes.value.map(g=>s(g)).filter(Boolean),f=n.edges.value.map(g=>r(g));_7({type:"create-router",routerId:e,shapes:h,edges:f})}const d5e=Ip({name:"project-panel",getStoreId:n=>`projects/${n}/panel`,create:({storeId:n,id:[e],logger:t,onDeactivated:i})=>Xd(n,()=>{const{instancesStore:s,projectStore:r}=_h(),{$client:o}=Ms(),a=Qn(`projects/${e}`),l=t_(async x=>{await o.workspace.setProjectViewport.mutate({projectId:e,viewport:x})},1e3);a.onViewportChange(l);const{instanceIdToNodeIdMap:c,createNodeFromInstance:d,createNodeFromHub:u,createEdgesForInstance:h,createEdgesForHub:f,createEdgeForInstanceInput:g,createEdgeForInstanceHubInput:p,createEdgeForInstanceInjectionInput:m,createEdgeForHubInput:v,createEdgeForHubInjectionInput:_,removeEdgeForInstanceInput:b,removeEdgeForInstanceHubInput:S,removeEdgeForInstanceInjectionInput:y,removeEdgeForHubInput:C,removeEdgeForHubInjectionInput:T}=l5e(a),w=async()=>{const[x]=await Promise.all([o.workspace.getProjectViewport.query({projectId:e}),r.ensureInitialized()]);x&&(a.defaultViewport.value=x);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);Tb(a.areNodesInitialized).toBe(!0).then(()=>c5e(a))},I=x=>{x.data.instance.parentId||x.data.instance.position?.x===x.position.x&&x.data.instance.position?.y===x.position.y||(x.data.instance.position=x.position,s.patchInstance(x.data.instance,["position"]))},R=x=>{x.data.hub.position?.x===x.position.x&&x.data.hub.position?.y===x.position.y||(x.data.hub.position=x.position,s.patchHub(x.data.hub,["position"]))};a.onNodeDragStop(({node:x})=>{x.type==="component"?I(x):x.type==="hub"&&R(x)});const D=x=>{const{inputInstance:N,outputInstance:A,inputHub:B,outputHub:V,outputKey:O,inputKey:M}=KF(a,x);if(N&&A)return s.addInstanceInput(N,M,{instanceId:A.id,output:O});if(V&&N&&M)return s.addInstanceHubInput(N,M,{hubId:V.id});if(V&&N)return s.addInstanceInjectionInput(N,{hubId:V.id});if(A&&B)return s.addHubInput(B,{instanceId:A.id,output:O});if(V&&B)return s.addHubInjectionInput(B,{hubId:V.id});throw t.error({msg:"unexpected connection while adding",connection:x,inputInstance:N,outputInstance:A,inputHub:B,outputHub:V,outputKey:O,inputKey:M}),new Error("Invalid connection")},L=x=>{const{inputInstance:N,outputInstance:A,inputHub:B,outputHub:V,outputKey:O,inputKey:M}=KF(a,x);if(N&&A)return s.removeInstanceInput(N,M,{instanceId:A.id,output:O});if(V&&N&&M)return s.removeInstanceHubInput(N,M,{hubId:V.id});if(V&&N)return s.removeInstanceInjectionInput(N,{hubId:V.id});if(A&&B)return s.removeHubInput(B,{instanceId:A.id,output:O});if(V&&B)return s.removeHubInjectionInput(B,{hubId:V.id});throw t.error({msg:"unexpected connection while removing",edge:x,inputInstance:N,outputInstance:A,inputHub:B,outputHub:V,outputKey:O,inputKey:M}),new Error("Invalid connection")};a.onConnect(D);let k=!1;return a.onEdgeUpdate(async({edge:x,connection:N})=>{k=!0,await L(x),await D(N)}),a.onEdgeUpdateEnd(async({edge:x})=>{try{if(k)return;await L(x)}finally{k=!1}}),s.onInstanceInputAdded(({instance:x,inputName:N,input:A})=>{g(x,N,A)}),s.onInstanceHubInputAdded(({instance:x,inputName:N,input:A})=>{p(x,N,A)}),s.onInstanceInjectionInputAdded(({instance:x,input:N})=>{m(x,N)}),s.onHubInputAdded(({hub:x,input:N})=>{v(x,N)}),s.onHubInjectionInputAdded(({hub:x,input:N})=>{_(x,N)}),s.onInstanceInputRemoved(({instance:x,inputName:N,input:A})=>{b(x,N,A)}),s.onInstanceHubInputRemoved(({instance:x,inputName:N,input:A})=>{S(x,N,A)}),s.onInstanceInjectionInputRemoved(({instance:x,input:N})=>{y(x,N)}),s.onHubInputRemoved(({hub:x,input:N})=>{C(x,N)}),s.onHubInjectionInputRemoved(({hub:x,input:N})=>{T(x,N)}),s.onInstanceNameChanged(({oldId:x,newId:N})=>{const A=c.get(x);c.set(N,A),c.delete(x),a.updateNodeData(A,{})}),s.onInstanceCreated(async x=>{const N=d(x);await Tb(a.areNodesInitialized).toBe(!0),a.updateNode(N.id,A=>{const B={x:A.position.x-A.dimensions.width/2,y:A.position.y-A.dimensions.height/2};return x.position=B,{position:B}})}),s.onInstanceDeleted(x=>{const N=c.get(x);N&&(a.removeNodes(N),c.delete(x))}),s.onHubCreated(async x=>{u(x),await Tb(a.areNodesInitialized).toBe(!0),a.updateNode(x.id,N=>{const A={x:N.position.x-N.dimensions.width/2,y:N.position.y-N.dimensions.height/2};return x.position=A,{position:A}})}),s.onHubDeleted(x=>{a.removeNodes(x)}),i(()=>{a.$destroy()}),{initialize:w,instanceIdToNodeIdMap:c}})}),zzt=Dt({__name:"ProjectCanvas",async setup(n){let e,t;const i=d5e(),{instancesStore:s}=_h();[e,t]=rZ(()=>i.initialize()),await e,t();const{screenToFlowCoordinate:r}=Qn(),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=RBe,u=q6t,h=NBe,f=X6t,g=J6t;return xe(),ot(g,null,{default:We(()=>[Fi("div",{class:"vue-flow-container",onDrop:a},[K(le(PFe),{"min-zoom":.5,"max-zoom":1,"snap-to-grid":!0,onDragover:o},{"node-component":We(p=>[K(d,qt(p,{editable:!0}),null,16)]),"node-hub":We(p=>[K(u,MI(UI(p)),null,16)]),"edge-custom":We(p=>[K(h,MI(UI(p)),null,16)]),default:We(()=>[K(le(OBe),{"pattern-color":"#aaa",gap:32}),K(le(a5e),{position:"top-right"}),K(le(FFe),{position:"bottom-right"},{default:We(()=>[K(f)]),_:1})]),_:1})],32)]),_:1})}}}),Gzt=Xs(zzt,[["__scopeId","data-v-53a6dfe9"]]),qzt={key:1,class:"password-prompt-container"},Kzt=Dt({__name:"ProjectPanel",props:{params:{}},setup(n){const e=hR("passwordField"),t=Me(!1),i=Me(!1),s=Me(""),r=Me(null),o=Me(!1),{secretsStore:a}=D2e(n.params.params.projectId);d5e(n.params.params.projectId);const l=async()=>{await a.checkIsLocked()?(t.value=!1,i.value=!0):t.value=!0};nr(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=Gzt,g=nTe;return le(t)?(xe(),ot(lZ,{key:0},{default:We(()=>[K(f)]),_:1})):le(i)?(xe(),gt("div",qzt,[K(wc,{width:"460",variant:"text"},{default:We(()=>[K(vf,null,{default:We(()=>[K(XZ,{class:"text-h6 text-center"},{default:We(()=>h[1]||(h[1]=[gi("The project is locked")])),_:1}),K(g,{ref_key:"passwordField",ref:e,modelValue:le(s),"onUpdate:modelValue":h[0]||(h[0]=p=>pi(s)?s.value=p:null),class:"mt-4",label:"Password",hint:"Enter the password to unlock the project","persistent-hint":"",rules:le(d),"error-messages":le(r)?[le(r)]:[],onKeydown:k3e(c,["enter"])},null,8,["modelValue","rules","error-messages"])]),_:1}),K(ch,null,{default:We(()=>[K(Ud),K(ps,{loading:le(o),disabled:le(o),click:"unlock"},{default:We(()=>h[2]||(h[2]=[gi("Unlock")])),_:1},8,["loading","disabled"])]),_:1})]),_:1})])):ei("",!0)}}}),jzt=Xs(Kzt,[["__scopeId","data-v-64442096"]]),Yzt=Dt({__name:"CompositeIONode",props:{instance:{},type:{}},setup(n){const e=$f(),t=ue(()=>n.type==="inputs"?"Inputs":"Outputs"),i=ue(()=>e.components[n.instance.type]);return(s,r)=>{const o=BFe,a=xse;return xe(),ot(a,{component:le(i),subtitle:le(t),style:{overflow:"visible"}},{default:We(()=>[K(o,{instance:s.instance,type:s.type,mirror:!0},null,8,["instance","type"])]),_:1},8,["component","subtitle"])}}}),Qzt=new Error("request for lock canceled");var Xzt=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 Zzt{constructor(e,t=Qzt){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=u5e(this._queue,a=>t<=a.priority);o===-1&&e<=this._value?this._dispatchItem(r):this._queue.splice(o+1,0,r)})}runExclusive(e){return Xzt(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]=[]),Jzt(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 Jzt(n,e){const t=u5e(n,i=>e.priority<=i.priority);n.splice(t+1,0,e)}function u5e(n,e){for(let t=n.length-1;t>=0;t--)if(e(n[t]))return t;return-1}var eGt=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 tGt{constructor(e){this._semaphore=new Zzt(1,e)}acquire(){return eGt(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 jse=Ip({name:"composite-instance",getStoreId:(n,e)=>`projects/${n}/instances/${e}`,create:({storeId:n,id:[e,t],onDeactivated:i})=>Xd(n,()=>{const s=Me(0),r=ue(()=>a(s.value)),o=ue(()=>a(s.value+1)),a=S=>`projects/${e}/instances/${t}/versions/${S}`,l=$t(new Map),{$client:c}=Ms(),{instancesStore:d,projectStore:u}=_h(),h=ue(()=>d.compositeInstances.get(t)),f=ue(()=>d.instances.get(t)??d.compositeInstances.get(t)?.instance),g=Me(null),p=new tGt,m=async S=>{const y=Qn(r.value),C=Qn(o.value);g.value&&(C.defaultViewport.value=g.value);const{instanceIdToNodeIdMap:T,createNodeFromInstance:w,createEdgesForInstance:I,createEdgeForInstanceOutput:R}=l5e(C,!0);l.value=new Map,l.value.set(S.instance.id,S.instance);for(const D of S.children)l.value.set(D.id,D);w(S.instance,"inputs","inputs");for(const D of S.children)w(D);for(const D of S.children)I(D);if(S.instance.outputs&&Object.keys(S.instance.outputs).length>0){w(S.instance,"outputs","outputs"),T.set(S.instance.id,"inputs");for(const[D,L]of Object.entries(S.instance.outputs))for(const k of L){const x=l.value.get(k.instanceId);x&&R(x,D,k)}}await Tb(C.areNodesInitialized).toBe(!0),B_.debug("layouting nodes"),D6t(C),await Vi(),c5e(C),await Vi(),s.value+=1,await Vi(),C.onViewportChange(D=>{g.value=D,b(D)}),y.$destroy()},v=t_(async S=>{await p.runExclusive(async()=>{await m(S)})},100),_=async()=>{const[S]=await Promise.all([c.workspace.getInstanceViewport.query({projectId:e,instanceId:t}),u.ensureInitialized()]);S&&(g.value=S);const y=d.compositeInstances.get(t);y&&m(y),d.onCompositeInstanceUpdated(C=>{C.instance.id===t&&v(C)})},b=t_(async S=>{await c.workspace.setInstanceViewport.mutate({projectId:e,instanceId:t,viewport:S})},1e3);return i(()=>{Qn(r.value).$destroy()}),{initialize:_,compositeInstance:h,instance:f,version:s,currentVueFlowStoreId:r,nextVueFlowStoreId:o}})}),iGt={class:"vue-flow-container"},nGt=Dt({__name:"CompositeInstanceCanvas",props:{storeId:{}},setup(n){const{instancesStore:e}=_h(),t=jse();return(i,s)=>{const r=RBe,o=xBe,a=NBe,l=Yzt;return xe(),gt("div",iGt,[K(le(PFe),{id:i.storeId,"min-zoom":.5,"max-zoom":1,"snap-to-grid":!0},{"node-component":We(c=>[K(r,qt(c,{editable:!1}),null,16)]),"node-inputs":We(c=>[le(t).instance?(xe(),ot(o,qt({key:0},c,{instance:le(t).instance,editable:le(e).instances.has(le(t).instance.id),"io-type":"inputs","io-mirror":!0,"hide-show-composite":!0}),null,16,["instance","editable"])):ei("",!0)]),"edge-custom":We(c=>[K(a,MI(UI(c)),null,16)]),"node-outputs":We(c=>[le(t).instance?(xe(),ot(l,qt({key:0},c,{instance:le(t).instance,type:"outputs"}),null,16,["instance"])):ei("",!0)]),default:We(()=>[K(le(OBe),{"pattern-color":"#aaa",gap:32}),K(le(a5e),{pannable:"",zoomable:"",position:"top-right"})]),_:1},8,["id"])])}}}),Ewe=Xs(nGt,[["__scopeId","data-v-83026dae"]]),sGt=Dt({__name:"CompositeInstanceContainer",async setup(n){let e,t;const i=jse();return[e,t]=rZ(()=>i.initialize()),await e,t(),(s,r)=>(xe(),gt(Ct,null,[(xe(),ot(Vw(Ewe),{key:le(i).currentVueFlowStoreId,"store-id":le(i).currentVueFlowStoreId},null,8,["store-id"])),(xe(),ot(Vw(Ewe),{key:le(i).nextVueFlowStoreId,"store-id":le(i).nextVueFlowStoreId},null,8,["store-id"]))],64))}}),rGt=Dt({__name:"CompositeInstancePanel",props:{params:{}},setup(n){return D2e(n.params.params.projectId),jse(n.params.params.projectId,n.params.params.instanceId),(e,t)=>{const i=sGt;return xe(),ot(lZ,null,{default:We(()=>[K(i)]),_:1})}}}),oGt=Dt({__name:"ComponentTemplate",props:{component:{}},setup(n){const e=t=>{t.dataTransfer.setData("componentType",n.component.type)};return(t,i)=>{const s=xse;return xe(),gt("div",{draggable:"true",style:{cursor:"grab"},onDragstart:e},[K(s,{component:t.component,text:t.component.meta.description},null,8,["component","text"])],32)}}}),aGt={class:"d-flex flex-column pl-4 pr-4 gr-4 sidebar-container"},lGt={class:"d-flex flex-column align-center gr-4 component-list-container"},cGt=Dt({__name:"ComponentList",setup(n){const e=$f();return(t,i)=>{const s=oGt;return xe(),gt("div",aGt,[K(_f,{modelValue:le(e).search,"onUpdate:modelValue":i[0]||(i[0]=r=>le(e).search=r),class:"search",variant:"outlined",density:"compact",placeholder:"Search components","hide-details":""},null,8,["modelValue"]),Fi("div",lGt,[(xe(!0),gt(Ct,null,Ka(le(e).filteredComponents,r=>(xe(),ot(s,{key:r.type,component:r},null,8,["component"]))),128))])])}}}),dGt=Xs(cGt,[["__scopeId","data-v-2a9878e0"]]);var v7={exports:{}},Twe;function uGt(){return Twe||(Twe=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})())}(v7)),v7.exports}var hGt=uGt(),b7={exports:{}},Iwe;function fGt(){return Iwe||(Iwe=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,v]=c._getWindowedLineStrings(u-1,f),_=m.join("");let b;const S=[];for(;b=p.exec(_);){const y=b[0];if(!l(y))continue;const[C,T]=c._mapStrIdx(f,v,0,b.index),[w,I]=c._mapStrIdx(f,C,T,y.length);if(C===-1||T===-1||w===-1||I===-1)continue;const R={start:{x:T+1,y:C+1},end:{x:I,y:w+1}};S.push({range:R,text:y,activate:g})}return S}static _getWindowedLineStrings(u,h){let f,g=u,p=u,m=0,v="";const _=[];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&&(v=f.translateToString(!0),m+=v.length,_.push(v),f.isWrapped&&v.indexOf(" ")===-1););_.reverse()}for(_.push(b),m=0;(f=h.buffer.active.getLine(++p))&&f.isWrapped&&m<2048&&(v=f.translateToString(!0),m+=v.length,_.push(v),v.indexOf(" ")===-1););}return[_,g]}static _mapStrIdx(u,h,f,g){const p=u.buffer.active,m=p.getNullCell();let v=f;for(;g;){const _=p.getLine(h);if(!_)return[-1,-1];for(let b=v;b<_.length;++b){_.getCell(b,m);const S=m.getChars();if(m.getWidth()&&(g-=S.length||1,b===_.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++,v=0}return[h,v]}}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})())}(b7)),b7.exports}var gGt=fGt();function pGt(){return navigator.userAgent.includes("Mac")}const mGt=Ip({name:"terminal",getStoreId:(n,e,t)=>`projects/${n}/instances/${e}/terminalSessions/${t}`,create:({storeId:n,id:[e,t,i],onDeactivated:s})=>Xd(n,()=>{const r=$t(null),o=$t(null),a=Me(!1),{$client:l}=Ms(),c=P_(),d=async f=>{r.value=f;async function g(_,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(AM.parse(S))}else(pGt()?_.metaKey:_.ctrlKey)&&window.open(b,"_blank")}const p={activate:(_,b)=>{g(_,b)},hover:(_,b,S)=>{},leave:(_,b,S)=>{},allowNonHttpProtocols:!0},m=new gGt.WebLinksAddon(g,p);r.value.loadAddon(m),r.value.options.linkHandler=p,await u();const{unsubscribe:v}=l.terminal.watchSession.subscribe({projectId:e,instanceId:t,sessionId:i},{onData(_){if(o.value=AM.parse(_),_.finishedAt){const y=`\x1B[1m\x1B[33m${`>>> Terminal session finished at ${new Date(_.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),v()}}});s(v),await Tb(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 hGt.AttachAddon(p);r.value.loadAddon(m),s(()=>p.close())};return{initialize:d,session:o}})}),_Gt=Dt({__name:"InstanceTerminal",props:{projectId:{},instanceId:{},sessionId:{}},setup(n){const e=mGt(n.projectId,n.instanceId,n.sessionId),t=i=>{e.initialize(i)};return(i,s)=>{const r=Ese;return xe(),ot(r,{onLoad:t})}}}),vGt=Dt({__name:"TerminalPanel",props:{params:{}},setup(n){return(e,t)=>{const i=_Gt;return xe(),ot(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"])}}}),bGt=Ip({name:"logs",getStoreId:(n,e)=>`operations/${n}/instances/${e}/logs`,create:({storeId:n,id:[e,t],onDeactivated:i})=>Xd(n,()=>{const{$client:s}=Ms(),r=Me([]);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)}}})}),SGt=Dt({__name:"LogsTerminal",props:{operationId:{},instanceId:{}},setup(n){const e=bGt(n.operationId,n.instanceId),t=i=>{e.loadLogsToTerminal(i)};return(i,s)=>{const r=Ese;return xe(),ot(r,{onLoad:t})}}}),yGt=Dt({__name:"LogsPanel",props:{params:{}},setup(n){return(e,t)=>{const i=SGt;return xe(),ot(i,{"operation-id":e.params.params.operationId,"instance-id":e.params.params.instanceId},null,8,["operation-id","instance-id"])}}});function CGt(n){return n.status!=="completed"&&n.status!=="failed"&&n.status!=="cancelled"}const wGt={class:"d-flex w-100"},EGt={class:"d-flex"},TGt={class:"d-flex ml-auto"},IGt=Dt({__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)=>(xe(),ot(wc,{subtitle:s.operation.status,width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"}},{title:We(()=>[Fi("div",wGt,[Fi("div",EGt,rn(s.operation.id.slice(0,8)),1),Fi("div",TGt,[K(qg,{color:le(i)},{default:We(()=>[gi(rn(s.operation.type),1)]),_:1},8,["color"])])])]),prepend:We(()=>[("isOperationRunning"in s?s.isOperationRunning:le(CGt))(s.operation)?(xe(),ot(fTe,{key:0,class:"mr-1",color:le(t),indeterminate:"",size:"24"},null,8,["color"])):(xe(),ot(Ui,{key:1,color:le(t)},{default:We(()=>[gi(rn(le(e)),1)]),_:1},8,["color"]))]),_:1},8,["subtitle"]))}}),LGt=Xs(IGt,[["__scopeId","data-v-1871cc04"]]),xGt={key:0,class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},RGt={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},DGt={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},NGt={class:"d-flex flex-column gr-4 operation-list-container"},kGt={key:1,class:"mt-4 text-center text-uppercase"},AGt=Dt({__name:"OperationList",props:{projectId:{}},setup(n){const{stateStore:e,operationsStore:t,secretsStore:i}=kOt(n.projectId),s=async()=>{await t.launchOperation({projectId:n.projectId,type:"update",instanceIds:e.instancesToAutoUpdate.map(r=>r.id)})};return(r,o)=>{const a=LGt;return le(i).isLocked?(xe(),gt("div",kGt,"The project is locked")):(xe(),gt("div",xGt,[K(ps,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:le(e).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:s},{default:We(()=>[Fi("div",null,[o[0]||(o[0]=Fi("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),le(e).instancesToAutoUpdate.length>0?(xe(),gt("div",RGt,rn(le(e).instancesToAutoUpdate.length)+" component(s) ",1)):(xe(),gt("div",DGt," nothing to update "))])]),_:1},8,["disabled"]),Fi("div",NGt,[(xe(!0),gt(Ct,null,Ka(le(t).operations,l=>(xe(),ot(a,{key:l.id,operation:l},null,8,["operation"]))),128))])]))}}}),OGt=Xs(AGt,[["__scopeId","data-v-cb81d945"]]),MGt={key:1,class:"mt-4 text-center text-uppercase"},PGt=Dt({__name:"OperationListPanel",setup(n){const e=TB();return(t,i)=>{const s=OGt;return le(e).focusedProjectId?(xe(),ot(s,{key:le(e).focusedProjectId,"project-id":le(e).focusedProjectId},null,8,["project-id"])):(xe(),gt("div",MGt,"No active project"))}}}),FGt={class:"dv-default-tab"},BGt={class:"dv-default-tab-content"},VGt=Dt({__name:"CustomTab",props:{params:{}},setup(n){return(e,t)=>(xe(),gt("div",FGt,[e.params.params.icon?(xe(),ot(Ui,{key:0,class:"mr-2"},{default:We(()=>[gi(rn(e.params.params.icon),1)]),_:1})):ei("",!0),Fi("div",BGt,rn(e.params.params.title),1),e.params.params.closable?(xe(),gt("div",{key:1,class:"dv-default-tab-action",onClick:t[0]||(t[0]=i=>e.params.api.close())},t[1]||(t[1]=[Fi("svg",{height:"11",width:"11",viewBox:"0 0 28 28","aria-hidden":"false",focusable:"false",class:"dv-svg"},[Fi("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)]))):ei("",!0)]))}}),HGt=Dt({__name:"LayoutResetButton",props:{params:{}},setup(n){const e=P_(),t=Me(!1);return Vi(()=>{t.value=n.params.group.model.panels.some(i=>i.id==="project-list")}),(i,s)=>le(t)?(xe(),ot(ps,{key:0,variant:"text",size:"small",class:"toolbar-button ma-1",onClick:s[0]||(s[0]=r=>le(e).resetLayout())},{default:We(()=>[K(Ui,null,{default:We(()=>s[1]||(s[1]=[gi("mdi-window-restore")])),_:1}),K(k2e,{activator:"parent",location:"bottom"},{default:We(()=>s[2]||(s[2]=[gi("Reset Layout")])),_:1})]),_:1})):ei("",!0)}}),WGt=Xs(HGt,[["__scopeId","data-v-6df1353d"]]),UGt=Dt({components:{ProjectListPanel:_ze,ProjectPanel:jzt,ComponentList:dGt,TerminalPanel:vGt,LogsPanel:yGt,OperationListPanel:PGt,CompositeInstancePanel:rGt,CustomTab:VGt,LayoutResetButton:WGt},__name:"app",async setup(n){let e,t;const i=$f();[e,t]=rZ(()=>i.initialize()),await e,t();const s=P_(),r=Me(!1),o=a=>{s.init(a.api),s.loadLayout().finally(()=>{r.value=!0})};return(a,l)=>(xe(),gt("div",{style:fo({display:le(r)?"block":"none"})},[K(le(a9e),{class:"dockview-container",theme:le(z8e),"right-header-actions-component":"LayoutResetButton",onReady:o},null,8,["theme"])],4))}}),$Gt=Xs(UGt,[["__scopeId","data-v-b8883e61"]]),zGt={__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?ure(()=>re(()=>import("./C_tv3AJD.js"),__vite__mapDeps([94,95,96]),import.meta.url)):ure(()=>re(()=>import("./DPtlu6sh.js"),__vite__mapDeps([97,95,98]),import.meta.url));return(u,h)=>(xe(),ot(le(d),MI(UI({statusCode:le(i),statusMessage:le(r),description:le(o),stack:le(a)})),null,16))}},GGt={key:0},Lwe={__name:"nuxt-root",setup(n){const e=()=>null,t=Ms(),i=t.deferHydration();if(t.isHydrating){const l=t.hooks.hookOnce("app:error",i);Xb().beforeEach(l)}const s=!1;ur(I0e,L0e()),t.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const r=pZ(),o=!1;vEe((l,c,d)=>{if(t.hooks.callHook("vue:error",l,c,d).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),lHe(l)&&(l.fatal||l.unhandled))return t.runWithContext(()=>oHe(l)),!1});const a=!1;return(l,c)=>(xe(),ot(lZ,{onResolve:le(i)},{default:We(()=>[le(o)?(xe(),gt("div",GGt)):le(r)?(xe(),ot(le(zGt),{key:1,error:le(r)},null,8,["error"])):le(a)?(xe(),ot(le(e),{key:2,context:le(a)},null,8,["context"])):le(s)?(xe(),ot(Vw(le(s)),{key:3})):(xe(),ot(le($Gt),{key:4}))]),_:1},8,["onResolve"]))}};let xwe;{let n;xwe=async function(){if(n)return n;const i=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?M3e(Lwe):O3e(Lwe),s=$Ve({vueApp:i});async function r(o){await s.callHook("app:error",o),s.payload.error||=uB(o)}i.config.errorHandler=r,s.hook("app:suspense:resolve",()=>{i.config.errorHandler===r&&(i.config.errorHandler=void 0)});try{await qVe(s,U6e)}catch(o){r(o)}try{await s.hooks.callHook("app:created",i),await s.hooks.callHook("app:beforeMount",i),i.mount(HVe),await s.hooks.callHook("app:mounted",i),await Vi()}catch(o){r(o)}return i},n=xwe().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{We as A,gi as B,jGt as C,jVe as D,gR as E,Yn as F,A0e as G,sD as H,ZAe as I,Xs as _,Ms as a,xZ as b,Toe as c,Dt as d,Zo as e,YGt as f,bEe as g,en as h,rHe as i,ue as j,QE as k,dB as l,Qb as m,sHe as n,nr as o,hZ as p,fZ as q,Me as r,KGt as s,gt as t,Xb as u,xe as v,H7 as w,Fi as x,rn 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?ure(()=>re(()=>import("./D8NOhxV1.js"),__vite__mapDeps([94,95,96]),import.meta.url)):ure(()=>re(()=>import("./CODnyShH.js"),__vite__mapDeps([97,95,98]),import.meta.url));return(u,h)=>(xe(),ot(le(d),MI(UI({statusCode:le(i),statusMessage:le(r),description:le(o),stack:le(a)})),null,16))}},GGt={key:0},Lwe={__name:"nuxt-root",setup(n){const e=()=>null,t=Ms(),i=t.deferHydration();if(t.isHydrating){const l=t.hooks.hookOnce("app:error",i);Xb().beforeEach(l)}const s=!1;ur(I0e,L0e()),t.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const r=pZ(),o=!1;vEe((l,c,d)=>{if(t.hooks.callHook("vue:error",l,c,d).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),lHe(l)&&(l.fatal||l.unhandled))return t.runWithContext(()=>oHe(l)),!1});const a=!1;return(l,c)=>(xe(),ot(lZ,{onResolve:le(i)},{default:We(()=>[le(o)?(xe(),gt("div",GGt)):le(r)?(xe(),ot(le(zGt),{key:1,error:le(r)},null,8,["error"])):le(a)?(xe(),ot(le(e),{key:2,context:le(a)},null,8,["context"])):le(s)?(xe(),ot(Vw(le(s)),{key:3})):(xe(),ot(le($Gt),{key:4}))]),_:1},8,["onResolve"]))}};let xwe;{let n;xwe=async function(){if(n)return n;const i=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?M3e(Lwe):O3e(Lwe),s=$Ve({vueApp:i});async function r(o){await s.callHook("app:error",o),s.payload.error||=uB(o)}i.config.errorHandler=r,s.hook("app:suspense:resolve",()=>{i.config.errorHandler===r&&(i.config.errorHandler=void 0)});try{await qVe(s,U6e)}catch(o){r(o)}try{await s.hooks.callHook("app:created",i),await s.hooks.callHook("app:beforeMount",i),i.mount(HVe),await s.hooks.callHook("app:mounted",i),await Vi()}catch(o){r(o)}return i},n=xwe().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{We as A,gi as B,jGt as C,jVe as D,gR as E,Yn as F,A0e as G,sD as H,ZAe as I,Xs as _,Ms as a,xZ as b,Toe as c,Dt as d,Zo as e,YGt as f,bEe as g,en as h,rHe as i,ue as j,QE as k,dB as l,Qb as m,sHe as n,nr as o,hZ as p,fZ as q,Me as r,KGt as s,gt as t,Xb as u,xe as v,H7 as w,Fi as x,rn as y,K as z};