dimcode 0.0.9-beta.7 → 0.0.9-beta.8
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.
- package/assets/gui/200.html +1 -1
- package/assets/gui/404.html +1 -1
- package/assets/gui/_nuxt/{C59w42ub.js → BA-BP_HY.js} +1 -1
- package/assets/gui/_nuxt/BBf5iR-q.js +1 -0
- package/assets/gui/_nuxt/BH7IYjvW.js +1 -0
- package/assets/gui/_nuxt/BUw7H-hv.js +1 -0
- package/assets/gui/_nuxt/BhRPY-oY.js +1 -0
- package/assets/gui/_nuxt/{fWqGrwan.js → Bhrxn6JZ.js} +1 -1
- package/assets/gui/_nuxt/C3Wv6jpd.js +1 -0
- package/assets/gui/_nuxt/C47S-Tmv.js +1 -0
- package/assets/gui/_nuxt/{C-Jbm3Hp.js → C4gqWexZ.js} +1 -1
- package/assets/gui/_nuxt/{DTMYz4Jt.js → C5YyOfLZ.js} +1 -1
- package/assets/gui/_nuxt/{rNU3DPJT.js → C7bC4P_E.js} +30 -30
- package/assets/gui/_nuxt/C9DEH72F.js +16 -0
- package/assets/gui/_nuxt/{DXx00hUE.js → CGscLIrv.js} +1 -1
- package/assets/gui/_nuxt/CMTm3GFP.js +1 -0
- package/assets/gui/_nuxt/CMjwMIkn.js +1 -0
- package/assets/gui/_nuxt/{DLcXGJ1M.js → CN47-09p.js} +1 -1
- package/assets/gui/_nuxt/COcwbKMJ.js +1 -0
- package/assets/gui/_nuxt/{CS1c1ilo.js → CQwku40e.js} +1 -1
- package/assets/gui/_nuxt/{Cl-U1hlN.js → CZhp0h8q.js} +1 -1
- package/assets/gui/_nuxt/CdchW-xK.js +840 -0
- package/assets/gui/_nuxt/{oTG82Wo1.js → CenWIFCC.js} +1 -1
- package/assets/gui/_nuxt/CjoLj4QM.js +1 -0
- package/assets/gui/_nuxt/CnsnAmq5.js +1 -0
- package/assets/gui/_nuxt/CoDkCxhg.js +1 -0
- package/assets/gui/_nuxt/CxLEBnE3.js +1 -0
- package/assets/gui/_nuxt/{B_k0ykIW.js → Cyreru_e.js} +2 -2
- package/assets/gui/_nuxt/DJjDtW9f.js +1 -0
- package/assets/gui/_nuxt/DMwsHuHA.js +1 -0
- package/assets/gui/_nuxt/{DnynIWI5.js → DPQKSBkg.js} +1 -1
- package/assets/gui/_nuxt/{Cb4P6-Nf.js → DQwYQDb2.js} +1 -1
- package/assets/gui/_nuxt/{CA7CTBwS.js → Dph4kLrZ.js} +1 -1
- package/assets/gui/_nuxt/{DDtWJeGD.js → DsumFeuD.js} +1 -1
- package/assets/gui/_nuxt/{Bu9oaDYs.js → IF9eRakj.js} +1 -1
- package/assets/gui/_nuxt/{B8T9Vkkp.js → PAYZpwzY.js} +217 -217
- package/assets/gui/_nuxt/{DyUgxO5C.js → RNghxpo_.js} +1 -1
- package/assets/gui/_nuxt/{_baseUniq-BP57Elhf.js → _baseUniq-BdSd79Vq.js} +1 -1
- package/assets/gui/_nuxt/{arc-Y1WZXZUo.js → arc-nxCqA4B-.js} +1 -1
- package/assets/gui/_nuxt/{architectureDiagram-VXUJARFQ-aO7Rb24c.js → architectureDiagram-VXUJARFQ-D5SmL0xU.js} +1 -1
- package/assets/gui/_nuxt/{blockDiagram-VD42YOAC-B3uFbaWi.js → blockDiagram-VD42YOAC-5Pu3bN-y.js} +1 -1
- package/assets/gui/_nuxt/builds/latest.json +1 -1
- package/assets/gui/_nuxt/builds/meta/2a764dda-41ca-4212-9aad-62a90648753c.json +1 -0
- package/assets/gui/_nuxt/{c4Diagram-YG6GDRKO-DHJl7yiB.js → c4Diagram-YG6GDRKO-DiuhMdBp.js} +1 -1
- package/assets/gui/_nuxt/channel-DjYzt4h1.js +1 -0
- package/assets/gui/_nuxt/{chunk-4BX2VUAB-CWm83ERH.js → chunk-4BX2VUAB-CS811av7.js} +1 -1
- package/assets/gui/_nuxt/{chunk-55IACEB6-Du_n8jC4.js → chunk-55IACEB6-L8Tz9yDG.js} +1 -1
- package/assets/gui/_nuxt/{chunk-B4BG7PRW-BTzCu0pf.js → chunk-B4BG7PRW-CS2yU7Rw.js} +1 -1
- package/assets/gui/_nuxt/{chunk-DI55MBZ5-DBddr-cr.js → chunk-DI55MBZ5-hUP7gVty.js} +1 -1
- package/assets/gui/_nuxt/{chunk-FMBD7UC4-8fDVfHv2.js → chunk-FMBD7UC4-CEMoP5Gu.js} +1 -1
- package/assets/gui/_nuxt/{chunk-QN33PNHL-CR7hsK0L.js → chunk-QN33PNHL-CWcD3U3p.js} +1 -1
- package/assets/gui/_nuxt/{chunk-QZHKN3VN-DaFYAnGP.js → chunk-QZHKN3VN-B4gwRULV.js} +1 -1
- package/assets/gui/_nuxt/{chunk-TZMSLE5B-BjCFOyRb.js → chunk-TZMSLE5B-CZz9GfcL.js} +1 -1
- package/assets/gui/_nuxt/classDiagram-2ON5EDUG-GFhNfoVm.js +1 -0
- package/assets/gui/_nuxt/classDiagram-v2-WZHVMYZB-GFhNfoVm.js +1 -0
- package/assets/gui/_nuxt/clone-aguyfhog.js +1 -0
- package/assets/gui/_nuxt/{cose-bilkent-S5V4N54A-CA9LZ8Zj.js → cose-bilkent-S5V4N54A-DBFRM5c_.js} +1 -1
- package/assets/gui/_nuxt/{dagre-6UL2VRFP-CBQSftkS.js → dagre-6UL2VRFP-BouTxVa6.js} +1 -1
- package/assets/gui/_nuxt/{diagram-PSM6KHXK-DsTyKY6m.js → diagram-PSM6KHXK-D9PEsEoQ.js} +1 -1
- package/assets/gui/_nuxt/{diagram-QEK2KX5R-D9APFlGs.js → diagram-QEK2KX5R-CYlicp_j.js} +1 -1
- package/assets/gui/_nuxt/{diagram-S2PKOQOG-IKVKLS18.js → diagram-S2PKOQOG-DPwwTo0s.js} +1 -1
- package/assets/gui/_nuxt/{erDiagram-Q2GNP2WA-CH15dTWb.js → erDiagram-Q2GNP2WA-DEM-7PJv.js} +1 -1
- package/assets/gui/_nuxt/error-404.BAwq3L4-.css +1 -0
- package/assets/gui/_nuxt/error-500.DFXMopWe.css +1 -0
- package/assets/gui/_nuxt/{flowDiagram-NV44I4VS-zt5vccS4.js → flowDiagram-NV44I4VS-CYqXgm95.js} +1 -1
- package/assets/gui/_nuxt/{ganttDiagram-JELNMOA3-DvD26RKf.js → ganttDiagram-JELNMOA3-DPXLm_kU.js} +1 -1
- package/assets/gui/_nuxt/{gitGraphDiagram-NY62KEGX-BEF64eCN.js → gitGraphDiagram-NY62KEGX-CsoM7DLX.js} +2 -2
- package/assets/gui/_nuxt/{graph-CvZayWR8.js → graph-CpDXN7qV.js} +1 -1
- package/assets/gui/_nuxt/{infoDiagram-WHAUD3N6-BqqPKCej.js → infoDiagram-WHAUD3N6-DrPgb6Tr.js} +1 -1
- package/assets/gui/_nuxt/{journeyDiagram-XKPGCS4Q-D37U2RLk.js → journeyDiagram-XKPGCS4Q-Cu0FFT51.js} +1 -1
- package/assets/gui/_nuxt/{kanban-definition-3W4ZIXB7-o0rG_onk.js → kanban-definition-3W4ZIXB7-BR3W-Q9G.js} +7 -7
- package/assets/gui/_nuxt/{katex-XbL3y5x-.js → katex-DhXJpUyf.js} +1 -1
- package/assets/gui/_nuxt/{layout-BVt2QQzT.js → layout-BimMqMAU.js} +1 -1
- package/assets/gui/_nuxt/{linear-CjtgffNP.js → linear-BQQnx0vX.js} +1 -1
- package/assets/gui/_nuxt/{min-CuqY3rK3.js → min-CFhidoS4.js} +1 -1
- package/assets/gui/_nuxt/{mindmap-definition-VGOIOE7T-4BDFzlaj.js → mindmap-definition-VGOIOE7T-jfdSwCii.js} +3 -3
- package/assets/gui/_nuxt/{pieDiagram-ADFJNKIX-DOY587kc.js → pieDiagram-ADFJNKIX-C1bJtUIR.js} +2 -2
- package/assets/gui/_nuxt/{quadrantDiagram-AYHSOK5B-C0uhckN3.js → quadrantDiagram-AYHSOK5B-Dj1gd_7c.js} +2 -2
- package/assets/gui/_nuxt/{requirementDiagram-UZGBJVZJ-D0pHyv4t.js → requirementDiagram-UZGBJVZJ-CBEcKTZJ.js} +1 -1
- package/assets/gui/_nuxt/{sankeyDiagram-TZEHDZUN-B9uFH2wG.js → sankeyDiagram-TZEHDZUN-CqkI-qY4.js} +1 -1
- package/assets/gui/_nuxt/{sequenceDiagram-WL72ISMW-CmLKcFaQ.js → sequenceDiagram-WL72ISMW-BCX7gXte.js} +1 -1
- package/assets/gui/_nuxt/{stateDiagram-FKZM4ZOC-DXLM32ee.js → stateDiagram-FKZM4ZOC-Bf3rQRaP.js} +1 -1
- package/assets/gui/_nuxt/stateDiagram-v2-4FDKWEC3-B4_qwTgn.js +1 -0
- package/assets/gui/_nuxt/{timeline-definition-IT6M3QCI-Bz55IcKP.js → timeline-definition-IT6M3QCI-Ra1wwujO.js} +1 -1
- package/assets/gui/_nuxt/{treemap-KMMF4GRG-D3QBlffy.js → treemap-KMMF4GRG-CdATOleX.js} +1 -1
- package/assets/gui/_nuxt/{vendor-katex.ltkKqWhd.css → vendor-katex.DmkBOJCM.css} +1 -1
- package/assets/gui/_nuxt/{xychartDiagram-PRI3JC2R-CPU3Crx9.js → xychartDiagram-PRI3JC2R-ABl8iR9g.js} +2 -2
- package/assets/gui/index.html +1 -1
- package/dist/cli.mjs +768 -767
- package/package.json +18 -17
- package/assets/gui/_nuxt/BE2KfCdU.js +0 -1
- package/assets/gui/_nuxt/BX7qsR0-.js +0 -1
- package/assets/gui/_nuxt/CfeIJUat.js +0 -1
- package/assets/gui/_nuxt/CmMr59Fi.js +0 -1
- package/assets/gui/_nuxt/Dn2_MT6a.js +0 -1
- package/assets/gui/_nuxt/K5feNrxe.js +0 -1
- package/assets/gui/_nuxt/PoHY5YXO.js +0 -1
- package/assets/gui/_nuxt/Xqf5ue2O.js +0 -1
- package/assets/gui/_nuxt/Z6tloZ0k.js +0 -855
- package/assets/gui/_nuxt/builds/meta/59aa6833-9929-4197-b8aa-f0e6c4c7dffd.json +0 -1
- package/assets/gui/_nuxt/channel-DpNic2cF.js +0 -1
- package/assets/gui/_nuxt/classDiagram-2ON5EDUG-CqyEtcjO.js +0 -1
- package/assets/gui/_nuxt/classDiagram-v2-WZHVMYZB-CqyEtcjO.js +0 -1
- package/assets/gui/_nuxt/clone-DCFnqWq9.js +0 -1
- package/assets/gui/_nuxt/error-404.DF6r4GP7.css +0 -1
- package/assets/gui/_nuxt/error-500.Bo5pzFPU.css +0 -1
- package/assets/gui/_nuxt/stateDiagram-v2-4FDKWEC3-Bwg-9iwU.js +0 -1
- package/assets/native/build.zig +0 -16
- package/assets/native/src/lib.zig +0 -23
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CGscLIrv.js","./Bhrxn6JZ.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./DMwsHuHA.js","./CQ8jqdy-.js","./mjskCLCv.js","./83L43bj1.js","./B1dDrJ26.js","./TsXTqZ29.js","./Dph4kLrZ.js","./DhmSosst.js","./BzTr9Aqm.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./DQwYQDb2.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DYoxhk2S.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./RNghxpo_.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Ni}from"./CdchW-xK.js";import{_ as c}from"./C7bC4P_E.js";var Bi=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,sr=Object.prototype.hasOwnProperty,ar=(t,e)=>{for(var i in e)Bi(t,i,{get:e[i],enumerable:!0})},lr=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=or(e),o=0,s=r.length,l;o<s;o++)l=r[o],!sr.call(t,l)&&l!==i&&Bi(t,l,{get:(a=>e[a]).bind(null,l),enumerable:!(n=rr(e,l))||n.enumerable});return t},ur=(t,e,i)=>(lr(t,e,"default"),i),oi;(function(t){t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending"})(oi||(oi={}));function cr({update:t,notify:e,unwatched:i}){let n=0;return{link:r,unlink:o,propagate:s,checkDirty:u,endTracking:a,startTracking:l,shallowPropagate:d};function r(h,f){const p=f.depsTail;if(p!==void 0&&p.dep===h)return;const _=p!==void 0?p.nextDep:f.deps;if(_!==void 0&&_.dep===h){_.version=n,f.depsTail=_;return}const v=h.subsTail;if(v!==void 0&&v.version===n&&v.sub===f)return;const g=f.depsTail=h.subsTail={version:n,dep:h,sub:f,prevDep:p,nextDep:_,prevSub:v,nextSub:void 0};_!==void 0&&(_.prevDep=g),p!==void 0?p.nextDep=g:f.deps=g,v!==void 0?v.nextSub=g:h.subs=g}function o(h,f=h.sub){const p=h.dep,_=h.prevDep,v=h.nextDep,g=h.nextSub,E=h.prevSub;return v!==void 0?v.prevDep=_:f.depsTail=_,_!==void 0?_.nextDep=v:f.deps=v,g!==void 0?g.prevSub=E:p.subsTail=E,E!==void 0?E.nextSub=g:(p.subs=g)===void 0&&i(p),v}function s(h){let f=h.nextSub,p;e:do{const _=h.sub;let v=_.flags;if(v&60?v&12?v&4?!(v&48)&&m(h,_)?(_.flags=v|40,v&=1):v=0:_.flags=v&-9|32:v=0:_.flags=v|32,v&2&&e(_),v&1){const g=_.subs;if(g!==void 0){const E=(h=g).nextSub;E!==void 0&&(p={value:f,prev:p},f=E);continue}}if((h=f)!==void 0){f=h.nextSub;continue}for(;p!==void 0;)if(h=p.value,p=p.prev,h!==void 0){f=h.nextSub;continue e}break}while(!0)}function l(h){++n,h.depsTail=void 0,h.flags=h.flags&-57|4}function a(h){const f=h.depsTail;let p=f!==void 0?f.nextDep:h.deps;for(;p!==void 0;)p=o(p,h);h.flags&=-5}function u(h,f){let p,_=0,v=!1;e:do{const g=h.dep,E=g.flags;if(f.flags&16)v=!0;else if((E&17)===17){if(t(g)){const y=g.subs;y.nextSub!==void 0&&d(y),v=!0}}else if((E&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(p={value:h,prev:p}),h=g.deps,f=g,++_;continue}if(!v){const y=h.nextDep;if(y!==void 0){h=y;continue}}for(;_--;){const y=f.subs,w=y.nextSub!==void 0;if(w?(h=p.value,p=p.prev):h=y,v){if(t(f)){w&&d(y),f=h.sub;continue}v=!1}else f.flags&=-33;f=h.sub;const A=h.nextDep;if(A!==void 0){h=A;continue e}}return v}while(!0)}function d(h){do{const f=h.sub,p=f.flags;(p&48)===32&&(f.flags=p|16,p&2&&e(f))}while((h=h.nextSub)!==void 0)}function m(h,f){let p=f.depsTail;for(;p!==void 0;){if(p===h)return!0;p=p.prevDep}return!1}}const{link:dr,unlink:Dt,propagate:nl,checkDirty:hr,endTracking:fr,startTracking:mr,shallowPropagate:pr}=cr({update(t){return"getter"in t?Hi(t):_r(t,t.value)},notify:Wi,unwatched(t){if("getter"in t){let e=t.deps;if(e!==void 0){t.flags=17;do e=Dt(e,t);while(e!==void 0)}}else"previousValue"in t||yr.call(t)}});let Ke;function si(t){const e=Ke;return Ke=t,e}function gr(t){return vr.bind({value:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:17,getter:t})}function Hi(t){const e=si(t);mr(t);try{const i=t.value;return i!==(t.value=t.getter(i))}finally{si(e),fr(t)}}function _r(t,e){return t.flags=1,t.previousValue!==(t.previousValue=e)}function Wi(t){const e=t.flags;if(!(e&64)){t.flags=e|64;const i=t.subs;i!==void 0&&Wi(i.sub)}}function vr(){const t=this.flags;if(t&16||t&32&&hr(this.deps,this)){if(Hi(this)){const e=this.subs;e!==void 0&&pr(e)}}else t&32&&(this.flags=t&-33);return Ke!==void 0&&dr(this,Ke),this.value}function yr(){let t=this.deps;for(;t!==void 0;)t=Dt(t,this);const e=this.subs;e!==void 0&&Dt(e),this.flags=0}function Sr(t){return Ht(t)}function Ht(t){return Array.isArray(t)?Er(t):t instanceof RegExp?t:typeof t=="object"?Tr(t):t}function Er(t){let e=[];for(let i=0,n=t.length;i<n;i++)e[i]=Ht(t[i]);return e}function Tr(t){let e={};for(let i in t)e[i]=Ht(t[i]);return e}function ji(t,...e){return e.forEach(i=>{for(let n in i)t[n]=i[n]}),t}function Gi(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Gi(t.substring(0,t.length-1)):t.substr(~e+1)}var pt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Be=class{static hasCaptures(t){return t===null?!1:(pt.lastIndex=0,pt.test(t))}static replaceCaptures(t,e,i){return t.replace(pt,(n,r,o,s)=>{let l=i[parseInt(r||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function Ui(t,e){return t<e?-1:t>e?1:0}function $i(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let i=t.length,n=e.length;if(i===n){for(let r=0;r<i;r++){let o=Ui(t[r],e[r]);if(o!==0)return o}return 0}return i-n}function ai(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Fi(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zi=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Ye=class{constructor(t,e,i){this._colorMap=t,this._defaults=e,this._root=i}static createFromRawTheme(t,e){return this.createFromParsedTheme(wr(t),e)}static createFromParsedTheme(t,e){return Cr(t,e)}_cachedMatchRoot=new zi(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(r=>Lr(t.parent,r.parentScopes));return n?new qi(n.fontStyle,n.foreground,n.background):null}},gt=class Fe{constructor(e,i){this.parent=e,this.scopeName=i}static push(e,i){for(const n of i)e=new Fe(e,n);return e}static from(...e){let i=null;for(let n=0;n<e.length;n++)i=new Fe(i,e[n]);return i}push(e){return new Fe(this,e)}getSegments(){let e=this;const i=[];for(;e;)i.push(e.scopeName),e=e.parent;return i.reverse(),i}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const i=[];let n=this;for(;n&&n!==e;)i.push(n.scopeName),n=n.parent;return n===e?i.reverse():void 0}};function Lr(t,e){if(e.length===0)return!0;for(let i=0;i<e.length;i++){let n=e[i],r=!1;if(n===">"){if(i===e.length-1)return!1;n=e[++i],r=!0}for(;t&&!br(t.scopeName,n);){if(r)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function br(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var qi=class{constructor(t,e,i){this.fontStyle=t,this.foregroundId=e,this.backgroundId=i}};function wr(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,i=[],n=0;for(let r=0,o=e.length;r<o;r++){let s=e[r];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let m=s.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let m=s.settings.fontStyle.split(" ");for(let h=0,f=m.length;h<f;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&ai(s.settings.foreground)&&(u=s.settings.foreground);let d=null;typeof s.settings.background=="string"&&ai(s.settings.background)&&(d=s.settings.background);for(let m=0,h=l.length;m<h;m++){let p=l[m].trim().split(" "),_=p[p.length-1],v=null;p.length>1&&(v=p.slice(0,p.length-1),v.reverse()),i[n++]=new Dr(_,v,r,a,u,d)}}return i}var Dr=class{constructor(t,e,i,n,r,o){this.scope=t,this.parentScopes=e,this.index=i,this.fontStyle=n,this.foreground=r,this.background=o}},N=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(N||{});function Cr(t,e){t.sort((a,u)=>{let d=Ui(a.scope,u.scope);return d!==0||(d=$i(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let i=0,n="#000000",r="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(i=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(r=a.background)}let o=new Ir(e),s=new qi(i,o.getId(n),o.getId(r)),l=new Rr(new Ct(0,null,-1,0,0),[]);for(let a=0,u=t.length;a<u;a++){let d=t[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,o.getId(d.foreground),o.getId(d.background))}return new Ye(o,s,l)}var Ir=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,i=t.length;e<i;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},Ar=Object.freeze([]),Ct=class Ki{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,i,n,r,o){this.scopeDepth=e,this.parentScopes=i||Ar,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new Ki(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let i=[];for(let n=0,r=e.length;n<r;n++)i[n]=e[n].clone();return i}acceptOverwrite(e,i,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,i!==-1&&(this.fontStyle=i),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Rr=class It{constructor(e,i=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=i}_rulesWithParentScopes;static _cmpBySpecificity(e,i){if(e.scopeDepth!==i.scopeDepth)return i.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===">"&&n++,i.parentScopes[r]===">"&&r++,!(n>=e.parentScopes.length||r>=i.parentScopes.length);){const o=i.parentScopes[r].length-e.parentScopes[n].length;if(o!==0)return o;n++,r++}return i.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),r,o;if(n===-1?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(r))return this._children[r].match(o)}const i=this._rulesWithParentScopes.concat(this._mainRule);return i.sort(It._cmpBySpecificity),i}insert(e,i,n,r,o,s){if(i===""){this._doInsertHere(e,n,r,o,s);return}let l=i.indexOf("."),a,u;l===-1?(a=i,u=""):(a=i.substring(0,l),u=i.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new It(this._mainRule.clone(),Ct.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,n,r,o,s)}_doInsertHere(e,i,n,r,o){if(i===null){this._mainRule.acceptOverwrite(e,n,r,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if($i(a.parentScopes,i)===0){a.acceptOverwrite(e,n,r,o);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Ct(e,i,n,r,o))}},le=class Z{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const i=Z.getLanguageId(e),n=Z.getTokenType(e),r=Z.getFontStyle(e),o=Z.getForeground(e),s=Z.getBackground(e);console.log({languageId:i,tokenType:n,fontStyle:r,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,i,n,r,o,s,l){let a=Z.getLanguageId(e),u=Z.getTokenType(e),d=Z.containsBalancedBrackets(e)?1:0,m=Z.getFontStyle(e),h=Z.getForeground(e),f=Z.getBackground(e);return i!==0&&(a=i),n!==8&&(u=n),r!==null&&(d=r?1:0),o!==-1&&(m=o),s!==0&&(h=s),l!==0&&(f=l),(a<<0|u<<8|d<<10|m<<11|h<<15|f<<24)>>>0}};function Je(t,e){const i=[],n=Pr(t);let r=n.next();for(;r!==null;){let a=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let u=s();if(i.push({matcher:u,priority:a}),r!==",")break;r=n.next()}return i;function o(){if(r==="-"){r=n.next();const a=o();return u=>!!a&&!a(u)}if(r==="("){r=n.next();const a=l();return r===")"&&(r=n.next()),a}if(li(r)){const a=[];do a.push(r),r=n.next();while(li(r));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return d=>a.every(m=>m(d))}function l(){const a=[];let u=s();for(;u&&(a.push(u),r==="|"||r===",");){do r=n.next();while(r==="|"||r===",");u=s()}return d=>a.some(m=>m(d))}}function li(t){return!!t&&!!t.match(/[\w\.:]+/)}function Pr(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,i=e.exec(t);return{next:()=>{if(!i)return null;const n=i[0];return i=e.exec(t),n}}}function Yi(t){typeof t.dispose=="function"&&t.dispose()}var Ae=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Or=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Mr=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},kr=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ae(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new Mr;for(const i of t)Vr(i,this.initialScopeName,this.repo,e);for(const i of e.references)if(i instanceof Ae){if(this.seenFullScopeRequests.has(i.scopeName))continue;this.seenFullScopeRequests.add(i.scopeName),this.Q.push(i)}else{if(this.seenFullScopeRequests.has(i.scopeName)||this.seenPartialScopeRequests.has(i.toKey()))continue;this.seenPartialScopeRequests.add(i.toKey()),this.Q.push(i)}}};function Vr(t,e,i,n){const r=i.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=i.lookup(e);t instanceof Ae?ze({baseGrammar:o,selfGrammar:r},n):At(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},n);const s=i.injections(t.scopeName);if(s)for(const l of s)n.add(new Ae(l))}function At(t,e,i){if(e.repository&&e.repository[t]){const n=e.repository[t];Xe([n],e,i)}}function ze(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Xe(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Xe(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Xe(t,e,i){for(const n of t){if(i.visitedRule.has(n))continue;i.visitedRule.add(n);const r=n.repository?ji({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Xe(n.patterns,{...e,repository:r},i);const o=n.include;if(!o)continue;const s=Ji(o);switch(s.kind){case 0:ze({...e,selfGrammar:e.baseGrammar},i);break;case 1:ze(e,i);break;case 2:At(s.ruleName,{...e,repository:r},i);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:r};s.kind===4?At(s.ruleName,a,i):ze(a,i)}else s.kind===4?i.add(new Or(s.scopeName,s.ruleName)):i.add(new Ae(s.scopeName));break}}}var xr=class{kind=0},Nr=class{kind=1},Br=class{constructor(t){this.ruleName=t}kind=2},Hr=class{constructor(t){this.scopeName=t}kind=3},Wr=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Ji(t){if(t==="$base")return new xr;if(t==="$self")return new Nr;const e=t.indexOf("#");if(e===-1)return new Hr(t);if(e===0)return new Br(t.substring(1));{const i=t.substring(0,e),n=t.substring(e+1);return new Wr(i,n)}}var jr=/\\(\d+)/,ui=/\\(\d+)/g,Gr=-1,Xi=-2;var ke=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,i,n){this.$location=t,this.id=e,this._name=i||null,this._nameIsCapturing=Be.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Be.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Gi(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Be.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Be.replaceCaptures(this._contentName,t,e)}},Ur=class extends ke{retokenizeCapturedWithRuleId;constructor(t,e,i,n,r){super(t,e,i,n),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,i,n){throw new Error("Not supported!")}},$r=class extends ke{_match;captures;_cachedCompiledPatterns;constructor(t,e,i,n,r){super(t,e,i,null),this._match=new Re(n,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,i,n){return this._getCachedCompiledPatterns(t).compileAG(t,i,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pe,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ci=class extends ke{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,i,n,r){super(t,e,i,n),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const i of this.patterns)t.getRule(i).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,i,n){return this._getCachedCompiledPatterns(t).compileAG(t,i,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pe,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rt=class extends ke{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,i,n,r,o,s,l,a,u){super(t,e,i,n),this._begin=new Re(r,this.id),this.beginCaptures=o,this._end=new Re(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,i,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,i,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pe;for(const i of this.patterns)t.getRule(i).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Qe=class extends ke{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,i,n,r,o,s,l,a){super(t,e,i,n),this._begin=new Re(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new Re(s,Xi),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,i,n){return this._getCachedCompiledPatterns(t).compileAG(t,i,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pe;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,i,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,i,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pe,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Qi=class z{static createCaptureRule(e,i,n,r,o){return e.registerRule(s=>new Ur(i,s,n,r,o))}static getCompiledRuleId(e,i,n){return e.id||i.registerRule(r=>{if(e.id=r,e.match)return new $r(e.$vscodeTextmateLocation,e.id,e.name,e.match,z._compileCaptures(e.captures,i,n));if(typeof e.begin>"u"){e.repository&&(n=ji({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new ci(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,z._compilePatterns(o,i,n))}return e.while?new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,z._compileCaptures(e.beginCaptures||e.captures,i,n),e.while,z._compileCaptures(e.whileCaptures||e.captures,i,n),z._compilePatterns(e.patterns,i,n)):new Rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,z._compileCaptures(e.beginCaptures||e.captures,i,n),e.end,z._compileCaptures(e.endCaptures||e.captures,i,n),e.applyEndPatternLast,z._compilePatterns(e.patterns,i,n))}),e.id}static _compileCaptures(e,i,n){let r=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)r[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=z.getCompiledRuleId(e[s],i,n)),r[l]=z.createCaptureRule(i,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return r}static _compilePatterns(e,i,n){let r=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const u=Ji(l.include);switch(u.kind){case 0:case 1:a=z.getCompiledRuleId(n[l.include],i,n);break;case 2:let d=n[u.ruleName];d&&(a=z.getCompiledRuleId(d,i,n));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,f=i.getExternalGrammar(m,n);if(f)if(h){let p=f.repository[h];p&&(a=z.getCompiledRuleId(p,i,f.repository))}else a=z.getCompiledRuleId(f.repository.$self,i,f.repository);break}}else a=z.getCompiledRuleId(l,i,n);if(a!==-1){const u=i.getRule(a);let d=!1;if((u instanceof ci||u instanceof Rt||u instanceof Qe)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},Re=class Zi{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,i){if(e&&typeof e=="string"){const n=e.length;let r=0,o=[],s=!1;for(let l=0;l<n;l++)if(e.charAt(l)==="\\"&&l+1<n){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(r,l)),o.push("$(?!\\n)(?<!\\n)"),r=l+2):(u==="A"||u==="G")&&(s=!0),l++}this.hasAnchor=s,r===0?this.source=e:(o.push(e.substring(r,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=i,typeof this.source=="string"?this.hasBackReferences=jr.test(this.source):this.hasBackReferences=!1}clone(){return new Zi(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,i){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=i.map(r=>e.substring(r.start,r.end));return ui.lastIndex=0,this.source.replace(ui,(r,o)=>Fi(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],i=[],n=[],r=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,i[o]=l,n[o]=l,r[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="",i[o+1]="",n[o+1]="A",r[o+1]="A"):a==="G"?(e[o+1]="",i[o+1]="G",n[o+1]="",r[o+1]="G"):(e[o+1]=a,i[o+1]=a,n[o+1]=a,r[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:i.join(""),A1_G0:n.join(""),A1_G1:r.join("")}}resolveAnchors(e,i){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?i?this._anchorCache.A1_G1:this._anchorCache.A1_G0:i?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pe=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(i=>i.source);this._cached=new di(t,e,this._items.map(i=>i.ruleId))}return this._cached}compileAG(t,e,i){return this._hasAnchors?e?i?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,i)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,i)),this._anchorCache.A1_G0):i?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,i)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,i)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,i){let n=this._items.map(r=>r.resolveAnchors(e,i));return new di(t,n,this._items.map(r=>r.ruleId))}},di=class{constructor(t,e,i){this.regExps=e,this.rules=i,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,i=this.rules.length;e<i;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
|
+
`)}findNextMatchSync(t,e,i){const n=this.scanner.findNextMatchSync(t,e,i);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},_t=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Fr=class Pt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,i){this._defaultAttributes=new _t(e,8),this._embeddedLanguagesMatcher=new zr(Object.entries(i||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Pt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new _t(0,0);_getBasicScopeAttributes=new zi(e=>{const i=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new _t(i,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const i=e.match(Pt.STANDARD_TOKEN_TYPE_REGEXP);if(!i)return 8;switch(i[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},zr=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([i,n])=>Fi(i));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},hi=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function en(t,e,i,n,r,o,s,l){const a=e.content.length;let u=!1,d=-1;if(s){const f=qr(t,e,i,n,r,o);r=f.stack,n=f.linePos,i=f.isFirstLine,d=f.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new hi(r,!0);h()}return new hi(r,!1);function h(){const f=Kr(t,e,i,n,r,d);if(!f){o.produce(r,a),u=!0;return}const p=f.captureIndices,_=f.matchedRuleId,v=p&&p.length>0?p[0].end>n:!1;if(_===Gr){const g=r.getRule(t);o.produce(r,p[0].start),r=r.withContentNameScopesList(r.nameScopesList),De(t,e,i,r,o,g.endCaptures,p),o.produce(r,p[0].end);const E=r;if(r=r.parent,d=E.getAnchorPos(),!v&&E.getEnterPos()===n){r=E,o.produce(r,a),u=!0;return}}else{const g=t.getRule(_);o.produce(r,p[0].start);const E=r,y=g.getName(e.content,p),w=r.contentNameScopesList.pushAttributed(y,t);if(r=r.push(_,n,d,p[0].end===a,null,w,w),g instanceof Rt){const A=g;De(t,e,i,r,o,A.beginCaptures,p),o.produce(r,p[0].end),d=p[0].end;const I=A.getContentName(e.content,p),O=w.pushAttributed(I,t);if(r=r.withContentNameScopesList(O),A.endHasBackReferences&&(r=r.withEndRule(A.getEndWithResolvedBackReferences(e.content,p))),!v&&E.hasSameRuleAs(r)){r=r.pop(),o.produce(r,a),u=!0;return}}else if(g instanceof Qe){const A=g;De(t,e,i,r,o,A.beginCaptures,p),o.produce(r,p[0].end),d=p[0].end;const I=A.getContentName(e.content,p),O=w.pushAttributed(I,t);if(r=r.withContentNameScopesList(O),A.whileHasBackReferences&&(r=r.withEndRule(A.getWhileWithResolvedBackReferences(e.content,p))),!v&&E.hasSameRuleAs(r)){r=r.pop(),o.produce(r,a),u=!0;return}}else if(De(t,e,i,r,o,g.captures,p),o.produce(r,p[0].end),r=r.pop(),!v){r=r.safePop(),o.produce(r,a),u=!0;return}}p[0].end>n&&(n=p[0].end,i=!1)}}function qr(t,e,i,n,r,o){let s=r.beginRuleCapturedEOL?0:-1;const l=[];for(let a=r;a;a=a.pop()){const u=a.getRule(t);u instanceof Qe&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:d}=Xr(a.rule,t,a.stack.endRule,i,n===s),m=u.findNextMatchSync(e,n,d);if(m){if(m.ruleId!==Xi){r=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(a.stack,m.captureIndices[0].start),De(t,e,i,a.stack,o,a.rule.whileCaptures,m.captureIndices),o.produce(a.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,i=!1))}else{r=a.stack.pop();break}}return{stack:r,linePos:n,anchorPosition:s,isFirstLine:i}}function Kr(t,e,i,n,r,o){const s=Yr(t,e,i,n,r,o),l=t.getInjections();if(l.length===0)return s;const a=Jr(l,t,e,i,n,r,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,d=a.captureIndices[0].start;return d<u||a.priorityMatch&&d===u?a:s}function Yr(t,e,i,n,r,o){const s=r.getRule(t),{ruleScanner:l,findOptions:a}=tn(s,t,r.endRule,i,n===o),u=l.findNextMatchSync(e,n,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Jr(t,e,i,n,r,o,s){let l=Number.MAX_VALUE,a=null,u,d=0;const m=o.contentNameScopesList.getScopeNames();for(let h=0,f=t.length;h<f;h++){const p=t[h];if(!p.matcher(m))continue;const _=e.getRule(p.ruleId),{ruleScanner:v,findOptions:g}=tn(_,e,null,n,r===s),E=v.findNextMatchSync(i,r,g);if(!E)continue;const y=E.captureIndices[0].start;if(!(y>=l)&&(l=y,a=E.captureIndices,u=E.ruleId,d=p.priority,l===r))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:u}:null}function tn(t,e,i,n,r){return{ruleScanner:t.compileAG(e,i,n,r),findOptions:0}}function Xr(t,e,i,n,r){return{ruleScanner:t.compileWhileAG(e,i,n,r),findOptions:0}}function De(t,e,i,n,r,o,s){if(o.length===0)return;const l=e.content,a=Math.min(o.length,s.length),u=[],d=s[0].end;for(let m=0;m<a;m++){const h=o[m];if(h===null)continue;const f=s[m];if(f.length===0)continue;if(f.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=f.start;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?r.produceFromScopes(u[u.length-1].scopes,f.start):r.produce(n,f.start),h.retokenizeCapturedWithRuleId){const _=h.getName(l,s),v=n.contentNameScopesList.pushAttributed(_,t),g=h.getContentName(l,s),E=v.pushAttributed(g,t),y=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,v,E),w=t.createOnigString(l.substring(0,f.end));en(t,w,i&&f.start===0,f.start,y,r,!1,0),Yi(w);continue}const p=h.getName(l,s);if(p!==null){const v=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(p,t);u.push(new Qr(v,f.end))}}for(;u.length>0;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Qr=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function Zr(t,e,i,n,r,o,s,l){return new to(t,e,i,n,r,o,s,l)}function fi(t,e,i,n,r){const o=Je(e,Ze),s=Qi.getCompiledRuleId(i,n,r.repository);for(const l of o)t.push({debugSelector:e,matcher:l.matcher,ruleId:s,grammar:r,priority:l.priority})}function Ze(t,e){if(e.length<t.length)return!1;let i=0;return t.every(n=>{for(let r=i;r<e.length;r++)if(eo(e[r],n))return i=r+1,!0;return!1})}function eo(t,e){if(!t)return!1;if(t===e)return!0;const i=e.length;return t.length>i&&t.substr(0,i)===e&&t[i]==="."}var to=class{constructor(t,e,i,n,r,o,s,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new Fr(i,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=mi(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const a of Object.keys(r)){const u=Je(a,Ze);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:r[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},e=[],i=this._rootScopeName,n=t.lookup(i);if(n){const r=n.injections;if(r)for(let s in r)fi(e,s,r[s],this,n);const o=this._grammarRepository.injections(i);o&&o.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const a=l.injectionSelector;a&&fi(e,a,l,this,l)}})}return e.sort((r,o)=>r.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,i=t(e);return this._ruleId2desc[e]=i,i}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const i=this._grammarRepository.lookup(t);if(i)return this._includedGrammars[t]=mi(i,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,i=0){const n=this._tokenize(t,e,!1,i);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,i=0){const n=this._tokenize(t,e,!0,i);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,i,n){this._rootId===-1&&(this._rootId=Qi.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!e||e===Ot.NULL){r=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=le.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=Ce.createRootAndLookUpScopeName(h,m,this):f=Ce.createRoot("unknown",m),e=new Ot(null,this._rootId,-1,-1,!1,null,f,f)}else r=!1,e.reset();t=t+`
|
|
4
|
+
`;const o=this.createOnigString(t),s=o.content.length,l=new no(i,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=en(this,o,r,0,e,l,!0,n);return Yi(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function mi(t,e){return t=Sr(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Ce=class ne{constructor(e,i,n){this.parent=e,this.scopePath=i,this.tokenAttributes=n}static fromExtension(e,i){let n=e,r=e?.scopePath??null;for(const o of i)r=gt.push(r,o.scopeNames),n=new ne(n,r,o.encodedTokenAttributes);return n}static createRoot(e,i){return new ne(null,new gt(null,e),i)}static createRootAndLookUpScopeName(e,i,n){const r=n.getMetadataForScope(e),o=new gt(null,e),s=n.themeProvider.themeMatch(o),l=ne.mergeAttributes(i,r,s);return new ne(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return ne.equals(this,e)}static equals(e,i){do{if(e===i||!e&&!i)return!0;if(!e||!i||e.scopeName!==i.scopeName||e.tokenAttributes!==i.tokenAttributes)return!1;e=e.parent,i=i.parent}while(!0)}static mergeAttributes(e,i,n){let r=-1,o=0,s=0;return n!==null&&(r=n.fontStyle,o=n.foregroundId,s=n.backgroundId),le.set(e,i.languageId,i.tokenType,null,r,o,s)}pushAttributed(e,i){if(e===null)return this;if(e.indexOf(" ")===-1)return ne._pushAttributed(this,e,i);const n=e.split(/ /g);let r=this;for(const o of n)r=ne._pushAttributed(r,o,i);return r}static _pushAttributed(e,i,n){const r=n.getMetadataForScope(i),o=e.scopePath.push(i),s=n.themeProvider.themeMatch(o),l=ne.mergeAttributes(e.tokenAttributes,r,s);return new ne(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const i=[];let n=this;for(;n&&n!==e;)i.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?i.reverse():void 0}},Ot=class de{constructor(e,i,n,r,o,s,l,a){this.parent=e,this.ruleId=i,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new de(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:de._equals(this,e)}static _equals(e,i){return e===i?!0:this._structuralEquals(e,i)?Ce.equals(e.contentNameScopesList,i.contentNameScopesList):!1}static _structuralEquals(e,i){do{if(e===i||!e&&!i)return!0;if(!e||!i||e.depth!==i.depth||e.ruleId!==i.ruleId||e.endRule!==i.endRule)return!1;e=e.parent,i=i.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){de._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,i,n,r,o,s,l){return new de(this,e,i,n,r,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,i){return this.parent&&(i=this.parent._writeString(e,i)),e[i++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,i}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new de(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let i=this;for(;i&&i._enterPos===e._enterPos;){if(i.ruleId===e.ruleId)return!0;i=i.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,i){const n=Ce.fromExtension(e?.nameScopesList??null,i.nameScopesList);return new de(e,i.ruleId,i.enterPos??-1,i.anchorPos??-1,i.beginRuleCapturedEOL,i.endRule,n,Ce.fromExtension(n,i.contentNameScopesList))}},io=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(i=>i==="*"?(this.allowAny=!0,[]):Je(i,Ze).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(i=>Je(i,Ze).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},no=class{constructor(t,e,i,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=i,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(n=le.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(o))}if(r&&(n=le.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const i=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:i}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const i=new Uint32Array(this._binaryTokens.length);for(let n=0,r=this._binaryTokens.length;n<r;n++)i[n]=this._binaryTokens[n];return i}},ro=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,i,n,r){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,Zr(t,o,e,i,n,r,this,this._onigLib))}return this._grammars.get(t)}},oo=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ro(Ye.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,i){this._syncRegistry.setTheme(Ye.createFromRawTheme(e,i))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,i,n){return this.loadGrammarWithConfiguration(e,i,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,i,n){return this._loadGrammar(e,i,n.embeddedLanguages,n.tokenTypes,new io(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,i,n,r,o){const s=new kr(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,i,n,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const i=this._options.loadGrammar(e);if(i){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(i,n)}}addGrammar(e,i=[],n=0,r=null){return this._syncRegistry.addGrammar(e,i),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,i=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,i,n,r,o)}},et=Ot.NULL;class Oe{constructor(e){this._ruleStack=e}get ruleStack(){return this._ruleStack}clone(){return new Oe(this._ruleStack)}equals(e){return!(!e||!(e instanceof Oe)||e!==this||e._ruleStack!==this._ruleStack)}}function Ie(t){if(Array.isArray(t)&&(t=t[0]),!!t)return t=(t.charCodeAt(0)===35?t.slice(1):t).toLowerCase(),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t}function so(t){let e="rules"in t?t.rules:void 0;if(!e){e=[];const n=t.settings||t.tokenColors;for(const{scope:r,settings:{foreground:o,background:s,fontStyle:l}={}}of n){if(!o&&!s&&!l)continue;const a=Array.isArray(r)?r:r?[r]:[],u=nn(l),d=Ie(o),m=Ie(s);e.push(...a.map(h=>({token:h,foreground:d,background:m,fontStyle:u})))}}const i=Object.fromEntries(Object.entries(t.colors||{}).map(([n,r])=>[n,`#${Ie(r)}`]));return{base:t.type==="light"?"vs":"vs-dark",inherit:!1,colors:i,rules:e}}function ao(t,e,i={}){const n=new Map,r=t.getLoadedThemes();for(const f of r){const p=t.getTheme(f),_=so(p);n.set(f,_),e.editor.defineTheme(f,_)}const o=[],s=new Map,l=e.editor.setTheme.bind(e.editor);e.editor.setTheme=f=>{const p=t.setTheme(f),_=n.get(f);o.length=p.colorMap.length;for(let v=0;v<p.colorMap.length;v++)o[v]=p.colorMap[v];s.clear(),_?.rules.forEach(v=>{const g=Ie(v.foreground);if(!g)return;const E=pi(g,nn(v.fontStyle));s.has(E)||s.set(E,v.token)}),l(f)};const a=e.editor.create;e.editor.create=(f,p,_)=>(p?.theme&&e.editor.setTheme(p.theme),a(f,p,_)),e.editor.setTheme(r[0]);function u(f,p){const _=pi(f,lo(p));return s.get(_)}const{tokenizeMaxLineLength:d=2e4,tokenizeTimeLimit:m=500}=i,h=new Set(e.languages.getLanguages().map(f=>f.id));for(const f of t.getLoadedLanguages())h.has(f)&&e.languages.setTokensProvider(f,{getInitialState(){return new Oe(et)},tokenize(p,_){if(p.length>=d)return{endState:_,tokens:[{startIndex:0,scopes:""}]};const g=t.getLanguage(f).tokenizeLine2(p,_.ruleStack,m);g.stoppedEarly&&console.warn(`Time limit reached when tokenizing line: ${p.substring(0,100)}`);const E=g.tokens.length/2,y=[];for(let w=0;w<E;w++){const A=g.tokens[2*w],I=g.tokens[2*w+1],O=le.getForeground(I),x=Ie(o[O]||""),$=le.getFontStyle(I),F=x&&u(x,$)||"";y.push({startIndex:A,scopes:F})}return{endState:new Oe(g.ruleStack),tokens:y}}})}function lo(t){if(t<=N.None)return"";const e=[];return t&N.Italic&&e.push("italic"),t&N.Bold&&e.push("bold"),t&N.Underline&&e.push("underline"),t&N.Strikethrough&&e.push("strikethrough"),e.join(" ")}const uo=["italic","bold","underline","strikethrough"],co={"line-through":"strikethrough"};function nn(t){if(!t)return"";const e=new Set(t.split(/[\s,]+/).map(i=>i.trim().toLowerCase()).map(i=>co[i]||i).filter(Boolean));return uo.filter(i=>e.has(i)).join(" ")}function pi(t,e){return e?`${t}|${e}`:t}let W=class extends Error{constructor(e){super(e),this.name="ShikiError"}};const ho=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ve{constructor(e,i,n){this.normal=i,this.property=e,n&&(this.space=n)}}Ve.prototype.normal={};Ve.prototype.property={};Ve.prototype.space=void 0;function rn(t,e){const i={},n={};for(const r of t)Object.assign(i,r.property),Object.assign(n,r.normal);return new Ve(i,n,e)}function Mt(t){return t.toLowerCase()}class Y{constructor(e,i){this.attribute=i,this.property=e}}Y.prototype.attribute="";Y.prototype.booleanish=!1;Y.prototype.boolean=!1;Y.prototype.commaOrSpaceSeparated=!1;Y.prototype.commaSeparated=!1;Y.prototype.defined=!1;Y.prototype.mustUseProperty=!1;Y.prototype.number=!1;Y.prototype.overloadedBoolean=!1;Y.prototype.property="";Y.prototype.spaceSeparated=!1;Y.prototype.space=void 0;let fo=0;const R=me(),H=me(),kt=me(),T=me(),k=me(),_e=me(),J=me();function me(){return 2**++fo}const Vt=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:H,commaOrSpaceSeparated:J,commaSeparated:_e,number:T,overloadedBoolean:kt,spaceSeparated:k},Symbol.toStringTag,{value:"Module"})),vt=Object.keys(Vt);class Wt extends Y{constructor(e,i,n,r){let o=-1;if(super(e,i),gi(this,"space",r),typeof n=="number")for(;++o<vt.length;){const s=vt[o];gi(this,vt[o],(n&Vt[s])===Vt[s])}}}Wt.prototype.defined=!0;function gi(t,e,i){i&&(t[e]=i)}function ye(t){const e={},i={};for(const[n,r]of Object.entries(t.properties)){const o=new Wt(n,t.transform(t.attributes||{},n),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,i[Mt(n)]=n,i[Mt(o.attribute)]=n}return new Ve(e,i,t.space)}const on=ye({properties:{ariaActiveDescendant:null,ariaAtomic:H,ariaAutoComplete:null,ariaBusy:H,ariaChecked:H,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:H,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:H,ariaFlowTo:k,ariaGrabbed:H,ariaHasPopup:null,ariaHidden:H,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:T,ariaLive:null,ariaModal:H,ariaMultiLine:H,ariaMultiSelectable:H,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:H,ariaReadOnly:H,ariaRelevant:null,ariaRequired:H,ariaRoleDescription:k,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:H,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function sn(t,e){return e in t?t[e]:e}function an(t,e){return sn(t,e.toLowerCase())}const mo=ye({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_e,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:k,autoFocus:R,autoPlay:R,blocking:k,capture:null,charSet:null,checked:R,cite:null,className:k,cols:T,colSpan:null,content:null,contentEditable:H,controls:R,controlsList:k,coords:T|_e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:kt,draggable:H,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:k,height:T,hidden:kt,high:T,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:k,itemRef:k,itemScope:R,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:R,optimum:T,pattern:null,ping:k,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:k,required:R,reversed:R,rows:T,rowSpan:T,sandbox:k,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:H,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:H,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:H,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:an}),po=ye({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:J,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_e,g2:_e,glyphName:_e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:J,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:J,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:J,rev:J,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:J,requiredFeatures:J,requiredFonts:J,requiredFormats:J,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:J,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:J,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:J,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sn}),ln=ye({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),un=ye({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:an}),cn=ye({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),go=/[A-Z]/g,_i=/-[a-z]/g,_o=/^data[-\w.:]+$/i;function vo(t,e){const i=Mt(e);let n=e,r=Y;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&_o.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(_i,So);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!_i.test(o)){let s=o.replace(go,yo);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=Wt}return new r(n,e)}function yo(t){return"-"+t.toLowerCase()}function So(t){return t.charAt(1).toUpperCase()}const Eo=rn([on,mo,ln,un,cn],"html"),dn=rn([on,po,ln,un,cn],"svg"),vi={}.hasOwnProperty;function To(t,e){const i=e||{};function n(r,...o){let s=n.invalid;const l=n.handlers;if(r&&vi.call(r,t)){const a=String(r[t]);s=vi.call(l,a)?l[a]:n.unknown}if(s)return s.call(this,r,...o)}return n.handlers=i.handlers||{},n.invalid=i.invalid,n.unknown=i.unknown,n}const Lo=/["&'<>`]/g,bo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Do=/[|\\{}()[\]^$+*?.]/g,yi=new WeakMap;function Co(t,e){if(t=t.replace(e.subset?Io(e.subset):Lo,n),e.subset||e.escapeOnly)return t;return t.replace(bo,i).replace(wo,n);function i(r,o,s){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function n(r,o,s){return e.format(r.charCodeAt(0),s.charCodeAt(o+1),e)}}function Io(t){let e=yi.get(t);return e||(e=Ao(t),yi.set(t,e)),e}function Ao(t){const e=[];let i=-1;for(;++i<t.length;)e.push(t[i].replace(Do,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Ro=/[\dA-Fa-f]/;function Po(t,e,i){const n="&#x"+t.toString(16).toUpperCase();return i&&e&&!Ro.test(String.fromCharCode(e))?n:n+";"}const Oo=/\d/;function Mo(t,e,i){const n="&#"+String(t);return i&&e&&!Oo.test(String.fromCharCode(e))?n:n+";"}const ko=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],yt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Vo=["cent","copy","divide","gt","lt","not","para","times"],hn={}.hasOwnProperty,xt={};let He;for(He in yt)hn.call(yt,He)&&(xt[yt[He]]=He);const xo=/[^\dA-Za-z]/;function No(t,e,i,n){const r=String.fromCharCode(t);if(hn.call(xt,r)){const o=xt[r],s="&"+o;return i&&ko.includes(o)&&!Vo.includes(o)&&(!n||e&&e!==61&&xo.test(String.fromCharCode(e)))?s:s+";"}return""}function Bo(t,e,i){let n=Po(t,e,i.omitOptionalSemicolons),r;if((i.useNamedReferences||i.useShortestReferences)&&(r=No(t,e,i.omitOptionalSemicolons,i.attribute)),(i.useShortestReferences||!r)&&i.useShortestReferences){const o=Mo(t,e,i.omitOptionalSemicolons);o.length<n.length&&(n=o)}return r&&(!i.useShortestReferences||r.length<n.length)?r:n}function ve(t,e){return Co(t,Object.assign({format:Bo},e))}const Ho=/^>|^->|<!--|-->|--!>|<!-$/g,Wo=[">"],jo=["<",">"];function Go(t,e,i,n){return n.settings.bogusComments?"<?"+ve(t.value,Object.assign({},n.settings.characterReferences,{subset:Wo}))+">":"<!--"+t.value.replace(Ho,r)+"-->";function r(o){return ve(o,Object.assign({},n.settings.characterReferences,{subset:jo}))}}function Uo(t,e,i,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Si(t,e){const i=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,r=i.indexOf(e);for(;r!==-1;)n++,r=i.indexOf(e,r+e.length);return n}function $o(t,e){const i=e||{};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}function Fo(t){return t.join(" ").trim()}const zo=/[ \t\n\f\r]/g;function jt(t){return typeof t=="object"?t.type==="text"?Ei(t.value):!1:Ei(t)}function Ei(t){return t.replace(zo,"")===""}const G=mn(1),fn=mn(-1),qo=[];function mn(t){return e;function e(i,n,r){const o=i?i.children:qo;let s=(n||0)+t,l=o[s];if(!r)for(;l&&jt(l);)s+=t,l=o[s];return l}}const Ko={}.hasOwnProperty;function pn(t){return e;function e(i,n,r){return Ko.call(t,i.tagName)&&t[i.tagName](i,n,r)}}const Gt=pn({body:Jo,caption:St,colgroup:St,dd:es,dt:Zo,head:St,html:Yo,li:Qo,optgroup:ts,option:is,p:Xo,rp:Ti,rt:Ti,tbody:rs,td:Li,tfoot:os,th:Li,thead:ns,tr:ss});function St(t,e,i){const n=G(i,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&jt(n.value.charAt(0)))}function Yo(t,e,i){const n=G(i,e);return!n||n.type!=="comment"}function Jo(t,e,i){const n=G(i,e);return!n||n.type!=="comment"}function Xo(t,e,i){const n=G(i,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!i||!(i.type==="element"&&(i.tagName==="a"||i.tagName==="audio"||i.tagName==="del"||i.tagName==="ins"||i.tagName==="map"||i.tagName==="noscript"||i.tagName==="video"))}function Qo(t,e,i){const n=G(i,e);return!n||n.type==="element"&&n.tagName==="li"}function Zo(t,e,i){const n=G(i,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function es(t,e,i){const n=G(i,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Ti(t,e,i){const n=G(i,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function ts(t,e,i){const n=G(i,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function is(t,e,i){const n=G(i,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function ns(t,e,i){const n=G(i,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function rs(t,e,i){const n=G(i,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function os(t,e,i){return!G(i,e)}function ss(t,e,i){const n=G(i,e);return!n||n.type==="element"&&n.tagName==="tr"}function Li(t,e,i){const n=G(i,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const as=pn({body:cs,colgroup:ds,head:us,html:ls,tbody:hs});function ls(t){const e=G(t,-1);return!e||e.type!=="comment"}function us(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const i=t.children[0];return!i||i.type==="element"}function cs(t){const e=G(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&jt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ds(t,e,i){const n=fn(i,e),r=G(t,-1,!0);return i&&n&&n.type==="element"&&n.tagName==="colgroup"&&Gt(n,i.children.indexOf(n),i)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function hs(t,e,i){const n=fn(i,e),r=G(t,-1);return i&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Gt(n,i.children.indexOf(n),i)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const We={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function fs(t,e,i,n){const r=n.schema,o=r.space==="svg"?!1:n.settings.omitOptionalTags;let s=r.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const l=[];let a;r.space==="html"&&t.tagName==="svg"&&(n.schema=dn);const u=ms(n,t.properties),d=n.all(r.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=r,d&&(s=!1),(u||!o||!as(t,e,i))&&(l.push("<",t.tagName,u?" "+u:""),s&&(r.space==="svg"||n.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!n.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!s&&(!o||!Gt(t,e,i))&&l.push("</"+t.tagName+">"),l.join("")}function ms(t,e){const i=[];let n=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){const o=ps(t,r,e[r]);o&&i.push(o)}}for(;++n<i.length;){const o=t.settings.tightAttributes?i[n].charAt(i[n].length-1):void 0;n!==i.length-1&&o!=='"'&&o!=="'"&&(i[n]+=" ")}return i.join("")}function ps(t,e,i){const n=vo(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let s=t.quote,l;if(n.overloadedBoolean&&(i===n.attribute||i==="")?i=!0:(n.boolean||n.overloadedBoolean)&&(typeof i!="string"||i===n.attribute||i==="")&&(i=!!i),i==null||i===!1||typeof i=="number"&&Number.isNaN(i))return"";const a=ve(n.attribute,Object.assign({},t.settings.characterReferences,{subset:We.name[r][o]}));return i===!0||(i=Array.isArray(i)?(n.commaSeparated?$o:Fo)(i,{padLeft:!t.settings.tightCommaSeparatedLists}):String(i),t.settings.collapseEmptyAttributes&&!i)?a:(t.settings.preferUnquoted&&(l=ve(i,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:We.unquoted[r][o]}))),l!==i&&(t.settings.quoteSmart&&Si(i,s)>Si(i,t.alternative)&&(s=t.alternative),l=s+ve(i,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?We.single:We.double)[r][o],attribute:!0}))+s),a+(l&&"="+l))}const gs=["<","&"];function gn(t,e,i,n){return i&&i.type==="element"&&(i.tagName==="script"||i.tagName==="style")?t.value:ve(t.value,Object.assign({},n.settings.characterReferences,{subset:gs}))}function _s(t,e,i,n){return n.settings.allowDangerousHtml?t.value:gn(t,e,i,n)}function vs(t,e,i,n){return n.all(t)}const ys=To("type",{invalid:Ss,unknown:Es,handlers:{comment:Go,doctype:Uo,element:fs,raw:_s,root:vs,text:gn}});function Ss(t){throw new Error("Expected node, not `"+t+"`")}function Es(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ts={},Ls={},bs=[];function ws(t,e){const i=e||Ts,n=i.quote||'"',r=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Ds,all:Cs,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||ho,characterReferences:i.characterReferences||Ls,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:i.space==="svg"?dn:Eo,quote:n,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Ds(t,e,i){return ys(t,e,i,this)}function Cs(t){const e=[],i=t&&t.children||bs;let n=-1;for(;++n<i.length;)e[n]=this.one(i[n],n,t);return e.join("")}function tt(t,e){const i=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[r,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?i[r]=o:r===n&&Object.assign(i,o);return i}function ae(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function Is(t){return Array.isArray(t)?t:[t]}async function _n(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function Ut(t){return!t||["plaintext","txt","text","plain"].includes(t)}function vn(t){return t==="ansi"||Ut(t)}function $t(t){return t==="none"}function yn(t){return $t(t)}function Sn(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const i=Array.isArray(e)?e:e.split(/\s+/g);for(const n of i)n&&!t.properties.class.includes(n)&&t.properties.class.push(n);return t}function at(t,e=!1){if(t.length===0)return[["",0]];const i=t.split(/(\r?\n)/g);let n=0;const r=[];for(let o=0;o<i.length;o+=2){const s=e?i[o]+(i[o+1]||""):i[o];r.push([s,n]),n+=i[o].length,n+=i[o+1]?.length||0}return r}function As(t){const e=at(t,!0).map(([r])=>r);function i(r){if(r===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=r,s=0;for(const l of e){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function n(r,o){let s=0;for(let l=0;l<r;l++)s+=e[l].length;return s+=o,s}return{lines:e,indexToPos:i,posToIndex:n}}const Ft="light-dark()",Rs=["color","background-color"];function Ps(t,e){let i=0;const n=[];for(const r of e)r>i&&n.push({...t,content:t.content.slice(i,r),offset:t.offset+i}),i=r;return i<t.content.length&&n.push({...t,content:t.content.slice(i),offset:t.offset+i}),n}function Os(t,e){const i=Array.from(e instanceof Set?e:new Set(e)).sort((n,r)=>n-r);return i.length?t.map(n=>n.flatMap(r=>{const o=i.filter(s=>r.offset<s&&s<r.offset+r.content.length).map(s=>s-r.offset).sort((s,l)=>s-l);return o.length?Ps(r,o):r})):t}function Ms(t,e,i,n,r="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(d=>it(t.variants[d])),l=new Set(s.flatMap(d=>Object.keys(d))),a={},u=(d,m)=>{const h=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return i+e[d]+(m==="color"?"":h)};return s.forEach((d,m)=>{for(const h of l){const f=d[h]||"inherit";if(m===0&&n&&Rs.includes(h))if(n===Ft&&s.length>1){const p=e.findIndex(E=>E==="light"),_=e.findIndex(E=>E==="dark");if(p===-1||_===-1)throw new W('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=s[p][h]||"inherit",g=s[_][h]||"inherit";a[h]=`light-dark(${v}, ${g})`,r==="css-vars"&&(a[u(m,h)]=f)}else a[h]=f;else r==="css-vars"&&(a[u(m,h)]=f)}}),o.htmlStyle=a,o}function it(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&N.Italic&&(e["font-style"]="italic"),t.fontStyle&N.Bold&&(e["font-weight"]="bold");const i=[];t.fontStyle&N.Underline&&i.push("underline"),t.fontStyle&N.Strikethrough&&i.push("line-through"),i.length&&(e["text-decoration"]=i.join(" "))}return e}function Nt(t){return typeof t=="string"?t:Object.entries(t).map(([e,i])=>`${e}:${i}`).join(";")}const En=new WeakMap;function lt(t,e){En.set(t,e)}function Me(t){return En.get(t)}class Se{_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,i){return new Se(Object.fromEntries(Is(i).map(n=>[n,et])),e)}constructor(...e){if(e.length===2){const[i,n]=e;this.lang=n,this._stacks=i}else{const[i,n,r]=e;this.lang=n,this._stacks={[r]:i}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return ks(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function ks(t){const e=[],i=new Set;function n(r){if(i.has(r))return;i.add(r);const o=r?.nameScopesList?.scopeName;o&&e.push(o),r.parent&&n(r.parent)}return n(t),e}function Vs(t,e){if(!(t instanceof Se))throw new W("Invalid grammar state");return t.getInternalStack(e)}function xs(){const t=new WeakMap;function e(i){if(!t.has(i.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>i.source.length)throw new W(`Invalid decoration offset: ${s}. Code length: ${i.source.length}`);return{...r.indexToPos(s),offset:s}}else{const l=r.lines[s.line];if(l===void 0)throw new W(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${r.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new W(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:r.posToIndex(s.line,a)}}};const r=As(i.source),o=(i.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));Ns(o),t.set(i.meta,{decorations:o,converter:r,source:i.source})}return t.get(i.meta)}return{name:"shiki:decorations",tokens(i){if(!this.options.decorations?.length)return;const r=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Os(i,r)},code(i){if(!this.options.decorations?.length)return;const n=e(this),r=Array.from(i.children).filter(d=>d.type==="element"&&d.tagName==="span");if(r.length!==n.converter.lines.length)throw new W(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(d,m,h,f){const p=r[d];let _="",v=-1,g=-1;if(m===0&&(v=0),h===0&&(g=0),h===Number.POSITIVE_INFINITY&&(g=p.children.length),v===-1||g===-1)for(let y=0;y<p.children.length;y++)_+=Tn(p.children[y]),v===-1&&_.length===m&&(v=y+1),g===-1&&_.length===h&&(g=y+1);if(v===-1)throw new W(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(g===-1)throw new W(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const E=p.children.slice(v,g);if(!f.alwaysWrap&&E.length===p.children.length)l(p,f,"line");else if(!f.alwaysWrap&&E.length===1&&E[0].type==="element")l(E[0],f,"token");else{const y={type:"element",tagName:"span",properties:{},children:E};l(y,f,"wrapper"),p.children.splice(v,E.length,y)}}function s(d,m){r[d]=l(r[d],m,"line")}function l(d,m,h){const f=m.properties||{},p=m.transform||(_=>_);return d.tagName=m.tagName||"span",d.properties={...d.properties,...f,class:d.properties.class},m.properties?.class&&Sn(d,m.properties.class),d=p(d,h)||d,d}const a=[],u=n.decorations.sort((d,m)=>m.start.offset-d.start.offset||d.end.offset-m.end.offset);for(const d of u){const{start:m,end:h}=d;if(m.line===h.line)o(m.line,m.character,h.character,d);else if(m.line<h.line){o(m.line,m.character,Number.POSITIVE_INFINITY,d);for(let f=m.line+1;f<h.line;f++)a.unshift(()=>s(f,d));o(h.line,0,h.character,d)}}a.forEach(d=>d())}}}function Ns(t){for(let e=0;e<t.length;e++){const i=t[e];if(i.start.offset>i.end.offset)throw new W(`Invalid decoration range: ${JSON.stringify(i.start)} - ${JSON.stringify(i.end)}`);for(let n=e+1;n<t.length;n++){const r=t[n],o=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,s=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset,l=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&i.start.offset===i.end.offset||s&&r.start.offset===r.end.offset)continue;throw new W(`Decorations ${JSON.stringify(i.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function Tn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Tn).join(""):""}const Bs=[xs()];function nt(t){const e=Hs(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Bs]}function Hs(t){const e=[],i=[],n=[];for(const r of t)switch(r.enforce){case"pre":e.push(r);break;case"post":i.push(r);break;default:n.push(r)}return{pre:e,post:i,normal:n}}var he=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Et={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ws(t,e){const i=t.indexOf("\x1B",e);if(i!==-1&&t[i+1]==="["){const n=t.indexOf("m",i);if(n!==-1)return{sequence:t.substring(i+2,n).split(";"),startPosition:i,position:n+1}}return{position:t.length}}function bi(t){const e=t.shift();if(e==="2"){const i=t.splice(0,3).map(n=>Number.parseInt(n));return i.length!==3||i.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:i}}else if(e==="5"){const i=t.shift();if(i)return{type:"table",index:Number(i)}}}function js(t){const e=[];for(;t.length>0;){const i=t.shift();if(!i)continue;const n=Number.parseInt(i);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)Et[n]&&e.push({type:"setDecoration",value:Et[n]});else if(n<=29){const r=Et[n-20];r&&(e.push({type:"resetDecoration",value:r}),r==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:he[n-30]}});else if(n===38){const r=bi(t);r&&e.push({type:"setForegroundColor",value:r})}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:he[n-40]}});else if(n===48){const r=bi(t);r&&e.push({type:"setBackgroundColor",value:r})}else n===49?e.push({type:"resetBackgroundColor"}):n===53?e.push({type:"setDecoration",value:"overline"}):n===55?e.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:he[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:he[n-100+8]}})}return e}function Gs(){let t=null,e=null,i=new Set;return{parse(n){const r=[];let o=0;do{const s=Ws(n,o),l=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(l.length>0&&r.push({value:l,foreground:t,background:e,decorations:new Set(i)}),s.sequence){const a=js(s.sequence);for(const u of a)u.type==="resetAll"?(t=null,e=null,i.clear()):u.type==="resetForegroundColor"?t=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&i.delete(u.value);for(const u of a)u.type==="setForegroundColor"?t=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&i.add(u.value)}o=s.position}while(o<n.length);return r}}}var Us={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 $s(t=Us){function e(l){return t[l]}function i(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let n;function r(){if(n)return n;n=[];for(let u=0;u<he.length;u++)n.push(e(he[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let d=0;d<6;d++)for(let m=0;m<6;m++)n.push(i([l[u],l[d],l[m]]));let a=8;for(let u=0;u<24;u++,a+=10)n.push(i([a,a,a]));return n}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return i(l.rgb);case"table":return o(l.index)}}return{value:s}}const Fs={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function zs(t,e,i){const n=tt(t,i),r=at(e),o=Object.fromEntries(he.map(a=>{const u=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,d=t.colors?.[u];return[a,d||Fs[a]]})),s=$s(o),l=Gs();return r.map(a=>l.parse(a[0]).map(u=>{let d,m;u.decorations.has("reverse")?(d=u.background?s.value(u.background):t.bg,m=u.foreground?s.value(u.foreground):t.fg):(d=u.foreground?s.value(u.foreground):t.fg,m=u.background?s.value(u.background):void 0),d=ae(d,n),m=ae(m,n),u.decorations.has("dim")&&(d=qs(d));let h=N.None;return u.decorations.has("bold")&&(h|=N.Bold),u.decorations.has("italic")&&(h|=N.Italic),u.decorations.has("underline")&&(h|=N.Underline),u.decorations.has("strikethrough")&&(h|=N.Strikethrough),{content:u.value,offset:a[1],color:d,bgColor:m,fontStyle:h}}))}function qs(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const n=e[1];if(n.length===8){const r=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${r}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const r=n[0],o=n[1],s=n[2],l=n[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${r}${r}${o}${o}${s}${s}${a}`}else if(n.length===3){const r=n[0],o=n[1],s=n[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const i=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return i?`var(${i[1]}-dim)`:t}function zt(t,e,i={}){const{theme:n=t.getLoadedThemes()[0]}=i,r=t.resolveLangAlias(i.lang||"text");if(Ut(r)||$t(n))return at(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:s}=t.setTheme(n);if(r==="ansi")return zs(o,e,i);const l=t.getLanguage(i.lang||"text");if(i.grammarState){if(i.grammarState.lang!==l.name)throw new W(`Grammar state language "${i.grammarState.lang}" does not match highlight language "${l.name}"`);if(!i.grammarState.themes.includes(o.name))throw new W(`Grammar state themes "${i.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Ys(e,l,o,s,i)}function Ks(...t){if(t.length===2)return Me(t[1]);const[e,i,n={}]=t,{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(Ut(r)||$t(o))throw new W("Plain language does not have grammar state");if(r==="ansi")throw new W("ANSI language does not have grammar state");const{theme:s,colorMap:l}=e.setTheme(o),a=e.getLanguage(r);return new Se(qt(i,a,s,l,n).stateStack,a.name,s.name)}function Ys(t,e,i,n,r){const o=qt(t,e,i,n,r),s=new Se(o.stateStack,e.name,i.name);return lt(o.tokens,s),o.tokens}function qt(t,e,i,n,r){const o=tt(i,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=r,a=at(t);let u=r.grammarState?Vs(r.grammarState,i.name)??et:r.grammarContextCode!=null?qt(r.grammarContextCode,e,i,n,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:et,d=[];const m=[];for(let h=0,f=a.length;h<f;h++){const[p,_]=a[h];if(p===""){d=[],m.push([]);continue}if(s>0&&p.length>=s){d=[],m.push([{content:p,offset:_,color:"",fontStyle:0}]);continue}let v,g,E;r.includeExplanation&&(v=e.tokenizeLine(p,u,l),g=v.tokens,E=0);const y=e.tokenizeLine2(p,u,l),w=y.tokens.length/2;for(let A=0;A<w;A++){const I=y.tokens[2*A],O=A+1<w?y.tokens[2*A+2]:p.length;if(I===O)continue;const x=y.tokens[2*A+1],$=ae(n[le.getForeground(x)],o),F=le.getFontStyle(x),te={content:p.substring(I,O),offset:_+I,color:$,fontStyle:F};if(r.includeExplanation){const ie=[];if(r.includeExplanation!=="scopeName")for(const X of i.settings){let K;switch(typeof X.scope){case"string":K=X.scope.split(/,/).map(se=>se.trim());break;case"object":K=X.scope;break;default:continue}ie.push({settings:X,selectors:K.map(se=>se.split(/ /))})}te.explanation=[];let q=0;for(;I+q<O;){const X=g[E],K=p.substring(X.startIndex,X.endIndex);q+=K.length,te.explanation.push({content:K,scopes:r.includeExplanation==="scopeName"?Js(X.scopes):Xs(ie,X.scopes)}),E+=1}}d.push(te)}m.push(d),d=[],u=y.ruleStack}return{tokens:m,stateStack:u}}function Js(t){return t.map(e=>({scopeName:e}))}function Xs(t,e){const i=[];for(let n=0,r=e.length;n<r;n++){const o=e[n];i[n]={scopeName:o,themeMatches:Zs(t,o,e.slice(0,n))}}return i}function wi(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Qs(t,e,i){if(!wi(t[t.length-1],e))return!1;let n=t.length-2,r=i.length-1;for(;n>=0&&r>=0;)wi(t[n],i[r])&&(n-=1),r-=1;return n===-1}function Zs(t,e,i){const n=[];for(const{selectors:r,settings:o}of t)for(const s of r)if(Qs(s,e,i)){n.push(o);break}return n}function Ln(t,e,i){const n=Object.entries(i.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),r=n.map(a=>{const u=zt(t,e,{...i,theme:a.theme}),d=Me(u),m=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:u,state:d,theme:m}}),o=ea(...r.map(a=>a.tokens)),s=o[0].map((a,u)=>a.map((d,m)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in i&&i.includeExplanation&&(h.explanation=d.explanation),o.forEach((f,p)=>{const{content:_,explanation:v,offset:g,...E}=f[u][m];h.variants[n[p].color]=E}),h})),l=r[0].state?new Se(Object.fromEntries(r.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),r[0].state.lang):void 0;return l&<(s,l),s}function ea(...t){const e=t.map(()=>[]),i=t.length;for(let n=0;n<t[0].length;n++){const r=t.map(a=>a[n]),o=e.map(()=>[]);e.forEach((a,u)=>a.push(o[u]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(u=>u.content.length));for(let u=0;u<i;u++){const d=l[u];d.content.length===a?(o[u].push(d),s[u]+=1,l[u]=r[u][s[u]]):(o[u].push({...d,content:d.content.slice(0,a)}),l[u]={...d,content:d.content.slice(a),offset:d.offset+a})}}}return e}function rt(t,e,i){let n,r,o,s,l,a;if("themes"in i){const{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:m="css-vars"}=i,h=Object.entries(i.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,E)=>g.color===u?-1:E.color===u?1:0);if(h.length===0)throw new W("`themes` option must not be empty");const f=Ln(t,e,i);if(a=Me(f),u&&Ft!==u&&!h.find(g=>g.color===u))throw new W(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=h.map(g=>t.getTheme(g.theme)),_=h.map(g=>g.color);o=f.map(g=>g.map(E=>Ms(E,_,d,u,m))),a&<(o,a);const v=h.map(g=>tt(g.theme,i));r=Di(h,p,v,d,u,"fg",m),n=Di(h,p,v,d,u,"bg",m),s=`shiki-themes ${p.map(g=>g.name).join(" ")}`,l=u?void 0:[r,n].join(";")}else if("theme"in i){const u=tt(i.theme,i);o=zt(t,e,i);const d=t.getTheme(i.theme);n=ae(d.bg,u),r=ae(d.fg,u),s=d.name,a=Me(o)}else throw new W("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:n,themeName:s,rootStyle:l,grammarState:a}}function Di(t,e,i,n,r,o,s){return t.map((l,a)=>{const u=ae(e[a][o],i[a])||"inherit",d=`${n+l.color}${o==="bg"?"-bg":""}:${u}`;if(a===0&&r){if(r===Ft&&t.length>1){const m=t.findIndex(_=>_.color==="light"),h=t.findIndex(_=>_.color==="dark");if(m===-1||h===-1)throw new W('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=ae(e[m][o],i[m])||"inherit",p=ae(e[h][o],i[h])||"inherit";return`light-dark(${f}, ${p});${d}`}return u}return s==="css-vars"?d:null}).filter(l=>!!l).join(";")}function ot(t,e,i,n={meta:{},options:i,codeToHast:(r,o)=>ot(t,r,o),codeToTokens:(r,o)=>rt(t,r,o)}){let r=e;for(const p of nt(i))r=p.preprocess?.call(n,r,i)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:u,grammarState:d}=rt(t,r,i);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:h=!1}=i;m===!0?o=ia(o):m==="never"&&(o=na(o)),h&&(o=ra(o));const f={...n,get source(){return r}};for(const p of nt(i))o=p.tokens?.call(f,o)||o;return ta(o,{...i,fg:s,bg:l,themeName:a,rootStyle:i.rootStyle===!1?!1:i.rootStyle??u},f,d)}function ta(t,e,i,n=Me(t)){const r=nt(e),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e,u={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?u.style=e.rootStyle:u.style=`background-color:${e.bg};color:${e.fg}`),a!==!1&&a!=null&&(u.tabindex=a.toString());for(const[_,v]of Object.entries(e.meta||{}))_.startsWith("_")||(u[_]=v);let d={type:"element",tagName:"pre",properties:u,children:[],data:e.data},m={type:"element",tagName:"code",properties:{},children:o};const h=[],f={...i,structure:l,addClassToHast:Sn,get source(){return i.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return d},get code(){return m},get lines(){return h}};if(t.forEach((_,v)=>{v&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
13
|
+
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},E=0;for(const y of _){let w={type:"element",tagName:"span",properties:{...y.htmlAttrs},children:[{type:"text",value:y.content}]};const A=Nt(y.htmlStyle||it(y));A&&(w.properties.style=A);for(const I of r)w=I?.span?.call(f,w,v+1,E,g,y)||w;l==="inline"?s.children.push(w):l==="classic"&&g.children.push(w),E+=y.content.length}if(l==="classic"){for(const y of r)g=y?.line?.call(f,g,v+1)||g;h.push(g),o.push(g)}else l==="inline"&&h.push(g)}),l==="classic"){for(const _ of r)m=_?.code?.call(f,m)||m;d.children.push(m);for(const _ of r)d=_?.pre?.call(f,d)||d;s.children.push(d)}else if(l==="inline"){const _=[];let v={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const y of s.children)y.type==="element"&&y.tagName==="br"?(_.push(v),v={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(y.type==="element"||y.type==="text")&&v.children.push(y);_.push(v);let E={type:"element",tagName:"code",properties:{},children:_};for(const y of r)E=y?.code?.call(f,E)||E;s.children=[];for(let y=0;y<E.children.length;y++){y>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const w=E.children[y];w.type==="element"&&s.children.push(...w.children)}}let p=s;for(const _ of r)p=_?.root?.call(f,p)||p;return n&<(p,n),p}function ia(t){return t.map(e=>{const i=[];let n="",r;return e.forEach((o,s)=>{const a=!(o.fontStyle&&(o.fontStyle&N.Underline||o.fontStyle&N.Strikethrough));a&&o.content.match(/^\s+$/)&&e[s+1]?(r===void 0&&(r=o.offset),n+=o.content):n?(a?i.push({...o,offset:r,content:n+o.content}):i.push({content:n,offset:r},o),r=void 0,n=""):i.push(o)}),i})}function na(t){return t.map(e=>e.flatMap(i=>{if(i.content.match(/^\s+$/))return i;const n=i.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return i;const[,r,o,s]=n;if(!r&&!s)return i;const l=[{...i,offset:i.offset+r.length,content:o}];return r&&l.unshift({content:r,offset:i.offset}),s&&l.push({content:s,offset:i.offset+r.length+o.length}),l}))}function ra(t){return t.map(e=>{const i=[];for(const n of e){if(i.length===0){i.push({...n});continue}const r=i[i.length-1],o=Nt(r.htmlStyle||it(r)),s=Nt(n.htmlStyle||it(n)),l=r.fontStyle&&(r.fontStyle&N.Underline||r.fontStyle&N.Strikethrough),a=n.fontStyle&&(n.fontStyle&N.Underline||n.fontStyle&N.Strikethrough);!l&&!a&&o===s?r.content+=n.content:i.push({...n})}return i})}const oa=ws;function sa(t,e,i){const n={meta:{},options:i,codeToHast:(o,s)=>ot(t,o,s),codeToTokens:(o,s)=>rt(t,o,s)};let r=oa(ot(t,e,i,n));for(const o of nt(i))r=o.postprocess?.call(n,r,i)||r;return r}const Ci={light:"#333333",dark:"#bbbbbb"},Ii={light:"#fffffe",dark:"#1e1e1e"},Ai="__shiki_resolved";function Kt(t){if(t?.[Ai])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:i,fg:n}=e;if(!i||!n){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(n=l.settings.foreground),l?.settings?.background&&(i=l.settings.background),!n&&e?.colors?.["editor.foreground"]&&(n=e.colors["editor.foreground"]),!i&&e?.colors?.["editor.background"]&&(i=e.colors["editor.background"]),n||(n=e.type==="light"?Ci.light:Ci.dark),i||(i=e.type==="light"?Ii.light:Ii.dark),e.fg=n,e.bg=i}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let r=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);r+=1;const a=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),u=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!u)return l;const d={...l,settings:{...l.settings}};if(a){const m=s(l.settings.foreground);e.colorReplacements[m]=l.settings.foreground,d.settings.foreground=m}if(u){const m=s(l.settings.background);e.colorReplacements[m]=l.settings.background,d.settings.background=m}return d});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=s(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,Ai,{enumerable:!1,writable:!1,value:!0}),e}async function bn(t){return Array.from(new Set((await Promise.all(t.filter(e=>!vn(e)).map(async e=>await _n(e).then(i=>Array.isArray(i)?i:[i])))).flat()))}async function wn(t){return(await Promise.all(t.map(async i=>yn(i)?null:Kt(await _n(i))))).filter(i=>!!i)}let aa=3;function la(t,e=3){e>aa||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let ge=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Dn(t,e){if(!e)return t;if(e[t]){const i=new Set([t]);for(;e[t];){if(t=e[t],i.has(t))throw new ge(`Circular alias \`${Array.from(i).join(" -> ")} -> ${t}\``);i.add(t)}}return t}class ua extends oo{constructor(e,i,n,r={}){super(e),this._resolver=e,this._themes=i,this._langs=n,this._alias=r,this._themes.map(o=>this.loadTheme(o)),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 i=Kt(e);return i.name&&(this._resolvedThemes.set(i.name,i),this._loadedThemesCache=null),i}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let i=this._textmateThemeCache.get(e);i||(i=Ye.createFromRawTheme(e),this._textmateThemeCache.set(e,i)),this._syncRegistry.setTheme(i)}getGrammar(e){return e=Dn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const i=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,i.size)for(const o of i)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const i=Array.from(this._langGraph.entries()),n=i.filter(([r,o])=>!o);if(n.length){const r=i.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(a=>n.map(([u])=>u).includes(a)):!1).filter(o=>!n.includes(o));throw new ge(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${r.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[r,o]of i)this._resolver.addLanguage(o);for(const[r,o]of i)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const i=e.embeddedLanguages??e.embeddedLangs;if(i)for(const n of i)this._langGraph.set(n,this._langMap.get(n))}}class ca{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,i){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},i.forEach(n=>this.addLanguage(n))}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(i=>{this._langs.set(i,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(i=>{this._injections.get(i)||this._injections.set(i,[]),this._injections.get(i).push(e.scopeName)})}getInjections(e){const i=e.split(".");let n=[];for(let r=1;r<=i.length;r++){const o=i.slice(0,r).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let be=0;function da(t){be+=1,t.warnings!==!1&&be>=10&&be%10===0&&console.warn(`[Shiki] ${be} 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(!t.engine)throw new ge("`engine` option is required for synchronous mode");const i=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(Kt),r=new ca(t.engine,i),o=new ua(r,n,i,t.langAlias);let s;function l(y){return Dn(y,t.langAlias)}function a(y){g();const w=o.getGrammar(typeof y=="string"?y:y.name);if(!w)throw new ge(`Language \`${y}\` not found, you may need to load it first`);return w}function u(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const w=o.getTheme(y);if(!w)throw new ge(`Theme \`${y}\` not found, you may need to load it first`);return w}function d(y){g();const w=u(y);s!==y&&(o.setTheme(w),s=y);const A=o.getColorMap();return{theme:w,colorMap:A}}function m(){return g(),o.getLoadedThemes()}function h(){return g(),o.getLoadedLanguages()}function f(...y){g(),o.loadLanguages(y.flat(1))}async function p(...y){return f(await bn(y))}function _(...y){g();for(const w of y.flat(1))o.loadTheme(w)}async function v(...y){return g(),_(await wn(y))}function g(){if(e)throw new ge("Shiki instance has been disposed")}function E(){e||(e=!0,o.dispose(),be-=1)}return{setTheme:d,getTheme:u,getLanguage:a,getLoadedThemes:m,getLoadedLanguages:h,resolveLangAlias:l,loadLanguage:p,loadLanguageSync:f,loadTheme:v,loadThemeSync:_,dispose:E,[Symbol.dispose]:E}}async function ha(t){t.engine||la("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,i,n]=await Promise.all([wn(t.themes||[]),bn(t.langs||[]),t.engine]);return da({...t,themes:e,langs:i,engine:n})}async function fa(t){const e=await ha(t);return{getLastGrammarState:(...i)=>Ks(e,...i),codeToTokensBase:(i,n)=>zt(e,i,n),codeToTokensWithThemes:(i,n)=>Ln(e,i,n),codeToTokens:(i,n)=>rt(e,i,n),codeToHast:(i,n)=>ot(e,i,n),codeToHtml:(i,n)=>sa(e,i,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function ma(t){const e=t.langs,i=t.themes,n=t.engine;async function r(o){function s(m){if(typeof m=="string"){if(m=o.langAlias?.[m]||m,vn(m))return[];const h=e[m];if(!h)throw new W(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return h}return m}function l(m){if(yn(m))return"none";if(typeof m=="string"){const h=i[m];if(!h)throw new W(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return h}return m}const a=(o.themes??[]).map(m=>l(m)),u=(o.langs??[]).map(m=>s(m)),d=await fa({engine:o.engine??n(),...o,themes:a,langs:u});return{...d,loadLanguage(...m){return d.loadLanguage(...m.map(s))},loadTheme(...m){return d.loadTheme(...m.map(l))},getBundledLanguages(){return e},getBundledThemes(){return i}}}return r}const Cn=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>c(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./DxNHbxmM.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>c(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>c(()=>import("./VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>c(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./CGscLIrv.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>c(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./DMwsHuHA.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./mjskCLCv.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./DhmSosst.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>c(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./DsumFeuD.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>c(()=>import("./BhRPY-oY.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./DQwYQDb2.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./Bhrxn6JZ.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./BqTXFGrv.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>c(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./Dzze3sRP.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./BRZ36xJF.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./DM8c43g1.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./BH7IYjvW.js"),__vite__mapDeps([87,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./CZhp0h8q.js"),__vite__mapDeps([89,90,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./CQ8jqdy-.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./RNghxpo_.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>c(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>c(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>c(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./yv6CvBhz.js"),__vite__mapDeps([97,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./VOosw3JB.js"),[],import.meta.url))}],pa=Object.fromEntries(Cn.map(t=>[t.id,t.import])),ga=Object.fromEntries(Cn.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),_a={...pa,...ga},va=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./CMjwMIkn.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./C47S-Tmv.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./CjoLj4QM.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],ya=Object.fromEntries(va.map(t=>[t.id,t.import]));class Yt extends Error{constructor(e){super(e),this.name="ShikiError"}}function Sa(){return 2147483648}function Ea(){return typeof performance<"u"?performance.now():Date.now()}const Ta=(t,e)=>t+(e-t%e)%e;async function La(t){let e,i;const n={};function r(f){i=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function o(f,p,_){n.HEAPU8.copyWithin(f,p,p+_)}function s(f){try{return e.grow(f-i.byteLength+65535>>>16),r(e.buffer),1}catch{}}function l(f){const p=n.HEAPU8.length;f=f>>>0;const _=Sa();if(f>_)return!1;for(let v=1;v<=4;v*=2){let g=p*(1+.2/v);g=Math.min(g,f+100663296);const E=Math.min(_,Ta(Math.max(f,g),65536));if(s(E))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,p,_=1024){const v=p+_;let g=p;for(;f[g]&&!(g>=v);)++g;if(g-p>16&&f.buffer&&a)return a.decode(f.subarray(p,g));let E="";for(;p<g;){let y=f[p++];if(!(y&128)){E+=String.fromCharCode(y);continue}const w=f[p++]&63;if((y&224)===192){E+=String.fromCharCode((y&31)<<6|w);continue}const A=f[p++]&63;if((y&240)===224?y=(y&15)<<12|w<<6|A:y=(y&7)<<18|w<<12|A<<6|f[p++]&63,y<65536)E+=String.fromCharCode(y);else{const I=y-65536;E+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return E}function d(f,p){return f?u(n.HEAPU8,f,p):""}const m={emscripten_get_now:Ea,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const p=await t({env:m,wasi_snapshot_preview1:m});e=p.memory,r(e.buffer),Object.assign(n,p),n.UTF8ToString=d}return await h(),n}var ba=Object.defineProperty,wa=(t,e,i)=>e in t?ba(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,j=(t,e,i)=>wa(t,typeof e!="symbol"?e+"":e,i);let U=null;function Da(t){throw new Yt(t.UTF8ToString(t.getLastOnigError()))}class ut{constructor(e){j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16Value"),j(this,"utf8Value"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16");const i=e.length,n=ut._utf8ByteLength(e),r=n!==i,o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const l=new Uint8Array(n);let a=0;for(let u=0;u<i;u++){const d=e.charCodeAt(u);let m=d,h=!1;if(d>=55296&&d<=56319&&u+1<i){const f=e.charCodeAt(u+1);f>=56320&&f<=57343&&(m=(d-55296<<10)+65536|f-56320,h=!0)}r&&(o[u]=a,h&&(o[u+1]=a),m<=127?s[a+0]=u:m<=2047?(s[a+0]=u,s[a+1]=u):m<=65535?(s[a+0]=u,s[a+1]=u,s[a+2]=u):(s[a+0]=u,s[a+1]=u,s[a+2]=u,s[a+3]=u)),m<=127?l[a++]=m:m<=2047?(l[a++]=192|(m&1984)>>>6,l[a++]=128|(m&63)>>>0):m<=65535?(l[a++]=224|(m&61440)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0):(l[a++]=240|(m&1835008)>>>18,l[a++]=128|(m&258048)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0),h&&u++}this.utf16Length=i,this.utf8Length=n,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let i=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let s=o,l=!1;if(o>=55296&&o<=56319&&n+1<r){const a=e.charCodeAt(n+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?i+=1:s<=2047?i+=2:s<=65535?i+=3:i+=4,l&&n++}return i}createString(e){const i=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,i),i}}const ct=class re{constructor(e){if(j(this,"id",++re.LAST_ID),j(this,"_onigBinding"),j(this,"content"),j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16"),j(this,"ptr"),!U)throw new Yt("Must invoke loadWasm first.");this._onigBinding=U,this.content=e;const i=new ut(e);this.utf16Length=i.utf16Length,this.utf8Length=i.utf8Length,this.utf16OffsetToUtf8=i.utf16OffsetToUtf8,this.utf8OffsetToUtf16=i.utf8OffsetToUtf16,this.utf8Length<1e4&&!re._sharedPtrInUse?(re._sharedPtr||(re._sharedPtr=U.omalloc(1e4)),re._sharedPtrInUse=!0,U.HEAPU8.set(i.utf8Value,re._sharedPtr),this.ptr=re._sharedPtr):this.ptr=i.createString(U)}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===re._sharedPtr?re._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};j(ct,"LAST_ID",0);j(ct,"_sharedPtr",0);j(ct,"_sharedPtrInUse",!1);let In=ct;class Ca{constructor(e){if(j(this,"_onigBinding"),j(this,"_ptr"),!U)throw new Yt("Must invoke loadWasm first.");const i=[],n=[];for(let l=0,a=e.length;l<a;l++){const u=new ut(e[l]);i[l]=u.createString(U),n[l]=u.utf8Length}const r=U.omalloc(4*e.length);U.HEAPU32.set(i,r/4);const o=U.omalloc(4*e.length);U.HEAPU32.set(n,o/4);const s=U.createOnigScanner(r,o,e.length);for(let l=0,a=e.length;l<a;l++)U.ofree(i[l]);U.ofree(o),U.ofree(r),s===0&&Da(U),this._onigBinding=U,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,i,n){let r=0;if(typeof n=="number"&&(r=n),typeof e=="string"){e=new In(e);const o=this._findNextMatchSync(e,i,!1,r);return e.dispose(),o}return this._findNextMatchSync(e,i,!1,r)}_findNextMatchSync(e,i,n,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(i),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const u=l[a++],d=l[a++],m=[];for(let h=0;h<d;h++){const f=e.convertUtf8OffsetToUtf16(l[a++]),p=e.convertUtf8OffsetToUtf16(l[a++]);m[h]={start:f,end:p,length:p-f}}return{index:u,captureIndices:m}}}function Ia(t){return typeof t.instantiator=="function"}function Aa(t){return typeof t.default=="function"}function Ra(t){return typeof t.data<"u"}function Pa(t){return typeof Response<"u"&&t instanceof Response}function Oa(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let je;function Ma(t){if(je)return je;async function e(){U=await La(async i=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(i)),typeof n=="function"&&(n=await n(i)),Ia(n)?n=await n.instantiator(i):Aa(n)?n=await n.default(i):(Ra(n)&&(n=n.data),Pa(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await ka(n)(i):n=await Va(n)(i):Oa(n)?n=await Tt(n)(i):n instanceof WebAssembly.Module?n=await Tt(n)(i):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Tt(n.default)(i))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return je=e(),je}function Tt(t){return e=>WebAssembly.instantiate(t,e)}function ka(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Va(t){return async e=>{const i=await t.arrayBuffer();return WebAssembly.instantiate(i,e)}}async function xa(t){return t&&await Ma(t),{createScanner(e){return new Ca(e.map(i=>typeof i=="string"?i:i.source))},createString(e){return new In(e)}}}const Ri=ma({langs:_a,themes:ya,engine:()=>xa(c(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),Pi=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-][^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@[-+,0-9 ]+@@/gm,25]],["md",[/^(>|\t\*|\t\d+.|#{1,6} |-\s+|\*\s+)/gm,25],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-][^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{\})\b|"[^"]+":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gim,10]],["toml",[/^\s*\[.*\]\s*$/gm,100],[/^\s*[\w-]+ *= */gm,20]],["mermaid",[/^(graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt|pie|mindmap)/gm,500],[/\b(-->|--o|--x|=>|\[\]|[{}])\b/g,10]]];function al(t,e){var i;return((i=(e?[...Pi,...e]:Pi).map(([r,...o])=>[r,o.reduce((s,[l,a])=>s+[...t.matchAll(l)].length*a,0)]).filter(([,r])=>r>20).sort((r,o)=>o[1]-r[1])[0])===null||i===void 0?void 0:i[0])||"plain"}function ee(t){try{var e;if(!((e=globalThis)===null||e===void 0)&&e.__streamMonacoLegacy__&&/^vue$/i.test(t))return"html"}catch{}return/^(?:shellscript|bash|sh|shell|zsh)/i.test(t)?"shellscript":/^(?:powershell|ps1?)/i.test(t)?"powershell":t.split(":")[0]}const Na=["jsx","tsx","vue","csharp","python","java","c","cpp","rust","go","shell","shellscript","powershell","sql","json","html","javascript","typescript","css","markdown","xml","yaml","toml","dockerfile","kotlin","objective-c","objective-cpp","php","ruby","scala","svelte","swift","erlang","angular-html","angular-ts","dart","lua","mermaid","cmake","nginx"],Ba=["vitesse-dark","vitesse-light"],An={verticalScrollbarSize:8,horizontalScrollbarSize:8,handleMouseWheel:!0,alwaysConsumeMouseWheel:!1},fe=16,Rn=75,Pn=200,Jt=2e5,Xt=.5;function Qt(t,e){if(t===e)return null;let i=0;const n=Math.min(t.length,e.length);for(;i<n&&t.charCodeAt(i)===e.charCodeAt(i);)i++;let r=t.length-1,o=e.length-1;for(;r>=i&&o>=i&&t.charCodeAt(r)===e.charCodeAt(o);)r--,o--;return{start:i,endPrevIncl:r,endNextIncl:o,replaceText:e.slice(i,o+1)}}var L={};ar(L,{default:()=>Ha});ur(L,Ni);const Ha=Ni;let Oi=0;const On=typeof window<"u"&&window.__STREAM_MONACO_DEBUG__!==void 0?!!window.__STREAM_MONACO_DEBUG__:!1;function M(t,...e){if(!On)return;Oi+=1;const i=`#${Oi}`,n=typeof performance<"u"&&performance.now?performance.now().toFixed(1):Date.now();console.warn(`${i} [${t}] @${n}ms`,...e)}function Mi(t,...e){On&&console.error(`[${t}]`,...e)}function Mn(t,e){let i=null,n=-1,r=!1;const o=12;function s(){const h=e();if(h!=null){if(M("heightManager","computeNext ->",{next:h,lastApplied:n}),!Number.isFinite(h)||h<=0){M("heightManager","invalid next height, ignoring",h);return}n!==-1&&Math.abs(h-n)<=o||h!==n&&(r=!0,t.style.height=`${h}px`,n=h,M("heightManager","applied height ->",h),queueMicrotask(()=>{r=!1}))}}function l(){{if(i!=null)return;i=requestAnimationFrame(()=>{i=null,s()});return}}function a(){l()}function u(){i!=null&&(cancelAnimationFrame(i),i=null)}function d(){return r}function m(){return n}return{update:a,dispose:u,isSuppressed:d,getLastApplied:m}}function Zt(t){const e={},i={requestAnimationFrame:o=>requestAnimationFrame(o),cancelAnimationFrame:o=>cancelAnimationFrame(o)};function n(o,s){const l=e[o];l!=null&&i.cancelAnimationFrame(l),e[o]=i.requestAnimationFrame(a=>{e[o]=null,s(a)})}function r(o){const s=e[o];s!=null&&(i.cancelAnimationFrame(s),e[o]=null)}return{schedule:n,cancel:r}}function kn(t,e){var i,n;const r=((i=t.getScrollTop)===null||i===void 0?void 0:i.call(t))??0;e.setLast(r),M("scrollWatcher","initial scrollTop=",r);let o=!1;const s=6;let l=null,a=null;const u=h=>{var f;if(o){M("scrollWatcher","suppressedExternally, ignoring event");return}const p=h&&typeof h.scrollTop=="number"?h.scrollTop:((f=t.getScrollTop)===null||f===void 0?void 0:f.call(t))??0,_=p-e.getLast();if(e.setLast(p),Math.abs(_)<s){M("scrollWatcher","small delta ignored",_);try{const v=typeof t.getScrollHeight=="function"?t.getScrollHeight():void 0,g=typeof t.getLayoutInfo=="function"?t.getLayoutInfo():void 0,E=g?.height??void 0;if(typeof v=="number"&&typeof E=="number"){const y=v-(p+E);y<=Math.max(s,0)&&(M("scrollWatcher","small delta but at bottom, maybe resume",{distance:y}),e.onMaybeResume())}}catch{}return}if(M("scrollWatcher","delta=",_,"currentTop=",p),_<0){M("scrollWatcher","pause detected delta=",_),e.onPause();return}M("scrollWatcher","maybe resume delta=",_),e.onMaybeResume()},d=((n=t.onDidScrollChange)===null||n===void 0?void 0:n.call(t,u))??null;return{dispose(){try{d&&typeof d.dispose=="function"?d.dispose():typeof d=="function"&&d()}catch{}M("scrollWatcher","dispose")},setSuppressed(h){const f=!!h;if(f!==o){o=f,M("scrollWatcher","setSuppressed =>",o);try{!l&&typeof t.getDomNode=="function"&&(l=t.getDomNode()),o&&l?a||(a=()=>{try{var p;M("scrollWatcher","user interaction detected while suppressed, cancelling suppression"),e.onPause(),o=!1;const _=((p=t.getScrollTop)===null||p===void 0?void 0:p.call(t))??0;e.setLast(_);try{const v=typeof t.getScrollHeight=="function"?t.getScrollHeight():void 0,g=typeof t.getLayoutInfo=="function"?t.getLayoutInfo():void 0,E=g?.height??void 0;if(typeof v=="number"&&typeof E=="number"){const y=v-(_+E);y<=Math.max(s,0)&&(M("scrollWatcher","interaction moved to bottom, maybe resume",{distance:y}),e.onMaybeResume())}}catch{}l&&a&&(l.removeEventListener("wheel",a,{passive:!0}),l.removeEventListener("pointerdown",a),l.removeEventListener("touchstart",a)),a=null}catch{}},l.addEventListener("wheel",a,{passive:!0}),l.addEventListener("pointerdown",a),l.addEventListener("touchstart",a)):l&&a&&(l.removeEventListener("wheel",a,{passive:!0}),l.removeEventListener("pointerdown",a),l.removeEventListener("touchstart",a),a=null)}catch{}}}}}var Wa=class{diffEditorView=null;originalModel=null;modifiedModel=null;lastContainer=null;lastKnownOriginalCode=null;lastKnownModifiedCode=null;lastKnownModifiedLineCount=null;pendingDiffUpdate=null;shouldAutoScrollDiff=!0;diffScrollWatcher=null;lastScrollTopDiff=0;_hasScrollBar=!1;cachedScrollHeightDiff=null;cachedLineHeightDiff=null;cachedComputedHeightDiff=null;lastKnownModifiedDirty=!1;measureViewportDiff(){var t,e,i;if(!this.diffEditorView)return null;const n=this.diffEditorView.getModifiedEditor(),r=((t=n.getLayoutInfo)===null||t===void 0?void 0:t.call(n))??null,o=this.cachedLineHeightDiff??n.getOption(L.editor.EditorOption.lineHeight),s=((e=n.getScrollTop)===null||e===void 0?void 0:e.call(n))??this.lastScrollTopDiff??0,l=((i=n.getScrollHeight)===null||i===void 0?void 0:i.call(n))??this.cachedScrollHeightDiff??r?.height??0,a=this.cachedComputedHeightDiff??this.computedHeight();return this.cachedLineHeightDiff=o,this.cachedScrollHeightDiff=l,this.cachedComputedHeightDiff=a,this.lastScrollTopDiff=s,{me:n,li:r,lineHeight:o,scrollTop:s,scrollHeight:l,computedHeight:a}}lastRevealLineDiff=null;revealTicketDiff=0;revealDebounceIdDiff=null;revealDebounceMs=Rn;revealIdleTimerIdDiff=null;revealStrategyOption;revealBatchOnIdleMsOption;scrollWatcherSuppressionMs=500;diffScrollWatcherSuppressionTimer=null;appendBufferOriginalDiff=[];appendBufferModifiedDiff=[];appendBufferDiffScheduled=!1;diffUpdateThrottleMs=50;lastAppendFlushTimeDiff=0;appendFlushThrottleTimerDiff=null;rafScheduler=Zt();diffHeightManager=null;constructor(t,e,i,n,r,o,s,l,a){this.options=t,this.maxHeightValue=e,this.maxHeightCSS=i,this.autoScrollOnUpdate=n,this.autoScrollInitial=r,this.autoScrollThresholdPx=o,this.autoScrollThresholdLines=s,this.diffAutoScroll=l,this.revealDebounceMsOption=a}scheduleFlushAppendBufferDiff(){if(this.appendBufferDiffScheduled)return;this.appendBufferDiffScheduled=!0;const t=()=>{this.rafScheduler.schedule("appendDiff",()=>this.flushAppendBufferDiff())},e=this.diffUpdateThrottleMs;if(!e){t();return}const n=Date.now()-this.lastAppendFlushTimeDiff;if(n>=e){t();return}if(this.appendFlushThrottleTimerDiff!=null)return;const r=e-n;this.appendFlushThrottleTimerDiff=setTimeout(()=>{this.appendFlushThrottleTimerDiff=null,t()},r)}flushOriginalAppendBufferSync(){if(!this.originalModel||this.appendBufferOriginalDiff.length===0)return;this.rafScheduler.cancel("appendDiff"),this.appendBufferDiffScheduled=!1;const t=this.appendBufferOriginalDiff.join("");this.appendBufferOriginalDiff.length=0,t&&this.appendToModel(this.originalModel,t)}computedHeight(){var t,e,i,n;if(!this.diffEditorView)return Math.min(18+fe,this.maxHeightValue);const r=this.diffEditorView.getModifiedEditor(),o=this.diffEditorView.getOriginalEditor(),s=r.getOption(L.editor.EditorOption.lineHeight),l=((t=o.getModel())===null||t===void 0?void 0:t.getLineCount())??1,a=((e=r.getModel())===null||e===void 0?void 0:e.getLineCount())??1,d=Math.max(l,a)*s+fe,m=Math.max(((i=o.getScrollHeight)===null||i===void 0?void 0:i.call(o))??0,((n=r.getScrollHeight)===null||n===void 0?void 0:n.call(r))??0),h=Math.max(d,m);return Math.min(h,this.maxHeightValue)}isOverflowAutoDiff(){return!!this.lastContainer&&this.lastContainer.style.overflow==="auto"}shouldPerformImmediateRevealDiff(){return this.autoScrollOnUpdate&&this.shouldAutoScrollDiff&&this.hasVerticalScrollbarModified()&&this.isOverflowAutoDiff()}suppressScrollWatcherDiff(t){!this.diffScrollWatcher||typeof this.diffScrollWatcher.setSuppressed!="function"||(this.diffScrollWatcherSuppressionTimer!=null&&(clearTimeout(this.diffScrollWatcherSuppressionTimer),this.diffScrollWatcherSuppressionTimer=null),this.diffScrollWatcher.setSuppressed(!0),this.diffScrollWatcherSuppressionTimer=setTimeout(()=>{try{this.diffScrollWatcher.setSuppressed(!1)}catch{}this.diffScrollWatcherSuppressionTimer=null},t))}hasVerticalScrollbarModified(){if(!this.diffEditorView)return!1;if(this._hasScrollBar)return!0;const t=this.measureViewportDiff();if(!t)return!1;const e=Math.max(2,Math.round(t.lineHeight/8));return this._hasScrollBar=t.scrollHeight>t.computedHeight+Math.max(fe/2,e)}userIsNearBottomDiff(){if(!this.diffEditorView)return!0;const t=this.measureViewportDiff();if(!t||!t.li)return!0;const e=(this.autoScrollThresholdLines??0)*t.lineHeight,i=Math.max(e||0,this.autoScrollThresholdPx||0);return t.scrollHeight-(t.scrollTop+t.li.height)<=i}maybeScrollDiffToBottom(t,e){this.rafScheduler.schedule("maybe-scroll-diff",()=>{if(M("diff","maybeScrollDiffToBottom called",{targetLine:t,prevLineOverride:e,diffAutoScroll:this.diffAutoScroll,autoScrollOnUpdate:this.autoScrollOnUpdate,shouldAutoScrollDiff:this.shouldAutoScrollDiff}),!this.diffEditorView)return;const i=this.hasVerticalScrollbarModified();if(M("diff","hasVerticalScrollbarModified ->",i),!(this.diffAutoScroll&&this.autoScrollOnUpdate&&this.shouldAutoScrollDiff&&i))return;const r=this.diffEditorView.getModifiedEditor().getModel(),o=r?.getLineCount()??1,s=t??o,l=typeof e=="number"?e:this.lastKnownModifiedLineCount??-1;if(M("diff","scroll metrics",{prevLine:l,currentLine:o,line:s,lastRevealLineDiff:this.lastRevealLineDiff}),l!==-1&&l===o&&s===o||this.lastRevealLineDiff!==null&&this.lastRevealLineDiff===s)return;const a=this.revealBatchOnIdleMsOption??this.options.revealBatchOnIdleMs??Pn;if(M("diff","reveal timing",{batchMs:a,revealDebounceMs:this.revealDebounceMs,revealDebounceMsOption:this.revealDebounceMsOption}),typeof a=="number"&&a>0){if(i){const m=++this.revealTicketDiff;M("diff","has scrollbar -> immediate ticketed reveal",{ticket:m,line:s}),this.performRevealDiffTicketed(s,m);return}this.revealIdleTimerIdDiff!=null&&clearTimeout(this.revealIdleTimerIdDiff);const d=++this.revealTicketDiff;M("diff","scheduling idle reveal",{ticket:d,batchMs:a,line:s}),this.revealIdleTimerIdDiff=setTimeout(()=>{this.revealIdleTimerIdDiff=null,this.performRevealDiffTicketed(s,d)},a);return}this.revealDebounceIdDiff!=null&&(clearTimeout(this.revealDebounceIdDiff),this.revealDebounceIdDiff=null);const u=typeof this.revealDebounceMs=="number"&&this.revealDebounceMs>0?this.revealDebounceMs:typeof this.revealDebounceMsOption=="number"&&this.revealDebounceMsOption>0?this.revealDebounceMsOption:this.revealDebounceMs;this.revealDebounceIdDiff=setTimeout(()=>{this.revealDebounceIdDiff=null;const d=++this.revealTicketDiff;M("diff","debounced reveal firing",{ticket:d,line:s}),this.performRevealDiffTicketed(s,d)},u),this.lastKnownModifiedLineCount=o})}performRevealDiffTicketed(t,e){this.rafScheduler.schedule("revealDiff",()=>{var i;if(this.diffScrollWatcher&&(M("diff","performRevealDiffTicketed - suppressing watcher",{ticket:e,line:t,ms:this.scrollWatcherSuppressionMs}),this.suppressScrollWatcherDiff(this.scrollWatcherSuppressionMs)),e!==this.revealTicketDiff)return;M("diff","performRevealDiffTicketed - performing reveal",{ticket:e,line:t});const n=this.revealStrategyOption??this.options.revealStrategy??"centerIfOutside",r=L.ScrollType||((i=L.editor)===null||i===void 0?void 0:i.ScrollType),o=r&&typeof r.Smooth<"u"?r.Smooth:void 0;try{const u=this.diffEditorView.getModifiedEditor();n==="bottom"?typeof o<"u"?u.revealLine(t,o):u.revealLine(t):n==="center"?typeof o<"u"?u.revealLineInCenter(t,o):u.revealLineInCenter(t):typeof o<"u"?u.revealLineInCenterIfOutsideViewport(t,o):u.revealLineInCenterIfOutsideViewport(t)}catch{try{this.diffEditorView.getModifiedEditor().revealLine(t)}catch{}}this.lastRevealLineDiff=t,M("diff","performRevealDiffTicketed - revealed",{line:t,lastRevealLineDiff:this.lastRevealLineDiff});try{var s,l,a;this.shouldAutoScrollDiff=!0,this.lastScrollTopDiff=((s=this.diffEditorView)===null||s===void 0||(a=(l=s.getModifiedEditor()).getScrollTop)===null||a===void 0?void 0:a.call(l))??this.lastScrollTopDiff}catch{}})}performImmediateRevealDiff(t,e){var i;if(!this.diffEditorView||e!==this.revealTicketDiff)return;const n=L.ScrollType||((i=L.editor)===null||i===void 0?void 0:i.ScrollType),r=n&&typeof n.Immediate<"u"?n.Immediate:void 0,o=this.diffEditorView.getModifiedEditor();typeof r<"u"?o.revealLine(t,r):o.revealLine(t),this.measureViewportDiff(),M("diff","performImmediateRevealDiff",{line:t,ticket:e});try{var s,l,a;this.shouldAutoScrollDiff=!0,this.lastScrollTopDiff=((s=this.diffEditorView)===null||s===void 0||(a=(l=s.getModifiedEditor()).getScrollTop)===null||a===void 0?void 0:a.call(l))??this.lastScrollTopDiff}catch{}}scheduleImmediateRevealAfterLayoutDiff(t){const e=++this.revealTicketDiff;this.rafScheduler.schedule("immediate-reveal-diff",async()=>{const i=this.diffEditorView&&this.diffHeightManager?Math.min(this.computedHeight(),this.maxHeightValue):-1;i!==-1&&this.diffHeightManager&&(this.lastContainer&&(this.lastContainer.style.height=`${i}px`),await this.waitForHeightAppliedDiff(i)),this.performImmediateRevealDiff(t,e)})}waitForHeightAppliedDiff(t,e=500){return new Promise(i=>{const n=typeof performance<"u"&&performance.now?performance.now():Date.now(),r=()=>{if((this.lastContainer?Number.parseFloat((this.lastContainer.style.height||"").replace("px",""))||0:-1)>=t-1){i();return}if((typeof performance<"u"&&performance.now?performance.now():Date.now())-n>e){i();return}requestAnimationFrame(r)};r()})}async createDiffEditor(t,e,i,n,r){var o,s,l,a;this.cleanup(),this.lastContainer=t,t.style.overflow="hidden",t.style.maxHeight=this.maxHeightCSS;const u=ee(n)||n;if(this.originalModel=L.editor.createModel(e,u),this.modifiedModel=L.editor.createModel(i,u),this.diffEditorView=L.editor.createDiffEditor(t,{automaticLayout:!0,scrollBeyondLastLine:!1,renderSideBySide:!0,originalEditable:!1,readOnly:this.options.readOnly??!0,minimap:{enabled:!1},theme:r,contextmenu:!1,scrollbar:{...An,...this.options.scrollbar||{}},...this.options}),L.editor.setTheme(r),this.diffEditorView.setModel({original:this.originalModel,modified:this.modifiedModel}),this.lastKnownOriginalCode=e,this.lastKnownModifiedCode=i,this.diffUpdateThrottleMs=this.options.diffUpdateThrottleMs??50,this.shouldAutoScrollDiff=!!(this.autoScrollInitial&&this.diffAutoScroll),this.diffScrollWatcher&&(this.diffScrollWatcher.dispose(),this.diffScrollWatcher=null),this.diffAutoScroll){const _=this.diffEditorView.getModifiedEditor();this.diffScrollWatcher=kn(_,{onPause:()=>{this.shouldAutoScrollDiff=!1},onMaybeResume:()=>{this.rafScheduler.schedule("maybe-resume-diff",()=>{this.shouldAutoScrollDiff=this.userIsNearBottomDiff()})},getLast:()=>this.lastScrollTopDiff,setLast:v=>{this.lastScrollTopDiff=v}})}M("diff","createDiffEditor",{autoScrollInitial:this.autoScrollInitial,diffAutoScroll:this.diffAutoScroll});const d=Math.min(120,this.maxHeightValue);t.style.minHeight=`${d}px`,this.diffHeightManager&&(this.diffHeightManager.dispose(),this.diffHeightManager=null),this.diffHeightManager=Mn(t,()=>this.computedHeight()),this.diffHeightManager.update(),this.computedHeight()>=this.maxHeightValue-1&&(t.style.height=`${this.maxHeightValue}px`,t.style.overflow="auto");const h=this.diffEditorView.getModifiedEditor();this.cachedScrollHeightDiff=((o=h.getScrollHeight)===null||o===void 0?void 0:o.call(h))??null,this.cachedLineHeightDiff=((s=h.getOption)===null||s===void 0?void 0:s.call(h,L.editor.EditorOption.lineHeight))??null,this.cachedComputedHeightDiff=this.computedHeight();const f=this.diffEditorView.getOriginalEditor(),p=this.diffEditorView.getModifiedEditor();return(l=f.onDidContentSizeChange)===null||l===void 0||l.call(f,()=>{this._hasScrollBar=!1,this.rafScheduler.schedule("content-size-change-diff",()=>{var _,v,g,E;if(this.cachedScrollHeightDiff=((_=f.getScrollHeight)===null||_===void 0?void 0:_.call(f))??this.cachedScrollHeightDiff,this.cachedLineHeightDiff=((v=f.getOption)===null||v===void 0?void 0:v.call(f,L.editor.EditorOption.lineHeight))??this.cachedLineHeightDiff,this.cachedComputedHeightDiff=this.computedHeight(),!((g=this.diffHeightManager)===null||g===void 0)&&g.isSuppressed())return;(E=this.diffHeightManager)===null||E===void 0||E.update();const y=this.computedHeight();if(this.lastContainer){const A=this.lastContainer.style.overflow,I=y>=this.maxHeightValue-1?"auto":"hidden";if(A!==I&&(this.lastContainer.style.overflow=I,I==="auto"&&this.shouldAutoScrollDiff)){var w;this.maybeScrollDiffToBottom((w=this.modifiedModel)===null||w===void 0?void 0:w.getLineCount())}}})}),(a=p.onDidContentSizeChange)===null||a===void 0||a.call(p,()=>{this._hasScrollBar=!1,this.rafScheduler.schedule("content-size-change-diff",()=>{var _,v,g,E;if(this.cachedScrollHeightDiff=((_=p.getScrollHeight)===null||_===void 0?void 0:_.call(p))??this.cachedScrollHeightDiff,this.cachedLineHeightDiff=((v=p.getOption)===null||v===void 0?void 0:v.call(p,L.editor.EditorOption.lineHeight))??this.cachedLineHeightDiff,this.cachedComputedHeightDiff=this.computedHeight(),!((g=this.diffHeightManager)===null||g===void 0)&&g.isSuppressed())return;(E=this.diffHeightManager)===null||E===void 0||E.update();const y=this.computedHeight();if(this.lastContainer){const A=this.lastContainer.style.overflow,I=y>=this.maxHeightValue-1?"auto":"hidden";if(A!==I&&(this.lastContainer.style.overflow=I,I==="auto"&&this.shouldAutoScrollDiff)){var w;this.maybeScrollDiffToBottom((w=this.modifiedModel)===null||w===void 0?void 0:w.getLineCount())}}})}),p.onDidChangeModelContent(()=>{this.lastKnownModifiedDirty=!0,this.rafScheduler.schedule("sync-last-known-modified",()=>this.syncLastKnownModified())}),this.maybeScrollDiffToBottom(this.modifiedModel.getLineCount(),this.lastKnownModifiedLineCount??void 0),this.diffEditorView}updateDiff(t,e,i){if(!this.diffEditorView||!this.originalModel||!this.modifiedModel)return;const n=i?ee(i):void 0;if(n&&(this.originalModel.getLanguageId()!==n||this.modifiedModel.getLanguageId()!==n)){this.pendingDiffUpdate={original:t,modified:e,lang:i},this.rafScheduler.schedule("diff",()=>this.flushPendingDiffUpdate());return}this.lastKnownOriginalCode==null&&(this.lastKnownOriginalCode=this.originalModel.getValue()),this.lastKnownModifiedCode==null&&(this.lastKnownModifiedCode=this.modifiedModel.getValue());const r=this.lastKnownOriginalCode,o=this.lastKnownModifiedCode;t!==r&&t.startsWith(r)&&(this.appendOriginal(t.slice(r.length)),this.lastKnownOriginalCode=t),e!==o&&e.startsWith(o)&&(this.appendModified(e.slice(o.length)),this.lastKnownModifiedCode=e),(t!==this.lastKnownOriginalCode||e!==this.lastKnownModifiedCode)&&(this.pendingDiffUpdate={original:t,modified:e},this.rafScheduler.schedule("diff",()=>this.flushPendingDiffUpdate()))}updateOriginal(t,e){if(!this.diffEditorView||!this.originalModel)return;if(e){const n=ee(e);n&&this.originalModel.getLanguageId()!==n&&L.editor.setModelLanguage(this.originalModel,n)}const i=this.lastKnownOriginalCode??this.originalModel.getValue();i!==t&&(t.startsWith(i)&&i.length<t.length?this.appendOriginal(t.slice(i.length),e):(this.flushOriginalAppendBufferSync(),this.applyMinimalEditToModel(this.originalModel,i,t)),this.lastKnownOriginalCode=t)}updateModified(t,e){if(!this.diffEditorView||!this.modifiedModel)return;if(e){const s=ee(e);s&&this.modifiedModel.getLanguageId()!==s&&L.editor.setModelLanguage(this.modifiedModel,s)}const i=this.lastKnownModifiedCode??this.modifiedModel.getValue();if(i!==t){if(t.startsWith(i)&&i.length<t.length)this.appendModified(t.slice(i.length),e);else{this.flushModifiedAppendBufferSync();const s=this.modifiedModel.getValue(),l=this.modifiedModel.getLineCount();this.applyMinimalEditToModel(this.modifiedModel,s,t);const a=this.modifiedModel.getLineCount();if(a!==l){const u=this.shouldPerformImmediateRevealDiff();if(u&&this.suppressScrollWatcherDiff(this.scrollWatcherSuppressionMs+800),this.computedHeight()>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`,this.lastContainer.style.overflow="auto"),u?this.scheduleImmediateRevealAfterLayoutDiff(a):this.maybeScrollDiffToBottom(a,l),this.autoScrollOnUpdate&&this.shouldAutoScrollDiff)try{var n,r,o;const m=L.ScrollType||((n=L.editor)===null||n===void 0?void 0:n.ScrollType),h=m&&typeof m.Immediate<"u"?m.Immediate:void 0,f=this.diffEditorView.getModifiedEditor(),p=((r=f.getModel())===null||r===void 0?void 0:r.getLineCount())??a;typeof h<"u"?f.revealLine(p,h):f.revealLine(p),this.lastRevealLineDiff=p,this.shouldAutoScrollDiff=!0,this.lastScrollTopDiff=((o=f.getScrollTop)===null||o===void 0?void 0:o.call(f))??this.lastScrollTopDiff}catch{}}}this.lastKnownModifiedCode=t}}appendOriginal(t,e){if(!(!this.diffEditorView||!this.originalModel||!t)){if(e){const i=ee(e);i&&this.originalModel.getLanguageId()!==i&&L.editor.setModelLanguage(this.originalModel,i)}this.appendBufferOriginalDiff.push(t),this.scheduleFlushAppendBufferDiff()}}appendModified(t,e){if(!(!this.diffEditorView||!this.modifiedModel||!t)){if(e){const i=ee(e);i&&this.modifiedModel.getLanguageId()!==i&&L.editor.setModelLanguage(this.modifiedModel,i)}this.appendBufferModifiedDiff.push(t),this.scheduleFlushAppendBufferDiff()}}setLanguage(t,e){if(!e.includes(t)){console.warn(`Language "${t}" is not registered. Available languages: ${e.join(", ")}`);return}this.originalModel&&this.originalModel.getLanguageId()!==t&&L.editor.setModelLanguage(this.originalModel,t),this.modifiedModel&&this.modifiedModel.getLanguageId()!==t&&L.editor.setModelLanguage(this.modifiedModel,t)}getDiffEditorView(){return this.diffEditorView}getDiffModels(){return{original:this.originalModel,modified:this.modifiedModel}}cleanup(){this.rafScheduler.cancel("diff"),this.pendingDiffUpdate=null,this.rafScheduler.cancel("appendDiff"),this.appendBufferDiffScheduled=!1,this.appendBufferOriginalDiff.length=0,this.appendBufferModifiedDiff.length=0,this.appendFlushThrottleTimerDiff!=null&&(clearTimeout(this.appendFlushThrottleTimerDiff),this.appendFlushThrottleTimerDiff=null),this.rafScheduler.cancel("content-size-change-diff"),this.rafScheduler.cancel("sync-last-known-modified"),this.diffScrollWatcher&&(this.diffScrollWatcher.dispose(),this.diffScrollWatcher=null),this.diffHeightManager&&(this.diffHeightManager.dispose(),this.diffHeightManager=null),this.diffEditorView&&(this.diffEditorView.dispose(),this.diffEditorView=null),this.originalModel&&(this.originalModel.dispose(),this.originalModel=null),this.modifiedModel&&(this.modifiedModel.dispose(),this.modifiedModel=null),this.lastKnownOriginalCode=null,this.lastKnownModifiedCode=null,this.lastContainer&&(this.lastContainer.innerHTML="",this.lastContainer=null),this.revealDebounceIdDiff!=null&&(clearTimeout(this.revealDebounceIdDiff),this.revealDebounceIdDiff=null),this.revealIdleTimerIdDiff!=null&&(clearTimeout(this.revealIdleTimerIdDiff),this.revealIdleTimerIdDiff=null),this.diffScrollWatcherSuppressionTimer!=null&&(clearTimeout(this.diffScrollWatcherSuppressionTimer),this.diffScrollWatcherSuppressionTimer=null),this.revealTicketDiff=0,this.lastRevealLineDiff=null}safeClean(){this.rafScheduler.cancel("diff"),this.pendingDiffUpdate=null,this.rafScheduler.cancel("appendDiff"),this.appendBufferDiffScheduled=!1,this.appendBufferOriginalDiff.length=0,this.appendBufferModifiedDiff.length=0,this.appendFlushThrottleTimerDiff!=null&&(clearTimeout(this.appendFlushThrottleTimerDiff),this.appendFlushThrottleTimerDiff=null),this.diffScrollWatcher&&(this.diffScrollWatcher.dispose(),this.diffScrollWatcher=null),this._hasScrollBar=!1,this.shouldAutoScrollDiff=!!(this.autoScrollInitial&&this.diffAutoScroll),this.lastScrollTopDiff=0,this.diffHeightManager&&(this.diffHeightManager.dispose(),this.diffHeightManager=null),this.revealDebounceIdDiff!=null&&(clearTimeout(this.revealDebounceIdDiff),this.revealDebounceIdDiff=null),this.revealIdleTimerIdDiff!=null&&(clearTimeout(this.revealIdleTimerIdDiff),this.revealIdleTimerIdDiff=null),this.diffScrollWatcherSuppressionTimer!=null&&(clearTimeout(this.diffScrollWatcherSuppressionTimer),this.diffScrollWatcherSuppressionTimer=null),this.revealTicketDiff=0,this.lastRevealLineDiff=null,this.rafScheduler.cancel("content-size-change-diff"),this.rafScheduler.cancel("sync-last-known-modified")}syncLastKnownModified(){if(!(!this.diffEditorView||!this.lastKnownModifiedDirty))try{const e=this.diffEditorView.getModifiedEditor().getModel();e&&(this.lastKnownModifiedCode=e.getValue(),this.lastKnownModifiedLineCount=e.getLineCount())}finally{this.lastKnownModifiedDirty=!1}}flushPendingDiffUpdate(){if(!this.pendingDiffUpdate||!this.diffEditorView)return;const t=this.originalModel,e=this.modifiedModel;if(!t||!e){this.pendingDiffUpdate=null;return}const{original:i,modified:n,lang:r}=this.pendingDiffUpdate;if(this.pendingDiffUpdate=null,this.flushOriginalAppendBufferSync(),this.flushModifiedAppendBufferSync(),r){const a=ee(r);a&&t.getLanguageId()!==a&&(L.editor.setModelLanguage(t,a),L.editor.setModelLanguage(e,a))}this.lastKnownOriginalCode==null&&(this.lastKnownOriginalCode=t.getValue()),this.lastKnownModifiedCode==null&&(this.lastKnownModifiedCode=e.getValue());const o=this.lastKnownOriginalCode;o!==i&&(i.startsWith(o)&&o.length<i.length?this.appendToModel(t,i.slice(o.length)):this.applyMinimalEditToModel(t,o,i),this.lastKnownOriginalCode=i);const s=e.getValue(),l=e.getLineCount();if(s!==n){n.startsWith(s)&&s.length<n.length?this.appendToModel(e,n.slice(s.length)):this.applyMinimalEditToModel(e,s,n),this.lastKnownModifiedCode=n;const a=e.getLineCount();if(a!==l){const u=this.shouldPerformImmediateRevealDiff();u&&this.suppressScrollWatcherDiff(this.scrollWatcherSuppressionMs+800),this.computedHeight()>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`,this.lastContainer.style.overflow="auto"),u?this.scheduleImmediateRevealAfterLayoutDiff(a):this.maybeScrollDiffToBottom(a,l)}}}flushModifiedAppendBufferSync(){if(!this.modifiedModel||this.appendBufferModifiedDiff.length===0)return;this.rafScheduler.cancel("appendDiff"),this.appendBufferDiffScheduled=!1;const t=this.appendBufferModifiedDiff.join("");this.appendBufferModifiedDiff.length=0,t&&this.appendToModel(this.modifiedModel,t)}async flushAppendBufferDiff(){if(!this.diffEditorView||this.appendBufferOriginalDiff.length===0&&this.appendBufferModifiedDiff.length===0)return;if(this.lastAppendFlushTimeDiff=Date.now(),this.appendBufferDiffScheduled=!1,this.originalModel&&this.appendBufferOriginalDiff.length>0){const I=this.appendBufferOriginalDiff.join("");this.appendBufferOriginalDiff.length=0,I&&this.appendToModel(this.originalModel,I)}const e=this.diffEditorView.getModifiedEditor().getModel();if(!e){this.appendBufferModifiedDiff.length=0;return}let i=this.appendBufferModifiedDiff.splice(0);const n=e.getLineCount(),r=i.join(""),o=r.length;if(i.length===1&&o>5e3){const I=r.split(/\r?\n/),O=200,x=[];for(let $=0;$<I.length;$+=O)x.push(`${I.slice($,$+O).join(`
|
|
14
|
+
`)}
|
|
15
|
+
`);x.length>1&&(i=x)}const s=i.length>1&&(o>2e3||e.getLineCount&&e.getLineCount()+0-n>50);M("diff","flushAppendBufferDiff start",{partsCount:i.length,totalChars:o,applyChunked:s});let l=n;const a=this.diffScrollWatcher;let u=!1;if(a&&typeof a.setSuppressed=="function")try{this.diffScrollWatcherSuppressionTimer!=null&&(clearTimeout(this.diffScrollWatcherSuppressionTimer),this.diffScrollWatcherSuppressionTimer=null),a.setSuppressed(!0),u=!0}catch{}if(s){M("diff","flushAppendBufferDiff applying chunked",{partsLen:i.length});let I=0;for(const O of i){if(!O)continue;I+=1,M("diff","flushAppendBufferDiff chunk",{idx:I,partLen:O.length,prevLine:l});const x=e.getLineMaxColumn(l),$=new L.Range(l,x,l,x);e.applyEdits([{range:$,text:O,forceMoveMarkers:!0}]),this.lastKnownModifiedCode=e.getValue();const F=e.getLineCount();this.lastKnownModifiedLineCount=F,await new Promise(q=>typeof requestAnimationFrame<"u"?requestAnimationFrame(q):setTimeout(q,0));const te=this.shouldPerformImmediateRevealDiff();M("diff","flushAppendBufferDiff chunk metrics",{idx:I,newLine:F,prevLine:l,shouldImmediate:te}),te&&this.suppressScrollWatcherDiff(this.scrollWatcherSuppressionMs+800),this.computedHeight()>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`,this.lastContainer.style.overflow="auto"),te?this.scheduleImmediateRevealAfterLayoutDiff(F):this.maybeScrollDiffToBottom(F,l),l=F,M("diff","flushAppendBufferDiff chunk applied",{idx:I,newLine:F})}u&&a.setSuppressed(!1);return}const d=r;this.appendBufferModifiedDiff.length=0,l=e.getLineCount();const m=e.getLineMaxColumn(l),h=new L.Range(l,m,l,m);e.applyEdits([{range:h,text:d,forceMoveMarkers:!0}]),this.lastKnownModifiedCode=e.getValue();const f=e.getLineCount();this.lastKnownModifiedLineCount=f;const p=this.shouldPerformImmediateRevealDiff();if(p&&this.suppressScrollWatcherDiff(this.scrollWatcherSuppressionMs+800),this.computedHeight()>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`),p?this.scheduleImmediateRevealAfterLayoutDiff(f):this.maybeScrollDiffToBottom(f,l),this.autoScrollOnUpdate&&this.shouldAutoScrollDiff)try{var v,g,E;const I=L.ScrollType||((v=L.editor)===null||v===void 0?void 0:v.ScrollType),O=I&&typeof I.Immediate<"u"?I.Immediate:void 0,x=this.diffEditorView.getModifiedEditor(),$=((g=x.getModel())===null||g===void 0?void 0:g.getLineCount())??f;typeof O<"u"?x.revealLine($,O):x.revealLine($),this.lastRevealLineDiff=$,this.shouldAutoScrollDiff=!0,this.lastScrollTopDiff=((E=x.getScrollTop)===null||E===void 0?void 0:E.call(x))??this.lastScrollTopDiff}catch{}u&&a.setSuppressed(!1);try{var y,w,A;this.shouldAutoScrollDiff=!0,this.lastScrollTopDiff=((y=this.diffEditorView)===null||y===void 0||(A=(w=y.getModifiedEditor()).getScrollTop)===null||A===void 0?void 0:A.call(w))??this.lastScrollTopDiff}catch{}}applyMinimalEditToModel(t,e,i){const n=Jt,r=Xt,o=Math.max(e.length,i.length),s=o>0?Math.abs(i.length-e.length)/o:0;if(e.length+i.length>n||s>r){t.setValue(i),t===this.modifiedModel&&(this.lastKnownModifiedLineCount=t.getLineCount());return}const l=Qt(e,i);if(!l)return;const{start:a,endPrevIncl:u,replaceText:d}=l,m=t.getPositionAt(a),h=t.getPositionAt(u+1),f=new L.Range(m.lineNumber,m.column,h.lineNumber,h.column);t.applyEdits([{range:f,text:d,forceMoveMarkers:!0}]),t===this.modifiedModel&&(this.lastKnownModifiedLineCount=t.getLineCount())}appendToModel(t,e){if(!e)return;const i=t.getLineCount(),n=t.getLineMaxColumn(i),r=new L.Range(i,n,i,n);t.applyEdits([{range:r,text:e,forceMoveMarkers:!0}]),t===this.modifiedModel&&(this.lastKnownModifiedLineCount=t.getLineCount())}},ja=class{editorView=null;lastContainer=null;lastKnownCode=null;pendingUpdate=null;_hasScrollBar=!1;shouldAutoScroll=!0;scrollWatcher=null;scrollWatcherSuppressionTimer=null;lastScrollTop=0;cachedScrollHeight=null;cachedLineHeight=null;cachedComputedHeight=null;cachedLineCount=null;lastKnownCodeDirty=!1;debug=!1;measureViewport(){var t,e,i,n,r,o;if(!this.editorView)return null;const s=((t=(e=this.editorView).getLayoutInfo)===null||t===void 0?void 0:t.call(e))??null,l=this.cachedLineHeight??this.editorView.getOption(L.editor.EditorOption.lineHeight),a=((i=(n=this.editorView).getScrollTop)===null||i===void 0?void 0:i.call(n))??this.lastScrollTop??0,u=((r=(o=this.editorView).getScrollHeight)===null||r===void 0?void 0:r.call(o))??this.cachedScrollHeight??s?.height??0,d=this.cachedComputedHeight??this.computedHeight(this.editorView);return this.cachedLineHeight=l,this.cachedScrollHeight=u,this.cachedComputedHeight=d,this.lastScrollTop=a,{li:s,lineHeight:l,scrollTop:a,scrollHeight:u,computedHeight:d}}appendBuffer=[];appendBufferScheduled=!1;rafScheduler=Zt();editorHeightManager=null;revealDebounceId=null;revealDebounceMs=Rn;revealIdleTimerId=null;revealTicket=0;revealStrategyOption;revealBatchOnIdleMsOption;scrollWatcherSuppressionMs=500;constructor(t,e,i,n,r,o,s,l){this.options=t,this.maxHeightValue=e,this.maxHeightCSS=i,this.autoScrollOnUpdate=n,this.autoScrollInitial=r,this.autoScrollThresholdPx=o,this.autoScrollThresholdLines=s,this.revealDebounceMsOption=l}initDebugFlag(){if(typeof window<"u"&&window.__STREAM_MONACO_DEBUG__!==void 0){this.debug=!!window.__STREAM_MONACO_DEBUG__;return}if(this.options&&this.options.debug!==void 0){this.debug=!!this.options.debug;return}this.debug=!1}dlog(...t){this.debug&&M("EditorManager",...t)}hasVerticalScrollbar(){if(!this.editorView)return!1;if(this._hasScrollBar)return!0;const t=this.measureViewport();return t?this._hasScrollBar=t.scrollHeight>t.computedHeight+fe/2:!1}userIsNearBottom(){if(!this.editorView)return!0;const t=this.measureViewport();if(!t||!t.li)return!0;const e=(this.autoScrollThresholdLines??0)*t.lineHeight,i=Math.max(e||0,this.autoScrollThresholdPx||0);return t.scrollHeight-(t.scrollTop+t.li.height)<=i}computedHeight(t){var e;const i=this.cachedLineCount??((e=t.getModel())===null||e===void 0?void 0:e.getLineCount())??1,n=t.getOption(L.editor.EditorOption.lineHeight),r=Math.min(i*n+fe,this.maxHeightValue);return M("EditorManager.computedHeight",{lineCount:i,lineHeight:n,computed:r,maxHeightValue:this.maxHeightValue}),r}maybeScrollToBottom(t){this.rafScheduler.schedule("maybe-scroll",()=>{const e=this.hasVerticalScrollbar();if(this.dlog("maybeScrollToBottom called",{autoScrollOnUpdate:this.autoScrollOnUpdate,shouldAutoScroll:this.shouldAutoScroll,hasVerticalScrollbar:e,targetLine:t}),!(this.autoScrollOnUpdate&&this.shouldAutoScroll&&this.hasVerticalScrollbar())){this.dlog("maybeScrollToBottom skipped (auto-scroll conditions not met)");return}const i=this.editorView.getModel(),n=t??i?.getLineCount()??1,r=this.revealBatchOnIdleMsOption??this.options.revealBatchOnIdleMs??Pn;if(typeof r=="number"&&r>0){this.revealIdleTimerId!=null&&clearTimeout(this.revealIdleTimerId);const s=++this.revealTicket;this.dlog("scheduled idle reveal ticket=",s,"line=",n,"batchMs=",r),this.revealIdleTimerId=setTimeout(()=>{this.revealIdleTimerId=null,this.dlog("idle reveal timer firing, ticket=",s,"line=",n),this.performReveal(n,s)},r);return}this.revealDebounceId!=null&&(clearTimeout(this.revealDebounceId),this.revealDebounceId=null);const o=typeof this.revealDebounceMs=="number"&&this.revealDebounceMs>0?this.revealDebounceMs:typeof this.revealDebounceMsOption=="number"&&this.revealDebounceMsOption>0?this.revealDebounceMsOption:this.revealDebounceMs;this.revealDebounceId=setTimeout(()=>{this.revealDebounceId=null;const s=++this.revealTicket;this.dlog("scheduled debounce reveal ticket=",s,"line=",n,"ms=",o),this.performReveal(n,s)},o)})}performReveal(t,e){this.rafScheduler.schedule("reveal",()=>{var i;if(e!==this.revealTicket){this.dlog("performReveal skipped, stale ticket",e,"current",this.revealTicket);return}this.dlog("performReveal executing, ticket=",e,"line=",t);const n=this.revealStrategyOption??this.options.revealStrategy??"centerIfOutside";this.dlog("performReveal strategy=",n);const r=L.ScrollType||((i=L.editor)===null||i===void 0?void 0:i.ScrollType),o=r&&typeof r.Smooth<"u"?r.Smooth:void 0;try{n==="bottom"?typeof o<"u"?this.editorView.revealLine(t,o):this.editorView.revealLine(t):n==="center"?typeof o<"u"?this.editorView.revealLineInCenter(t,o):this.editorView.revealLineInCenter(t):typeof o<"u"?this.editorView.revealLineInCenterIfOutsideViewport(t,o):this.editorView.revealLineInCenterIfOutsideViewport(t)}catch{try{this.editorView.revealLine(t)}catch{}}})}performImmediateReveal(t,e){this.dlog("performImmediateReveal line=",t,"ticket=",e);try{var i;if(!this.editorView)return;if(e!==this.revealTicket){this.dlog("performImmediateReveal skipped, stale ticket",e,"current",this.revealTicket);return}const n=L.ScrollType||((i=L.editor)===null||i===void 0?void 0:i.ScrollType),r=n&&typeof n.Immediate<"u"?n.Immediate:void 0;typeof r<"u"?this.editorView.revealLine(t,r):this.editorView.revealLine(t)}catch{}try{this.measureViewport()}catch{}}forceReveal(t){try{var e;if(!this.editorView)return;const r=L.ScrollType||((e=L.editor)===null||e===void 0?void 0:e.ScrollType),o=r&&typeof r.Immediate<"u"?r.Immediate:void 0;typeof o<"u"?this.editorView.revealLine(t,o):this.editorView.revealLine(t)}catch{}try{this.measureViewport()}catch{}try{var i,n;this.shouldAutoScroll=!0,this.lastScrollTop=((i=this.editorView)===null||i===void 0||(n=i.getScrollTop)===null||n===void 0?void 0:n.call(i))??this.lastScrollTop}catch{}}isOverflowAuto(){try{return!!this.lastContainer&&this.lastContainer.style.overflow==="auto"}catch{return!1}}shouldPerformImmediateReveal(){return this.autoScrollOnUpdate&&this.shouldAutoScroll&&this.hasVerticalScrollbar()&&this.isOverflowAuto()}async createEditor(t,e,i,n){var r,o,s,l,a,u,d;if(this.cleanup(),this.lastContainer=t,this.initDebugFlag(),this.dlog("createEditor container, maxHeight",this.maxHeightValue),t.style.overflow="hidden",t.style.maxHeight=this.maxHeightCSS,this.editorView=L.editor.create(t,{value:e,language:ee(i)||i,theme:n,scrollBeyondLastLine:!1,minimap:{enabled:!1},automaticLayout:!0,readOnly:this.options.readOnly??!0,contextmenu:!1,scrollbar:{...An,...this.options.scrollbar||{}},...this.options}),L.editor.setTheme(n),this.lastKnownCode=this.editorView.getValue(),this.editorHeightManager){try{this.editorHeightManager.dispose()}catch{}this.editorHeightManager=null}this.revealDebounceId!=null&&(clearTimeout(this.revealDebounceId),this.revealDebounceId=null),this.revealIdleTimerId!=null&&clearTimeout(this.revealIdleTimerId),this.revealIdleTimerId=null;const m=Math.min(120,this.maxHeightValue);return t.style.minHeight=`${m}px`,this.editorHeightManager=Mn(t,()=>{const f=this.computedHeight(this.editorView),p=Math.min(f,this.maxHeightValue);return Math.max(p,m)}),this.editorHeightManager.update(),this.computedHeight(this.editorView)>=this.maxHeightValue-1&&(t.style.height=`${this.maxHeightValue}px`,t.style.overflow="auto",this.dlog("applied immediate maxHeight on createEditor",this.maxHeightValue)),this.cachedScrollHeight=((r=(o=this.editorView).getScrollHeight)===null||r===void 0?void 0:r.call(o))??null,this.cachedLineHeight=((s=(l=this.editorView).getOption)===null||s===void 0?void 0:s.call(l,L.editor.EditorOption.lineHeight))??null,this.cachedComputedHeight=this.computedHeight(this.editorView),this.cachedLineCount=((a=this.editorView.getModel())===null||a===void 0?void 0:a.getLineCount())??null,(u=(d=this.editorView).onDidContentSizeChange)===null||u===void 0||u.call(d,()=>{this._hasScrollBar=!1,this.rafScheduler.schedule("content-size-change",()=>{try{var f,p,_;this.dlog("content-size-change frame");const v=this.measureViewport();if(this.dlog("content-size-change measure",v),this.cachedLineCount=((f=this.editorView)===null||f===void 0||(f=f.getModel())===null||f===void 0?void 0:f.getLineCount())??this.cachedLineCount,!((p=this.editorHeightManager)===null||p===void 0)&&p.isSuppressed()){this.dlog("content-size-change skipped height update (suppressed)");return}this.dlog("content-size-change calling heightManager.update"),(_=this.editorHeightManager)===null||_===void 0||_.update();const g=this.computedHeight(this.editorView);if(this.lastContainer){const E=this.lastContainer.style.overflow,y=g>=this.maxHeightValue-1?"auto":"hidden";E!==y&&(this.lastContainer.style.overflow=y,y==="auto"&&this.shouldAutoScroll&&this.maybeScrollToBottom())}}catch(v){Mi("EditorManager","content-size-change error",v)}})}),this.editorView.onDidChangeModelContent(()=>{this.lastKnownCodeDirty=!0,this.rafScheduler.schedule("sync-last-known",()=>this.syncLastKnownCode())}),this.shouldAutoScroll=!!this.autoScrollInitial,this.scrollWatcher&&(this.scrollWatcher.dispose(),this.scrollWatcher=null),this.scrollWatcher=kn(this.editorView,{onPause:()=>{this.shouldAutoScroll=!1},onMaybeResume:()=>{this.rafScheduler.schedule("maybe-resume",()=>{this.shouldAutoScroll=this.userIsNearBottom()})},getLast:()=>this.lastScrollTop,setLast:f=>{this.lastScrollTop=f}}),this.maybeScrollToBottom(),this.editorView}syncLastKnownCode(){if(!this.editorView||!this.lastKnownCodeDirty)return;const t=this.editorView.getModel();t&&(this.lastKnownCode=t.getValue(),this.cachedLineCount=t.getLineCount()??this.cachedLineCount),this.lastKnownCodeDirty=!1}suppressScrollWatcher(t){!this.scrollWatcher||typeof this.scrollWatcher.setSuppressed!="function"||(this.dlog("suppressScrollWatcher",t),this.scrollWatcherSuppressionTimer!=null&&(clearTimeout(this.scrollWatcherSuppressionTimer),this.scrollWatcherSuppressionTimer=null),this.scrollWatcher.setSuppressed(!0),this.scrollWatcherSuppressionTimer=setTimeout(()=>{this.scrollWatcher&&typeof this.scrollWatcher.setSuppressed=="function"&&(this.scrollWatcher.setSuppressed(!1),this.dlog("suppressScrollWatcher cleared")),this.scrollWatcherSuppressionTimer=null},t))}scheduleImmediateRevealAfterLayout(t){const e=++this.revealTicket;this.dlog("scheduleImmediateRevealAfterLayout ticket=",e,"line=",t),this.rafScheduler.schedule("immediate-reveal",async()=>{try{const i=this.editorView&&this.editorHeightManager?Math.min(this.computedHeight(this.editorView),this.maxHeightValue):-1;i!==-1&&this.editorHeightManager?await this.waitForHeightApplied(i,500):await new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),this.dlog("running delayed immediate reveal","ticket=",e,"line=",t),this.performImmediateReveal(t,e)}catch(i){Mi("EditorManager","scheduleImmediateRevealAfterLayout error",i)}})}waitForHeightApplied(t,e=500){return new Promise(i=>{const n=typeof performance<"u"&&performance.now?performance.now():Date.now(),r=()=>{try{var o,s;const l=((o=this.editorHeightManager)===null||o===void 0||(s=o.getLastApplied)===null||s===void 0?void 0:s.call(o))??-1;if(l!==-1&&Math.abs(l-t)<=12){this.dlog("waitForHeightApplied satisfied",l,"target=",t),i();return}if((typeof performance<"u"&&performance.now?performance.now():Date.now())-n>e){M("EditorManager","waitForHeightApplied timeout",l,"target=",t),i();return}}catch{}requestAnimationFrame(r)};r()})}updateCode(t,e){this.pendingUpdate={code:t,lang:e},this.rafScheduler.schedule("update",()=>this.flushPendingUpdate())}flushPendingUpdate(){if(!this.pendingUpdate||!this.editorView)return;const t=this.editorView.getModel();if(!t)return;const{code:e,lang:i}=this.pendingUpdate;this.pendingUpdate=null;const n=ee(i);if(t.getLanguageId()!==n){n&&L.editor.setModelLanguage(t,n);const u=t.getLineCount();t.setValue(e),this.lastKnownCode=e;const d=t.getLineCount();this.cachedLineCount=d,d!==u&&(this.shouldPerformImmediateReveal()&&this.suppressScrollWatcher(this.scrollWatcherSuppressionMs),this.computedHeight(this.editorView)>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`),this.forceReveal(d));return}const o=this.appendBuffer.length>0?this.appendBuffer.join(""):"",s=this.appendBuffer.length>0?this.editorView.getValue()+o:this.lastKnownCode??this.editorView.getValue();if(s===e)return;if(e.startsWith(s)&&s.length<e.length){const u=e.slice(s.length);u&&this.appendCode(u,i),this.lastKnownCode=e;return}const l=t.getLineCount();this.applyMinimalEdit(s,e),this.lastKnownCode=e;const a=t.getLineCount();if(this.cachedLineCount=a,a!==l){const u=this.shouldPerformImmediateReveal();u&&this.suppressScrollWatcher(this.scrollWatcherSuppressionMs),u?this.scheduleImmediateRevealAfterLayout(a):this.maybeScrollToBottom(a)}}appendCode(t,e){if(!this.editorView)return;const i=this.editorView.getModel();if(!i)return;const n=e?ee(e):i.getLanguageId();n&&i.getLanguageId()!==n&&L.editor.setModelLanguage(i,n),t&&(this.appendBuffer.push(t),this.appendBufferScheduled||(this.appendBufferScheduled=!0,this.rafScheduler.schedule("append",()=>this.flushAppendBuffer())))}applyMinimalEdit(t,e){if(!this.editorView)return;const i=this.editorView.getModel();if(!i)return;const n=Jt,r=Xt,o=Math.max(t.length,e.length),s=o>0?Math.abs(e.length-t.length)/o:0;if(t.length+e.length>n||s>r){const v=i.getLineCount();i.setValue(e),this.lastKnownCode=e;const g=i.getLineCount();this.cachedLineCount=g,g!==v&&this.maybeScrollToBottom(g);return}const l=Qt(t,e);if(!l)return;const{start:a,endPrevIncl:u,replaceText:d}=l,m=i.getPositionAt(a),h=i.getPositionAt(u+1),f=new L.Range(m.lineNumber,m.column,h.lineNumber,h.column),p=this.editorView.getOption(L.editor.EditorOption.readOnly),_=[{range:f,text:d,forceMoveMarkers:!0}];p?i.applyEdits(_):this.editorView.executeEdits("minimal-replace",_)}flushAppendBuffer(){if(!this.editorView||this.appendBuffer.length===0)return;this.appendBufferScheduled=!1;const t=this.editorView.getModel();if(!t){this.appendBuffer.length=0;return}const e=this.appendBuffer.join("");this.appendBuffer.length=0;const i=t.getLineCount(),n=t.getLineMaxColumn(i),r=new L.Range(i,n,i,n);this.editorView.getOption(L.editor.EditorOption.readOnly)?t.applyEdits([{range:r,text:e,forceMoveMarkers:!0}]):this.editorView.executeEdits("append",[{range:r,text:e,forceMoveMarkers:!0}]);try{this.lastKnownCode=t.getValue()}catch{}const s=t.getLineCount();if(i!==s){this.cachedLineCount=s;const l=this.shouldPerformImmediateReveal();if(l&&this.suppressScrollWatcher(this.scrollWatcherSuppressionMs),this.computedHeight(this.editorView)>=this.maxHeightValue-1&&this.lastContainer&&(this.lastContainer.style.height=`${this.maxHeightValue}px`),l)try{this.forceReveal(s)}catch{}else this.maybeScrollToBottom(s)}}setLanguage(t,e){if(e.includes(t)){if(this.editorView){const i=this.editorView.getModel();i&&i.getLanguageId()!==t&&L.editor.setModelLanguage(i,t)}}else console.warn(`Language "${t}" is not registered. Available languages: ${e.join(", ")}`)}getEditorView(){return this.editorView}cleanup(){this.rafScheduler.cancel("update"),this.rafScheduler.cancel("sync-last-known"),this.rafScheduler.cancel("content-size-change"),this.rafScheduler.cancel("maybe-scroll"),this.rafScheduler.cancel("reveal"),this.rafScheduler.cancel("immediate-reveal"),this.rafScheduler.cancel("maybe-resume"),this.pendingUpdate=null,this.rafScheduler.cancel("append"),this.appendBufferScheduled=!1,this.appendBuffer.length=0,this.revealDebounceId!=null&&(clearTimeout(this.revealDebounceId),this.revealDebounceId=null),this.revealIdleTimerId!=null&&(clearTimeout(this.revealIdleTimerId),this.revealIdleTimerId=null),this.scrollWatcherSuppressionTimer!=null&&(clearTimeout(this.scrollWatcherSuppressionTimer),this.scrollWatcherSuppressionTimer=null),this.editorView&&(this.editorView.dispose(),this.editorView=null),this.lastKnownCode=null,this.lastContainer&&(this.lastContainer.style.minHeight="",this.lastContainer.innerHTML="",this.lastContainer=null),this.scrollWatcher&&(this.scrollWatcher.dispose(),this.scrollWatcher=null),this.editorHeightManager&&(this.editorHeightManager.dispose(),this.editorHeightManager=null)}safeClean(){if(this.rafScheduler.cancel("update"),this.pendingUpdate=null,this.rafScheduler.cancel("sync-last-known"),this.scrollWatcher){try{this.scrollWatcher.dispose()}catch{}this.scrollWatcher=null}this.revealDebounceId!=null&&(clearTimeout(this.revealDebounceId),this.revealDebounceId=null),this.revealIdleTimerId!=null&&(clearTimeout(this.revealIdleTimerId),this.revealIdleTimerId=null),this.scrollWatcherSuppressionTimer!=null&&(clearTimeout(this.scrollWatcherSuppressionTimer),this.scrollWatcherSuppressionTimer=null),this.rafScheduler.cancel("maybe-scroll"),this.rafScheduler.cancel("reveal"),this.rafScheduler.cancel("immediate-reveal"),this.rafScheduler.cancel("maybe-resume"),this._hasScrollBar=!1,this.shouldAutoScroll=!!this.autoScrollInitial,this.lastScrollTop=0,this.editorHeightManager&&(this.editorHeightManager.dispose(),this.editorHeightManager=null)}};function Ga(t){const e=gr(()=>t());return Object.defineProperty({},"value",{get(){return e()},set(i){},enumerable:!0,configurable:!1})}function Ua(t,e){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const $a="__streamMonacoLegacyOnigurumaInit__",Fa="__streamMonacoLegacyShikiEngine__",za="__streamMonacoLegacyMonacoLangsInit__";async function qa(){try{var t;const e=(t=globalThis)===null||t===void 0?void 0:t[$a];e&&typeof e.then=="function"&&await e}catch{}}async function Ka(){try{var t;const e=(t=globalThis)===null||t===void 0?void 0:t[za];e&&typeof e.then=="function"&&await e}catch{}}async function Ya(){try{var t;const e=(t=globalThis)===null||t===void 0?void 0:t[Fa];if(e&&typeof e.then=="function")return await e}catch{}return null}async function st(t){await qa(),await Ka();const e=await Ya();return Ri(e?{...t,engine:e}:t)}let ki=!1,Bt=[],Vi=Promise.resolve();function Ja(t){const e=Vi.then(t,t);return Vi=e.then(()=>{},()=>{}),e}const oe=new Map;let Ge=null,Lt=null,bt=new Set;const wt=new Map,qe=new Set;function xi(t){return typeof t=="string"?t:t.name??JSON.stringify(t)}async function Xa(t,e){for(const a of t)wt.set(xi(a),a);for(const a of e)qe.add(a);if(!Ge){const a=Array.from(wt.values()),u=Array.from(qe.values());Ge=st({themes:a,langs:u}).then(d=>d)}const i=await Ge,n=Array.from(wt.values()),r=Array.from(qe.values()),o=typeof i.loadTheme=="function",s=typeof i.loadLanguage=="function";if(o||s){if(o)for(const a of t){const u=xi(a);i.__streamMonacoLoadedThemes||(i.__streamMonacoLoadedThemes=new Set);const d=i.__streamMonacoLoadedThemes;d.has(u)||(await i.loadTheme(a),d.add(u))}if(s)for(const a of e){i.__streamMonacoLoadedLangs||(i.__streamMonacoLoadedLangs=new Set);const u=i.__streamMonacoLoadedLangs;u.has(a)||(await i.loadLanguage(a),u.add(a))}return i}const l=st({themes:n,langs:r}).then(a=>a);return Ge=l,l}function ll(){oe.clear()}function Qa(t){return JSON.stringify(t.map(e=>typeof e=="string"?e:e.name??JSON.stringify(e)).sort())}async function ul(t,e){const i=Qa(t),n=new Set(e);let r=oe.get(i);if(r){let l=!0;for(const p of n)if(!r.languages.has(p)){l=!1;break}if(l)return r.promise;const a=r,u=oe.get(i);if(u&&u!==a){let p=!0;for(const _ of n)if(!u.languages.has(_)){p=!1;break}if(p)return u.promise;r=u}const d=new Set([...r.languages,...n]),m=Array.from(d),h=st({themes:t,langs:m}),f={promise:h,languages:d};return oe.set(i,f),h.catch(()=>{oe.get(i)===f&&a&&oe.set(i,a)}),h}const o=st({themes:t,langs:Array.from(n)}),s={promise:o,languages:n};return oe.set(i,s),o.catch(()=>{oe.get(i)===s&&oe.delete(i)}),o}async function Ue(t,e){return Ja(async()=>{Za(e);const i=(async()=>{const n=await Xa(t,e),r=Array.from(qe.values());if(Lt!==n||r.some(s=>!bt.has(s))){Lt!==n&&(bt=new Set);const s=L.languages,l=L.editor,a=typeof s?.setTokensProvider=="function"?s.setTokensProvider.bind(s):null,u=typeof s?.getLanguages=="function"?s.getLanguages.bind(s):null;ao(n,{__proto__:L,editor:l,languages:{__proto__:s,getLanguages:u,setTokensProvider(m,h){if(h&&typeof h.tokenize=="function"){const f=h.tokenize.bind(h);h={...h,tokenize(p,_){try{return f(p,_)}catch{return{endState:_,tokens:[{startIndex:0,scopes:""}]}}}}}return a?.(m,h)}}}),Lt=n,bt=new Set(r)}return Bt=e.slice(),n})();try{return await i}catch(n){throw n}})}function Za(t){if(ki&&Ua(t,Bt))return;const e=new Set(L.languages.getLanguages().map(i=>i.id));for(const i of t)if(!e.has(i))try{L.languages.register({id:i})}catch{}ki=!0,Bt=t}let cl=(function(t){return t.Bottom="bottom",t.CenterIfOutside="centerIfOutside",t.Center="center",t})({}),we=null,ce=0,$e=null;function dl(t={}){var e;const i=[];(t.isCleanOnBeforeCreate??!0)&&i.forEach(S=>S.dispose()),(t.isCleanOnBeforeCreate??!0)&&(i.length=0);let n=null,r=null,o=null,s=null,l=null,a=null,u=!1;const d=t.themes&&(!((e=t.themes)===null||e===void 0)&&e.length)?t.themes:Ba;if(!Array.isArray(d)||d.length<2)throw new Error("Monaco themes must be an array with at least two themes: [darkTheme, lightTheme]");const m=t.languages??Na,h=t.MAX_HEIGHT??500,f=t.autoScrollOnUpdate??!0,p=t.autoScrollInitial??!0,_=t.autoScrollThresholdPx??32,v=t.autoScrollThresholdLines??2,g=t.diffAutoScroll??!0,E=()=>{if(typeof h=="number")return h;const S=h.match(/^(\d+(?:\.\d+)?)/);return S?Number.parseFloat(S[1]):500},y=()=>typeof h=="number"?`${h}px`:h,w=E(),A=y();let I=null,O=null;const x=t.minimalEditMaxChars??Jt,$=t.minimalEditMaxChangeRatio??Xt;let F=t.updateThrottleMs??50,te=0,ie=null,q=null,X=!0;const K=[];let se=!1;const xe=Ga(()=>t.theme??(typeof d[0]=="string"?d[0]:d[0].name));let Ne=t.theme??we??xe.value;const ue=Zt();async function ei(S,b){if(!(!S||typeof S.setTheme!="function"))try{await S.setTheme(b)}catch(D){const C=(D?.message?String(D.message):String(D)).toLowerCase(),V=C.includes("theme")&&C.includes("not found");if(typeof S.loadTheme=="function"&&V){await S.loadTheme(b),await S.setTheme(b);return}throw D}}async function Bn(S,b=!1){const D=typeof S=="string"?S:S.name;ce+=1;const P=ce;if(Ne=D,we=D,!b&&D===$e||P!==ce||(await Ue(d,m).catch(()=>{}),P!==ce))return;const C=d.map(V=>typeof V=="string"?V:V.name);if(!C.includes(D))try{const V=C.concat(D),B=await Ue(V,m);await ei(B,D).catch(()=>{})}catch{console.warn(`Theme "${D}" is not registered and automatic registration failed. Available themes: ${C.join(", ")}`);return}if(P===ce){try{L.editor.setTheme(D),$e=D}catch{try{const V=await Ue(d,m);if(P!==ce)return;L.editor.setTheme(D),$e=D,await ei(V,D).catch(()=>{})}catch(V){console.warn(`Failed to set theme "${D}":`,V);return}}if(P===ce)try{typeof t.onThemeChange=="function"&&await t.onThemeChange(D)}catch(V){console.warn("onThemeChange callback threw an error:",V)}}}async function ti(S){const D=d.map(P=>typeof P=="string"?P:P.name).includes(S)?d:d.concat(S);await Ue(D,m)}function Hn(){if(!n)return!1;if(u)return!0;const S=Gn(n);return u=n.getScrollHeight()>S+fe/2}let Ee=null;const Wn=75;function pe(S){if(f&&X&&Hn()){const b=n.getModel(),D=S??b?.getLineCount()??1;Ee!=null&&(clearTimeout(Ee),Ee=null),Ee=setTimeout(()=>{Ee=null,ue.schedule("reveal",()=>{try{var P;const C=L.ScrollType||((P=L.editor)===null||P===void 0?void 0:P.ScrollType);C&&typeof C.Smooth<"u"?n.revealLineInCenterIfOutsideViewport(D,C.Smooth):n.revealLineInCenterIfOutsideViewport(D)}catch{}})},Wn)}}async function jn(S,b,D){if(dt(),I=S,(t.isCleanOnBeforeCreate??!0)&&(i.forEach(C=>C.dispose()),i.length=0),t.onBeforeCreate){const C=t.onBeforeCreate(L);C&&i.push(...C)}const P=Ne??t.theme??we??xe.value;if(await ti(P),r=new ja(t,w,A,f,p,_,v,t.revealDebounceMs),n=await r.createEditor(S,b,D,P),q&&r){const{code:C,lang:V}=q;q=null,r.updateCode(C,V)}return typeof t.onThemeChange=="function"&&t.onThemeChange(P),n&&(O=n.getValue()),n}function Gn(S){var b;const D=((b=S.getModel())===null||b===void 0?void 0:b.getLineCount())??1,P=S.getOption(L.editor.EditorOption.lineHeight);return Math.min(D*P+fe,w)}async function Un(S,b,D,P){if(dt(),I=S,(t.isCleanOnBeforeCreate??!0)&&(i.forEach(B=>B.dispose()),i.length=0),t.onBeforeCreate){const B=t.onBeforeCreate(L);B&&i.push(...B)}const C=Ne??t.theme??we??xe.value;await ti(C);try{L.editor.setTheme(C)}catch{}s=new Wa(t,w,A,f,p,_,v,g,t.revealDebounceMs,t.diffUpdateThrottleMs),o=await s.createDiffEditor(S,b,D,P,C),typeof t.onThemeChange=="function"&&t.onThemeChange(C);const V=s.getDiffModels();return l=V.original,a=V.modified,o}function dt(){r&&(r.cleanup(),r=null),s&&(s.cleanup(),s=null),ue.cancel("update"),q=null,ue.cancel("append"),se=!1,K.length=0,!r&&n&&(n.dispose(),n=null),O=null,I&&(I.innerHTML="",I=null),ie!=null&&(clearTimeout(ie),ie=null),o=null,l=null,a=null}function ii(S,b){if(r)r.appendCode(S,b);else{if(!n)return;const D=n.getModel();if(!D)return;const P=b?ee(b):D.getLanguageId();P&&D.getLanguageId()!==P&&L.editor.setModelLanguage(D,P),S&&O!=null&&(O=O+S),S&&(K.push(S),se||(se=!0,ue.schedule("append",Fn)))}}function $n(S,b){if(!n)return;const D=n.getModel();if(!D)return;try{const er=x,tr=$,ni=Math.max(S.length,b.length),ir=ni>0?Math.abs(b.length-S.length)/ni:0;if(S.length+b.length>er||ir>tr){const nr=D.getLineCount();D.setValue(b),O=b;const ri=D.getLineCount();ri!==nr&&pe(ri);return}}catch{}const P=Qt(S,b);if(!P)return;const{start:C,endPrevIncl:V,replaceText:B}=P,Q=D.getPositionAt(C),Te=D.getPositionAt(V+1),ft=new L.Range(Q.lineNumber,Q.column,Te.lineNumber,Te.column),mt=n.getOption(L.editor.EditorOption.readOnly),Le=[{range:ft,text:B,forceMoveMarkers:!0}];mt?D.applyEdits(Le):n.executeEdits("minimal-replace",Le)}function ht(){if(!q||(te=Date.now(),!n))return;const S=n.getModel();if(!S)return;const{code:b,lang:D}=q;q=null;const P=ee(D);let C=null;if(K.length>0)try{C=S.getValue(),O=C}catch{C=""}else if(C=O,C==null)try{C=S.getValue(),O=C}catch{C=""}if(C===b)return;if(S.getLanguageId()!==P){P&&L.editor.setModelLanguage(S,P);const B=S.getLineCount();S.setValue(b),O=b;const Q=S.getLineCount();Q!==B&&pe(Q);return}if(b.startsWith(C)&&C.length<b.length){const B=b.slice(C.length);B&&ii(B,D),O=b;return}try{const B=x,Q=$,Te=Math.max(C.length,b.length),ft=Te>0?Math.abs(b.length-C.length)/Te:0;if(C.length+b.length>B||ft>Q){const mt=S.getLineCount();S.setValue(b),O=b;const Le=S.getLineCount();Le!==mt&&pe(Le);return}}catch{}try{$n(C,b),O=b;const B=S.getLineCount(),Q=(C?C.split(`
|
|
16
|
+
`).length:0)||S.getLineCount();B!==Q&&pe(B)}catch{try{const B=S.getLineCount();S.setValue(b),O=b;const Q=S.getLineCount();Q!==B&&pe(Q)}catch{}}}function Fn(){if(!n||K.length===0)return;se=!1;const S=n.getModel();if(!S){K.length=0;return}const b=K.join("");K.length=0;try{const D=S.getLineCount(),P=S.getLineMaxColumn(D),C=new L.Range(D,P,D,P);n.getOption(L.editor.EditorOption.readOnly)?S.applyEdits([{range:C,text:b,forceMoveMarkers:!0}]):n.executeEdits("append",[{range:C,text:b,forceMoveMarkers:!0}]),O!=null&&(O=O+b);try{D!==S.getLineCount()&&pe(S.getLineCount())}catch{}}catch{}}function zn(S,b){r?r.updateCode(S,b):(q={code:S,lang:b},ue.schedule("update",()=>{if(!F){ht();return}const P=Date.now()-te;if(P>=F){ht();return}if(ie!=null)return;const C=F-P;ie=setTimeout(()=>{ie=null,ue.schedule("update",()=>ht())},C)}))}function qn(S){F=S}function Kn(){return F}function Yn(S,b,D){s&&s.updateDiff(S,b,D)}function Jn(S,b){s&&s.updateOriginal(S,b)}function Xn(S,b){s&&s.updateModified(S,b)}function Qn(S,b){s&&s.appendOriginal(S,b)}function Zn(S,b){s&&s.appendModified(S,b)}return{createEditor:jn,createDiffEditor:Un,cleanupEditor:dt,safeClean(){if(ue.cancel("update"),q=null,r)try{r.safeClean()}catch{}if(s)try{s.safeClean()}catch{}u=!1,X=!!p},updateCode:zn,appendCode:ii,updateDiff:Yn,updateOriginal:Jn,updateModified:Xn,appendOriginal:Qn,appendModified:Zn,setTheme:Bn,setLanguage(S){if(r){r.setLanguage(S,m);return}if(s){s.setLanguage(S,m);return}if(m.includes(S)){if(n){const b=n.getModel();b&&b.getLanguageId()!==S&&L.editor.setModelLanguage(b,S)}l&&l.getLanguageId()!==S&&L.editor.setModelLanguage(l,S),a&&a.getLanguageId()!==S&&L.editor.setModelLanguage(a,S)}else console.warn(`Language "${S}" is not registered. Available languages: ${m.join(", ")}`)},getCurrentTheme(){return $e??Ne??we??xe.value},getEditor(){return L.editor},getEditorView(){return n},getDiffEditorView(){return o},getDiffModels(){return{original:l,modified:a}},getMonacoInstance(){return L},setUpdateThrottleMs:qn,getUpdateThrottleMs:Kn,getCode(){if(n)try{var S;return((S=n.getModel())===null||S===void 0?void 0:S.getValue())??null}catch{return null}if(o||l&&a)try{const b=l?.getValue()??"",D=a?.getValue()??"";return{original:b,modified:D}}catch{return null}return null}}}const Vn="monaco-editor/esm/vs/editor/editor.worker.js",xn={json:"monaco-editor/esm/vs/language/json/json.worker.js",css:"monaco-editor/esm/vs/language/css/css.worker.js",scss:"monaco-editor/esm/vs/language/css/css.worker.js",less:"monaco-editor/esm/vs/language/css/css.worker.js",html:"monaco-editor/esm/vs/language/html/html.worker.js",handlebars:"monaco-editor/esm/vs/language/html/html.worker.js",razor:"monaco-editor/esm/vs/language/html/html.worker.js",typescript:"monaco-editor/esm/vs/language/typescript/ts.worker.js",javascript:"monaco-editor/esm/vs/language/typescript/ts.worker.js"},el=Array.from(new Set([Vn,...Object.values(xn)]));function Nn(){if(!(typeof window>"u"||typeof document>"u"))try{const t=self.MonacoEnvironment;if(t?.getWorker||t?.getWorkerUrl)return;const e=Object.fromEntries(Object.entries(xn).map(([n,r])=>[n,new URL(r,import.meta.url)])),i=new URL(Vn,import.meta.url);self.MonacoEnvironment={getWorker(n,r){const o=e[r]??i;return new Worker(o,{type:"module"})}}}catch{}}async function hl(){if(typeof window>"u"||typeof document>"u")return;const t=el.map(e=>String(new URL(e,import.meta.url)));Nn();try{await Promise.all(t.map(e=>fetch(e,{method:"GET",cache:"force-cache"}).catch(()=>{})))}catch{}}Nn();export{cl as RevealStrategy,ll as clearHighlighterCache,Rn as defaultRevealDebounceMs,al as detectLanguage,Nn as ensureMonacoWorkers,ul as getOrCreateHighlighter,hl as preloadMonacoWorkers,Ue as registerMonacoThemes,dl as useMonaco};
|