openwork-server 0.18.73 → 0.18.74
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/dist/opencode-plugin-deps-1.18.33.tgz +0 -0
- package/dist/opencode-plugins/cloud-coding-turn-release.js +58 -0
- package/dist/opencode-plugins/computer-routing-v2.js +77 -0
- package/dist/opencode-plugins/openwork-agent-permissions-v2.js +14 -3
- package/dist/opencode-plugins/openwork-chrome-devtools.js +2 -2
- package/dist/opencode-plugins/openwork-context-v2.js +348 -65
- package/dist/opencode-plugins/openwork-extensions-preview.js +456 -4
- package/dist/opencode-plugins/openwork-gateway-quota-v2.js +41 -1
- package/dist/opencode-plugins/openwork-gateway-quota.js +41 -1
- package/dist/opencode-plugins/openwork-mcp-results-v2.js +164 -14
- package/dist/opencode-plugins/openwork-mcp-server-events-v2.js +111 -0
- package/dist/opencode-plugins/openwork-mcp-server-skills-v2.js +176 -0
- package/dist/opencode-plugins/openwork-private-values-v2.js +15 -4
- package/dist/opencode-plugins/openwork-private-values.js +15 -4
- package/dist/opencode-plugins/openwork-provider-adapters.js +27 -1
- package/dist/opencode-plugins/openwork-provider-keys-v2.js +67 -0
- package/dist/opencode-plugins/openwork-sandbox-v2.js +1477 -10
- package/dist/opencode-plugins/private-values-tool.js +1 -1
- package/dist/openwork-server.mjs +66764 -5037
- package/package.json +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-CT7h6RSR.js → abnfDiagram-VCTEODGH-C1Gri9T8.js} +1 -1
- package/web/assets/{app-DDsVI393.js → app-CoFPYBYF.js} +542 -526
- package/web/assets/app-aKrWzh-_.css +32 -0
- package/web/assets/{arc-DrdxwkS1.js → arc-DcBBW_Q9.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-BHmeLgIo.js → architectureDiagram-5GKGNRK7-CTnuu2og.js} +1 -1
- package/web/assets/{artifact-code-view-BGAA8-Ej.js → artifact-code-view-CVhOSCb2.js} +1 -1
- package/web/assets/{artifact-office-preview-CCkdmKIT.js → artifact-office-preview-DHx-nPK0.js} +1 -1
- package/web/assets/{artifact-spreadsheet-editor-CMs_-Fs-.js → artifact-spreadsheet-editor-CyLsgBTK.js} +1 -1
- package/web/assets/{artifact-text-editor-TtuV8SdE.js → artifact-text-editor-4rrtf0C2.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-CQ3xUn93.js → blockDiagram-OSKFZWR5-DbHntwyh.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-s1wM6Iib.js → c4Diagram-7LVT6UL2-DPjlygzs.js} +1 -1
- package/web/assets/channel-UI6sNcoO.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-BZGXkEN4.js → chunk-2Q5K7J3B-CwWe3fjf.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-C0tCaGEn.js → chunk-5VM5RSS4-D6ahhVKI.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-CGT4AvxR.js → chunk-F27PBJKO-CKHJE6FB.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-BUm0nTzw.js → chunk-HLEWEB6X-CpB4YFh9.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-BrmOFhXE.js → chunk-JWPE2WC7-CuGkPOY8.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-D0Red1rH.js → chunk-POPQ4Y6H-BNCy4Rnz.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-BOfUyMpo.js → chunk-SVP7TREG-BRLZtRG2.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-DdDJLBr5.js → chunk-XXDRQBXY-BXUFFdz9.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-CtgRsQI9.js → chunk-ZLD2IHE6-DgSq1MWh.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-Cwqk7Tox.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-Cwqk7Tox.js +1 -0
- package/web/assets/{cose-bilkent-JH36ORCC-C2GkVjI-.js → cose-bilkent-JH36ORCC-BNS5x2WS.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-290exk3b.js → cynefin-OW5HDTMX-xcD6kiaN.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Bn4pzfGg.js → cynefinDiagram-5FMLGOSQ-Uh07MG7J.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-pvGtPuBl.js → dagre-OS7QT2EB-BR2ZK2Ka.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-CWs5HWfs.js → diagram-S7CK7UJ4-CkeF04XL.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-DAtsBm-A.js → diagram-UQ7AKVKN-tszgJvn1.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-B0Z-KH-p.js → diagram-VSXAHHWV-vQ_L10cP.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-Bz5GVlm5.js → diagram-VX7I27RA-DhttrIa4.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-BhwH3kbC.js → diagram-Z3DM3KII-CSOtexfx.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-CIEcjysp.js → ebnfDiagram-PWID7BFC-DrXIeAI2.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-BrdXGtuT.js → erDiagram-2YWLMYGG-B6eY49sP.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-DskTn8O1.js → flowDiagram-T62WH6J4-BSWkKNsB.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-OCmeEDkw.js → ganttDiagram-EL5Y4UJY-DjLWzUnc.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-BuhI6DQ1.js → gitGraphDiagram-WWUBYQGX-DLix_KEt.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-C3k38hJ_.js → infoDiagram-FKFFQAWI-Qk5Rwj1J.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-C6Hpxc9K.js → ishikawaDiagram-5VMMS53U-BYnLLj60.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-C7KcOJMH.js → journeyDiagram-EYS64GPL-DWbjv9jB.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-ZcMziysx.js → kanban-definition-UXKFOSKX-DBKDdN7W.js} +1 -1
- package/web/assets/{layout-DzriRV2A.js → layout-C3nuFW6O.js} +1 -1
- package/web/assets/{linear-DL_T580R.js → linear-yuvoF7oC.js} +1 -1
- package/web/assets/{mermaid.core-C4R8NQRz.js → mermaid.core-Cf_HDEwk.js} +6 -6
- package/web/assets/{mindmap-definition-THT77NOG-n6izCCQf.js → mindmap-definition-THT77NOG-CLlmGHfy.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-BADF-j9h.js → pegDiagram-XKGWAZYB-DF2jK0hL.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-BtdHIRbI.js → pieDiagram-E7YTZNPT-B7D6K8Dy.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-DhbkPfnT.js → quadrantDiagram-AXDQQJYC-BJs4k_-l.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-BlyQ_Gry.js → railroadDiagram-O6MQD6OU-Bvh8M0tG.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-BzIoUxA6.js → requirementDiagram-IS5BZ75X-LojIE3iY.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-qPG2gCyL.js → sankeyDiagram-P5KCCOFB-DDgsHbe_.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Bx12LmjC.js → sequenceDiagram-WJ2MYXX4-B0n0qkKj.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-CvyuDIwF.js → sizeCapture-INFHLROL-dvjrjvhR.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-DU9RhZb1.js → stateDiagram-XQSTLZYL-6R2ncL9w.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-C3zcPvlu.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-CTXpVjqj.js → swimlanes-V6O3JKXN-NgTb-Uz5.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-CA7dhlYX.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-U_izIFdJ.js → timeline-definition-24CTP7MA-2H_ljVU0.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-DWquLtuy.js → vennDiagram-4TSXK5OY-BKJ-Jni_.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-CH8aTVHX.js → wardleyDiagram-VM6X3IG4-BY36Sv2N.js} +1 -1
- package/web/assets/{workspace-file-tree-CmGwayaP.js → workspace-file-tree-C2bTmTtl.js} +7 -7
- package/web/assets/{xlsx-workbook-DcK1GLDS.js → xlsx-workbook-B0y0zWAe.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-r1FFIWA_.js → xychartDiagram-S5SC5T6Z-DabU-r2I.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/app-BinIaXyk.css +0 -32
- package/web/assets/channel-DUquWRxW.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-D5L4nTet.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-D5L4nTet.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-iZjygJwL.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-GfrjbmAb.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as Y,j,k as Xi,n as Bo,_ as I,l as Vo,m as Uo,o as Wo,q as $o,v as fe,w as tn,x as je,E as Zi}from"./app-DDsVI393.js";function De(e){const t=Y.useRef(e);return Y.useInsertionEffect(()=>void(t.current=e)),Y.useCallback((...n)=>t.current(...n),[])}const gs=Y.createContext(void 0);function Go({children:e,createEditor:t}){const n=Y.useRef(new WeakMap),i=De(r=>{const s=n.current.get(r);if(s!=null)return s;const o=t(r);return n.current.set(r,o),o});return j.jsx(gs.Provider,{value:i,children:e})}function jo(){return Y.useContext(gs)}const ms={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},Ko={display:"contents"},vs="diffs-container",qo=(()=>{try{return!1}catch{return!1}})(),Yo=/(?=^diff --git)/gm,Xo=/(?<=\n)/,Zo=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Jo=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Qo=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,ea=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Hi="header-prefix",Pi="header-filename-suffix",Oi="header-metadata",Dt="header-custom",J={dark:"pierre-dark",light:"pierre-light"},ta="data-theme-css",na="data-unsafe-css",ia="data-diffs-scrollbar-measure",ra="data-diffs-code-view-header",sa="data-diffs-code-view-footer",Ss="--diffs-scrollbar-gutter-measured",oa=1e5,Di={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},vt={...Di,hunkLineCount:1},aa={paddingTop:8,paddingBottom:8,gap:8},la={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},da=Object.freeze({fromStart:0,fromEnd:0}),cn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},bs={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function be(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function Ae(e,t){return e-(t===0?0:1)}function pe(e,t){return Ae(e,t)+t}function ca(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:ua(n,e.startContentIndex)}}function ua(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function fa({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:l,lineAnnotations:h,getHoveredLine:d,getInstance:c}){const u=n?.(e),f=i?.(e),p=r?.(e),g=s?.(e);return j.jsxs(j.Fragment,{children:[u!=null?j.jsx("div",{slot:Dt,children:u}):j.jsxs(j.Fragment,{children:[f!=null&&j.jsx("div",{slot:"header-prefix",children:f}),p!=null&&j.jsx("div",{slot:"header-filename-suffix",children:p}),g!=null&&j.jsx("div",{slot:"header-metadata",children:g})]}),o!=null&&h?.map((m,v)=>j.jsx("div",{slot:be(m),children:o(m)},v)),t!=null&&l!=null&&c!=null&&t.map(m=>{if(m==null)return;const v=pa(m,e);return j.jsx("div",{slot:v,style:Ko,children:l(m,c)},v)}),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(d)})]})}function pa(e,t){const n=ca(e,t);return n!=null?ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}function ga({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:i,renderHeaderMetadata:r,renderAnnotation:s,lineAnnotations:o,renderGutterUtility:a,getHoveredLine:l}){const h=t?.(e),d=n?.(e),c=i?.(e),u=r?.(e);return j.jsxs(j.Fragment,{children:[h!=null?j.jsx("div",{slot:Dt,children:h}):j.jsxs(j.Fragment,{children:[d!=null&&j.jsx("div",{slot:"header-prefix",children:d}),c!=null&&j.jsx("div",{slot:"header-filename-suffix",children:c}),u!=null&&j.jsx("div",{slot:"header-metadata",children:u})]}),s!=null&&o?.map((f,p)=>j.jsx("div",{slot:be(f),children:s(f)},p)),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(l)})]})}function mt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function we(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}const ti=new Set;function At(e){const t=[],n=new Set;for(const c of ma(e.themes)){const u=Cs(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),s=Object.freeze(i.filter(c=>c.colorScheme==="dark")),o=new Map(i.map(c=>[c.name,c])),a=Object.freeze(i.map(c=>c.name)),l=Object.freeze(r.map(c=>c.name)),h=Object.freeze(s.map(c=>c.name));function d(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?s:i:i.filter(p=>p.collection!==f?!1:u==null||p.colorScheme===u)}return{getTheme(c){return o.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?h:a:d(c).map(u=>u.name)},hasTheme(c){return o.has(c)},orderBy(c){return At({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const p=c(u.descriptor,f.descriptor);return p!==0?p:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const p of c){if(f.has(p))throw new Error(`Theme collection pick already includes theme "${p}"`);f.add(p);const g=o.get(p);if(g==null)throw new Error(`Theme collection does not contain theme "${p}"`);u.push(g)}return At({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function ma(e){return va(e)?[e]:e}function va(e){return Cs(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function Cs(e){return typeof e.getThemes=="function"}function ys(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ba=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},ya=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function La(){const e=new Map,t=new Map,n=new Map;let i=0;function r(v,S){if(e.has(v))throw new ba(v);e.set(v,S)}function s(v,S){return e.has(v)?!1:(e.set(v,S),!0)}function o(v){return e.has(v)}function a(v){const S=t.get(v);if(S!==void 0)return Promise.resolve(S);const C=n.get(v);if(C!==void 0)return C;const b=e.get(v);if(b===void 0)return Promise.reject(new Ca(v));const y=i,L=b().then(k=>{const E=ys(k);return y===i&&t.set(v,E),n.get(v)===L&&n.delete(v),E}).catch(k=>{throw n.get(v)===L&&n.delete(v),k});return n.set(v,L),L}function l(v){return Promise.all(v.map(S=>a(S)))}function h(v,S){t.set(v,S)}function d(v){for(const[S,C]of v)h(S,C)}function c(v){return t.get(v)}function u(v){const S=[];for(const C of v){const b=t.get(C);if(b===void 0)throw new ya(C);S.push(b)}return S}function f(v){return t.has(v)}function p(v){for(const S of v)if(!t.has(S))return!1;return!0}function g(v){const S=t.get(v);return S!==void 0?S:a(v)}function m(){i++,t.clear(),n.clear()}return{clearResolvedThemes:m,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:o,hasResolvedTheme:f,hasResolvedThemes:p,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:l,seedResolvedTheme:h,seedResolvedThemes:d}}const _e=La();function Ji(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=_e.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,_e.getResolvedTheme(n)==null&&_e.seedResolvedTheme(n,i);ti.has(n)||(ti.add(n),t.loadThemeSync(i))}}const Rt=new Map,Hn=new Map,xa=new Map,ni=new Set;function Qi(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(ni.has(n.name))continue;let i=Rt.get(n.name);i==null&&(i=n,Rt.set(n.name,i)),ni.add(i.name),t.loadLanguageSync(i.data)}}function Ls(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function ka(e){if(Ls())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=Hn.get(e);if(t!=null)return t;try{let n=xa.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Xi,e)&&(n=Xi[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const s={name:e,data:r};return Rt.has(e)||Rt.set(e,s),s});return Hn.set(e,i),await i}finally{Hn.delete(e)}}function wa(e){return Rt.get(e)??ka(e)}function xs({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Ea(t)}}function Ea(e){return async()=>Bo(ys(await e()))}const Ta="pierre",Aa=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],ks=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ra=[...ks,...Aa],Ia=new Set(ks);function Ma(e){return Ia.has(e)?"light":"dark"}const Ha={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},Pa={"pierre-dark":()=>I(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>I(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>I(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>I(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>I(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>I(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>I(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>I(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>I(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>I(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oa(e){return xs({name:e,collection:Ta,colorScheme:Ma(e),displayName:Ha[e],load:Pa[e]})}const ws=At({themes:Ra.map(e=>Oa(e))}),Da="shiki",Es=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],_a=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],Fa=new Set(Es);function Na(e){return Fa.has(e)?"light":"dark"}const za={andromeeda:()=>I(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>I(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>I(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>I(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>I(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>I(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>I(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>I(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>I(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>I(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>I(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>I(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>I(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>I(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>I(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>I(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>I(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>I(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>I(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>I(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>I(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>I(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>I(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>I(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>I(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>I(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>I(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>I(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>I(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>I(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>I(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>I(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>I(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>I(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>I(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>I(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>I(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>I(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>I(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>I(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>I(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>I(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>I(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>I(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>I(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>I(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>I(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>I(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>I(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>I(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>I(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>I(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>I(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>I(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>I(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>I(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>I(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>I(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>I(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>I(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>I(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>I(()=>import("./vesper-DU1UobuO.js"),[]),"vitesse-black":()=>I(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>I(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>I(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function er(e){return xs({name:e,collection:Da,colorScheme:Na(e),load:za[e]})}const Ts=At({themes:Object.freeze([...Es.map(e=>er(e)),..._a.map(e=>er(e))])});At({themes:[ws,Ts]});function Ba(e){if(Ls())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(_e.hasRegisteredTheme(e))return;const t=Ts.getTheme(e);if(t!=null){_e.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function Va(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Ua(e){Ba(e);const t=await _e.resolveTheme(e);return Va(e,t),t}function Wa(e){return _e.getResolvedTheme(e)??Ua(e)}let ke;async function As({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){ke??=Vo({themes:[],langs:["text"],engine:n==="shiki-wasm"?Uo(I(()=>import("./wasm-CG6Dc4jp.js"),[])):Wo()});const i=$a(ke)?await ke:ke;ke=i;const r=[];for(const o of t){if(o==="text"||o==="ansi")continue;const a=wa(o);"then"in a?r.push(a):Qi(a,i)}const s=[];for(const o of e){const a=Wa(o);"then"in a?s.push(a):Ji(a,ke)}return(r.length>0||s.length>0)&&await Promise.all([Promise.all(r).then(o=>{Qi(o,i)}),Promise.all(s).then(o=>{Ji(o,i)})]),i}function Rs(){if(ke!=null&&!("then"in ke))return ke}function $a(e=ke){return e!=null&&"then"in e}for(const e of ws.getThemes())_e.registerThemeIfAbsent(e.name,e.load);function _i(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ga(e){return _e.hasResolvedThemes(e)}function et(e,t){return mt(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}const tt=new Map,St={"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",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"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",mts:"typescript",cts:"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 he(e){if(tt.has(e))return tt.get(e)??"text";if(St[e]!=null)return St[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(tt.has(t[1]))return tt.get(t[1])??"text";if(St[t[1]]!=null)return St[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return tt.has(n)?tt.get(n)??"text":St[n]??"text"}function ii(e){return(e.lang??he(e.name))==="text"}const un=10,fn=13,ja=4,Ka=40;function Fi(e){const t=[0];let n=e.indexOf("\r"),i=e.indexOf(`
|
|
1
|
+
import{r as Y,j,k as Xi,n as Bo,_ as I,l as Vo,m as Uo,o as Wo,q as $o,v as fe,w as tn,x as je,E as Zi}from"./app-CoFPYBYF.js";function De(e){const t=Y.useRef(e);return Y.useInsertionEffect(()=>void(t.current=e)),Y.useCallback((...n)=>t.current(...n),[])}const gs=Y.createContext(void 0);function Go({children:e,createEditor:t}){const n=Y.useRef(new WeakMap),i=De(r=>{const s=n.current.get(r);if(s!=null)return s;const o=t(r);return n.current.set(r,o),o});return j.jsx(gs.Provider,{value:i,children:e})}function jo(){return Y.useContext(gs)}const ms={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},Ko={display:"contents"},vs="diffs-container",qo=(()=>{try{return!1}catch{return!1}})(),Yo=/(?=^diff --git)/gm,Xo=/(?<=\n)/,Zo=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Jo=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Qo=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,ea=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Hi="header-prefix",Pi="header-filename-suffix",Oi="header-metadata",Dt="header-custom",J={dark:"pierre-dark",light:"pierre-light"},ta="data-theme-css",na="data-unsafe-css",ia="data-diffs-scrollbar-measure",ra="data-diffs-code-view-header",sa="data-diffs-code-view-footer",Ss="--diffs-scrollbar-gutter-measured",oa=1e5,Di={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},vt={...Di,hunkLineCount:1},aa={paddingTop:8,paddingBottom:8,gap:8},la={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},da=Object.freeze({fromStart:0,fromEnd:0}),cn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},bs={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function be(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function Ae(e,t){return e-(t===0?0:1)}function pe(e,t){return Ae(e,t)+t}function ca(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:ua(n,e.startContentIndex)}}function ua(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function fa({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:l,lineAnnotations:h,getHoveredLine:d,getInstance:c}){const u=n?.(e),f=i?.(e),p=r?.(e),g=s?.(e);return j.jsxs(j.Fragment,{children:[u!=null?j.jsx("div",{slot:Dt,children:u}):j.jsxs(j.Fragment,{children:[f!=null&&j.jsx("div",{slot:"header-prefix",children:f}),p!=null&&j.jsx("div",{slot:"header-filename-suffix",children:p}),g!=null&&j.jsx("div",{slot:"header-metadata",children:g})]}),o!=null&&h?.map((m,v)=>j.jsx("div",{slot:be(m),children:o(m)},v)),t!=null&&l!=null&&c!=null&&t.map(m=>{if(m==null)return;const v=pa(m,e);return j.jsx("div",{slot:v,style:Ko,children:l(m,c)},v)}),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(d)})]})}function pa(e,t){const n=ca(e,t);return n!=null?ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}function ga({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:i,renderHeaderMetadata:r,renderAnnotation:s,lineAnnotations:o,renderGutterUtility:a,getHoveredLine:l}){const h=t?.(e),d=n?.(e),c=i?.(e),u=r?.(e);return j.jsxs(j.Fragment,{children:[h!=null?j.jsx("div",{slot:Dt,children:h}):j.jsxs(j.Fragment,{children:[d!=null&&j.jsx("div",{slot:"header-prefix",children:d}),c!=null&&j.jsx("div",{slot:"header-filename-suffix",children:c}),u!=null&&j.jsx("div",{slot:"header-metadata",children:u})]}),s!=null&&o?.map((f,p)=>j.jsx("div",{slot:be(f),children:s(f)},p)),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(l)})]})}function mt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function we(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}const ti=new Set;function At(e){const t=[],n=new Set;for(const c of ma(e.themes)){const u=Cs(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),s=Object.freeze(i.filter(c=>c.colorScheme==="dark")),o=new Map(i.map(c=>[c.name,c])),a=Object.freeze(i.map(c=>c.name)),l=Object.freeze(r.map(c=>c.name)),h=Object.freeze(s.map(c=>c.name));function d(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?s:i:i.filter(p=>p.collection!==f?!1:u==null||p.colorScheme===u)}return{getTheme(c){return o.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?h:a:d(c).map(u=>u.name)},hasTheme(c){return o.has(c)},orderBy(c){return At({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const p=c(u.descriptor,f.descriptor);return p!==0?p:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const p of c){if(f.has(p))throw new Error(`Theme collection pick already includes theme "${p}"`);f.add(p);const g=o.get(p);if(g==null)throw new Error(`Theme collection does not contain theme "${p}"`);u.push(g)}return At({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function ma(e){return va(e)?[e]:e}function va(e){return Cs(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function Cs(e){return typeof e.getThemes=="function"}function ys(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ba=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},ya=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function La(){const e=new Map,t=new Map,n=new Map;let i=0;function r(v,S){if(e.has(v))throw new ba(v);e.set(v,S)}function s(v,S){return e.has(v)?!1:(e.set(v,S),!0)}function o(v){return e.has(v)}function a(v){const S=t.get(v);if(S!==void 0)return Promise.resolve(S);const C=n.get(v);if(C!==void 0)return C;const b=e.get(v);if(b===void 0)return Promise.reject(new Ca(v));const y=i,L=b().then(k=>{const E=ys(k);return y===i&&t.set(v,E),n.get(v)===L&&n.delete(v),E}).catch(k=>{throw n.get(v)===L&&n.delete(v),k});return n.set(v,L),L}function l(v){return Promise.all(v.map(S=>a(S)))}function h(v,S){t.set(v,S)}function d(v){for(const[S,C]of v)h(S,C)}function c(v){return t.get(v)}function u(v){const S=[];for(const C of v){const b=t.get(C);if(b===void 0)throw new ya(C);S.push(b)}return S}function f(v){return t.has(v)}function p(v){for(const S of v)if(!t.has(S))return!1;return!0}function g(v){const S=t.get(v);return S!==void 0?S:a(v)}function m(){i++,t.clear(),n.clear()}return{clearResolvedThemes:m,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:o,hasResolvedTheme:f,hasResolvedThemes:p,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:l,seedResolvedTheme:h,seedResolvedThemes:d}}const _e=La();function Ji(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=_e.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,_e.getResolvedTheme(n)==null&&_e.seedResolvedTheme(n,i);ti.has(n)||(ti.add(n),t.loadThemeSync(i))}}const Rt=new Map,Hn=new Map,xa=new Map,ni=new Set;function Qi(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(ni.has(n.name))continue;let i=Rt.get(n.name);i==null&&(i=n,Rt.set(n.name,i)),ni.add(i.name),t.loadLanguageSync(i.data)}}function Ls(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function ka(e){if(Ls())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=Hn.get(e);if(t!=null)return t;try{let n=xa.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Xi,e)&&(n=Xi[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const s={name:e,data:r};return Rt.has(e)||Rt.set(e,s),s});return Hn.set(e,i),await i}finally{Hn.delete(e)}}function wa(e){return Rt.get(e)??ka(e)}function xs({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Ea(t)}}function Ea(e){return async()=>Bo(ys(await e()))}const Ta="pierre",Aa=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],ks=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ra=[...ks,...Aa],Ia=new Set(ks);function Ma(e){return Ia.has(e)?"light":"dark"}const Ha={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},Pa={"pierre-dark":()=>I(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>I(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>I(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>I(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>I(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>I(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>I(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>I(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>I(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>I(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oa(e){return xs({name:e,collection:Ta,colorScheme:Ma(e),displayName:Ha[e],load:Pa[e]})}const ws=At({themes:Ra.map(e=>Oa(e))}),Da="shiki",Es=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],_a=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],Fa=new Set(Es);function Na(e){return Fa.has(e)?"light":"dark"}const za={andromeeda:()=>I(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>I(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>I(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>I(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>I(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>I(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>I(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>I(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>I(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>I(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>I(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>I(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>I(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>I(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>I(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>I(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>I(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>I(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>I(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>I(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>I(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>I(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>I(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>I(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>I(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>I(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>I(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>I(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>I(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>I(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>I(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>I(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>I(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>I(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>I(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>I(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>I(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>I(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>I(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>I(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>I(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>I(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>I(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>I(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>I(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>I(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>I(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>I(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>I(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>I(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>I(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>I(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>I(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>I(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>I(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>I(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>I(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>I(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>I(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>I(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>I(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>I(()=>import("./vesper-DU1UobuO.js"),[]),"vitesse-black":()=>I(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>I(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>I(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function er(e){return xs({name:e,collection:Da,colorScheme:Na(e),load:za[e]})}const Ts=At({themes:Object.freeze([...Es.map(e=>er(e)),..._a.map(e=>er(e))])});At({themes:[ws,Ts]});function Ba(e){if(Ls())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(_e.hasRegisteredTheme(e))return;const t=Ts.getTheme(e);if(t!=null){_e.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function Va(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Ua(e){Ba(e);const t=await _e.resolveTheme(e);return Va(e,t),t}function Wa(e){return _e.getResolvedTheme(e)??Ua(e)}let ke;async function As({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){ke??=Vo({themes:[],langs:["text"],engine:n==="shiki-wasm"?Uo(I(()=>import("./wasm-CG6Dc4jp.js"),[])):Wo()});const i=$a(ke)?await ke:ke;ke=i;const r=[];for(const o of t){if(o==="text"||o==="ansi")continue;const a=wa(o);"then"in a?r.push(a):Qi(a,i)}const s=[];for(const o of e){const a=Wa(o);"then"in a?s.push(a):Ji(a,ke)}return(r.length>0||s.length>0)&&await Promise.all([Promise.all(r).then(o=>{Qi(o,i)}),Promise.all(s).then(o=>{Ji(o,i)})]),i}function Rs(){if(ke!=null&&!("then"in ke))return ke}function $a(e=ke){return e!=null&&"then"in e}for(const e of ws.getThemes())_e.registerThemeIfAbsent(e.name,e.load);function _i(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ga(e){return _e.hasResolvedThemes(e)}function et(e,t){return mt(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}const tt=new Map,St={"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",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"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",mts:"typescript",cts:"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 he(e){if(tt.has(e))return tt.get(e)??"text";if(St[e]!=null)return St[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(tt.has(t[1]))return tt.get(t[1])??"text";if(St[t[1]]!=null)return St[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return tt.has(n)?tt.get(n)??"text":St[n]??"text"}function ii(e){return(e.lang??he(e.name))==="text"}const un=10,fn=13,ja=4,Ka=40;function Fi(e){const t=[0];let n=e.indexOf("\r"),i=e.indexOf(`
|
|
2
2
|
`),r=0,s=0;for(;n!==-1||i!==-1;){let o;if(n!==-1&&(i===-1||n<i)?i===n+1?(o=i+1,n=e.indexOf("\r",o),i=e.indexOf(`
|
|
3
3
|
`,o)):(o=n+1,n=e.indexOf("\r",o)):(o=i+1,i=e.indexOf(`
|
|
4
4
|
`,o)),t.push(o),++s===ja){if(o-r<=Ka){for(let a=o;a<e.length;a++){const l=e.charCodeAt(a);(l===un||l===fn)&&(l===fn&&a+1<e.length&&e.charCodeAt(a+1)===un&&a++,t.push(a+1))}return t}r=o,s=0}}return t}function qa(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);(i===un||i===fn)&&(i===fn&&n+1<e.length&&e.charCodeAt(n+1)===un&&n++,t++)}return t}function nn(e){const t=Fi(e);return Array.from({length:t.length},(n,i)=>{const r=t[i],s=t[i+1]??e.length;return e.slice(r,s)})}function Te(e){return{type:"text",value:e}}function F({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function pn({name:e,width:t=16,height:n=16,properties:i}){return F({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[F({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function Ya(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 rt(e){return F({tagName:"div",properties:{"data-gutter":""},children:e})}function Is(e,t,n,i={}){return F({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[F({tagName:"span",properties:{"data-line-number-content":""},children:[Te(`${t}`)]})]:void 0})}function ge(e,t,n){return F({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 Xa(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(Te(`
|
package/web/assets/{artifact-office-preview-CCkdmKIT.js → artifact-office-preview-DHx-nPK0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as H,j as f,O as q,b as z,t as x}from"./app-
|
|
1
|
+
import{u as H,j as f,O as q,b as z,t as x}from"./app-CoFPYBYF.js";import{P as B,r as S,a as Z,b as U,z as J,l as E,x as K,u as Q,d as G,o as Y,e as tt,f as et,n as nt,g as j,O as st}from"./xlsx-workbook-B0y0zWAe.js";var o;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(o||(o={}));function rt(e){return e.type===o.Tag||e.type===o.Script||e.type===o.Style}o.Root;o.Text;o.Directive;o.Comment;o.Script;o.Style;o.Tag;o.CDATA;o.Doctype;class k{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return F(this,t)}}class I extends k{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class $ extends I{constructor(){super(...arguments),this.type=o.Text}get nodeType(){return 3}}class D extends I{constructor(){super(...arguments),this.type=o.Comment}get nodeType(){return 8}}class L extends I{constructor(t,n){super(n),this.name=t,this.type=o.Directive}get nodeType(){return 1}}class T extends k{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class X extends T{constructor(){super(...arguments),this.type=o.CDATA}get nodeType(){return 4}}class v extends T{constructor(){super(...arguments),this.type=o.Root}get nodeType(){return 9}}class P extends T{constructor(t,n,s=[],i=t==="script"?o.Script:t==="style"?o.Style:o.Tag){super(s),this.name=t,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var n,s;return{name:t,value:this.attribs[t],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}}function b(e){return rt(e)}function it(e){return e.type===o.CDATA}function W(e){return e.type===o.Text}function ot(e){return e.type===o.Comment}function at(e){return e.type===o.Directive}function lt(e){return e.type===o.Root}function F(e,t=!1){let n;if(W(e))n=new $(e.data);else if(ot(e))n=new D(e.data);else if(b(e)){const s=t?C(e.children):[],i=new P(e.name,{...e.attribs},s);s.forEach(r=>r.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(it(e)){const s=t?C(e.children):[],i=new X(s);s.forEach(r=>r.parent=i),n=i}else if(lt(e)){const s=t?C(e.children):[],i=new v(s);s.forEach(r=>r.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else if(at(e)){const s=new L(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}else throw new Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){const t=e.map(n=>F(n,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const R={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class ct{constructor(t,n,s){this.dom=[],this.root=new v(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(s=n,n=R),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??R,this.elementCB=s??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new v(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,n){const s=this.options.xmlMode?o.Tag:void 0,i=new P(t,n,void 0,s);this.addNode(i),this.tagStack.push(i)}ontext(t){const{lastNode:n}=this;if(n&&n.type===o.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const s=new $(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===o.Comment){this.lastNode.data+=t;return}const n=new D(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new $(""),n=new X([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const s=new L(t,n);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const n=this.tagStack[this.tagStack.length-1],s=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),s&&(t.prev=s,s.next=t),t.parent=n,this.lastNode=null}}function dt(e,t){const n=new ct(void 0,t);return new B(n,t).end(e),n.root}function N(e){return e.slice(e.lastIndexOf(":")+1)}function _(e,t){return e&&Object.entries(e.attribs).find(([n])=>N(n)===t)?.[1]}function*m(e,t){const n=e.slice().reverse();for(;n.length>0;){const s=n.pop();if(!(!s||!b(s))){if(N(s.name)===t){yield s;continue}for(let i=s.children.length-1;i>=0;i--)n.push(s.children[i])}}}function V(e){return U(e),dt(e,{xmlMode:!0}).children}function A(e){return Array.from(m(e.children,"t"),t=>t.children.map(n=>W(n)?n.data:"").join("")).join("").trim()}function ut(e){let t=e.parent;for(;t&&b(t);){const n=t;if(t=n.parent,N(n.name)!=="sp")continue;const s=n.children.find(d=>b(d)&&N(d.name)==="nvSpPr"),i=s&&m([s],"ph").next().value,r=_(i,"type");return r==="title"||r==="ctrTitle"}return!1}async function ht(e,t){const n=await S(e,t,"ppt/presentation.xml");if(n===null)return[...t.keys()].filter(r=>/^ppt\/slides\/slide\d+\.xml$/.test(r)).sort((r,d)=>r.localeCompare(d,void 0,{numeric:!0}));const s=Z(await S(e,t,"ppt/_rels/presentation.xml.rels"),"ppt"),i=m(V(n),"sldIdLst").next().value;return i?Array.from(m(i.children,"sldId"),r=>{const d=Object.entries(r.attribs).find(([c])=>c.endsWith(":id"))?.[1],l=d&&s.get(d);if(!l||!/^ppt\/slides\/[^/]+\.xml$/.test(l))throw new Error("Missing or unsupported Office slide part.");return l}):[]}async function ft(e,t,n,s){let i=s,r=!1;const d=u=>{u.length>i&&(r=!0);let a=Math.min(u.length,i);a<u.length&&/[\uD800-\uDBFF]/.test(u.charAt(a-1))&&a--;const h=u.slice(0,a);return i-=h.length,h},l=async(u,a)=>{const h=await S(t,n,u),p=h!==null&&m(V(h),a).next().value;if(!p)throw new Error("Missing or unreadable Office text part.");return p.children};if(e==="docx"){const u=[];for(const a of m(await l("word/document.xml","body"),"p")){const h=d(A(a)),p=_(m(a.children,"pStyle").next().value,"val"),g=_(m(a.children,"outlineLvl").next().value,"val");if(h&&u.push({text:h,heading:/^(?:title|heading[1-9])$/i.test(p??"")||/^[0-8]$/.test(g??"")}),r)break}return{kind:e,paragraphs:u,truncated:r}}const c=[];for(const u of await ht(t,n)){const a={title:"",bullets:[]};for(const h of m(await l(u,"sld"),"p")){const p=d(A(h));if(p&&(ut(h)?a.title=a.title?`${a.title}
|
|
2
2
|
${p}`:p:a.bullets.push(p)),r)break}if((!r||a.title||a.bullets.length)&&c.push(a),r)break}return{kind:e,slides:c,truncated:r}}const w=24e3,pt=1200,mt=25,O=16,xt=60;function gt(e,t){return t.endsWith(".xml")?e==="docx"?t==="word/document.xml"||/^word\/header\d+\.xml$/.test(t)||/^word\/footer\d+\.xml$/.test(t)||t==="word/footnotes.xml"||t==="word/endnotes.xml"||t==="word/comments.xml":/^ppt\/slides\/slide\d+\.xml$/.test(t)||/^ppt\/notesSlides\/notesSlide\d+\.xml$/.test(t):!1}function wt(e,t){return e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"})}function y(e){const t=JSON.stringify(e.length>500?`${e.slice(0,500)}…`:e);return typeof t=="string"?t:'""'}function yt(e,t){const n=[e.dimension?`dimension ${e.dimension}`:"",e.cells.length?`${e.cells.length} cells in rows ${e.firstRow}-${e.lastRow}, columns ${j(e.firstColumn)}-${j(e.lastColumn)}`:"no cell values",e.formulaCount?`${e.formulaCount} formula${e.formulaCount===1?"":"s"}`:"",e.mergedRanges.length?`merged ${e.mergedRanges.slice(0,8).join(", ")}${e.mergedRanges.length>8?", …":""}`:"",e.info.hidden?"hidden":""].filter(Boolean);return`sheet ${y(e.info.name)} (${e.info.position} of ${t}): ${n.join("; ")}`}async function bt(e,t){const n=t.spreadsheetReadTool,s=await Y(e),i=s.sheets.length,r=["xlsx_workbook:",` sheet_count: ${i}`,` sheet_names: ${s.sheets.map(l=>y(l.name)).join(", ")}`,` shared_string_count: ${s.sharedStringCount}`,` style_count: ${s.styleCount}`,...s.date1904?[" date_system: 1904"]:[],...s.omittedSheets?[` omitted_sheets: ${s.omittedSheets} beyond the first ${i} are not shown`]:[]];let d=pt;for(const l of s.sheets){let c;try{c=await s.readSheet(l)}catch(g){r.push(`sheet ${y(l.name)} (${l.position} of ${i}): error: ${g instanceof Error?g.message:String(g)}`);continue}if(r.push(yt(c,i)),c.cells.length===0)continue;if(d<=0){r.push(n?` preview omitted: cell budget used by earlier sheets; read it with ${n}.`:" preview omitted: cell budget used by earlier sheets.");continue}const u=Math.max(1,Math.min(mt,Math.floor(d/Math.min(O,Math.max(1,c.lastColumn-c.firstColumn+1))))),a=tt(c,{maxRows:u,maxColumns:O,maxCellChars:xt});d-=a.renderedRows*a.columns.length,r.push(a.text),a.truncatedColumns>0&&r.push(` more_columns: ${a.truncatedColumns} not shown`),a.nextStartRow!==null&&r.push(n?` more_rows: continue with ${n}(sheet: ${y(c.info.name)}, startRow: ${a.nextStartRow})`:` more_rows: rows from ${a.nextStartRow} are not shown`),c.omittedCells>0&&r.push(` omitted_cells: ${c.omittedCells}`);const h=et(c,12);h.length&&r.push(` formulas: ${h.join("; ")}${c.formulaCount>h.length?`; … ${c.formulaCount-h.length} more`:""}`);const p=nt(c);p.length&&r.push(` number_formats: ${p.join("; ")}`)}return r.join(`
|
|
3
3
|
`).slice(0,w)}async function Nt(e,t,n={}){if("format"in n){if(e==="xlsx")throw new Error("Workbook outlines are not supported.");return ft(e,t,J(E(t)),w)}if(e==="xlsx")return await bt(t,n);const s=E(t).filter(l=>gt(e,l.name)).sort(wt);if(s.length===0)throw new Error("No supported Office XML text entries were found.");const i=[];let r=w;for(const l of s){if(r<=0)break;const c=K(Q(await G(t,l)));if(!c)continue;const u=c.slice(0,r);i.push(`[${l.name}]
|
|
4
4
|
${u}`),r-=u.length}const d=i.join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,L as A,B as x,P as N,c as B,u as D,r as m,a as F}from"./app-
|
|
1
|
+
import{j as a,L as A,B as x,P as N,c as B,u as D,r as m,a as F}from"./app-CoFPYBYF.js";import{w as O,c as M,o as W,s as q}from"./xlsx-workbook-B0y0zWAe.js";function j(e){const t=e.toLowerCase().split(/[?#]/)[0]??e.toLowerCase(),s=t.lastIndexOf(".");return s>=0?t.slice(s+1):""}function z(e){return j(e)==="tsv"?" ":","}function P(e,t){const s=[];let r=[],n="",l=!1;for(let o=0;o<e.length;o+=1){const i=e[o],d=e[o+1];if(l){i==='"'&&d==='"'?(n+='"',o+=1):i==='"'?l=!1:n+=i;continue}if(i==='"'){l=!0;continue}if(i===t){r.push(n),n="";continue}if(i===`
|
|
2
2
|
`){r.push(n),s.push(r),r=[],n="";continue}i!=="\r"&&(n+=i)}return(n||r.length)&&(r.push(n),s.push(r)),s.length?s:[[""]]}function J(e,t){return e.map(s=>s.map(r=>{const n=String(r??"");return!n.includes(t)&&!/["\r\n]/.test(n)?n:`"${n.replace(/"/g,'""')}"`}).join(t)).join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`}function R(e){return e==="xls"?"Legacy .xls workbooks can't be edited here. Save the file as .xlsx and open it again.":e==="ods"?"OpenDocument spreadsheets can't be edited here. Export the file as .xlsx and open it again.":null}function T(e){return new Uint8Array(e.kind==="binary"?e.data:new ArrayBuffer(0))}function U(e){const t=new Uint8Array(e.byteLength);return t.set(e),t.buffer}async function X(e){const t=j(e.name);if(t==="csv"||t==="tsv")return P(e.content.kind==="text"?e.content.data:"",z(e.name));const s=R(t);if(s)throw new Error(s);const r=await W(T(e.content)),n=await r.readSheet(r.sheets[0]);return q(n)}async function G(e,t){const s=j(e);if(s==="csv"||s==="tsv")return{kind:"text",data:J(t,z(e))};const r=R(s);if(r)throw new Error(r);const{bytes:n}=await O([{name:"Sheet1",header:!1,rows:t.map(l=>l.map(o=>M(String(o??""))))}]);return{kind:"binary",data:U(n)}}function p(e){return e.map(t=>[...t])}function C(e){const t=Math.max(1,...e.map(s=>s.length));return e.map(s=>Array.from({length:t},(r,n)=>s[n]??""))}function K({name:e,content:t,onSave:s}){const{data:r,error:n,isLoading:l}=D({queryKey:["artifact-spreadsheet",e,t],queryFn:async()=>C(await X({name:e,content:t})),refetchOnReconnect:!1,refetchOnWindowFocus:!1,staleTime:1/0}),[o,i]=m.useState([[""]]),[d,f]=m.useState([[""]]),g=m.useMemo(()=>JSON.stringify(o)!==JSON.stringify(d),[d,o]);m.useEffect(()=>{r&&(i(r),f(p(r)))},[r]);const{mutate:u,isPending:w}=F({mutationFn:async()=>{const c=await G(e,o);await s(c)},onSuccess:()=>{f(p(o))}});return{rows:o,error:n,isLoading:l,updateCell:(c,v,E)=>{i(L=>{const h=p(L);return h[c]=[...h[c]??[]],h[c][v]=E,C(h)})},addRow:()=>i(c=>[...c,Array.from({length:Math.max(1,c[0]?.length??1)},()=>"")]),addColumn:()=>i(c=>c.map(v=>[...v,""])),discard:()=>i(p(d)),isDirty:g,save:u,isSaving:w}}function $(e){const{rows:t,error:s,isLoading:r,updateCell:n,addRow:l,addColumn:o,discard:i,isDirty:d,save:f,isSaving:g}=K(e),u=e.saving||g;return r?a.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:a.jsx(A,{className:"size-4 animate-spin"})}):s?a.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s instanceof Error?s.message:"Failed to parse spreadsheet"}):a.jsxs("div",{className:B("flex h-full min-h-0 flex-col",e.className),children:[a.jsxs("div",{className:"flex shrink-0 items-center gap-2 px-3 py-2 border-b border-border",children:[a.jsxs(x,{variant:"ghost",size:"xs",onClick:l,children:[a.jsx(N,{className:"size-3"})," Row"]}),a.jsxs(x,{variant:"ghost",size:"xs",onClick:o,children:[a.jsx(N,{className:"size-3"})," Column"]}),a.jsx("div",{className:"min-w-0 flex-1"}),a.jsx(x,{variant:"ghost",size:"xs",onClick:i,disabled:!d||u,children:"Discard"}),a.jsx(x,{variant:"default",size:"xs",onClick:()=>f(),disabled:!d||u,children:u?"Saving":"Save"})]}),a.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:a.jsx("table",{className:"w-full border-collapse text-xs",children:a.jsx("tbody",{children:t.map((w,b)=>a.jsx("tr",{children:w.map((k,y)=>a.jsx("td",{className:"border-b not-first:border-l border-border p-0 align-top",children:a.jsx("input",{className:"h-8 w-full min-w-[120px] bg-transparent px-2 text-foreground outline-none focus:bg-muted/50",value:k,onChange:S=>n(b,y,S.target.value)})},y))},b))})})})]})}export{$ as ArtifactSpreadsheetEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as g0,s as m0,r as Ei,j as mf,c as S0,A as b0}from"./app-
|
|
1
|
+
import{d as g0,s as m0,r as Ei,j as mf,c as S0,A as b0}from"./app-CoFPYBYF.js";let Zo=[],Od=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?Od:Zo).push(t=t+r[e])})();function y0(r){if(r<768)return!1;for(let e=0,t=Zo.length;;){let i=e+t>>1;if(r<Zo[i])t=i;else if(r>=Od[i])e=i+1;else return!0;if(e==t)return!1}}function Sf(r){return r>=127462&&r<=127487}const bf=8205;function x0(r,e,t=!0,i=!0){return(t?gd:k0)(r,e,i)}function gd(r,e,t){if(e==r.length)return e;e&&md(r.charCodeAt(e))&&Sd(r.charCodeAt(e-1))&&e--;let i=zl(r,e);for(e+=yf(i);e<r.length;){let n=zl(r,e);if(i==bf||n==bf||t&&y0(n))e+=yf(n),i=n;else if(Sf(n)){let s=0,l=e-2;for(;l>=0&&Sf(zl(r,l));)s++,l-=2;if(s%2==0)break;e+=2}else break}return e}function k0(r,e,t){for(;e>0;){let i=gd(r,e-2,t);if(i<e)return i;e--}return 0}function zl(r,e){let t=r.charCodeAt(e);if(!Sd(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return md(i)?(t-55296<<10)+(i-56320)+65536:t}function md(r){return r>=56320&&r<57344}function Sd(r){return r>=55296&&r<56320}function yf(r){return r<65536?1:2}let F=class bd{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=nn(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),bs.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=nn(this,e,t);let i=[];return this.decompose(e,t,i,0),bs.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new qn(this),s=new qn(e);for(let l=t,o=t;;){if(n.next(l),s.next(l),l=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(o+=n.value.length,n.done||o>=i)return!0}}iter(e=1){return new qn(this,e)}iterRange(e,t=this.length){return new yd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new xd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?bd.empty:e.length<=32?new ut(e):bs.from(ut.split(e,[]))}},ut=class Qt extends F{constructor(e,t=w0(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let s=0;;s++){let l=this.text[s],o=n+l.length;if((t?i:o)>=e)return new $0(n,o,i,l);n=o+1,i++}}decompose(e,t,i,n){let s=e<=0&&t>=this.length?this:new Qt(xf(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let l=i.pop(),o=ys(s.text,l.text.slice(),0,s.length);if(o.length<=32)i.push(new Qt(o,l.length+s.length));else{let a=o.length>>1;i.push(new Qt(o.slice(0,a)),new Qt(o.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof Qt))return super.replace(e,t,i);[e,t]=nn(this,e,t);let n=ys(this.text,ys(i.text,xf(this.text,0,e)),t),s=this.length+i.length-(t-e);return n.length<=32?new Qt(n,s):bs.from(Qt.split(n,[]),s)}sliceString(e,t=this.length,i=`
|
|
2
2
|
`){[e,t]=nn(this,e,t);let n="";for(let s=0,l=0;s<=t&&l<this.text.length;l++){let o=this.text[l],a=s+o.length;s>e&&l&&(n+=i),e<a&&t>s&&(n+=o.slice(Math.max(0,e-s),t-s)),s=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let s of e)i.push(s),n+=s.length+1,i.length==32&&(t.push(new Qt(i,n)),i=[],n=-1);return n>-1&&t.push(new Qt(i,n)),t}},bs=class Bi extends F{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let s=0;;s++){let l=this.children[s],o=n+l.length,a=i+l.lines-1;if((t?a:o)>=e)return l.lineInner(e,t,i,n);n=o+1,i=a+1}}decompose(e,t,i,n){for(let s=0,l=0;l<=t&&s<this.children.length;s++){let o=this.children[s],a=l+o.length;if(e<=a&&t>=l){let h=n&((l<=e?1:0)|(a>=t?2:0));l>=e&&a<=t&&!h?i.push(o):o.decompose(e-l,t-l,i,h)}l=a+1}}replace(e,t,i){if([e,t]=nn(this,e,t),i.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let l=this.children[n],o=s+l.length;if(e>=s&&t<=o){let a=l.replace(e-s,t-s,i),h=this.lines-l.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let f=this.children.slice();return f[n]=a,new Bi(f,this.length-(t-e)+i.length)}return super.replace(s,o,a)}s=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
|
3
3
|
`){[e,t]=nn(this,e,t);let n="";for(let s=0,l=0;s<this.children.length&&l<=t;s++){let o=this.children[s],a=l+o.length;l>e&&s&&(n+=i),e<a&&t>l&&(n+=o.sliceString(e-l,t-l,i)),l=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Bi))return 0;let i=0,[n,s,l,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,s+=t){if(n==l||s==o)return i;let a=this.children[n],h=e.children[s];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new ut(d,t)}let n=Math.max(32,i>>5),s=n<<1,l=n>>1,o=[],a=0,h=-1,f=[];function c(d){let p;if(d.lines>s&&d instanceof Bi)for(let O of d.children)c(O);else d.lines>l&&(a>l||!a)?(u(),o.push(d)):d instanceof ut&&a&&(p=f[f.length-1])instanceof ut&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,f[f.length-1]=new ut(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,f.push(d))}function u(){a!=0&&(o.push(f.length==1?f[0]:Bi.from(f,h)),h=-1,a=f.length=0)}for(let d of e)c(d);return u(),o.length==1?o[0]:new Bi(o,t)}};F.empty=new ut([""],0);function w0(r){let e=-1;for(let t of r)e+=t.length+1;return e}function ys(r,e,t=0,i=1e9){for(let n=0,s=0,l=!0;s<r.length&&n<=i;s++){let o=r[s],a=n+o.length;a>=t&&(a>i&&(o=o.slice(0,i-n)),n<t&&(o=o.slice(t-n)),l?(e[e.length-1]+=o,l=!1):e.push(o)),n=a+1}return e}function xf(r,e,t){return ys(r,[""],e,t)}let qn=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ut?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],l=s>>1,o=n instanceof ut?n.text.length:n.children.length;if(l==(t>0?o:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;e--}else if(n instanceof ut){let a=n.text[l+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[l+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ut?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},yd=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new qn(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},xd=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(F.prototype[Symbol.iterator]=function(){return this.iter()},qn.prototype[Symbol.iterator]=yd.prototype[Symbol.iterator]=xd.prototype[Symbol.iterator]=function(){return this});let $0=class{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}};function nn(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function ve(r,e,t=!0,i=!0){return x0(r,e,t,i)}function Q0(r){return r>=56320&&r<57344}function v0(r){return r>=55296&&r<56320}function P0(r,e){let t=r.charCodeAt(e);if(!v0(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return Q0(i)?(t-55296<<10)+(i-56320)+65536:t}function T0(r){return r<65536?1:2}const Xo=/\r\n?|\n/;var Ue=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(Ue||(Ue={}));let Yi=class xs{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let s=this.sections[t++],l=this.sections[t++];l<0?(e(i,n,s),n+=s):n+=l,i+=s}}iterChangedRanges(e,t=!1){Eo(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new xs(e)}composeDesc(e){return this.empty?e:e.empty?this:kd(this,e)}mapDesc(e,t=!1){return e.empty?this:Lo(this,e,t)}mapPos(e,t=-1,i=Ue.Simple){let n=0,s=0;for(let l=0;l<this.sections.length;){let o=this.sections[l++],a=this.sections[l++],h=n+o;if(a<0){if(h>e)return s+(e-n);s+=o}else{if(i!=Ue.Simple&&h>=e&&(i==Ue.TrackDel&&n<e&&h>e||i==Ue.TrackBefore&&n<e||i==Ue.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!o)return e==n||t<0?s:s+a;s+=a}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return s}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let s=this.sections[i++],l=this.sections[i++],o=n+s;if(l>=0&&n<=t&&o>=e)return n<e&&o>t?"cover":!0;n=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new xs(e)}static create(e){return new xs(e)}},gt=class ii extends Yi{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Eo(this,(t,i,n,s,l)=>e=e.replace(n,n+(i-t),l),!1),e}mapDesc(e,t=!1){return Lo(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,s=0;n<t.length;n+=2){let l=t[n],o=t[n+1];if(o>=0){t[n]=o,t[n+1]=l;let a=n>>1;for(;i.length<a;)i.push(F.empty);i.push(l?e.slice(s,s+l):F.empty)}s+=l}return new ii(t,i)}compose(e){return this.empty?e:e.empty?this:kd(this,e,!0)}map(e,t=!1){return e.empty?this:Lo(this,e,t,!0)}iterChanges(e,t=!1){Eo(this,e,t)}get desc(){return Yi.create(this.sections)}filter(e){let t=[],i=[],n=[],s=new sr(this);e:for(let l=0,o=0;;){let a=l==e.length?1e9:e[l++];for(;o<a||o==a&&s.len==0;){if(s.done)break e;let f=Math.min(s.len,a-o);$e(n,f,-1);let c=s.ins==-1?-1:s.off==0?s.ins:0;$e(t,f,c),c>0&&ai(i,t,s.text),s.forward(f),o+=f}let h=e[l++];for(;o<h;){if(s.done)break e;let f=Math.min(s.len,h-o);$e(t,f,-1),$e(n,f,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(f),o+=f}}return{changes:new ii(t,i),filtered:Yi.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):n==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],s=[],l=0,o=null;function a(f=!1){if(!f&&!n.length)return;l<t&&$e(n,t-l,-1);let c=new ii(n,s);o=o?o.compose(c.map(o)):c,n=[],s=[],l=0}function h(f){if(Array.isArray(f))for(let c of f)h(c);else if(f instanceof ii){if(f.length!=t)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${t})`);a(),o=o?o.compose(f.map(o)):f}else{let{from:c,to:u=c,insert:d}=f;if(c>u||c<0||u>t)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?F.of(d.split(i||Xo)):d:F.empty,O=p.length;if(c==u&&O==0)return;c<l&&a(),c>l&&$e(n,c-l,-1),$e(n,u-c,O),ai(s,n,p),l=u}}return h(e),a(!o),o}static empty(e){return new ii(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let s=e[n];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((l,o)=>o&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length<n;)i.push(F.empty);i[n]=F.of(s.slice(1)),t.push(s[0],i[n].length)}}}return new ii(t,i)}static createSet(e,t){return new ii(e,t)}};function $e(r,e,t,i=!1){if(e==0&&t<=0)return;let n=r.length-2;n>=0&&t<=0&&t==r[n+1]?r[n]+=e:n>=0&&e==0&&r[n]==0?r[n+1]+=t:i?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function ai(r,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<i;)r.push(F.empty);r.push(t)}}function Eo(r,e,t){let i=r.inserted;for(let n=0,s=0,l=0;l<r.sections.length;){let o=r.sections[l++],a=r.sections[l++];if(a<0)n+=o,s+=o;else{let h=n,f=s,c=F.empty;for(;h+=o,f+=a,a&&i&&(c=c.append(i[l-2>>1])),!(t||l==r.sections.length||r.sections[l+1]<0);)o=r.sections[l++],a=r.sections[l++];e(n,h,s,f,c),n=h,s=f}}}function Lo(r,e,t,i=!1){let n=[],s=i?[]:null,l=new sr(r),o=new sr(e);for(let a=-1;;){if(l.done&&o.len||o.done&&l.len)throw new Error("Mismatched change set lengths");if(l.ins==-1&&o.ins==-1){let h=Math.min(l.len,o.len);$e(n,h,-1),l.forward(h),o.forward(h)}else if(o.ins>=0&&(l.ins<0||a==l.i||l.off==0&&(o.len<l.len||o.len==l.len&&!t))){let h=o.len;for($e(n,o.ins,-1);h;){let f=Math.min(l.len,h);l.ins>=0&&a<l.i&&l.len<=f&&($e(n,0,l.ins),s&&ai(s,n,l.text),a=l.i),l.forward(f),h-=f}o.next()}else if(l.ins>=0){let h=0,f=l.len;for(;f;)if(o.ins==-1){let c=Math.min(f,o.len);h+=c,f-=c,o.forward(c)}else if(o.ins==0&&o.len<f)f-=o.len,o.next();else break;$e(n,h,a<l.i?l.ins:0),s&&a<l.i&&ai(s,n,l.text),a=l.i,l.forward(l.len-f)}else{if(l.done&&o.done)return s?gt.createSet(n,s):Yi.create(n);throw new Error("Mismatched change set lengths")}}}function kd(r,e,t=!1){let i=[],n=t?[]:null,s=new sr(r),l=new sr(e);for(let o=!1;;){if(s.done&&l.done)return n?gt.createSet(i,n):Yi.create(i);if(s.ins==0)$e(i,s.len,0,o),s.next();else if(l.len==0&&!l.done)$e(i,0,l.ins,o),n&&ai(n,i,l.text),l.next();else{if(s.done||l.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,l.len),h=i.length;if(s.ins==-1){let f=l.ins==-1?-1:l.off?0:l.ins;$e(i,a,f,o),n&&f&&ai(n,i,l.text)}else l.ins==-1?($e(i,s.off?0:s.len,a,o),n&&ai(n,i,s.textBit(a))):($e(i,s.off?0:s.len,l.off?0:l.ins,o),n&&!l.off&&ai(n,i,l.text));o=(s.ins>a||l.ins>=0&&l.len>a)&&(o||i.length>h),s.forward2(a),l.forward(a)}}}}let sr=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?F.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?F.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Ir=class Bo{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Bo(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return T.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return T.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return T.range(e.anchor,e.head)}static create(e,t,i){return new Bo(e,t,i)}},T=class qe{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:qe.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new qe([this.main],0)}addRange(e,t=!0){return qe.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,qe.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new qe(e.ranges.map(t=>Ir.fromJSON(t)),e.main)}static single(e,t=e){return new qe([qe.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let s=e[n];if(s.empty?s.from<=i:s.from<i)return qe.normalized(e.slice(),t);i=s.to}return new qe(e,t)}static cursor(e,t=0,i,n){return Ir.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(n??16777215)<<6)}static range(e,t,i,n){let s=(i??16777215)<<6|(n==null?7:Math.min(6,n));return t<e?Ir.create(t,e,48|s):Ir.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((n,s)=>n.from-s.from),t=e.indexOf(i);for(let n=1;n<e.length;n++){let s=e[n],l=e[n-1];if(s.empty?s.from<=l.to:s.from<l.to){let o=l.from,a=Math.max(s.to,l.to);n<=t&&t--,e.splice(--n,2,s.anchor>s.head?qe.range(a,o):qe.range(o,a))}}return new qe(e,t)}};function wd(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Oh=0,E=class $d{constructor(e,t,i,n,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=Oh++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new $d(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:gh),!!e.static,e.enables)}of(e){return new ks([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ks(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ks(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}};function gh(r,e){return r==e||r.length==e.length&&r.every((t,i)=>t===e[i])}let ks=class{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=Oh++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,s=this.id,l=e[s]>>1,o=this.type==2,a=!1,h=!1,f=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?h=!0:(((t=e[c.id])!==null&&t!==void 0?t:1)&1)==0&&f.push(e[c.id]);return{create(c){return c.values[l]=i(c),1},update(c,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Do(c,f)){let d=i(c);if(o?!kf(d,c.values[l],n):!n(d,c.values[l]))return c.values[l]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[s];if(p!=null){let O=Ws(u,p);if(this.dependencies.every(g=>g instanceof E?u.facet(g)===c.facet(g):g instanceof Ri?u.field(g,!1)==c.field(g,!1):!0)||(o?kf(d=i(c),O,n):n(d=i(c),O)))return c.values[l]=O,0}else d=i(c);return c.values[l]=d,1}}}};function kf(r,e,t){if(r.length!=e.length)return!1;for(let i=0;i<r.length;i++)if(!t(r[i],e[i]))return!1;return!0}function Do(r,e){let t=!1;for(let i of e)Nn(r,i)&1&&(t=!0);return t}function C0(r,e,t){let i=t.map(a=>r[a.id]),n=t.map(a=>a.type),s=i.filter(a=>!(a&1)),l=r[e.id]>>1;function o(a){let h=[];for(let f=0;f<i.length;f++){let c=Ws(a,i[f]);if(n[f]==2)for(let u of c)h.push(u);else h.push(c)}return e.combine(h)}return{create(a){for(let h of i)Nn(a,h);return a.values[l]=o(a),1},update(a,h){if(!Do(a,s))return 0;let f=o(a);return e.compare(f,a.values[l])?0:(a.values[l]=f,1)},reconfigure(a,h){let f=Do(a,i),c=h.config.facets[e.id],u=h.facet(e);if(c&&!f&&gh(t,c))return a.values[l]=u,0;let d=o(a);return e.compare(d,u)?(a.values[l]=u,0):(a.values[l]=d,1)}}}const Vr=E.define({static:!0});let Ri=class Qd{constructor(e,t,i,n,s){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=s,this.provides=void 0}static define(e){let t=new Qd(Oh++,e.create,e.update,e.compare||((i,n)=>i===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Vr).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let s=i.values[t],l=this.updateF(s,n);return this.compareF(s,l)?0:(i.values[t]=l,1)},reconfigure:(i,n)=>{let s=i.facet(Vr),l=n.facet(Vr),o;return(o=s.find(a=>a.field==this))&&o!=l.find(a=>a.field==this)?(i.values[t]=o.create(i),1):n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Vr.of({field:this,create:e})]}get extension(){return this}};const ki={lowest:4,low:3,default:2,high:1,highest:0};function vn(r){return e=>new vd(e,r)}const mh={highest:vn(ki.highest),high:vn(ki.high),default:vn(ki.default),low:vn(ki.low),lowest:vn(ki.lowest)};let vd=class{constructor(e,t){this.inner=e,this.prec=t}},Pd=class Td{of(e){return new Wo(this,e)}reconfigure(e){return Td.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Wo=class{constructor(e,t){this.compartment=e,this.inner=t}},wf=class Cd{constructor(e,t,i,n,s,l){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=l,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],s=Object.create(null),l=new Map;for(let u of A0(e,t,l))u instanceof Ri?n.push(u):(s[u.facet.id]||(s[u.facet.id]=[])).push(u);let o=Object.create(null),a=[],h=[];for(let u of n)o[u.id]=h.length<<1,h.push(d=>u.slot(d));let f=i?.config.facets;for(let u in s){let d=s[u],p=d[0].facet,O=f&&f[u]||[];if(d.every(g=>g.type==0))if(o[p.id]=a.length<<1|1,gh(O,d))a.push(i.facet(p));else{let g=p.combine(d.map(m=>m.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(o[g.id]=a.length<<1|1,a.push(g.value)):(o[g.id]=h.length<<1,h.push(m=>g.dynamicSlot(m)));o[p.id]=h.length<<1,h.push(g=>C0(g,p,d))}}let c=h.map(u=>u(o));return new Cd(e,l,c,o,a,s)}};function A0(r,e,t){let i=[[],[],[],[],[]],n=new Map;function s(l,o){let a=n.get(l);if(a!=null){if(a<=o)return;let h=i[a].indexOf(l);h>-1&&i[a].splice(h,1),l instanceof Wo&&t.delete(l.compartment)}if(n.set(l,o),Array.isArray(l))for(let h of l)s(h,o);else if(l instanceof Wo){if(t.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(l.compartment)||l.inner;t.set(l.compartment,h),s(h,o)}else if(l instanceof vd)s(l.inner,l.prec);else if(l instanceof Ri)i[o].push(l),l.provides&&s(l.provides,o);else if(l instanceof ks)i[o].push(l),l.facet.extensions&&s(l.facet.extensions,ki.default);else{let h=l.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(h,o)}}return s(r,ki.default),i.reduce((l,o)=>l.concat(o))}function Nn(r,e){if(e&1)return 2;let t=e>>1,i=r.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function Ws(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const Ad=E.define(),zo=E.define({combine:r=>r.some(e=>e),static:!0}),Md=E.define({combine:r=>r.length?r[0]:void 0,static:!0}),Rd=E.define(),Zd=E.define(),Xd=E.define(),Ed=E.define({combine:r=>r.length?r[0]:!1});let gi=class{constructor(e,t){this.type=e,this.value=t}static define(){return new M0}},M0=class{of(e){return new gi(this,e)}},R0=class{constructor(e){this.map=e}of(e){return new Oe(this,e)}},Oe=class Ld{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Ld(this.type,t)}is(e){return this.type==e}static define(e={}){return new R0(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let s=n.map(t);s&&i.push(s)}return i}};Oe.reconfigure=Oe.define();Oe.appendConfig=Oe.define();let Ie=class Bn{constructor(e,t,i,n,s,l){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=l,this._doc=null,this._state=null,i&&wd(i,t.newLength),s.some(o=>o.type==Bn.time)||(this.annotations=s.concat(Bn.time.of(Date.now())))}static create(e,t,i,n,s,l){return new Bn(e,t,i,n,s,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Bn.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};Ie.time=gi.define();Ie.userEvent=gi.define();Ie.addToHistory=gi.define();Ie.remote=gi.define();function Z0(r,e){let t=[];for(let i=0,n=0;;){let s,l;if(i<r.length&&(n==e.length||e[n]>=r[i]))s=r[i++],l=r[i++];else if(n<e.length)s=e[n++],l=e[n++];else return t;!t.length||t[t.length-1]<s?t.push(s,l):t[t.length-1]<l&&(t[t.length-1]=l)}}function Bd(r,e,t){var i;let n,s,l;return t?(n=e.changes,s=gt.empty(e.changes.length),l=r.changes.compose(e.changes)):(n=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),l=r.changes.compose(n)),{changes:l,selection:e.selection?e.selection.map(s):(i=r.selection)===null||i===void 0?void 0:i.map(n),effects:Oe.mapEffects(r.effects,n).concat(Oe.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function Io(r,e,t){let i=e.selection,n=_i(e.annotations);return e.userEvent&&(n=n.concat(Ie.userEvent.of(e.userEvent))),{changes:e.changes instanceof gt?e.changes:gt.of(e.changes||[],t,r.facet(Md)),selection:i&&(i instanceof T?i:T.single(i.anchor,i.head)),effects:_i(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function Dd(r,e,t){let i=Io(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let l=!!e[s].sequential;i=Bd(i,Io(r,e[s],l?i.changes.newLength:r.doc.length),l)}let n=Ie.create(r,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return E0(t?X0(n):n)}function X0(r){let e=r.startState,t=!0;for(let n of e.facet(Rd)){let s=n(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:Z0(t,s))}if(t!==!0){let n,s;if(t===!1)s=r.changes.invertedDesc,n=gt.empty(e.doc.length);else{let l=r.changes.filter(t);n=l.changes,s=l.filtered.mapDesc(l.changes).invertedDesc}r=Ie.create(e,n,r.selection&&r.selection.map(s),Oe.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let i=e.facet(Zd);for(let n=i.length-1;n>=0;n--){let s=i[n](r);s instanceof Ie?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Ie?r=s[0]:r=Dd(e,_i(s),!1)}return r}function E0(r){let e=r.startState,t=e.facet(Xd),i=r;for(let n=t.length-1;n>=0;n--){let s=t[n](r);s&&Object.keys(s).length&&(i=Bd(i,Io(e,s,r.changes.newLength),!0))}return i==r?r:Ie.create(e,r.changes,r.selection,i.effects,i.annotations,i.scrollIntoView)}const L0=[];function _i(r){return r==null?L0:Array.isArray(r)?r:[r]}var qt=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(qt||(qt={}));const B0=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Vo;try{Vo=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function D0(r){if(Vo)return Vo.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||B0.test(t)))return!0}return!1}function W0(r){return e=>{if(!/\S/.test(e))return qt.Space;if(D0(e))return qt.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return qt.Word;return qt.Other}}let ge=class ht{constructor(e,t,i,n,s,l){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=s,l&&(l._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)Nn(this,o<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Nn(this,i),Ws(this,i)}update(...e){return Dd(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:n}=t;for(let o of e.effects)o.is(Pd.reconfigure)?(t&&(n=new Map,t.compartments.forEach((a,h)=>n.set(h,a)),t=null),n.set(o.value.compartment,o.value.extension)):o.is(Oe.reconfigure)?(t=null,i=o.value):o.is(Oe.appendConfig)&&(t=null,i=_i(i).concat(o.value));let s;t?s=e.startState.values.slice():(t=wf.resolve(i,n,this),s=new ht(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let l=e.startState.facet(zo)?e.newSelection:e.newSelection.asSingle();new ht(t,e.newDoc,l,s,(o,a)=>a.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:T.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),s=[i.range],l=_i(i.effects);for(let o=1;o<t.ranges.length;o++){let a=e(t.ranges[o]),h=this.changes(a.changes),f=h.map(n);for(let u=0;u<o;u++)s[u]=s[u].map(f);let c=n.mapDesc(h,!0);s.push(a.range.map(c)),n=n.compose(f),l=Oe.mapEffects(l,f).concat(Oe.mapEffects(_i(a.effects),c))}return{changes:n,selection:T.create(s,t.mainIndex),effects:l}}changes(e=[]){return e instanceof gt?e:gt.of(e,this.doc.length,this.facet(ht.lineSeparator))}toText(e){return F.of(e.split(this.facet(ht.lineSeparator)||Xo))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Nn(this,t),Ws(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof Ri&&this.config.address[n.id]!=null&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let l=i[s],o=e[s];n.push(l.init(a=>l.spec.fromJSON(o,a)))}}return ht.create({doc:e.doc,selection:T.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=wf.resolve(e.extensions||[],new Map),i=e.doc instanceof F?e.doc:F.of((e.doc||"").split(t.staticFacet(ht.lineSeparator)||Xo)),n=e.selection?e.selection instanceof T?e.selection:T.single(e.selection.anchor,e.selection.head):T.single(0);return wd(n,i.length),t.staticFacet(zo)||(n=n.asSingle()),new ht(t,i,n,t.dynamicSlots.map(()=>null),(s,l)=>l.create(s),null)}get tabSize(){return this.facet(ht.tabSize)}get lineBreak(){return this.facet(ht.lineSeparator)||`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Pe}from"./chunk-5VM5RSS4-C0tCaGEn.js";import{aC as Fe,aD as xe,aE as Me,aF as Ke,aG as Ye,aH as We,aI as Ve,aJ as Ue,aK as He,aL as Xe,aM as je,aN as Ge,aO as qe,aP as Je,aQ as Ze,aR as Qe,aS as $e,aT as et,aU as tt,aV as st,aW as rt,aX as it,aY as at,aZ as nt,a_ as ot,_ as u,A as Y,j as X,a$ as ct,d as lt,l as m,r as ut,u as gt,c as Le,a7 as ht,ay as dt,ax as pt,az as ft,k as bt,b0 as St,ah as ye,ai as xt}from"./mermaid.core-C4R8NQRz.js";import{c as Lt}from"./channel-DUquWRxW.js";import"./app-DDsVI393.js";function yt(e){return Array.isArray(e)}function mt(e){if(Fe(e))return e;const a=xe(e);if(!wt(e))return{};if(yt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return a==="[object String]"?_t(l,e):se(l,e),l}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(a==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(a==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Et(e,a){const o=Object.getOwnPropertySymbols(a);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(a,l)&&(e[l]=a[l])}}function _t(e,a){const o=a.valueOf().length;for(const r in a)Object.hasOwn(a,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=a[r])}function kt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),a=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],y=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var n=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[n-1]),p.setHierarchy(t[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[n]),typeof t[n].length=="number"?this.$=t[n]:this.$=[t[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:p.getLogger().debug("Rule: link: ",t[n],g),this.$={edgeTypeStr:t[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[n-1].edgeTypeStr),Z=p.edgeStrToThickness(t[n-1].edgeTypeStr),D=p.edgeStrToPattern(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",thickness:Z,pattern:D,directions:t[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:p.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:t[n]==="auto"?-1:parseInt(t[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),p.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,n="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}u(Re,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
|
|
1
|
+
import{g as Pe}from"./chunk-5VM5RSS4-D6ahhVKI.js";import{aC as Fe,aD as xe,aE as Me,aF as Ke,aG as Ye,aH as We,aI as Ve,aJ as Ue,aK as He,aL as Xe,aM as je,aN as Ge,aO as qe,aP as Je,aQ as Ze,aR as Qe,aS as $e,aT as et,aU as tt,aV as st,aW as rt,aX as it,aY as at,aZ as nt,a_ as ot,_ as u,A as Y,j as X,a$ as ct,d as lt,l as m,r as ut,u as gt,c as Le,a7 as ht,ay as dt,ax as pt,az as ft,k as bt,b0 as St,ah as ye,ai as xt}from"./mermaid.core-Cf_HDEwk.js";import{c as Lt}from"./channel-UI6sNcoO.js";import"./app-CoFPYBYF.js";function yt(e){return Array.isArray(e)}function mt(e){if(Fe(e))return e;const a=xe(e);if(!wt(e))return{};if(yt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return a==="[object String]"?_t(l,e):se(l,e),l}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(a==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(a==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Et(e,a){const o=Object.getOwnPropertySymbols(a);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(a,l)&&(e[l]=a[l])}}function _t(e,a){const o=a.valueOf().length;for(const r in a)Object.hasOwn(a,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=a[r])}function kt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),a=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],y=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var n=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[n-1]),p.setHierarchy(t[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[n]),typeof t[n].length=="number"?this.$=t[n]:this.$=[t[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:p.getLogger().debug("Rule: link: ",t[n],g),this.$={edgeTypeStr:t[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[n-1].edgeTypeStr),Z=p.edgeStrToThickness(t[n-1].edgeTypeStr),D=p.edgeStrToPattern(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",thickness:Z,pattern:D,directions:t[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:p.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:t[n]==="auto"?-1:parseInt(t[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),p.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,n="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}u(Re,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(P+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(C[0]){case 1:c.push(N),E.push(D.yytext),t.push(D.yylloc),c.push(C[1]),N=null,W=D.yyleng,n=D.yytext,P=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[C[1]][1],F.$=E[E.length-B],F._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Be&&(F._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(F,[n,W,P,A.yy,C[1],E,t].concat(Z)),typeof ee<"u")return ee;B&&(c=c.slice(0,-1*B*2),E=E.slice(0,-1*B),t=t.slice(0,-1*B)),c.push(this.productions_[C[1]][0]),E.push(F.$),t.push(F._$),pe=M[c[c.length-2]][c[c.length-1]],c.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var v={EOF:1,parseError:u(function(i,c){if(this.yy.parser)this.yy.parser.parseError(i,c);else throw new Error(i)},"parseError"),setInput:u(function(g,i){return this.yy=i||this.yy||{},this._input=g,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var i=g.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:u(function(g){var i=g.length,c=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(g){this.unput(this.match.slice(g))},"less"),pastInput:u(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var g=this.pastInput(),i=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ne}from"./chunk-F27PBJKO-CGT4AvxR.js";import{s as Ae,g as Le,a as Ie,b as Me,_ as d,c as Ct,l as ce,d as Be,e as Ve,f as Ot,h as Ye,i as ye,j as Kt,w as Fe,k as Jt,m as ue}from"./mermaid.core-C4R8NQRz.js";import"./app-DDsVI393.js";var Yt=(function(){var t=d(function(yt,m,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=m);return x},"o"),e=[1,24],r=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],kt=[14,42],jt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],k=[1,83],T=[1,84],C=[1,85],R=[12,14,42],re=[12,14,33,42],Lt=[12,14,33,42,76,77,79,80],gt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Wt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,wt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(kt,[2,14]),t(jt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Rt,[2,19]),t(Rt,[2,20]),{25:[1,78]},{27:[1,79]},t(Rt,[2,23]),{35:80,75:81,76:S,77:k,79:T,80:C},{35:86,75:81,76:S,77:k,79:T,80:C},{35:87,75:81,76:S,77:k,79:T,80:C},{35:88,75:81,76:S,77:k,79:T,80:C},{35:89,75:81,76:S,77:k,79:T,80:C},{35:90,75:81,76:S,77:k,79:T,80:C},{35:91,75:81,76:S,77:k,79:T,80:C},{35:92,75:81,76:S,77:k,79:T,80:C},{35:93,75:81,76:S,77:k,79:T,80:C},{35:94,75:81,76:S,77:k,79:T,80:C},{35:95,75:81,76:S,77:k,79:T,80:C},{35:96,75:81,76:S,77:k,79:T,80:C},{35:97,75:81,76:S,77:k,79:T,80:C},{35:98,75:81,76:S,77:k,79:T,80:C},{35:99,75:81,76:S,77:k,79:T,80:C},{35:100,75:81,76:S,77:k,79:T,80:C},{35:101,75:81,76:S,77:k,79:T,80:C},{35:102,75:81,76:S,77:k,79:T,80:C},{35:103,75:81,76:S,77:k,79:T,80:C},{35:104,75:81,76:S,77:k,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:k,79:T,80:C},{35:106,75:81,76:S,77:k,79:T,80:C},{35:107,75:81,76:S,77:k,79:T,80:C},{35:108,75:81,76:S,77:k,79:T,80:C},{35:109,75:81,76:S,77:k,79:T,80:C},{35:110,75:81,76:S,77:k,79:T,80:C},{35:111,75:81,76:S,77:k,79:T,80:C},{35:112,75:81,76:S,77:k,79:T,80:C},{35:113,75:81,76:S,77:k,79:T,80:C},{35:114,75:81,76:S,77:k,79:T,80:C},{35:115,75:81,76:S,77:k,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:k,79:T,80:C},{35:120,75:81,76:S,77:k,79:T,80:C},{35:121,75:81,76:S,77:k,79:T,80:C},{35:122,75:81,76:S,77:k,79:T,80:C},{35:123,75:81,76:S,77:k,79:T,80:C},{35:124,75:81,76:S,77:k,79:T,80:C},{35:125,75:81,76:S,77:k,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(jt,[2,17],{21:22,19:130,22:e,23:r,24:a,26:u,28:i}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:a,26:u,28:i,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Rt,[2,21]),t(Rt,[2,22]),t(R,[2,39]),t(re,[2,71],{75:81,35:132,76:S,77:k,79:T,80:C}),t(Lt,[2,73]),{78:[1,133]},t(Lt,[2,75]),t(Lt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(gt,[2,28]),t(gt,[2,29]),t(gt,[2,30]),t(gt,[2,31]),t(gt,[2,32]),t(gt,[2,33]),t(gt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(jt,[2,18]),t(kt,[2,38]),t(re,[2,72]),t(Lt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(zt,[2,25]),t(zt,[2,26],{12:[1,138]}),t(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],wt=this.table,p="",xt=0,ae=0,we=2,ie=1,Oe=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xt)&&(vt.yy[Xt]=this.yy[Xt]);A.setInput(m,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qt=A.yylloc;o.push(qt);var Pe=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(De,"popStack");function oe(){var B;return B=_.pop()||A.lex()||ie,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(oe,"lex");for(var M,Et,V,Ht,Tt={},Mt,j,le,Bt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=oe()),V=wt[Et]&&wt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Qt="";Bt=[];for(Mt in wt[Et])this.terminals_[Mt]&&Mt>we&&Bt.push("'"+this.terminals_[Mt]+"'");A.showPosition?Qt="Parse error on line "+(xt+1)+`:
|
|
1
|
+
import{d as Ne}from"./chunk-F27PBJKO-CKHJE6FB.js";import{s as Ae,g as Le,a as Ie,b as Me,_ as d,c as Ct,l as ce,d as Be,e as Ve,f as Ot,h as Ye,i as ye,j as Kt,w as Fe,k as Jt,m as ue}from"./mermaid.core-Cf_HDEwk.js";import"./app-CoFPYBYF.js";var Yt=(function(){var t=d(function(yt,m,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=m);return x},"o"),e=[1,24],r=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],kt=[14,42],jt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],k=[1,83],T=[1,84],C=[1,85],R=[12,14,42],re=[12,14,33,42],Lt=[12,14,33,42,76,77,79,80],gt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Wt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,wt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(kt,[2,14]),t(jt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Rt,[2,19]),t(Rt,[2,20]),{25:[1,78]},{27:[1,79]},t(Rt,[2,23]),{35:80,75:81,76:S,77:k,79:T,80:C},{35:86,75:81,76:S,77:k,79:T,80:C},{35:87,75:81,76:S,77:k,79:T,80:C},{35:88,75:81,76:S,77:k,79:T,80:C},{35:89,75:81,76:S,77:k,79:T,80:C},{35:90,75:81,76:S,77:k,79:T,80:C},{35:91,75:81,76:S,77:k,79:T,80:C},{35:92,75:81,76:S,77:k,79:T,80:C},{35:93,75:81,76:S,77:k,79:T,80:C},{35:94,75:81,76:S,77:k,79:T,80:C},{35:95,75:81,76:S,77:k,79:T,80:C},{35:96,75:81,76:S,77:k,79:T,80:C},{35:97,75:81,76:S,77:k,79:T,80:C},{35:98,75:81,76:S,77:k,79:T,80:C},{35:99,75:81,76:S,77:k,79:T,80:C},{35:100,75:81,76:S,77:k,79:T,80:C},{35:101,75:81,76:S,77:k,79:T,80:C},{35:102,75:81,76:S,77:k,79:T,80:C},{35:103,75:81,76:S,77:k,79:T,80:C},{35:104,75:81,76:S,77:k,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:k,79:T,80:C},{35:106,75:81,76:S,77:k,79:T,80:C},{35:107,75:81,76:S,77:k,79:T,80:C},{35:108,75:81,76:S,77:k,79:T,80:C},{35:109,75:81,76:S,77:k,79:T,80:C},{35:110,75:81,76:S,77:k,79:T,80:C},{35:111,75:81,76:S,77:k,79:T,80:C},{35:112,75:81,76:S,77:k,79:T,80:C},{35:113,75:81,76:S,77:k,79:T,80:C},{35:114,75:81,76:S,77:k,79:T,80:C},{35:115,75:81,76:S,77:k,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:k,79:T,80:C},{35:120,75:81,76:S,77:k,79:T,80:C},{35:121,75:81,76:S,77:k,79:T,80:C},{35:122,75:81,76:S,77:k,79:T,80:C},{35:123,75:81,76:S,77:k,79:T,80:C},{35:124,75:81,76:S,77:k,79:T,80:C},{35:125,75:81,76:S,77:k,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(jt,[2,17],{21:22,19:130,22:e,23:r,24:a,26:u,28:i}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:a,26:u,28:i,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Rt,[2,21]),t(Rt,[2,22]),t(R,[2,39]),t(re,[2,71],{75:81,35:132,76:S,77:k,79:T,80:C}),t(Lt,[2,73]),{78:[1,133]},t(Lt,[2,75]),t(Lt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(gt,[2,28]),t(gt,[2,29]),t(gt,[2,30]),t(gt,[2,31]),t(gt,[2,32]),t(gt,[2,33]),t(gt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(jt,[2,18]),t(kt,[2,38]),t(re,[2,72]),t(Lt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(zt,[2,25]),t(zt,[2,26],{12:[1,138]}),t(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],wt=this.table,p="",xt=0,ae=0,we=2,ie=1,Oe=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xt)&&(vt.yy[Xt]=this.yy[Xt]);A.setInput(m,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qt=A.yylloc;o.push(qt);var Pe=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(De,"popStack");function oe(){var B;return B=_.pop()||A.lex()||ie,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(oe,"lex");for(var M,Et,V,Ht,Tt={},Mt,j,le,Bt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=oe()),V=wt[Et]&&wt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Qt="";Bt=[];for(Mt in wt[Et])this.terminals_[Mt]&&Mt>we&&Bt.push("'"+this.terminals_[Mt]+"'");A.showPosition?Qt="Parse error on line "+(xt+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Qt="Parse error on line "+(xt+1)+": Unexpected "+(M==ie?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Qt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:qt,expected:Bt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,ae=A.yyleng,p=A.yytext,xt=A.yylineno,qt=A.yylloc;break;case 2:if(j=this.productions_[V[1]][1],Tt.$=D[D.length-j],Tt._$={first_line:o[o.length-(j||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(j||1)].first_column,last_column:o[o.length-1].last_column},Pe&&(Tt._$.range=[o[o.length-(j||1)].range[0],o[o.length-1].range[1]]),Ht=this.performAction.apply(Tt,[p,ae,xt,vt.yy,V[1],D,o].concat(Oe)),typeof Ht<"u")return Ht;j&&(E=E.slice(0,-1*j*2),D=D.slice(0,-1*j),o=o.slice(0,-1*j)),E.push(this.productions_[V[1]][0]),D.push(Tt.$),o.push(Tt._$),le=wt[E[E.length-2]][E[E.length-1]],E.push(le);break;case 3:return!0}}return!0},"parse")},Re=(function(){var yt={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,C as n}from"./mermaid.core-Cf_HDEwk.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i}from"./mermaid.core-
|
|
1
|
+
import{_ as i}from"./mermaid.core-Cf_HDEwk.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i,j as l,n as d,o}from"./mermaid.core-
|
|
1
|
+
import{_ as i,j as l,n as d,o}from"./mermaid.core-Cf_HDEwk.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,h as b,g as c,x as d,m as e,w as f,f as g,y as h};
|