mycode-cli 0.8.4__py3-none-any.whl → 0.8.6__py3-none-any.whl
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.
- mycode_cli/server/static/assets/{EditDiff-B8NxA_XZ.js → EditDiff-BONVhlGY.js} +1 -1
- mycode_cli/server/static/assets/{highlighter-DB5rwCPG.js → highlighter-C-cWfqW3.js} +1 -1
- mycode_cli/server/static/assets/index-BTwuuWXz.js +361 -0
- mycode_cli/server/static/assets/index-Cg7MlykX.css +1 -0
- mycode_cli/server/static/assets/{langs-DkaAKmc1.js → langs-B716PHFK.js} +1 -1
- mycode_cli/server/static/index.html +2 -2
- {mycode_cli-0.8.4.dist-info → mycode_cli-0.8.6.dist-info}/METADATA +2 -2
- {mycode_cli-0.8.4.dist-info → mycode_cli-0.8.6.dist-info}/RECORD +11 -11
- mycode_cli/server/static/assets/index-CtDSxYIL.css +0 -1
- mycode_cli/server/static/assets/index-DJ-Ab7BV.js +0 -361
- {mycode_cli-0.8.4.dist-info → mycode_cli-0.8.6.dist-info}/WHEEL +0 -0
- {mycode_cli-0.8.4.dist-info → mycode_cli-0.8.6.dist-info}/entry_points.txt +0 -0
- {mycode_cli-0.8.4.dist-info → mycode_cli-0.8.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as U,r as B,_ as w,u as Kt}from"./index-DJ-Ab7BV.js";import{c as Xt,b as Ke,n as Jt,a as Yt,t as me}from"./langs-DkaAKmc1.js";const Zt={position:"absolute",top:0,bottom:0,textAlign:"center"},Qt={display:"contents"};function at(){return null}const _e="diffs-container",en=/(?=^From [a-f0-9]+ .+$)/m,Ee=/(?=^diff --git)/gm,st=/(?=^---\s+\S)/gm,tn=/(?=^@@ )/gm,nn=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,Me=new RegExp("(?<=\\n)"),rn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,on=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,an=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,sn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,tt="header-prefix",nt="header-metadata",it="header-custom",J={dark:"pierre-dark",light:"pierre-light"},Mt="data-theme-css",Nt="data-unsafe-css",fe=1,ln={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},dn=Object.freeze({fromStart:0,fromEnd:0}),lt={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},fn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function ge(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function cn(e,t){return typeof window>"u"&&t!=null?U.jsxs(U.Fragment,{children:[U.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:t}}),e]}):U.jsx(U.Fragment,{children:e})}const un=B.createContext(void 0);function hn(){return B.useContext(un)}const re=new Map,Ne=new Map,Xe=new Map,Je=new Set;function dt(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=re.get(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,re.has(n)||re.set(n,i);Je.has(n)||(Je.add(n),t.loadThemeSync(i))}}const be=new Map,He=new Map,pn=new Map,Ye=new Set;function ft(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(Ye.has(n.name))continue;let i=be.get(n.name);i==null&&(i=n,be.set(n.name,i)),Ye.add(i.name),t.loadLanguageSync(i.data)}}function Ht(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}const mn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>w(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>w(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>w(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>w(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>w(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>w(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>w(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>w(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>w(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>w(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>w(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>w(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>w(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>w(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>w(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>w(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>w(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>w(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>w(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>w(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>w(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>w(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>w(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>w(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>w(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>w(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>w(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>w(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>w(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>w(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>w(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>w(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>w(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>w(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>w(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>w(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>w(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>w(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>w(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>w(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>w(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>w(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>w(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>w(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>w(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>w(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>w(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>w(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>w(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>w(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>w(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>w(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>w(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>w(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>w(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>w(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>w(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>w(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>w(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>w(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>w(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>w(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Ot=Object.fromEntries(mn.map(e=>[e.id,e.import]));class rt extends Error{constructor(t){super(t),this.name="ShikiError"}}function gn(){return 2147483648}function bn(){return typeof performance<"u"?performance.now():Date.now()}const vn=(e,t)=>e+(t-e%t)%t;async function yn(e){let t,n;const i={};function r(u){n=u,i.HEAPU8=new Uint8Array(u),i.HEAPU32=new Uint32Array(u)}function o(u,p,y){i.HEAPU8.copyWithin(u,p,p+y)}function s(u){try{return t.grow(u-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(u){const p=i.HEAPU8.length;u=u>>>0;const y=gn();if(u>y)return!1;for(let x=1;x<=4;x*=2){let C=p*(1+.2/x);C=Math.min(C,u+100663296);const m=Math.min(y,vn(Math.max(u,C),65536));if(s(m))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(u,p,y=1024){const x=p+y;let C=p;for(;u[C]&&!(C>=x);)++C;if(C-p>16&&u.buffer&&a)return a.decode(u.subarray(p,C));let m="";for(;p<C;){let b=u[p++];if(!(b&128)){m+=String.fromCharCode(b);continue}const v=u[p++]&63;if((b&224)===192){m+=String.fromCharCode((b&31)<<6|v);continue}const S=u[p++]&63;if((b&240)===224?b=(b&15)<<12|v<<6|S:b=(b&7)<<18|v<<12|S<<6|u[p++]&63,b<65536)m+=String.fromCharCode(b);else{const g=b-65536;m+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return m}function f(u,p){return u?d(i.HEAPU8,u,p):""}const c={emscripten_get_now:bn,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const p=await e({env:c,wasi_snapshot_preview1:c});t=p.memory,r(t.buffer),Object.assign(i,p),i.UTF8ToString=f}return await h(),i}var kn=Object.defineProperty,xn=(e,t,n)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>xn(e,typeof t!="symbol"?t+"":t,n);let O=null;function Sn(e){throw new rt(e.UTF8ToString(e.getLastOnigError()))}class Pe{constructor(t){H(this,"utf16Length"),H(this,"utf8Length"),H(this,"utf16Value"),H(this,"utf8Value"),H(this,"utf16OffsetToUtf8"),H(this,"utf8OffsetToUtf16");const n=t.length,i=Pe._utf8ByteLength(t),r=i!==n,o=r?new Uint32Array(n+1):null;r&&(o[n]=i);const s=r?new Uint32Array(i+1):null;r&&(s[i]=n);const l=new Uint8Array(i);let a=0;for(let d=0;d<n;d++){const f=t.charCodeAt(d);let c=f,h=!1;if(f>=55296&&f<=56319&&d+1<n){const u=t.charCodeAt(d+1);u>=56320&&u<=57343&&(c=(f-55296<<10)+65536|u-56320,h=!0)}r&&(o[d]=a,h&&(o[d+1]=a),c<=127?s[a+0]=d:c<=2047?(s[a+0]=d,s[a+1]=d):c<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),c<=127?l[a++]=c:c<=2047?(l[a++]=192|(c&1984)>>>6,l[a++]=128|(c&63)>>>0):c<=65535?(l[a++]=224|(c&61440)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0):(l[a++]=240|(c&1835008)>>>18,l[a++]=128|(c&258048)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0),h&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const o=t.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<r){const a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const De=class K{constructor(t){if(H(this,"id",++K.LAST_ID),H(this,"_onigBinding"),H(this,"content"),H(this,"utf16Length"),H(this,"utf8Length"),H(this,"utf16OffsetToUtf8"),H(this,"utf8OffsetToUtf16"),H(this,"ptr"),!O)throw new rt("Must invoke loadWasm first.");this._onigBinding=O,this.content=t;const n=new Pe(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!K._sharedPtrInUse?(K._sharedPtr||(K._sharedPtr=O.omalloc(1e4)),K._sharedPtrInUse=!0,O.HEAPU8.set(n.utf8Value,K._sharedPtr),this.ptr=K._sharedPtr):this.ptr=n.createString(O)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===K._sharedPtr?K._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};H(De,"LAST_ID",0);H(De,"_sharedPtr",0);H(De,"_sharedPtrInUse",!1);let Ut=De;class Cn{constructor(t){if(H(this,"_onigBinding"),H(this,"_ptr"),!O)throw new rt("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,a=t.length;l<a;l++){const d=new Pe(t[l]);n[l]=d.createString(O),i[l]=d.utf8Length}const r=O.omalloc(4*t.length);O.HEAPU32.set(n,r/4);const o=O.omalloc(4*t.length);O.HEAPU32.set(i,o/4);const s=O.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)O.ofree(n[l]);O.ofree(o),O.ofree(r),s===0&&Sn(O),this._onigBinding=O,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new Ut(t);const o=this._findNextMatchSync(t,n,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],f=l[a++],c=[];for(let h=0;h<f;h++){const u=t.convertUtf8OffsetToUtf16(l[a++]),p=t.convertUtf8OffsetToUtf16(l[a++]);c[h]={start:u,end:p,length:p-u}}return{index:d,captureIndices:c}}}function wn(e){return typeof e.instantiator=="function"}function Ln(e){return typeof e.default=="function"}function En(e){return typeof e.data<"u"}function Tn(e){return typeof Response<"u"&&e instanceof Response}function An(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let ye;function _n(e){if(ye)return ye;async function t(){O=await yn(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),wn(i)?i=await i.instantiator(n):Ln(i)?i=await i.default(n):(En(i)&&(i=i.data),Tn(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await In(i)(n):i=await Rn(i)(n):An(i)?i=await Oe(i)(n):i instanceof WebAssembly.Module?i=await Oe(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Oe(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return ye=t(),ye}function Oe(e){return t=>WebAssembly.instantiate(e,t)}function In(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Rn(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function zt(e){return e&&await _n(e),{createScanner(t){return new Cn(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Ut(t)}}}const Pn=Xt({langs:Ke,themes:Ot,engine:()=>zt(w(()=>import("./wasm-CG6Dc4jp.js"),[]))});async function Dn(e){if(Ht())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=He.get(e);if(t!=null)return t;try{let n=pn.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Ke,e)&&(n=Ke[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const o={name:e,data:r};return be.has(e)||be.set(e,o),o});return He.set(e,i),await i}finally{He.delete(e)}}function Mn(e){return be.get(e)??Dn(e)}async function Nn(e){if(Ht())throw new Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=Ne.get(e);if(t!=null)return t;try{const n=Xe.get(e)??Ot[e];if(n==null)throw new Error(`resolveTheme: No valid loader for ${e}`);const i=n().then(o=>Hn(e,"default"in o?o.default:o));Ne.set(e,i);const r=await i;if(r.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return re.set(r.name,r),r}finally{Ne.delete(e)}}function Hn(e,t){const n=re.get(e);return n??(t=Jt(t),re.set(e,t),t)}function On(e){return re.get(e)??Nn(e)}function Ft(e,t){if(Xe.has(e)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",e);return}Xe.set(e,t)}let X;async function Un({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){X??=Pn({themes:[],langs:["text"],engine:n==="shiki-wasm"?zt(w(()=>import("./wasm-CG6Dc4jp.js"),[])):Yt()});const i=Fn(X)?await X:X;X=i;const r=[];for(const s of t){if(s==="text"||s==="ansi")continue;const l=Mn(s);"then"in l?r.push(l):ft(l,i)}const o=[];for(const s of e){const l=On(s);"then"in l?o.push(l):dt(l,X)}return(r.length>0||o.length>0)&&await Promise.all([Promise.all(r).then(s=>{ft(s,i)}),Promise.all(o).then(s=>{dt(s,i)})]),i}function zn(){if(X!=null&&!("then"in X))return X}function Fn(e=X){return e!=null&&"then"in e}Ft("pierre-dark",async()=>{const{default:e}=await w(async()=>{const{default:t}=await import("./pierre-dark-DF2SEV7i.js");return{default:t}},[]);return{...e,name:"pierre-dark"}});Ft("pierre-light",async()=>{const{default:e}=await w(async()=>{const{default:t}=await import("./pierre-light-DOlZxES8.js");return{default:t}},[]);return{...e,name:"pierre-light"}});function $t(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Vt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}const le=new Map,pe={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function oe(e){if(le.has(e))return le.get(e)??"text";if(pe[e]!=null)return pe[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(le.has(t[1]))return le.get(t[1])??"text";if(pe[t[1]]!=null)return pe[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return le.has(n)?le.get(n)??"text":pe[n]??"text"}function ce(e){return e.replace(/\n$|\r\n$/,"")}function Y(e){return{type:"text",value:e}}function A({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function Ie({name:e,width:t=16,height:n=16,properties:i}){return A({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[A({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function $n(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function ke(e){return A({tagName:"div",properties:{"data-gutter":""},children:e})}function Vn(e,t,n,i={}){return A({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[A({tagName:"span",properties:{"data-line-number-content":""},children:[Y(`${t}`)]})]:void 0})}function G(e,t,n){return A({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function Bn(e,t,n){const i=typeof n.lineInfo=="function"?n.lineInfo(t):n.lineInfo[t-1];if(i==null){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,e.children.length===0&&e.children.push(Y(`
|
|
1
|
+
import{j as U,r as B,_ as w,u as Kt}from"./index-BTwuuWXz.js";import{c as Xt,b as Ke,n as Jt,a as Yt,t as me}from"./langs-B716PHFK.js";const Zt={position:"absolute",top:0,bottom:0,textAlign:"center"},Qt={display:"contents"};function at(){return null}const _e="diffs-container",en=/(?=^From [a-f0-9]+ .+$)/m,Ee=/(?=^diff --git)/gm,st=/(?=^---\s+\S)/gm,tn=/(?=^@@ )/gm,nn=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,Me=new RegExp("(?<=\\n)"),rn=/^(---|\+\+\+)\s+([^\t\r\n]+)/,on=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,an=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,sn=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,tt="header-prefix",nt="header-metadata",it="header-custom",J={dark:"pierre-dark",light:"pierre-light"},Mt="data-theme-css",Nt="data-unsafe-css",fe=1,ln={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},dn=Object.freeze({fromStart:0,fromEnd:0}),lt={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},fn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function ge(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function cn(e,t){return typeof window>"u"&&t!=null?U.jsxs(U.Fragment,{children:[U.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:t}}),e]}):U.jsx(U.Fragment,{children:e})}const un=B.createContext(void 0);function hn(){return B.useContext(un)}const re=new Map,Ne=new Map,Xe=new Map,Je=new Set;function dt(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=re.get(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,re.has(n)||re.set(n,i);Je.has(n)||(Je.add(n),t.loadThemeSync(i))}}const be=new Map,He=new Map,pn=new Map,Ye=new Set;function ft(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(Ye.has(n.name))continue;let i=be.get(n.name);i==null&&(i=n,be.set(n.name,i)),Ye.add(i.name),t.loadLanguageSync(i.data)}}function Ht(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}const mn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>w(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>w(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>w(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>w(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>w(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>w(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>w(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>w(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>w(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>w(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>w(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>w(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>w(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>w(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>w(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>w(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>w(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>w(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>w(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>w(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>w(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>w(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>w(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>w(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>w(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>w(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>w(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>w(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>w(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>w(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>w(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>w(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>w(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>w(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>w(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>w(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>w(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>w(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>w(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>w(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>w(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>w(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>w(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>w(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>w(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>w(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>w(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>w(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>w(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>w(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>w(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>w(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>w(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>w(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>w(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>w(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>w(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>w(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>w(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>w(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>w(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>w(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>w(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Ot=Object.fromEntries(mn.map(e=>[e.id,e.import]));class rt extends Error{constructor(t){super(t),this.name="ShikiError"}}function gn(){return 2147483648}function bn(){return typeof performance<"u"?performance.now():Date.now()}const vn=(e,t)=>e+(t-e%t)%t;async function yn(e){let t,n;const i={};function r(u){n=u,i.HEAPU8=new Uint8Array(u),i.HEAPU32=new Uint32Array(u)}function o(u,p,y){i.HEAPU8.copyWithin(u,p,p+y)}function s(u){try{return t.grow(u-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(u){const p=i.HEAPU8.length;u=u>>>0;const y=gn();if(u>y)return!1;for(let x=1;x<=4;x*=2){let C=p*(1+.2/x);C=Math.min(C,u+100663296);const m=Math.min(y,vn(Math.max(u,C),65536));if(s(m))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(u,p,y=1024){const x=p+y;let C=p;for(;u[C]&&!(C>=x);)++C;if(C-p>16&&u.buffer&&a)return a.decode(u.subarray(p,C));let m="";for(;p<C;){let b=u[p++];if(!(b&128)){m+=String.fromCharCode(b);continue}const v=u[p++]&63;if((b&224)===192){m+=String.fromCharCode((b&31)<<6|v);continue}const S=u[p++]&63;if((b&240)===224?b=(b&15)<<12|v<<6|S:b=(b&7)<<18|v<<12|S<<6|u[p++]&63,b<65536)m+=String.fromCharCode(b);else{const g=b-65536;m+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return m}function f(u,p){return u?d(i.HEAPU8,u,p):""}const c={emscripten_get_now:bn,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const p=await e({env:c,wasi_snapshot_preview1:c});t=p.memory,r(t.buffer),Object.assign(i,p),i.UTF8ToString=f}return await h(),i}var kn=Object.defineProperty,xn=(e,t,n)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>xn(e,typeof t!="symbol"?t+"":t,n);let O=null;function Sn(e){throw new rt(e.UTF8ToString(e.getLastOnigError()))}class Pe{constructor(t){H(this,"utf16Length"),H(this,"utf8Length"),H(this,"utf16Value"),H(this,"utf8Value"),H(this,"utf16OffsetToUtf8"),H(this,"utf8OffsetToUtf16");const n=t.length,i=Pe._utf8ByteLength(t),r=i!==n,o=r?new Uint32Array(n+1):null;r&&(o[n]=i);const s=r?new Uint32Array(i+1):null;r&&(s[i]=n);const l=new Uint8Array(i);let a=0;for(let d=0;d<n;d++){const f=t.charCodeAt(d);let c=f,h=!1;if(f>=55296&&f<=56319&&d+1<n){const u=t.charCodeAt(d+1);u>=56320&&u<=57343&&(c=(f-55296<<10)+65536|u-56320,h=!0)}r&&(o[d]=a,h&&(o[d+1]=a),c<=127?s[a+0]=d:c<=2047?(s[a+0]=d,s[a+1]=d):c<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),c<=127?l[a++]=c:c<=2047?(l[a++]=192|(c&1984)>>>6,l[a++]=128|(c&63)>>>0):c<=65535?(l[a++]=224|(c&61440)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0):(l[a++]=240|(c&1835008)>>>18,l[a++]=128|(c&258048)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0),h&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const o=t.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<r){const a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const De=class K{constructor(t){if(H(this,"id",++K.LAST_ID),H(this,"_onigBinding"),H(this,"content"),H(this,"utf16Length"),H(this,"utf8Length"),H(this,"utf16OffsetToUtf8"),H(this,"utf8OffsetToUtf16"),H(this,"ptr"),!O)throw new rt("Must invoke loadWasm first.");this._onigBinding=O,this.content=t;const n=new Pe(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!K._sharedPtrInUse?(K._sharedPtr||(K._sharedPtr=O.omalloc(1e4)),K._sharedPtrInUse=!0,O.HEAPU8.set(n.utf8Value,K._sharedPtr),this.ptr=K._sharedPtr):this.ptr=n.createString(O)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===K._sharedPtr?K._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};H(De,"LAST_ID",0);H(De,"_sharedPtr",0);H(De,"_sharedPtrInUse",!1);let Ut=De;class Cn{constructor(t){if(H(this,"_onigBinding"),H(this,"_ptr"),!O)throw new rt("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,a=t.length;l<a;l++){const d=new Pe(t[l]);n[l]=d.createString(O),i[l]=d.utf8Length}const r=O.omalloc(4*t.length);O.HEAPU32.set(n,r/4);const o=O.omalloc(4*t.length);O.HEAPU32.set(i,o/4);const s=O.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)O.ofree(n[l]);O.ofree(o),O.ofree(r),s===0&&Sn(O),this._onigBinding=O,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new Ut(t);const o=this._findNextMatchSync(t,n,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],f=l[a++],c=[];for(let h=0;h<f;h++){const u=t.convertUtf8OffsetToUtf16(l[a++]),p=t.convertUtf8OffsetToUtf16(l[a++]);c[h]={start:u,end:p,length:p-u}}return{index:d,captureIndices:c}}}function wn(e){return typeof e.instantiator=="function"}function Ln(e){return typeof e.default=="function"}function En(e){return typeof e.data<"u"}function Tn(e){return typeof Response<"u"&&e instanceof Response}function An(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let ye;function _n(e){if(ye)return ye;async function t(){O=await yn(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),wn(i)?i=await i.instantiator(n):Ln(i)?i=await i.default(n):(En(i)&&(i=i.data),Tn(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await In(i)(n):i=await Rn(i)(n):An(i)?i=await Oe(i)(n):i instanceof WebAssembly.Module?i=await Oe(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Oe(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return ye=t(),ye}function Oe(e){return t=>WebAssembly.instantiate(e,t)}function In(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Rn(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function zt(e){return e&&await _n(e),{createScanner(t){return new Cn(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Ut(t)}}}const Pn=Xt({langs:Ke,themes:Ot,engine:()=>zt(w(()=>import("./wasm-CG6Dc4jp.js"),[]))});async function Dn(e){if(Ht())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=He.get(e);if(t!=null)return t;try{let n=pn.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Ke,e)&&(n=Ke[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const o={name:e,data:r};return be.has(e)||be.set(e,o),o});return He.set(e,i),await i}finally{He.delete(e)}}function Mn(e){return be.get(e)??Dn(e)}async function Nn(e){if(Ht())throw new Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=Ne.get(e);if(t!=null)return t;try{const n=Xe.get(e)??Ot[e];if(n==null)throw new Error(`resolveTheme: No valid loader for ${e}`);const i=n().then(o=>Hn(e,"default"in o?o.default:o));Ne.set(e,i);const r=await i;if(r.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return re.set(r.name,r),r}finally{Ne.delete(e)}}function Hn(e,t){const n=re.get(e);return n??(t=Jt(t),re.set(e,t),t)}function On(e){return re.get(e)??Nn(e)}function Ft(e,t){if(Xe.has(e)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",e);return}Xe.set(e,t)}let X;async function Un({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){X??=Pn({themes:[],langs:["text"],engine:n==="shiki-wasm"?zt(w(()=>import("./wasm-CG6Dc4jp.js"),[])):Yt()});const i=Fn(X)?await X:X;X=i;const r=[];for(const s of t){if(s==="text"||s==="ansi")continue;const l=Mn(s);"then"in l?r.push(l):ft(l,i)}const o=[];for(const s of e){const l=On(s);"then"in l?o.push(l):dt(l,X)}return(r.length>0||o.length>0)&&await Promise.all([Promise.all(r).then(s=>{ft(s,i)}),Promise.all(o).then(s=>{dt(s,i)})]),i}function zn(){if(X!=null&&!("then"in X))return X}function Fn(e=X){return e!=null&&"then"in e}Ft("pierre-dark",async()=>{const{default:e}=await w(async()=>{const{default:t}=await import("./pierre-dark-DF2SEV7i.js");return{default:t}},[]);return{...e,name:"pierre-dark"}});Ft("pierre-light",async()=>{const{default:e}=await w(async()=>{const{default:t}=await import("./pierre-light-DOlZxES8.js");return{default:t}},[]);return{...e,name:"pierre-light"}});function $t(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Vt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}const le=new Map,pe={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function oe(e){if(le.has(e))return le.get(e)??"text";if(pe[e]!=null)return pe[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(le.has(t[1]))return le.get(t[1])??"text";if(pe[t[1]]!=null)return pe[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return le.has(n)?le.get(n)??"text":pe[n]??"text"}function ce(e){return e.replace(/\n$|\r\n$/,"")}function Y(e){return{type:"text",value:e}}function A({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function Ie({name:e,width:t=16,height:n=16,properties:i}){return A({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[A({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function $n(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function ke(e){return A({tagName:"div",properties:{"data-gutter":""},children:e})}function Vn(e,t,n,i={}){return A({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[A({tagName:"span",properties:{"data-line-number-content":""},children:[Y(`${t}`)]})]:void 0})}function G(e,t,n){return A({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function Bn(e,t,n){const i=typeof n.lineInfo=="function"?n.lineInfo(t):n.lineInfo[t-1];if(i==null){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,e.children.length===0&&e.children.push(Y(`
|
|
2
2
|
`)),e}const xe=Symbol("no-token"),Ue=Symbol("multiple-tokens");function Bt(e){const t=Wn(e);if(t!=null)return t;let n=xe;const i=[];let r=[],o;const s=()=>{if(r.length===0||o==null){r=[],o=void 0;return}if(r.length===1){const a=r[0];if(a?.type==="element"){Gn(a,o);for(const d of a.children)Te(d)}else Te(a);i.push(a),r=[],o=void 0;return}for(const a of r)Te(a);i.push(A({tagName:"span",properties:{"data-char":o},children:r})),r=[],o=void 0},l=a=>{if(a!==xe){if(a===Ue){n=Ue;return}if(n===xe){n=a;return}n!==a&&(n=Ue)}};for(const a of e.children){const d=a.type==="element"?Bt(a):xe;if(l(d),typeof d!="number"){s(),i.push(a);continue}o!=null&&o!==d&&s(),o??=d,r.push(a)}return s(),e.children=i,n}function Wn(e){const t=e.properties["data-char"];if(typeof t=="number")return t}function Te(e){if(e.type==="element"){e.properties["data-char"]=void 0;for(const t of e.children)Te(t)}}function Gn(e,t){e.properties["data-char"]=t}function jn(e={}){const{classPrefix:t="__shiki_",classSuffix:n="",classReplacer:i=l=>l}=e,r=new Map;function o(l){return Object.entries(l).map(([a,d])=>`${a}:${d}`).join(";")}function s(l){const a=typeof l=="string"?l:o(l);let d=t+qn(a)+n;return d=i(d),r.has(d)||r.set(d,typeof l=="string"?l:{...l}),d}return{name:"@shikijs/transformers:style-to-class",pre(l){if(!l.properties.style)return;const a=s(l.properties.style);delete l.properties.style,this.addClassToHast(l,a)},tokens(l){for(const a of l)for(const d of a){if(!d.htmlStyle)continue;const f=s(d.htmlStyle);d.htmlStyle={},d.htmlAttrs||={},d.htmlAttrs.class?d.htmlAttrs.class+=` ${f}`:d.htmlAttrs.class=f}},getClassRegistry(){return r},getCSS(){let l="";for(const[a,d]of r.entries())l+=`.${a}{${typeof d=="string"?d:o(d)}}`;return l},clearRegistry(){r.clear()}}}function qn(e,t=0){let n=3735928559^t,i=1103547991^t;for(let r=0,o;r<e.length;r++)o=e.charCodeAt(r),n=Math.imul(n^o,2654435761),i=Math.imul(i^o,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString(36).slice(0,6)}function Kn(e=!1,t=!1){const n={lineInfo:[]},i=[{line(r){return delete r.properties.class,r},pre(r){const o=$n(r),s=[];if(o!=null){let l=1;for(const a of o.children)a.type==="element"&&(e&&Bt(a),s.push(Bn(a,l,n)),l++);o.children=s}return r},...e?{tokens(r){for(const o of r){let s=0;for(const l of o){const a=l;a.__lineChar??=s,s+=l.content.length}}},preprocess(r,o){o.mergeWhitespaces="never"},span(r,o,s,l,a){if(a?.offset!=null&&a.content!=null){const d=a.__lineChar;return d!=null&&(r.properties["data-char"]=d),r}return r}}:null}];return t&&i.push(Xn,ct),{state:n,transformers:i,toClass:ct}}const ct=jn({classPrefix:"hl-"}),Xn={name:"token-style-normalizer",tokens(e){for(const t of e)for(const n of t){if(n.htmlStyle!=null)continue;const i={};n.color!=null&&(i.color=n.color),n.bgColor!=null&&(i["background-color"]=n.bgColor),n.fontStyle!=null&&n.fontStyle!==0&&((n.fontStyle&1)!==0&&(i["font-style"]="italic"),(n.fontStyle&2)!==0&&(i["font-weight"]="bold"),(n.fontStyle&4)!==0&&(i["text-decoration"]="underline")),Object.keys(i).length>0&&(n.htmlStyle=i)}}};function j(e){return`--${e==="token"?"diffs-token":"diffs"}-`}function Jn({theme:e=J,highlighter:t,prefix:n}){let i="";if(typeof e=="string"){const r=t.getTheme(e);i+=`color:${r.fg};`,i+=`background-color:${r.bg};`,i+=`${j("global")}fg:${r.fg};`,i+=`${j("global")}bg:${r.bg};`,i+=ze(r,n)}else{let r=t.getTheme(e.dark);i+=`${j("global")}dark:${r.fg};`,i+=`${j("global")}dark-bg:${r.bg};`,i+=ze(r,"dark"),r=t.getTheme(e.light),i+=`${j("global")}light:${r.fg};`,i+=`${j("global")}light-bg:${r.bg};`,i+=ze(r,"light")}return i}function ze(e,t){t=t!=null?`${t}-`:"";let n="";const i=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];i!=null&&(n+=`${j("global")}${t}addition-color:${i};`);const r=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];r!=null&&(n+=`${j("global")}${t}deletion-color:${r};`);const o=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return o!=null&&(n+=`${j("global")}${t}modified-color:${o};`),n}function ut(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t.children;"children"in t?t=t.children[0]:t=null}throw console.error(e),new Error("getLineNodes: Unable to find children")}function ht(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Fe(e,t){return Vt(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}function Yn(e){const t=e.lang??oe(e.name),n=e.lang??(e.prevName!=null?oe(e.prevName):"text");return t==="text"&&n==="text"}function Re({diff:e,diffStyle:t,startingLine:n=0,totalLines:i=1/0,expandedHunks:r,collapsedContextThreshold:o=fe,callback:s}){const l={finalHunk:e.hunks.at(-1),viewportStart:n,viewportEnd:n+i,isWindowedHighlight:n>0||i<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!l.isWindowedHighlight)return!1;const a=l.unifiedCount>=n+i,d=l.splitCount>=n+i;return t==="unified"?a:(t==="split"||a)&&d},shouldSkip(a,d){if(!l.isWindowedHighlight)return!1;const f=l.unifiedCount+a<n,c=l.splitCount+d<n;return t==="unified"?f:(t==="split"||f)&&c},incrementCounts(a,d){(t==="unified"||t==="both")&&(l.unifiedCount+=a),(t==="split"||t==="both")&&(l.splitCount+=d)},isInWindow(a,d){if(!l.isWindowedHighlight)return!0;const f=l.isInUnifiedWindow(a),c=l.isInSplitWindow(d);return t==="unified"?f:t==="split"?c:f||c},isInUnifiedWindow(a){return!l.isWindowedHighlight||l.unifiedCount>=n-a&&l.unifiedCount<n+i},isInSplitWindow(a){return!l.isWindowedHighlight||l.splitCount>=n-a&&l.splitCount<n+i},emit(a,d=!1){return d||(t==="unified"?l.incrementCounts(1,0):t==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),s(a)??!1}};e:for(const[a,d]of e.hunks.entries()){let u=function(g,k){return c==null||c.collapsedLines<=0||c.fromStart+c.fromEnd>0?0:t==="unified"?g===d.unifiedLineStart+d.unifiedLineCount-1?c.collapsedLines:0:k===d.splitLineStart+d.splitLineCount-1?c.collapsedLines:0},p=function(){if(f.collapsedLines===0)return 0;const g=f.collapsedLines;return f.collapsedLines=0,g};if(l.shouldBreak())break;const f=pt(e.isPartial,d.collapsedBefore,r,a,o),c=(()=>{if(d!==l.finalHunk||!Zn(e))return;const g=e.additionLines.length-(d.additionLineIndex+d.additionCount),k=e.deletionLines.length-(d.deletionLineIndex+d.deletionCount);if(g!==k)throw new Error(`iterateOverDiff: trailing context mismatch (additions=${g}, deletions=${k}) for ${e.name}`);const L=Math.min(g,k);return pt(e.isPartial,L,r,e.hunks.length,o)})(),h=f.fromStart+f.fromEnd;if(l.shouldSkip(h,h))l.incrementCounts(h,h),p();else{let g=d.unifiedLineStart-f.rangeSize,k=d.splitLineStart-f.rangeSize,L=d.deletionLineIndex-f.rangeSize,E=d.additionLineIndex-f.rangeSize,T=d.deletionStart-f.rangeSize,_=d.additionStart-f.rangeSize,I=0;for(;I<f.fromStart;){if(l.isInWindow(0,0)){if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:T+I,lineIndex:L+I,noEOFCR:!1,unifiedLineIndex:g+I,splitLineIndex:k+I},additionLine:{unifiedLineIndex:g+I,splitLineIndex:k+I,lineIndex:E+I,lineNumber:_+I,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);I++}for(g=d.unifiedLineStart-f.fromEnd,k=d.splitLineStart-f.fromEnd,L=d.deletionLineIndex-f.fromEnd,E=d.additionLineIndex-f.fromEnd,T=d.deletionStart-f.fromEnd,_=d.additionStart-f.fromEnd,I=0;I<f.fromEnd;){if(l.isInWindow(0,0)){if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:T+I,lineIndex:L+I,noEOFCR:!1,unifiedLineIndex:g+I,splitLineIndex:k+I},additionLine:{unifiedLineIndex:g+I,splitLineIndex:k+I,lineIndex:E+I,lineNumber:_+I,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);I++}}let y=d.unifiedLineStart,x=d.splitLineStart,C=d.deletionLineIndex,m=d.additionLineIndex,b=d.deletionStart,v=d.additionStart;const S=d.hunkContent.at(-1);for(const g of d.hunkContent){if(l.shouldBreak())break e;const k=g===S;if(g.type==="context"){if(l.shouldSkip(g.lines,g.lines))l.incrementCounts(g.lines,g.lines),p();else{let L=0;for(;L<g.lines;){if(l.isInWindow(0,0)){const E=k&&L===g.lines-1,T=y+L,_=x+L;if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:u(T,_),type:"context",deletionLine:{lineNumber:b+L,lineIndex:C+L,noEOFCR:E&&d.noEOFCRDeletions,unifiedLineIndex:T,splitLineIndex:_},additionLine:{unifiedLineIndex:T,splitLineIndex:_,lineIndex:m+L,lineNumber:v+L,noEOFCR:E&&d.noEOFCRAdditions}}))break e}else l.incrementCounts(1,1);L++}}y+=g.lines,x+=g.lines,C+=g.lines,m+=g.lines,b+=g.lines,v+=g.lines}else{const L=Math.max(g.deletions,g.additions),E=g.deletions+g.additions;if(!l.shouldSkip(E,L)){const T=Qn(l,g,t);for(const[_,I]of T)for(let R=_;R<I;R++){const z=u(y+R,t==="unified"?x+(R<g.deletions?R:R-g.deletions):x+R);if(l.emit(ei({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:z,diffStyle:t,index:R,unifiedLineIndex:y,splitLineIndex:x,additionLineIndex:m,deletionLineIndex:C,additionLineNumber:v,deletionLineNumber:b,content:g,isLastContent:k,unifiedCount:E,splitCount:L}),!0))break e}}p(),l.incrementCounts(E,L),y+=E,x+=L,C+=g.deletions,m+=g.additions,b+=g.deletions,v+=g.additions}}if(c!=null){const{collapsedLines:g,fromStart:k,fromEnd:L}=c,E=k+L;let T=0;for(;T<E;){if(l.shouldBreak())break e;if(l.isInWindow(0,0)){const _=T===E-1;if(l.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:_?g:0,type:"context-expanded",deletionLine:{lineNumber:b+T,lineIndex:C+T,noEOFCR:!1,unifiedLineIndex:y+T,splitLineIndex:x+T},additionLine:{unifiedLineIndex:y+T,splitLineIndex:x+T,lineIndex:m+T,lineNumber:v+T,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);T++}}}}function pt(e,t,n,i,r){if(t=Math.max(t,0),t===0||e)return{fromStart:0,fromEnd:0,rangeSize:t,collapsedLines:Math.max(t,0)};if(n===!0||t<=r)return{fromStart:t,fromEnd:0,rangeSize:t,collapsedLines:0};const o=n?.get(i),s=Math.min(Math.max(o?.fromStart??0,0),t),l=Math.min(Math.max(o?.fromEnd??0,0),t),a=s+l,d=a>=t;return{fromStart:d?t:s,fromEnd:d?0:l,rangeSize:t,collapsedLines:Math.max(t-a,0)}}function Zn(e){const t=e.hunks.at(-1);return t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:t.additionLineIndex+t.additionCount<e.additionLines.length||t.deletionLineIndex+t.deletionCount<e.deletionLines.length}function Qn(e,t,n){if(!e.isWindowedHighlight)return[[0,n==="unified"?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];const i=n!=="split",r=n!=="unified",o=n==="unified"?"unified":"split",s=[];function l(c,h){if(c+h<=e.viewportStart||c>=e.viewportEnd)return;const u=Math.max(0,e.viewportStart-c),p=Math.min(h,e.viewportEnd-c);return p>u?[u,p]:void 0}function a(c,h){return o==="split"?c:h==="additions"?[c[0]+t.deletions,c[1]+t.deletions]:c}function d(c,h){if(c==null)return;const[u,p]=a(c,h);p>u&&s.push([u,p])}if(i&&(d(l(e.unifiedCount,t.deletions),"deletions"),d(l(e.unifiedCount+t.deletions,t.additions),"additions")),r&&(d(l(e.splitCount,t.deletions),"deletions"),d(l(e.splitCount,t.additions),"additions")),s.length===0)return s;s.sort((c,h)=>c[0]-h[0]);const f=[s[0]];for(const[c,h]of s.slice(1)){const u=f[f.length-1];c<=u[1]?u[1]=Math.max(u[1],h):f.push([c,h])}return f}function ei({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,diffStyle:r,index:o,unifiedLineIndex:s,splitLineIndex:l,additionLineIndex:a,deletionLineIndex:d,additionLineNumber:f,deletionLineNumber:c,content:h,isLastContent:u,unifiedCount:p,splitCount:y}){const x=o<h.deletions?s+o:void 0,C=r==="unified"?o>=h.deletions?s+o:void 0:o<h.additions?s+h.deletions+o:void 0,m=r==="unified"?l+(o<h.deletions?o:o-h.deletions):l+o,b=o<h.deletions?d+o:void 0,v=o<h.deletions?c+o:void 0,S=r==="unified"?o>=h.deletions?a+(o-h.deletions):void 0:o<h.additions?a+o:void 0,g=r==="unified"?o>=h.deletions?f+(o-h.deletions):void 0:o<h.additions?f+o:void 0,k=r==="unified"?u&&o===h.deletions-1&&t.noEOFCRDeletions:u&&o===y-1&&t.noEOFCRDeletions,L=r==="unified"?u&&o===p-1&&t.noEOFCRAdditions:u&&o===y-1&&t.noEOFCRAdditions,E=b!=null&&v!=null&&x!=null?{lineNumber:v,lineIndex:b,noEOFCR:k,unifiedLineIndex:x,splitLineIndex:m}:void 0,T=S!=null&&g!=null&&C!=null?{unifiedLineIndex:C,splitLineIndex:m,lineIndex:S,lineNumber:g,noEOFCR:L}:void 0;if(E==null&&T!=null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:void 0,additionLine:T};if(E!=null&&T==null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:E,additionLine:void 0};if(E==null||T==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:E,additionLine:T}}class ot{diff(t,n,i={}){let r;typeof i=="function"?(r=i,i={}):"callback"in i&&(r=i.callback);const o=this.castInput(t,i),s=this.castInput(n,i),l=this.removeEmpty(this.tokenize(o,i)),a=this.removeEmpty(this.tokenize(s,i));return this.diffWithOptionsObj(l,a,i,r)}diffWithOptionsObj(t,n,i,r){var o;const s=m=>{if(m=this.postProcess(m,i),r){setTimeout(function(){r(m)},0);return}else return m},l=n.length,a=t.length;let d=1,f=l+a;i.maxEditLength!=null&&(f=Math.min(f,i.maxEditLength));const c=(o=i.timeout)!==null&&o!==void 0?o:1/0,h=Date.now()+c,u=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(u[0],n,t,0,i);if(u[0].oldPos+1>=a&&p+1>=l)return s(this.buildValues(u[0].lastComponent,n,t));let y=-1/0,x=1/0;const C=()=>{for(let m=Math.max(y,-d);m<=Math.min(x,d);m+=2){let b;const v=u[m-1],S=u[m+1];v&&(u[m-1]=void 0);let g=!1;if(S){const L=S.oldPos-m;g=S&&0<=L&&L<l}const k=v&&v.oldPos+1<a;if(!g&&!k){u[m]=void 0;continue}if(!k||g&&v.oldPos<S.oldPos?b=this.addToPath(S,!0,!1,0,i):b=this.addToPath(v,!1,!0,1,i),p=this.extractCommon(b,n,t,m,i),b.oldPos+1>=a&&p+1>=l)return s(this.buildValues(b.lastComponent,n,t))||!0;u[m]=b,b.oldPos+1>=a&&(x=Math.min(x,m-1)),p+1>=l&&(y=Math.max(y,m+1))}d++};if(r)(function m(){setTimeout(function(){if(d>f||Date.now()>h)return r(void 0);C()||m()},0)})();else for(;d<=f&&Date.now()<=h;){const m=C();if(m)return m}}addToPath(t,n,i,r,o){const s=t.lastComponent;return s&&!o.oneChangePerToken&&s.added===n&&s.removed===i?{oldPos:t.oldPos+r,lastComponent:{count:s.count+1,added:n,removed:i,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:s}}}extractCommon(t,n,i,r,o){const s=n.length,l=i.length;let a=t.oldPos,d=a-r,f=0;for(;d+1<s&&a+1<l&&this.equals(i[a+1],n[d+1],o);)d++,a++,f++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return f&&!o.oneChangePerToken&&(t.lastComponent={count:f,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=a,d}equals(t,n,i){return i.comparator?i.comparator(t,n):t===n||!!i.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,i){const r=[];let o;for(;t;)r.push(t),o=t.previousComponent,delete t.previousComponent,t=o;r.reverse();const s=r.length;let l=0,a=0,d=0;for(;l<s;l++){const f=r[l];if(f.removed)f.value=this.join(i.slice(d,d+f.count)),d+=f.count;else{if(!f.added&&this.useLongestToken){let c=n.slice(a,a+f.count);c=c.map(function(h,u){const p=i[d+u];return p.length>h.length?p:h}),f.value=this.join(c)}else f.value=this.join(n.slice(a,a+f.count));a+=f.count,f.added||(d+=f.count)}}return r}}class ti extends ot{}const ni=new ti;function ii(e,t,n){return ni.diff(e,t,n)}const mt="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class ri extends ot{tokenize(t){const n=new RegExp(`(\\r?\\n)|[${mt}]+|[^\\S\\n\\r]+|[^${mt}]`,"ug");return t.match(n)||[]}}const oi=new ri;function ai(e,t,n){return oi.diff(e,t,n)}class si extends ot{constructor(){super(...arguments),this.tokenize=di}equals(t,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!t.includes(`
|
|
3
3
|
`))&&(t=t.trim()),(!i.newlineIsToken||!n.includes(`
|
|
4
4
|
`))&&(n=n.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(t.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s}from"./index-
|
|
1
|
+
import{_ as s}from"./index-BTwuuWXz.js";import{b as l,c,a as g}from"./langs-B716PHFK.js";const d={"dark-plus":()=>s(()=>import("./dark-plus-C3mMm8J8.js"),[]),"light-plus":()=>s(()=>import("./light-plus-B7mTdjB0.js"),[])},h=c({langs:l,themes:d,engine:()=>g()});let n=null;const o=new Map,m={golang:"go",objectivec:"objective-c","objective-c++":"objective-cpp",plaintext:"text",vuejs:"vue"};function u(){return n||(n=h({themes:["dark-plus","light-plus"],langs:[]})),n}u();function v(t){const e=String(t||"").trim().toLowerCase();if(!e)return"text";const r=m[e]||e;return Object.hasOwn(l,r)?r:"text"}function f(t,e){if(t.getLoadedLanguages().includes(e))return Promise.resolve(e);if(!o.has(e))try{o.set(e,Promise.resolve(t.loadLanguage(e)).then(()=>e).catch(()=>(o.delete(e),"text")))}catch{return Promise.resolve("text")}return o.get(e)??Promise.resolve("text")}function p(t,e,r){try{return t.codeToHtml(e,r)}catch{return null}}const _={themes:{dark:"dark-plus",light:"light-plus"},defaultColor:!1};async function P(t,e){const r=v(e);if(r==="text")return null;const i=await u(),a=await f(i,r);return a==="text"?null:p(i,t,{lang:a,..._})}export{P as highlightCode,v as resolveLanguage};
|