@maggioli-rd/aicore-agent-chat 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -14
- package/dist/aicore-agent-chat.js +59 -38
- package/dist/aicore-agent-chat.js.map +1 -1
- package/dist/bundle/a2ui-C3GhjTrJ.js +113 -0
- package/dist/bundle/abnfDiagram-S7VZAUFO-DxkzIS8G.js +1 -0
- package/dist/bundle/architecture-WOLXFQ4H-BXMyXdT1.js +1 -0
- package/dist/bundle/architectureDiagram-YGSQEFNW-BmsDn6Ho.js +36 -0
- package/dist/bundle/blockDiagram-APKKGZFW-bG_MVPzT.js +140 -0
- package/dist/bundle/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/dist/bundle/c4Diagram-KJ2TOQU5-BVad-wQe.js +38 -0
- package/dist/bundle/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/bundle/chunk-5VM5RSS4-CwNG0iBi.js +15 -0
- package/dist/bundle/chunk-6MUBBAK2-CeH4cZO-.js +2 -0
- package/dist/bundle/chunk-AXFCVDMN-D0Vqm50X.js +62 -0
- package/dist/bundle/chunk-BG4553SI-DUBI9JbR.js +127 -0
- package/dist/bundle/chunk-DQASFODM-DBWVlIjs.js +10 -0
- package/dist/bundle/chunk-DUW6YSOI-ChybIQ82.js +1 -0
- package/dist/bundle/chunk-HFQBQIA3-D2xPptW8.js +1 -0
- package/dist/bundle/chunk-J5ZVWO5B-DHB__t6z.js +1 -0
- package/dist/bundle/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/bundle/chunk-KQLB2F66-BRGnyo9e.js +1 -0
- package/dist/bundle/chunk-KS47KZWR-DV3Gxewa.js +1 -0
- package/dist/bundle/chunk-LEVMRMFU-BdDTT4pw.js +1 -0
- package/dist/bundle/chunk-M57EVK23-BRqFqW5o.js +1 -0
- package/dist/bundle/chunk-NGNAAXSQ-DreF1ykJ.js +214 -0
- package/dist/bundle/chunk-OY52VR5R-BamrP8d_.js +88 -0
- package/dist/bundle/chunk-QB3YPZ4I-BqUUL29j.js +213 -0
- package/dist/bundle/chunk-R3KSYZAL-gmtEjdKU.js +1 -0
- package/dist/bundle/chunk-STOXU5M4-DdqxXfKq.js +72 -0
- package/dist/bundle/chunk-TU62E6Q5-B4GgWjUW.js +1 -0
- package/dist/bundle/chunk-X4PVCEUW-BcN5Aq5G.js +1 -0
- package/dist/bundle/chunk-XXDRQBXY-BIvjAdC_.js +1 -0
- package/dist/bundle/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/bundle/classDiagram-v2-L25IHNXF-Dw7so3mk.js +217 -0
- package/dist/bundle/cose-bilkent-JH36ORCC-DUvnuVrm.js +1 -0
- package/dist/bundle/cynefin-EF2NZ3EQ-CcVPiRLN.js +1 -0
- package/dist/bundle/cynefinDiagram-L36ESFBY-eO6Z3Kvn.js +62 -0
- package/dist/bundle/cytoscape.esm-CsT4DLSP.js +321 -0
- package/dist/bundle/d3-hierarchy-i5r04UUG.js +1 -0
- package/dist/bundle/d3-scale-BEO6F4Sh.js +1 -0
- package/dist/bundle/d3-scale-chromatic-DhHjp77O.js +1 -0
- package/dist/bundle/d3-selection-CBFxn8wf.js +1 -0
- package/dist/bundle/d3-shape-v1Y4qR5e.js +1 -0
- package/dist/bundle/dagre-SPEB5RXH-ByBZqBaT.js +4 -0
- package/dist/bundle/diagram-3B7GL73J-BkQkIpxz.js +200 -0
- package/dist/bundle/diagram-DNEMPZML-DYthXzRv.js +24 -0
- package/dist/bundle/diagram-L3MUGCDN-D4DIzfHH.js +41 -0
- package/dist/bundle/diagram-LA4NIPWU-C2P-hZD1.js +24 -0
- package/dist/bundle/diagram-MHCOC4E2-BwauFnTV.js +3 -0
- package/dist/bundle/diagram-XPFHEONP-DC_v3Llc.js +30 -0
- package/dist/bundle/dist-CwuaKeLF.js +1 -0
- package/dist/bundle/ebnfDiagram-UZSYDL2S-CmwGlC8L.js +1 -0
- package/dist/bundle/elk-XV6XMXQE-CTlty3p3.js +27 -0
- package/dist/bundle/erDiagram-EYBAPDEH-Bu6phvJH.js +99 -0
- package/dist/bundle/eventmodeling-K75KTNOO-B1q0nOJE.js +1 -0
- package/dist/bundle/flowDiagram-MALGAFMO-D9D_AzXh.js +1 -0
- package/dist/bundle/ganttDiagram-23REXITY-COK7rxO4.js +292 -0
- package/dist/bundle/gitGraph-VSP46ZUC-DS7S_jKI.js +1 -0
- package/dist/bundle/gitGraphDiagram-STJD7YCW-DhVK8Hqh.js +106 -0
- package/dist/bundle/graphlib-Bgy7WbC7.js +1 -0
- package/dist/bundle/info-OHQRW6UA-BjEWvFlW.js +1 -0
- package/dist/bundle/infoDiagram-KBXO4MBG-Dg3zWdHP.js +2 -0
- package/dist/bundle/ishikawaDiagram-M35NCXHK-C2g8ghrV.js +70 -0
- package/dist/bundle/journeyDiagram-OPLOXDXO-DMZkL-i1.js +139 -0
- package/dist/bundle/kanban-definition-BZKZHSQY-Dr43IiJD.js +89 -0
- package/dist/bundle/katex-rAoShGnF.js +257 -0
- package/dist/bundle/math-Cx-Q-b8s.js +262 -0
- package/dist/bundle/mermaid-DaDuEHir.js +43 -0
- package/dist/bundle/mermaid-parser.core-Bv_Zx_ZE.js +6 -0
- package/dist/bundle/mindmap-definition-I2QAS2VK-BXCWJ_1R.js +98 -0
- package/dist/bundle/packet-JDAUHWVQ-CgB2qE5t.js +1 -0
- package/dist/bundle/pegDiagram-FD4XPPHP-CR58gOgF.js +1 -0
- package/dist/bundle/pie-XZMESJXO-CvXWTfIG.js +1 -0
- package/dist/bundle/pieDiagram-J4AKIIQI-D0GhbNJg.js +39 -0
- package/dist/bundle/quadrantDiagram-XTYBLID2-BKBEdwvC.js +7 -0
- package/dist/bundle/radar-ABXABTNO-8V_xx_AB.js +1 -0
- package/dist/bundle/railroad-I3PHUGI6-Bvb0GUva.js +1 -0
- package/dist/bundle/railroad-abnf-LNEFI6M7-D8xGcObq.js +1 -0
- package/dist/bundle/railroad-ebnf-DWYD2UWJ-Ch8wBawI.js +1 -0
- package/dist/bundle/railroad-peg-JR7BVNR7-CGndbjed.js +1 -0
- package/dist/bundle/railroadDiagram-MRQ6NCDL-DvqHkO2C.js +1 -0
- package/dist/bundle/requirementDiagram-Y7LWUY3S-bCLAM9sl.js +84 -0
- package/dist/bundle/rolldown-runtime-BNaE-Ejt.js +1 -0
- package/dist/bundle/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/bundle/sankeyDiagram-WGJFYUXA-8ehuPvHQ.js +40 -0
- package/dist/bundle/sequenceDiagram-5NDRBG5M-Cdg1YzMw.js +169 -0
- package/dist/bundle/sizeCapture-INFHLROL-Ct7XApxm.js +1 -0
- package/dist/bundle/stateDiagram-v2-FJ4FJNEA-B69v2YYC.js +291 -0
- package/dist/bundle/swimlanes-UMQ2AFYF-C_qI6rnK.js +1 -0
- package/dist/bundle/swimlanesDiagram-OMPLPG4O-CS11qSCX.js +8 -0
- package/dist/bundle/timeline-definition-SEUHKTQE-BCU0-H8D.js +120 -0
- package/dist/bundle/treeView-D4JQ5SDB-CpjURS-c.js +1 -0
- package/dist/bundle/treemap-SAJKECNS-CFFTaiIN.js +1 -0
- package/dist/bundle/usecaseDiagram-AFA6YXN4-46V1jsea.js +476 -0
- package/dist/bundle/vega-eBn1AexV.js +33 -0
- package/dist/bundle/vennDiagram-NNMJR3RB-q4Q4x2Q6.js +34 -0
- package/dist/bundle/wardley-7MLQ67FV-DhnATL7b.js +1 -0
- package/dist/bundle/wardleyDiagram-S7YFUSEH-BHIufnZW.js +78 -0
- package/dist/bundle/xychartDiagram-GGNKY7IX-CxAjpN3O.js +7 -0
- package/dist/chunks/a2ui-BLaPxJ9N.js +961 -0
- package/dist/chunks/a2ui-BLaPxJ9N.js.map +1 -0
- package/dist/chunks/math-D5IXRTov.js +86 -0
- package/dist/chunks/math-D5IXRTov.js.map +1 -0
- package/dist/chunks/mermaid-j9RNkOnL.js +197 -0
- package/dist/chunks/mermaid-j9RNkOnL.js.map +1 -0
- package/dist/chunks/rich-C2iN_5zh.js +156 -0
- package/dist/chunks/rich-C2iN_5zh.js.map +1 -0
- package/dist/chunks/sanitize-COLQzplk.js +240 -0
- package/dist/chunks/sanitize-COLQzplk.js.map +1 -0
- package/dist/chunks/{src-DPfU5Bd2.js → src-Blgo9nVC.js} +387 -73
- package/dist/chunks/src-Blgo9nVC.js.map +1 -0
- package/dist/chunks/vega-BkX1Fjq6.js +301 -0
- package/dist/chunks/vega-BkX1Fjq6.js.map +1 -0
- package/dist/define.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/element/i18n.d.ts +21 -2
- package/dist/types/element/index.d.ts +11 -2
- package/dist/types/element/markdown.d.ts +6 -3
- package/dist/types/element/rich/a2ui-format.d.ts +45 -0
- package/dist/types/element/rich/a2ui-icons.d.ts +1 -0
- package/dist/types/element/rich/a2ui-views.d.ts +37 -0
- package/dist/types/element/rich/a2ui.d.ts +2 -0
- package/dist/types/element/rich/index.d.ts +66 -0
- package/dist/types/element/rich/math.d.ts +4 -0
- package/dist/types/element/rich/mermaid.d.ts +2 -0
- package/dist/types/element/rich/vega.d.ts +2 -0
- package/dist/types/element/sanitize.d.ts +34 -0
- package/dist/types/element/styles.d.ts +1 -1
- package/dist/types/jsx.d.ts +2 -0
- package/package.json +12 -6
- package/dist/chunks/src-DPfU5Bd2.js.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-BNaE-Ejt.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./chunk-DUW6YSOI-ChybIQ82.js";import{r}from"./chunk-M57EVK23-BRqFqW5o.js";import{a as i,d as a,f as o,o as s,u as c}from"./chunk-DQASFODM-DBWVlIjs.js";import{r as l}from"./chunk-LEVMRMFU-BdDTT4pw.js";import{o as u}from"./chunk-AXFCVDMN-D0Vqm50X.js";import{_ as d,a as f,b as p,f as m,g as h,i as g,l as _,o as v,p as y,q as b,x,y as S}from"./chunk-6MUBBAK2-CeH4cZO-.js";import{$ as C,I as w,J as T,K as E,L as D,N as O,P as k,Q as A,S as ee,T as j,V as te,W as ne,Z as M,b as N,c as re,f as P,g as F,j as I,l as L,m as R,n as ie,p as ae,r as oe,s as se,t as ce,u as le,w as ue,x as de,y as z}from"./chunk-BG4553SI-DUBI9JbR.js";import{n as B,r as fe,t as V}from"./d3-selection-CBFxn8wf.js";import"./chunk-X4PVCEUW-BcN5Aq5G.js";import{a as pe}from"./chunk-STOXU5M4-DdqxXfKq.js";import{i as me}from"./chunk-R3KSYZAL-gmtEjdKU.js";import{c as he,d as ge,l as _e,o as ve,s as ye}from"../aicore-agent-chat.js";var be=/* @__PURE__ */ t(e=>{let{securityLevel:t}=N(),n=V(`body`);if(t===`sandbox`){let t=V(`#i${e}`).node()?.contentDocument??document;n=V(t.body)}return n.select(`#${e}`)},`selectSvgElement`);function xe(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Se(e){if(e==null)return!0;if(b(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!x(e)&&!p(e)&&!S(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return xe(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Ce={common:se,getConfig:z,insertCluster:r,insertEdge:i,insertEdgeLabel:s,insertMarkers:c,insertNode:l,interpolateToCurve:m,labelHelper:u,log:B,positionEdgeLabel:o},we=[`elk.stress`,`elk.force`,`elk.mrtree`,`elk.sporeOverlap`,`elk.box`,`elk.rectpacking`],Te=/* @__PURE__ */ Object.create(null),Ee=/* @__PURE__ */ t(e=>{for(let t of e)Te[t.name]=t},`registerLayoutLoaders`),De=/* @__PURE__ */ t(()=>{let e=/* @__PURE__ */ t(async()=>await import(`./elk-XV6XMXQE-CTlty3p3.js`),`loader`);return[{name:`elk`,loader:e,algorithm:`elk.layered`},...we.map(t=>({name:t,loader:e,algorithm:t}))]},`elkLayoutLoaders`);(/* @__PURE__ */ t(()=>{Ee([{name:`dagre`,loader:/* @__PURE__ */ t(async()=>await import(`./dagre-SPEB5RXH-ByBZqBaT.js`),`loader`)},{name:`swimlane`,loader:/* @__PURE__ */ t(async()=>await import(`./swimlanes-UMQ2AFYF-C_qI6rnK.js`),`loader`)},{name:`cose-bilkent`,loader:/* @__PURE__ */ t(async()=>await import(`./cose-bilkent-JH36ORCC-DUvnuVrm.js`),`loader`)},...De()])},`registerDefaultLayoutLoaders`))();var Oe=/* @__PURE__ */ t(async(e,t)=>{if(!Object.hasOwn(Te,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=Te[e.layoutAlgorithm],i=await r.loader();n(t,e.config);let o=await i.render(e,t,Ce,{algorithm:r.algorithm});return a(t.node()),o},`render`),ke=`dagre`,Ae=/* @__PURE__ */ t((e=``,{fallback:t=ke}={})=>{if(Object.hasOwn(Te,e))return e;for(let n of[t,ke])if(Object.hasOwn(Te,n))return B.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Neither layout algorithm ${e}, ${t}, nor ${ke} is registered.`)},`getRegisteredLayoutAlgorithm`);function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}t(je,`getDefaultExportFromCjs`);var H={},Me={},U={},Ne;function W(){if(Ne)return U;Ne=1;function e(e){return e==null}t(e,`isNothing`);function n(e){return typeof e==`object`&&!!e}t(n,`isObject`);function r(t){return Array.isArray(t)?t:e(t)?[]:[t]}t(r,`toArray`);function i(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}t(i,`extend`);function a(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}t(a,`repeat`);function o(e){return e===0&&1/e==-1/0}return t(o,`isNegativeZero`),U.isNothing=e,U.isObject=n,U.toArray=r,U.repeat=a,U.isNegativeZero=o,U.extend=i,U}t(W,`requireCommon`);var Pe,Fe;function G(){if(Fe)return Pe;Fe=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
2
|
+
|
|
3
|
+
`+e.mark.snippet),r+` `+n):r}t(e,`formatError`);function n(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(/* @__PURE__ */ Error()).stack||``}return t(n,`YAMLException2`),n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=/* @__PURE__ */ t(function(t){return this.name+`: `+e(this,t)},`toString`),Pe=n,Pe}t(G,`requireException`);var Ie,Le;function Re(){if(Le)return Ie;Le=1;let e=W();function n(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}t(n,`getLine`);function r(t,n){return e.repeat(` `,n-t.length)+t}t(r,`padStart`);function i(t,i){if(i=Object.create(i||null),!t.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(t.buffer);)s.push(c.index),o.push(c.index+c[0].length),t.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(t.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=n(t.buffer,o[l-a],s[l-a],t.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+r((t.line-a+1).toString(),d)+` | `+c.str+`
|
|
4
|
+
`+u}let p=n(t.buffer,o[l],s[l],t.position,f);u+=e.repeat(` `,i.indent)+r((t.line+1).toString(),d)+` | `+p.str+`
|
|
5
|
+
`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
6
|
+
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=n(t.buffer,o[l+a],s[l+a],t.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+r((t.line+a+1).toString(),d)+` | `+c.str+`
|
|
7
|
+
`}return u.replace(/\n$/,``)}return t(i,`makeSnippet`),Ie=i,Ie}t(Re,`requireSnippet`);var ze,Be;function K(){if(Be)return ze;Be=1;let e=G(),n=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],r=[`scalar`,`sequence`,`mapping`];function i(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}t(i,`compileStyleAliases`);function a(t,a){if(a||={},Object.keys(a).forEach(function(r){if(n.indexOf(r)===-1)throw new e(`Unknown option "`+r+`" is met in definition of "`+t+`" YAML type.`)}),this.options=a,this.tag=t,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+t+`" YAML type.`)}return t(a,`Type2`),ze=a,ze}t(K,`requireType`);var Ve,He;function Ue(){if(He)return Ve;He=1;let e=G(),n=K();function r(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}t(r,`compileList`);function i(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}t(n,`collectType`);for(let e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return e}t(i,`compileMap`);function a(e){return this.extend(e)}return t(a,`Schema2`),a.prototype.extend=/* @__PURE__ */ t(function(t){let o=[],s=[];if(t instanceof n)s.push(t);else if(Array.isArray(t))s=s.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(o=o.concat(t.implicit)),t.explicit&&(s=s.concat(t.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(t){if(!(t instanceof n))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(t.loadKind&&t.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(t.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(t){if(!(t instanceof n))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(a.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=r(c,`implicit`),c.compiledExplicit=r(c,`explicit`),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},`extend`),Ve=a,Ve}t(Ue,`requireSchema`);var We,Ge;function Ke(){return Ge||(Ge=1,We=new(K())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:/* @__PURE__ */ t(function(e){return e===null?``:e},`construct`)})),We}t(Ke,`requireStr`);var qe,Je;function Ye(){return Je||(Je=1,qe=new(K())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:/* @__PURE__ */ t(function(e){return e===null?[]:e},`construct`)})),qe}t(Ye,`requireSeq`);var Xe,Ze;function Qe(){return Ze||(Ze=1,Xe=new(K())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:/* @__PURE__ */ t(function(e){return e===null?{}:e},`construct`)})),Xe}t(Qe,`requireMap`);var $e,et;function tt(){return et||(et=1,$e=new(Ue())({explicit:[Ke(),Ye(),Qe()]})),$e}t(tt,`requireFailsafe`);var nt,rt;function it(){if(rt)return nt;rt=1;let e=K();function n(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}t(n,`resolveYamlNull`);function r(){return null}t(r,`constructYamlNull`);function i(e){return e===null}return t(i,`isNull`),nt=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{canonical:/* @__PURE__ */ t(function(){return`~`},`canonical`),lowercase:/* @__PURE__ */ t(function(){return`null`},`lowercase`),uppercase:/* @__PURE__ */ t(function(){return`NULL`},`uppercase`),camelcase:/* @__PURE__ */ t(function(){return`Null`},`camelcase`),empty:/* @__PURE__ */ t(function(){return``},`empty`)},defaultStyle:`lowercase`}),nt}t(it,`require_null`);var at,ot;function st(){if(ot)return at;ot=1;let e=K();function n(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}t(n,`resolveYamlBoolean`);function r(e){return e===`true`||e===`True`||e===`TRUE`}t(r,`constructYamlBoolean`);function i(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return t(i,`isBoolean`),at=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{lowercase:/* @__PURE__ */ t(function(e){return e?`true`:`false`},`lowercase`),uppercase:/* @__PURE__ */ t(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:/* @__PURE__ */ t(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`}),at}t(st,`requireBool`);var ct,lt;function ut(){if(lt)return ct;lt=1;let e=W(),n=K();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}t(r,`isHexCode`);function i(e){return e>=48&&e<=55}t(i,`isOctCode`);function a(e){return e>=48&&e<=57}t(a,`isDecCode`);function o(e){if(e===null)return!1;let t=e.length,n=0,o=!1;if(!t)return!1;let c=e[n];if((c===`-`||c===`+`)&&(c=e[++n]),c===`0`){if(n+1===t)return!0;if(c=e[++n],c===`b`){for(n++;n<t;n++){if(c=e[n],c!==`0`&&c!==`1`)return!1;o=!0}return o&&isFinite(s(e))}if(c===`x`){for(n++;n<t;n++){if(!r(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(s(e))}if(c===`o`){for(n++;n<t;n++){if(!i(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(s(e))}}for(;n<t;n++){if(!a(e.charCodeAt(n)))return!1;o=!0}return o?isFinite(s(e)):!1}t(o,`resolveYamlInteger`);function s(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}t(s,`parseYamlInteger`);function c(e){return s(e)}t(c,`constructYamlInteger`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return t(l,`isInteger`),ct=new n(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:o,construct:c,predicate:l,represent:{binary:/* @__PURE__ */ t(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:/* @__PURE__ */ t(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:/* @__PURE__ */ t(function(e){return e.toString(10)},`decimal`),hexadecimal:/* @__PURE__ */ t(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),ct}t(ut,`requireInt`);var dt,ft;function pt(){if(ft)return dt;ft=1;let e=W(),n=K(),r=/* @__PURE__ */ RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),i=/* @__PURE__ */ RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function a(e){return e===null||!r.test(e)?!1:isFinite(parseFloat(e,10))?!0:i.test(e)}t(a,`resolveYamlFloat`);function o(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}t(o,`constructYamlFloat`);let s=/^[-+]?[0-9]+e/;function c(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return s.test(r)?r.replace(`e`,`.e`):r}t(c,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return t(l,`isFloat`),dt=new n(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:o,predicate:l,represent:c,defaultStyle:`lowercase`}),dt}t(pt,`requireFloat`);var mt,ht;function gt(){return ht||(ht=1,mt=tt().extend({implicit:[it(),st(),ut(),pt()]})),mt}t(gt,`requireJson`);var _t,vt;function yt(){return vt||(vt=1,_t=gt()),_t}t(yt,`requireCore`);var bt,xt;function St(){if(xt)return bt;xt=1;let e=K(),n=/* @__PURE__ */ RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),r=/* @__PURE__ */ RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function i(e){return e===null?!1:n.exec(e)!==null||r.exec(e)!==null}t(i,`resolveYamlTimestamp`);function a(e){let t=0,i=null,a=n.exec(e);if(a===null&&(a=r.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+=`0`;t=+t}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,t));return i&&f.setTime(f.getTime()-i),f}t(a,`constructYamlTimestamp`);function o(e){return e.toISOString()}return t(o,`representYamlTimestamp`),bt=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:i,construct:a,instanceOf:Date,represent:o}),bt}t(St,`requireTimestamp`);var Ct,wt;function Tt(){if(wt)return Ct;wt=1;let e=K();function n(e){return e===`<<`||e===null}return t(n,`resolveYamlMerge`),Ct=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:n}),Ct}t(Tt,`requireMerge`);var Et,Dt;function Ot(){if(Dt)return Et;Dt=1;let e=K();function n(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}t(n,`resolveYamlBinary`);function r(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
+
\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}t(r,`constructYamlBinary`);function i(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}t(i,`representYamlBinary`);function a(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return t(a,`isBinary`),Et=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:n,construct:r,predicate:a,represent:i}),Et}t(Ot,`requireBinary`);var kt,At;function jt(){if(At)return kt;At=1;let e=K(),n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(e){if(e===null)return!0;let t={},i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(r.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(n.call(a,s)){if(!o)o=!0;else return!1}if(!o||n.call(t,s))return!1;Object.defineProperty(t,s,{value:!0})}return!0}t(i,`resolveYamlOmap`);function a(e){return e===null?[]:e}return t(a,`constructYamlOmap`),kt=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:i,construct:a}),kt}t(jt,`requireOmap`);var Mt,Nt;function Pt(){if(Nt)return Mt;Nt=1;let e=K(),n=Object.prototype.toString;function r(e){if(e===null)return!0;let t=e,r=Array(t.length);for(let e=0,i=t.length;e<i;e+=1){let i=t[e];if(n.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}t(r,`resolveYamlPairs`);function i(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return t(i,`constructYamlPairs`),Mt=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:r,construct:i}),Mt}t(Pt,`requirePairs`);var Ft,It;function Lt(){if(It)return Ft;It=1;let e=K(),n=Object.prototype.hasOwnProperty;function r(e){if(e===null)return!0;let t=e;for(let e in t)if(n.call(t,e)&&t[e]!==null)return!1;return!0}t(r,`resolveYamlSet`);function i(e){return e===null?{}:e}return t(i,`constructYamlSet`),Ft=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:r,construct:i}),Ft}t(Lt,`requireSet`);var Rt,zt;function Bt(){return zt||(zt=1,Rt=yt().extend({implicit:[St(),Tt()],explicit:[Ot(),jt(),Pt(),Lt()]})),Rt}t(Bt,`require_default`);var Vt;function Ht(){if(Vt)return Me;Vt=1;let e=W(),n=G(),r=Re(),i=Bt(),a=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,s=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,u=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function d(e){return Object.prototype.toString.call(e)}t(d,`_class`);function f(e){return e===10||e===13}t(f,`isEol`);function p(e){return e===9||e===32}t(p,`isWhiteSpace`);function m(e){return e===9||e===32||e===10||e===13}t(m,`isWsOrEol`);function h(e){return e===44||e===91||e===93||e===123||e===125}t(h,`isFlowIndicator`);function g(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}t(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}t(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}t(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
11
|
+
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}t(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}t(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}t(x,`setProperty`);let S=Array(256),C=Array(256);for(let e=0;e<256;e++)S[e]=+!!y(e),C[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(w,`State`);function T(e,t){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=r(i),new n(t,i)}t(T,`generateError`);function E(e,t){throw T(e,t)}t(E,`throwError`);function D(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}t(D,`throwWarning`);function O(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];a.call(n,t)||(n[t]={existed:a.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}t(O,`storeAnchor`);function k(e){e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null))}t(k,`beginAnchorTransaction`);function A(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],i=Object.keys(t);for(let e=0,n=i.length;e<n;e+=1){let n=i[e];a.call(r,n)||(r[n]=t[n])}}t(A,`commitAnchorTransaction`);function ee(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}t(ee,`rollbackAnchorTransaction`);function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}t(j,`snapshotState`);function te(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}t(te,`restoreState`);let ne={YAML:/* @__PURE__ */ t(function(e,t,n){e.version!==null&&E(e,`duplication of %YAML directive`),n.length!==1&&E(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&E(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&E(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&D(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:/* @__PURE__ */ t(function(e,t,n){let r;n.length!==2&&E(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],l.test(i)||E(e,`ill-formed tag handle (first argument) of the TAG directive`),a.call(e.tagMap,i)&&E(e,`there is a previously declared suffix for "`+i+`" tag handle`),u.test(r)||E(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{E(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r},`handleTagDirective`)};function M(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||E(e,`expected valid JSON character`)}else o.test(i)&&E(e,`the stream contains non-printable characters`);e.result+=i}}t(M,`captureSegment`);function N(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&E(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`)}t(N,`chargeMergeWork`);function re(t,n,r,i){e.isObject(r)||E(t,`cannot merge mappings; the provided source object is unacceptable`),N(t);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];N(t),a.call(n,s)||(x(n,s,r[s]),i[s]=!0)}}t(re,`mergeMappings`);function P(e,t,n,r,i,o,s,c,l){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let t=0,n=i.length;t<n;t+=1)Array.isArray(i[t])&&E(e,`nested arrays are not supported inside keys`),typeof i==`object`&&d(i[t])===`[object Object]`&&(i[t]=`[object Object]`)}if(typeof i==`object`&&d(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o)){o.length>100&&E(e,`abnormal merge sequence size`);for(let r=0,i=o.length;r<i;r+=1)re(e,t,o[r],n)}else re(e,t,o,n)}else!e.json&&!a.call(n,i)&&a.call(t,i)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,E(e,`duplicated mapping key`)),x(t,i,o),delete n[i];return t}t(P,`storeMappingPair`);function F(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):E(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}t(F,`readLineBreak`);function I(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;p(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(f(i))for(F(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&D(e,`deficient indentation`),r}t(I,`skipSeparationSpace`);function L(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||m(n)))}t(L,`testDocumentSeparator`);function R(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
|
|
12
|
+
`,n-1))}t(R,`writeFoldedLines`);function ie(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(m(d)||h(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96)return!1;if(d===63||d===45){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;d!==0;){if(d===58){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))break}else if(d===35){if(m(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&L(e)||n&&h(d))break;else if(f(d)){if(o=e.line,s=e.lineStart,c=e.lineIndent,I(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(M(e,r,i,!1),R(e,e.line-o),r=i=e.position,!1),p(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return M(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}t(ie,`readPlainScalar`);function ae(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(M(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else f(i)?(M(e,n,r,!0),R(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&L(e)?E(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));E(e,`unexpected end of the stream within a single quoted scalar`)}t(ae,`readSingleQuotedScalar`);function oe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return M(e,n,e.position,!0),e.position++,!0;else if(a===92){if(M(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))I(e,!1,t);else if(a<256&&S[a])e.result+=C[a],e.position++;else if((i=_(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=g(a))>=0?n=(n<<4)+i:E(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else E(e,`unknown escape sequence`);n=r=e.position}else f(a)?(M(e,n,r,!0),R(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&L(e)?E(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));E(e,`unexpected end of the stream within a double quoted scalar`)}t(oe,`readDoubleQuotedScalar`);function se(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p=/* @__PURE__ */ Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&O(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(I(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&E(e,`expected the node content, but found ','`):E(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&m(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,I(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,V(e,t,1,!1,!0),g=e.tag,h=e.result,I(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),I(e,!0,t),V(e,t,1,!1,!0),_=e.result),f?P(e,s,p,g,h,_,r,i,a):u?s.push(P(e,null,p,g,h,_,r,i,a)):s.push(h),I(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}E(e,`unexpected end of the stream within a flow collection`)}t(se,`readFlowCollection`);function ce(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,d=t.input.charCodeAt(t.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)i===1?i=d===43?3:2:E(t,`repeat of a chomping mode identifier`);else if((u=v(d))>=0)u===0?E(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?E(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(p(d)){do d=t.input.charCodeAt(++t.position);while(p(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!f(d)&&d!==0)}for(;d!==0;){for(F(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),f(d)){c++;continue}if(!o&&s===0&&E(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
|
|
13
|
+
`,a?1+c:c):i===1&&a&&(t.result+=`
|
|
14
|
+
`);break}r?p(d)?(l=!0,t.result+=e.repeat(`
|
|
15
|
+
`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
|
|
16
|
+
`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
|
|
17
|
+
`,c):t.result+=e.repeat(`
|
|
18
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!f(d)&&d!==0;)d=t.input.charCodeAt(++t.position);M(t,n,t.position,!1)}return!0}t(ce,`readBlockScalar`);function le(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&O(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,`tab characters must not be used in indentation`)),o===45&&m(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,I(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(V(e,t,3,!1,!0),i.push(e.result),I(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)E(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}t(le,`readBlockSequence`);function ue(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=/* @__PURE__ */ Object.create(null),d=null,f=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&O(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&m(y))v===63?(g&&(P(e,l,u,d,f,null,i,a,o),d=f=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):E(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!V(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);p(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),m(v)||E(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(P(e,l,u,d,f,null,i,a,o),d=f=h=null),_=!0,g=!1,r=!1,d=e.tag,f=e.result;else if(_)E(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)E(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),V(e,t,4,!0,r)&&(g?f=e.result:h=e.result),g||(P(e,l,u,d,f,h,i,a,o),d=f=h=null),I(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)E(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&P(e,l,u,d,f,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}t(ue,`readBlockMapping`);function de(e){let t=!1,n=!1,r,i,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&E(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let s=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(i=e.input.slice(s,e.position),o=e.input.charCodeAt(++e.position)):E(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!m(o);)o===33&&(n?E(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(s-1,e.position+1),l.test(r)||E(e,`named tag handle cannot contain such characters`),n=!0,s=e.position+1)),o=e.input.charCodeAt(++e.position);i=e.input.slice(s,e.position),c.test(i)&&E(e,`tag suffix cannot contain flow indicator characters`)}i&&!u.test(i)&&E(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{E(e,`tag name is malformed: `+i)}return t?e.tag=i:a.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:r===`!`?e.tag=`!`+i:r===`!!`?e.tag=`tag:yaml.org,2002:`+i:E(e,`undeclared tag handle "`+r+`"`),!0}t(de,`readTagProperty`);function z(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&E(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!m(t)&&!h(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&E(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}t(z,`readAnchorProperty`);function B(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!m(t)&&!h(t);)t=e.input.charCodeAt(++e.position);e.position===n&&E(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return a.call(e.anchorMap,r)||E(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],I(e,!0,-1),!0}t(B,`readAlias`);function fe(e,t,n,r){let i=j(e);return k(e),te(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ue(e,n,r)&&e.kind===`mapping`?(A(e),!0):(ee(e),te(e,i),!1)}t(fe,`tryReadBlockMappingFromProperty`);function V(e,t,n,r,i){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&E(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&I(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=j(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!de(e)&&!z(e))break;d===null&&(d=r),I(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||i,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(le(e,m)||ue(e,m,p))||se(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&fe(e,d,d.position-d.lineStart,p)||o&&ce(e,p)||ae(e,p)||oe(e,p)?u=!0:B(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&E(e,`alias node should not have any properties`)):ie(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&O(e,e.anchor,e.result)}}else c===0&&(u=s&&le(e,m))}if(e.tag===null)e.anchor!==null&&O(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&E(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&O(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(a.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||E(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&E(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&O(e,e.anchor,e.result)):E(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}t(V,`composeNode`);function pe(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=/* @__PURE__ */ Object.create(null),e.anchorMap=/* @__PURE__ */ Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(I(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);let i=e.input.slice(t,e.position),o=[];for(i.length<1&&E(e,`directive name must not be less than one character in length`);r!==0;){for(;p(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!f(r));break}if(f(r))break;for(t=e.position;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&F(e),a.call(ne,i)?ne[i](e,i,o):D(e,`unknown document directive "`+i+`"`)}I(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,I(e,!0,-1)):n&&E(e,`directives end mark is expected`),V(e,e.lineIndent-1,4,!1,!0),I(e,!0,-1),e.checkLineBreaks&&s.test(e.input.slice(t,e.position))&&D(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&L(e)?e.input.charCodeAt(e.position)===46&&(e.position+=3,I(e,!0,-1)):e.position<e.length-1&&E(e,`end of the stream or a document separator is expected`)}t(pe,`readDocument`);function me(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new w(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,E(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)pe(n);return n.documents}t(me,`loadDocuments`);function he(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=me(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}t(he,`loadAll2`);function ge(e,t){let r=me(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new n(`expected a single document in the stream, but found more`)}}return t(ge,`load2`),Me.loadAll=he,Me.load=ge,Me}t(Ht,`requireLoader`);var Ut={},Wt;function Gt(){if(Wt)return Ut;Wt=1;let e=W(),n=G(),r=Bt(),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=65279,s={};s[0]=`\\0`,s[7]=`\\a`,s[8]=`\\b`,s[9]=`\\t`,s[10]=`\\n`,s[11]=`\\v`,s[12]=`\\f`,s[13]=`\\r`,s[27]=`\\e`,s[34]=`\\"`,s[92]=`\\\\`,s[133]=`\\N`,s[160]=`\\_`,s[8232]=`\\L`,s[8233]=`\\P`;let c=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function u(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let i=0,o=r.length;i<o;i+=1){let o=r[i],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&a.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}t(u,`compileStyleMap`);function d(t){let r,i,a=t.toString(16).toUpperCase();if(t<=255)r=`x`,i=2;else if(t<=65535)r=`u`,i=4;else if(t<=4294967295)r=`U`,i=8;else throw new n(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}t(d,`encodeHex`);function f(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=u(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}t(f,`State`);function p(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(`
|
|
20
|
+
`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
|
|
21
|
+
`&&(a+=r),a+=e}return a}t(p,`indentString`);function m(t,n){return`
|
|
22
|
+
`+e.repeat(` `,t.indent*n)}t(m,`generateNextLine`);function h(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}t(h,`testImplicitResolving`);function g(e){return e===32||e===9}t(g,`isWhitespace`);function _(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==o||e>=65536&&e<=1114111}t(_,`isPrintable`);function v(e){return _(e)&&e!==o&&e!==13&&e!==10}t(v,`isNsCharOrWhitespace`);function y(e,t,n){let r=v(e),i=r&&!g(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||v(t)&&!g(t)&&e===35||t===58&&i}t(y,`isPlainSafe`);function b(e){return _(e)&&e!==o&&!g(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}t(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}t(x,`isPlainSafeLast`);function S(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}t(S,`codePointAt`);function C(e){return/^\n* /.test(e)}t(C,`needIndentIndicator`);function w(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=b(S(e,0))&&x(S(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=S(e,c),!_(l))return 5;h&&=y(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=S(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!_(l))return 5;h&&=y(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&C(e)?5:o?a===2?5:2:f?4:3}t(w,`chooseScalarStyle`);function T(e,r,i,a,o){e.dump=(function(){if(r.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(c.indexOf(r)!==-1||l.test(r)))return e.quotingType===2?`"`+r+`"`:`'`+r+`'`;let s=e.indent*Math.max(1,i),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),d=a||e.flowLevel>-1&&i>=e.flowLevel;function f(t){return h(e,t)}switch(t(f,`testAmbiguity`),w(r,d,e.indent,u,f,e.quotingType,e.forceQuotes&&!a,o)){case 1:return r;case 2:return`'`+r.replace(/'/g,`''`)+`'`;case 3:return`|`+E(r,e.indent)+D(p(r,s));case 4:return`>`+E(r,e.indent)+D(p(O(r,u),s));case 5:return`"`+A(r)+`"`;default:throw new n(`impossible error: invalid scalar style`)}})()}t(T,`writeScalar`);function E(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===`
|
|
23
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
24
|
+
`||e===`
|
|
25
|
+
`)?`+`:r?``:`-`)+`
|
|
26
|
+
`}t(E,`blockHeader`);function D(e){return e[e.length-1]===`
|
|
27
|
+
`?e.slice(0,-1):e}t(D,`dropEndingNewline`);function O(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
28
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,k(e.slice(0,r),t)})(),i=e[0]===`
|
|
29
|
+
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
30
|
+
`:``)+k(n,t),i=a}return r}t(O,`foldString`);function k(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
31
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
32
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
33
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}t(k,`foldLine`);function A(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=S(e,r);let i=s[n];!i&&_(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||d(n)}return t}t(A,`escapeString`);function ee(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(N(e,t,a,!1,!1)||a===void 0&&N(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}t(ee,`writeFlowSequence`);function j(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(N(e,t+1,o,!0,!0,!1,!0)||o===void 0&&N(e,t+1,null,!0,!0,!1,!0))&&(r&&i===``||(i+=m(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}t(j,`writeBlockSequence`);function te(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),N(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),N(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}t(te,`writeFlowMapping`);function ne(e,t,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new n(`sortKeys must be a boolean or a function`);for(let n=0,o=s.length;n<o;n+=1){let o=``;i&&a===``||(o+=m(e,t));let c=s[n],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!N(e,t+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=m(e,t)),N(e,t+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}t(ne,`writeBlockMapping`);function M(e,t,r){let o=r?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==`object`&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.multi&&c.representName?c.representName(t):c.tag:`?`,c.represent){let r=e.styleMap[c.tag]||c.defaultStyle,o;if(i.call(c.represent)===`[object Function]`)o=c.represent(t,r);else if(a.call(c.represent,r))o=c.represent[r](t,r);else throw new n(`!<`+c.tag+`> tag resolver accepts not "`+r+`" style`);e.dump=o}return!0}}return!1}t(M,`detectType`);function N(e,t,r,a,o,s,c){e.tag=null,e.dump=r,M(e,r,!1)||M(e,r,!0);let l=i.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>t;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(ne(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(te(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&t>0?j(e,t-1,e.dump,o):j(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(ee(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&T(e,e.dump,t,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new n(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}t(N,`writeNode`);function re(e,t){let n=[],r=[];P(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}t(re,`getDuplicateReferences`);function P(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)P(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)P(e[r[i]],t,n)}}}t(P,`inspectNode`);function F(e,t){t||={};let n=new f(t);n.noRefs||re(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),N(n,0,r,!0,!0)?n.dump+`
|
|
34
|
+
`:``}return t(F,`dump2`),Ut.dump=F,Ut}t(Gt,`requireDumper`);var Kt;function qt(){if(Kt)return H;Kt=1;let e=Ht(),n=Gt();function r(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return t(r,`renamed`),H.Type=K(),H.Schema=Ue(),H.FAILSAFE_SCHEMA=tt(),H.JSON_SCHEMA=gt(),H.CORE_SCHEMA=yt(),H.DEFAULT_SCHEMA=Bt(),H.load=e.load,H.loadAll=e.loadAll,H.dump=n.dump,H.YAMLException=G(),H.types={binary:Ot(),float:pt(),map:Qe(),null:it(),pairs:Pt(),set:Lt(),timestamp:St(),bool:st(),int:ut(),merge:Tt(),omap:jt(),seq:Ye(),str:Ke()},H.safeLoad=r(`safeLoad`,`load`),H.safeLoadAll=r(`safeLoadAll`,`loadAll`),H.safeDump=r(`safeDump`,`dump`),H}t(qt,`requireJsYaml`);var{Type:Jt,Schema:Yt,FAILSAFE_SCHEMA:Xt,JSON_SCHEMA:Zt,CORE_SCHEMA:Qt,DEFAULT_SCHEMA:$t,load:en,loadAll:tn,dump:nn,YAMLException:rn,types:an,safeLoad:on,safeLoadAll:sn,safeDump:cn}=/* @__PURE__ */ je(qt()),ln=`comm`,un=`rule`,dn=`decl`,fn=`@import`,pn=`@namespace`,mn=`@keyframes`,hn=`@layer`,gn=Math.abs,_n=String.fromCharCode;function vn(e){return e.trim()}function yn(e,t,n){return e.replace(t,n)}function bn(e,t){return e.charCodeAt(t)|0}function xn(e,t,n){return e.slice(t,n)}function q(e){return e.length}function Sn(e){return e.length}function Cn(e,t){return t.push(e),e}var wn=1,Tn=1,En=0,J=0,Y=0,Dn=``;function On(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:wn,column:Tn,length:o,return:``,siblings:s}}function kn(){return Y}function An(){return Y=J>0?bn(Dn,--J):0,Tn--,Y===10&&(Tn=1,wn--),Y}function X(){return Y=J<En?bn(Dn,J++):0,Tn++,Y===10&&(Tn=1,wn++),Y}function Z(){return bn(Dn,J)}function jn(){return J}function Mn(e,t){return xn(Dn,e,t)}function Nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pn(e){return wn=Tn=1,En=q(Dn=e),J=0,[]}function Fn(e){return Dn=``,e}function In(e){return vn(Mn(J-1,zn(e===91?e+2:e===40?e+1:e)))}function Ln(e){for(;(Y=Z())&&Y<33;)X();return Nn(e)>2||Nn(Y)>3?``:` `}function Rn(e,t){for(;--t&&X()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Mn(e,jn()+(t<6&&Z()==32&&X()==32))}function zn(e){for(;X();)switch(Y){case e:return J;case 34:case 39:e!==34&&e!==39&&zn(Y);break;case 40:e===41&&zn(e);break;case 92:X()}return J}function Bn(e,t){for(;X()&&e+Y!==57&&(e+Y!==84||Z()!==47););return`/*`+Mn(t,J-1)+`*`+_n(e===47?e:X())}function Vn(e){for(;!Nn(Z());)X();return Mn(e,J)}function Hn(e){return Fn(Un(``,null,null,null,[``],e=Pn(e),0,[0],e))}function Un(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=X()){case 40:m!=108&&bn(w,d-1)==58?(v++,w+=`(`):w+=In(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=In(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=_n(y);break}w+=Ln(m);break;case 92:w+=Rn(jn()-1,7);continue;case 47:switch(Z()){case 42:case 47:Cn(Gn(Bn(X(),jn()),t,n,c),c),(Nn(m||1)==5||Nn(Z()||1)==5)&&q(w)&&xn(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=q(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=_n(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=yn(w,/\f/g,``)),p>0&&(q(w)-d||h===0)&&Cn(p>32?Kn(w+`;`,r,n,d-1,c):Kn(yn(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Cn(C=Wn(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)Un(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(bn(w,3)===110)break;case 108:if(bn(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Un(e,C,C,r&&Cn(Wn(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Un(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+q(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&An()==125)continue}switch(w+=_n(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(q(w)-1)*_,_=1;break;case 64:Z()===45&&(w+=In(X())),f=Z(),u=d=q(b=w+=Vn(jn())),y++;break;case 45:m===45&&q(w)==2&&(h=0)}}return a}function Wn(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Sn(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=xn(e,f+1,f=gn(g=o[h])),b=e;v<m;++v)(b=vn(g>0?p[v]+` `+y:yn(y,/&\f/g,p[v])))&&(c[_++]=b);return On(e,t,n,i===0?un:s,c,l,u,d)}function Gn(e,t,n,r){return On(e,t,n,ln,_n(kn()),xn(e,2,-2),0,r)}function Kn(e,t,n,r,i){return On(e,t,n,dn,xn(e,0,r),xn(e,r+1,-1),r,i)}function qn(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Jn(e,t,n,r){switch(e.type){case hn:if(e.children.length)break;case fn:case pn:case dn:return e.return=e.return||e.value;case ln:return``;case mn:return e.return=e.value+`{`+qn(e.children,r)+`}`;case un:if(!q(e.value=e.props.join(`,`)))return``}return q(n=qn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Yn(e){var t=Sn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var Xn=`c4`,Zn={id:Xn,detector:/* @__PURE__ */ t(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./c4Diagram-KJ2TOQU5-BVad-wQe.js`);return{id:Xn,diagram:e}},`loader`)},Qn=`flowchart-v2`,$n={id:Qn,detector:/* @__PURE__ */ t(e=>/^\s*(graph|flowchart)/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./flowDiagram-MALGAFMO-D9D_AzXh.js`);return{id:Qn,diagram:e}},`loader`)},er=`agentflow`,tr={id:er,detector:/* @__PURE__ */ t(e=>/^\s*agentflow-beta\b/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-3B7GL73J-BkQkIpxz.js`);return{id:er,diagram:e}},`loader`)},nr=`swimlane`,rr={id:nr,detector:/* @__PURE__ */ t(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./swimlanesDiagram-OMPLPG4O-CS11qSCX.js`);return{id:nr,diagram:e}},`loader`)},ir=`er`,ar={id:ir,detector:/* @__PURE__ */ t(e=>/^\s*erDiagram/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./erDiagram-EYBAPDEH-Bu6phvJH.js`);return{id:ir,diagram:e}},`loader`)},or=`gitGraph`,sr={id:or,detector:/* @__PURE__ */ t(e=>/^\s*gitGraph/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-STJD7YCW-DhVK8Hqh.js`);return{id:or,diagram:e}},`loader`)},cr=`gantt`,lr={id:cr,detector:/* @__PURE__ */ t(e=>/^\s*gantt/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./ganttDiagram-23REXITY-COK7rxO4.js`);return{id:cr,diagram:e}},`loader`)},ur=`info`,dr={id:ur,detector:/* @__PURE__ */ t(e=>/^\s*info/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./infoDiagram-KBXO4MBG-Dg3zWdHP.js`);return{id:ur,diagram:e}},`loader`)},fr=`pie`,pr={id:fr,detector:/* @__PURE__ */ t(e=>/^\s*pie/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./pieDiagram-J4AKIIQI-D0GhbNJg.js`);return{id:fr,diagram:e}},`loader`)},mr=`quadrantChart`,hr={id:mr,detector:/* @__PURE__ */ t(e=>/^\s*quadrantChart/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./quadrantDiagram-XTYBLID2-BKBEdwvC.js`);return{id:mr,diagram:e}},`loader`)},gr=`xychart`,_r={id:gr,detector:/* @__PURE__ */ t(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./xychartDiagram-GGNKY7IX-CxAjpN3O.js`);return{id:gr,diagram:e}},`loader`)},vr=`requirement`,yr={id:vr,detector:/* @__PURE__ */ t(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./requirementDiagram-Y7LWUY3S-bCLAM9sl.js`);return{id:vr,diagram:e}},`loader`)},br=`sequence`,xr={id:br,detector:/* @__PURE__ */ t(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./sequenceDiagram-5NDRBG5M-Cdg1YzMw.js`);return{id:br,diagram:e}},`loader`)},Sr=`classDiagram`,Cr={id:Sr,detector:/* @__PURE__ */ t(e=>/^\s*classDiagram/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./classDiagram-v2-L25IHNXF-Dw7so3mk.js`);return{id:Sr,diagram:e}},`loader`)},wr=`stateDiagram`,Tr={id:wr,detector:/* @__PURE__ */ t(e=>/^\s*stateDiagram/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-FJ4FJNEA-B69v2YYC.js`);return{id:wr,diagram:e}},`loader`)},Er=`journey`,Dr={id:Er,detector:/* @__PURE__ */ t(e=>/^\s*journey/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./journeyDiagram-OPLOXDXO-DMZkL-i1.js`);return{id:Er,diagram:e}},`loader`)},Or=4,kr=75,Ar=/* @__PURE__ */ t(e=>{let t=[];for(let n of e.split(/\s+/)){let e=[...n];for(;e.length>kr;)t.push(e.slice(0,kr).join(``)),e=e.slice(kr);e.length>0&&t.push(e.join(``))}let n=[],r=``;for(let e of t){let t=r?`${r} ${e}`:e;[...t].length>kr?(n.push(r),r=e):r=t}if(r&&n.push(r),n.length>Or){n.length=Or;let e=n[Or-1]??``;n[Or-1]=`${[...e].slice(0,kr-3).join(``)}...`}return n},`wrapErrorMessage`),jr={draw:/* @__PURE__ */ t((e,t,n,r)=>{B.debug(`rendering svg for syntax error
|
|
35
|
+
`);let i=be(t),a=i.append(`g`),o=Ar(r?.db.getErrorMessage?.()??``),s=o.length>0?500+o.length*56:512;i.attr(`viewBox`,`0 0 2412 ${s}`),re(i,100,s,!0),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`),o.forEach((e,t)=>{a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,510+t*56).attr(`font-size`,`42px`).style(`text-anchor`,`middle`).text(e)})},`draw`)},Mr=jr,Nr,Pr={db:{clear(){Nr=void 0},setErrorMessage(e){Nr=e},getErrorMessage(){return Nr}},renderer:jr,parser:{parse:/* @__PURE__ */ t(()=>{},`parse`)}},Fr=`flowchart-elk`,Ir={id:Fr,detector:/* @__PURE__ */ t((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout=`elk`,!0):!1,`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./flowDiagram-MALGAFMO-D9D_AzXh.js`);return{id:Fr,diagram:e}},`loader`)},Lr=`timeline`,Rr={id:Lr,detector:/* @__PURE__ */ t(e=>/^\s*timeline/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./timeline-definition-SEUHKTQE-BCU0-H8D.js`);return{id:Lr,diagram:e}},`loader`)},zr=`mindmap`,Br={id:zr,detector:/* @__PURE__ */ t(e=>/^\s*mindmap/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./mindmap-definition-I2QAS2VK-BXCWJ_1R.js`);return{id:zr,diagram:e}},`loader`)},Vr=`kanban`,Hr={id:Vr,detector:/* @__PURE__ */ t(e=>/^\s*kanban/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./kanban-definition-BZKZHSQY-Dr43IiJD.js`);return{id:Vr,diagram:e}},`loader`)},Ur=`sankey`,Wr={id:Ur,detector:/* @__PURE__ */ t(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./sankeyDiagram-WGJFYUXA-8ehuPvHQ.js`);return{id:Ur,diagram:e}},`loader`)},Gr=`packet`,Kr={id:Gr,detector:/* @__PURE__ */ t(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-DNEMPZML-DYthXzRv.js`);return{id:Gr,diagram:e}},`loader`)},qr=`radar`,Jr={id:qr,detector:/* @__PURE__ */ t(e=>/^\s*radar-beta/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-L3MUGCDN-D4DIzfHH.js`);return{id:qr,diagram:e}},`loader`)},Yr=`block`,Xr={id:Yr,detector:/* @__PURE__ */ t(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./blockDiagram-APKKGZFW-bG_MVPzT.js`);return{id:Yr,diagram:e}},`loader`)},Zr=`treeView`,Qr={id:Zr,detector:/* @__PURE__ */ t(e=>/^\s*treeView-beta/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-XPFHEONP-DC_v3Llc.js`);return{id:Zr,diagram:e}},`loader`)},$r=`architecture`,ei={id:$r,detector:/* @__PURE__ */ t(e=>/^\s*architecture/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./architectureDiagram-YGSQEFNW-BmsDn6Ho.js`);return{id:$r,diagram:e}},`loader`)},ti=`eventmodeling`,ni={id:ti,detector:/* @__PURE__ */ t(e=>/^\s*eventmodeling/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-MHCOC4E2-BwauFnTV.js`);return{id:ti,diagram:e}},`loader`)},ri=`ishikawa`,ii={id:ri,detector:/* @__PURE__ */ t(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-M35NCXHK-C2g8ghrV.js`);return{id:ri,diagram:e}},`loader`)},ai=`venn`,oi={id:ai,detector:/* @__PURE__ */ t(e=>/^\s*venn-beta/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./vennDiagram-NNMJR3RB-q4Q4x2Q6.js`);return{id:ai,diagram:e}},`loader`)},si=`treemap`,ci={id:si,detector:/* @__PURE__ */ t(e=>/^\s*treemap/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./diagram-LA4NIPWU-C2P-hZD1.js`);return{id:si,diagram:e}},`loader`)},li=`usecase`,ui={id:li,detector:/* @__PURE__ */ t(e=>/^\s*usecase-beta(?:\s|$)/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./usecaseDiagram-AFA6YXN4-46V1jsea.js`);return{id:li,diagram:e}},`loader`)},di=`wardley`,fi={id:di,detector:/* @__PURE__ */ t(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./wardleyDiagram-S7YFUSEH-BHIufnZW.js`);return{id:di,diagram:e}},`loader`)},pi=`cynefin`,mi={id:pi,detector:/* @__PURE__ */ t(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./cynefinDiagram-L36ESFBY-eO6Z3Kvn.js`);return{id:pi,diagram:e}},`loader`)},hi=`railroad`,gi={id:hi,detector:/* @__PURE__ */ t(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./railroadDiagram-MRQ6NCDL-DvqHkO2C.js`);return{id:hi,diagram:e}},`loader`)},_i=`railroadEbnf`,vi={id:_i,detector:/* @__PURE__ */ t(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./ebnfDiagram-UZSYDL2S-CmwGlC8L.js`);return{id:_i,diagram:e}},`loader`)},yi=`railroadAbnf`,bi={id:yi,detector:/* @__PURE__ */ t(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./abnfDiagram-S7VZAUFO-DxkzIS8G.js`);return{id:yi,diagram:e}},`loader`)},xi=`railroadPeg`,Si={id:xi,detector:/* @__PURE__ */ t(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:/* @__PURE__ */ t(async()=>{let{diagram:e}=await import(`./pegDiagram-FD4XPPHP-CR58gOgF.js`);return{id:xi,diagram:e}},`loader`)},Ci=!1,wi=/* @__PURE__ */ t(()=>{Ci||(Ci=!0,O(`error`,Pr,e=>e.toLowerCase().trim()===`error`),O(`---`,{db:{clear:/* @__PURE__ */ t(()=>{},`clear`)},styles:{},renderer:{draw:/* @__PURE__ */ t(()=>{},`draw`)},parser:{parse:/* @__PURE__ */ t(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:/* @__PURE__ */ t(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),k(Ir,Br,ei),k(tr,Zn,Hr,Cr,ar,lr,dr,pr,yr,xr,rr,$n,Rr,sr,Tr,Dr,hr,Wr,Kr,_r,Xr,ni,Qr,Jr,ii,ci,gi,vi,bi,Si,oi,fi,mi,ui))},`addDiagrams`),Ti=/* @__PURE__ */ t(async()=>{B.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(R).map(async([e,{detector:t,loader:n}])=>{if(n)try{de(e)}catch{try{let{diagram:e,id:r}=await n();O(r,e,t)}catch(t){throw B.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete R[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){B.error(`Failed to load ${e.length} external diagrams`);for(let t of e)B.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),Ei=`graphics-document document`;function Di(e,t){e.attr(`role`,Ei),t!==``&&e.attr(`aria-roledescription`,t)}t(Di,`setA11yDiagramInfo`);function Oi(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}t(Oi,`addSVGa11yTitleDescription`);var ki=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{t(this,`Diagram`)}static async fromText(t,n={}){let r=typeof t==`string`?{raw:t,cleaned:t}:t,i=z(),a=ae(r.cleaned,i);try{de(a)}catch{let e=ee(a);if(!e)throw new ce(`Diagram ${a} not found.`);let{id:t,diagram:n}=await e();O(t,n)}let{db:o,parser:s,renderer:c,init:l}=de(a);s.parser&&(s.parser.yy=o),o.clear?.(),l?.(i),n.title&&o.setDiagramTitle?.(n.title);let u=r.cleaned;if(o.preserveCommentsWhenParsing&&r.withComments){let e=i.maxTextSize??P.maxTextSize;r.withComments.length>e?B.warn(`Comment-preserving source exceeds maxTextSize (${r.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):u=r.withComments}let d=v(u)+`
|
|
36
|
+
`;return r.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(r.frontmatterLineOffset),await s.parse(d),new e(a,d,o,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},Ai=[],ji=/* @__PURE__ */ t(()=>{Ai.forEach(e=>{e()}),Ai=[]},`attachFunctions`),Mi=/* @__PURE__ */ t(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function Ni(e){let t=I(e);if(!t)return{text:e,metadata:{}};let n=t.indent,r=en(n?t.body.split(`
|
|
37
|
+
`).map(e=>e.startsWith(n)?e.slice(n.length):e).join(`
|
|
38
|
+
`):t.body,{schema:Zt})??{};r=typeof r==`object`&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t.length),metadata:i}}t(Ni,`extractFrontMatter`);var Pi=/* @__PURE__ */ t(e=>e.replace(/\r\n?/g,`
|
|
39
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Fi=/* @__PURE__ */ t(e=>{let{text:t,metadata:n}=Ni(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),Ii=/* @__PURE__ */ t(e=>{let t=d.detectInit(e)??{},n=d.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:h(e),directive:t}},`processDirectives`);function Li(e){let t=e,n=Pi(e),r=Fi(n),i=Ii(r.text),a=g(r.config,i.directive),o=i.text;return{code:{raw:t,cleaned:Mi(o),withComments:o,frontmatterLineOffset:n.length>r.text.length?(n.substring(0,n.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:a}}t(Li,`preprocessDiagram`);function Ri(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}t(Ri,`toBase64`);var zi=5e4,Bi=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,Vi=`sandbox`,Hi=`loose`,Ui=`http://www.w3.org/2000/svg`,Wi=`http://www.w3.org/1999/xlink`,Gi=`http://www.w3.org/1999/xhtml`,Ki=`100%`,qi=`100%`,Ji=`border:0;margin:0;`,Yi=`margin:0`,Xi=`allow-top-navigation-by-user-activation allow-popups`,Zi=`The "iframe" tag is not supported by your browser.`,Qi=[`foreignobject`],$i=[`dominant-baseline`];function ea(e){let t=Li(e);w();let n;try{n=ae(t.code.cleaned,z())}catch{n=void 0}return E(n),ie(t.config??{}),t}t(ea,`processAndSetConfigs`);async function ta(e,t){wi();try{let{code:t,config:n}=ea(e);return{diagramType:(await ki.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{E(void 0)}}t(ta,`parse`);var na=/* @__PURE__ */ t((e,t,n=[])=>`.${e} ${t} ${D(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),ra=/* @__PURE__ */ t((e,t=/* @__PURE__ */ new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=ue(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{Se(e.styles)||r.forEach(t=>{n.insertRule(na(e.id,t,e.styles),n.cssRules.length)}),Se(e.textStyles)||n.insertRule(na(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=L(t)+`
|
|
40
|
+
`}else r+=`${e.themeCSS}
|
|
41
|
+
`}return r+L(n)},`createCssStyles`),ia=/* @__PURE__ */ t((e,n)=>qn(Hn(`${e}{${n}}`),Yn([/* @__PURE__ */ t(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&(/* @__PURE__ */ new Set([`font-family`,`font-size`,`fill`])).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(B.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=ln))},`addNamespace`),Jn])),`compileCSS`),aa=/* @__PURE__ */ t((e,t,n,r)=>{let i=ra(e,n);return ia(r,M(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),oa=/* @__PURE__ */ t((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=f(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),sa=/* @__PURE__ */ t((e=``,t)=>`<iframe style="width:${Ki};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:qi};${Ji}" src="data:text/html;charset=UTF-8;base64,${Ri(`<body style="${Yi}">${e}</body>`)}" sandbox="${Xi}">
|
|
42
|
+
${Zi}
|
|
43
|
+
</iframe>`,`putIntoIFrame`),ca=/* @__PURE__ */ t((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,Ui);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function la(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}t(la,`sandboxedIframe`);var ua=/* @__PURE__ */ t((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),da=/* @__PURE__ */ t(async function(e,n,r){wi();let i=ea(n),a=i.code;n=a.cleaned;let o=z();B.debug(o),n.length>(o?.maxTextSize??zi)&&(n=Bi,a={raw:n,cleaned:n});let s=`#${e}`,c=`i`+e,l=`#`+c,u=`d`+e,d=`#`+u,f=/* @__PURE__ */ t(()=>{let e=V(m?l:d).node();e&&`remove`in e&&e.remove()},`removeTempElements`),p=V(document.body),m=o.securityLevel===Vi,h=o.securityLevel===Hi,g=o.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=``),m){let e=la(V(r),c);p=V(e.nodes()[0].contentDocument.body),p.node().style.margin=`0`}else p=V(r);ca(p,e,u,`font-family: ${g}`,Wi)}else{if(ua(document,e,u,c),m){let e=la(V(document.body),c);p=V(e.nodes()[0].contentDocument.body),p.node().style.margin=`0`}else p=V(`body`);ca(p,e,u)}let v,y;try{v=await ki.fromText(a,{title:i.title})}catch(e){if(o.suppressErrorRendering)throw f(),e;v=await ki.fromText(`error`),y=e,v.db.setErrorMessage?.(_(e))}let b=p.select(d).node(),x=v.type,S=b.firstChild,C=S.firstChild,w=v.renderer.getClasses?.(n,v),T=aa(o,x,w,s),E=document.createElement(`style`);E.innerHTML=T,S.insertBefore(E,C);try{await v.renderer.draw(n,e,`12.3.0`,v)}catch(t){throw o.suppressErrorRendering?f():Mr.draw(n,e,`12.3.0`),t}let D=p.select(`${d} svg`),O=v.db.getAccTitle?.(),k=v.db.getAccDescription?.();ha(x,D,O,k);let A=(/* @__PURE__ */ t(()=>{p.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Gi);let t=p.select(d).node().innerHTML;if(B.debug(`config.arrowMarkerAbsolute`,o.arrowMarkerAbsolute),t=oa(t,m,F(o.arrowMarkerAbsolute)),m){let e=p.select(d+` svg`).node();t=sa(t,e)}else h||(t=ge.sanitize(t,{ADD_TAGS:Qi,ADD_ATTR:$i,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return ji(),t},`serializeSvg`))();if(y)throw y;return f(),{diagramType:x,svg:A,bindFunctions:v.db.bindFunctions}},`renderDiagram`),fa=/* @__PURE__ */ t(async function(e,t,n){try{return await da(e,t,n)}finally{E(void 0)}},`render`);function pa(e={}){let t=oe({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),te(t);let n=le.theme;t?.theme&&Object.hasOwn(A,t.theme)?t.themeVariables=A[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!==`null`&&(t.theme=n),t.themeVariables=A[n].getThemeVariables(t.themeVariables));let r=typeof t==`object`?T(t):j();fe(r.logLevel),wi()}t(pa,`initialize`);var ma=/* @__PURE__ */ t((e,t={})=>{let{code:n}=Li(e);return ki.fromText(n,t)},`getDiagramFromText`);function ha(e,t,n,r){Di(t,e),Oi(t,n,r,t.attr(`id`))}t(ha,`addA11yInfo`);var Q=Object.freeze({render:fa,parse:ta,getDiagramFromText:ma,initialize:pa,getConfig:z,setConfig:ne,getSiteConfig:j,updateSiteConfig:C,reset:/* @__PURE__ */ t(()=>{w()},`reset`),globalReset:/* @__PURE__ */ t(()=>{w(le)},`globalReset`),defaultConfig:le});fe(z().logLevel),w(z());var ga=/* @__PURE__ */ t((e,t,n)=>{B.warn(e),y(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),_a=/* @__PURE__ */ t(async function(e={querySelector:`.mermaid`}){try{await va(e)}catch(t){if(y(t)&&B.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw B.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),va=/* @__PURE__ */ t(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Q.getConfig();B.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);B.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(B.debug(`Start On Load: `+r?.startOnLoad),Q.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new d.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(B.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=pe(d.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=d.detectInit(o);r&&B.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await Oa(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){ga(e,s,$.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),ya=/* @__PURE__ */ t(function(e){Q.initialize(e)},`initialize`),ba=/* @__PURE__ */ t(async function(e,t,n){B.warn(`mermaid.init is deprecated. Please use run instead.`),e&&ya(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await _a(r)},`init`),xa=/* @__PURE__ */ t(async(e,{lazyLoad:t=!0}={})=>{wi(),k(...e),t===!1&&await Ti()},`registerExternalDiagrams`),Sa=/* @__PURE__ */ t(function(){if($.startOnLoad){let{startOnLoad:e}=Q.getConfig();e&&$.run().catch(e=>B.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Sa,!1);var Ca=/* @__PURE__ */ t(function(e){$.parseError=e},`setParseErrorHandler`),wa=[],Ta=!1,Ea=/* @__PURE__ */ t(async()=>{if(!Ta){for(Ta=!0;wa.length>0;){let e=wa.shift();if(e)try{await e()}catch(e){B.error(`Error executing queue`,e)}}Ta=!1}},`executeQueue`),Da=/* @__PURE__ */ t(async(e,n)=>new Promise((r,i)=>{let a=/* @__PURE__ */ t(()=>new Promise((t,a)=>{Q.parse(e,n).then(e=>{t(e),r(e)},e=>{B.error(`Error parsing`,e),$.parseError?.(e),a(e),i(e)})}),`performCall`);wa.push(a),Ea().catch(i)}),`parse`),Oa=/* @__PURE__ */ t((e,n,r)=>new Promise((i,a)=>{let o=/* @__PURE__ */ t(()=>new Promise((t,o)=>{Q.render(e,n,r).then(e=>{t(e),i(e)},e=>{B.error(`Error parsing`,e),$.parseError?.(e),o(e),a(e)})}),`performCall`);wa.push(o),Ea().catch(a)}),`render`),$={startOnLoad:!0,mermaidAPI:Q,parse:Da,render:Oa,init:ba,run:_a,registerExternalDiagrams:xa,registerLayoutLoaders:Ee,initialize:ya,parseError:void 0,contentLoaded:Sa,setParseErrorHandler:Ca,detectType:ae,registerIconPacks:me,getRegisteredDiagramsMetadata:/* @__PURE__ */ t(()=>Object.keys(R).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},ka=$,Aa=/* @__PURE__ */ e({draw:()=>qa}),ja={background:`#121315`,primaryColor:`#0E2A22`,primaryTextColor:`#E8E9EB`,primaryBorderColor:`#10B981`,lineColor:`#64748B`,textColor:`#E8E9EB`,mainBkg:`#18191C`,secondaryColor:`#0C2438`,secondaryBorderColor:`#38BDF8`,secondaryTextColor:`#F1F5F9`,tertiaryColor:`#2A1D0B`,tertiaryBorderColor:`#F59E0B`,tertiaryTextColor:`#FCD34D`,nodeBorder:`#2A2D32`,clusterBkg:`#18191C`,clusterBorder:`#2A3B57`,titleColor:`#F1F5F9`,edgeLabelBackground:`#111625`,fontSize:`13px`,actorBkg:`#111625`,actorBorder:`#38BDF8`,actorTextColor:`#F1F5F9`,actorLineColor:`#64748B`,signalColor:`#38BDF8`,signalTextColor:`#F1F5F9`,labelBoxBkgColor:`#111625`,labelBoxBorderColor:`#1E2638`,labelTextColor:`#F1F5F9`,loopTextColor:`#F1F5F9`,noteBkgColor:`#2A1D0B`,noteBorderColor:`#F59E0B`,noteTextColor:`#FCD34D`,activationBkgColor:`#0E2A22`,activationBorderColor:`#10B981`,git0:`#10B981`,git1:`#38BDF8`,git2:`#A855F7`,git3:`#F43F5E`,gitBranchLabel0:`#0B0F19`,gitBranchLabel1:`#0B0F19`,gitBranchLabel2:`#0B0F19`,gitBranchLabel3:`#0B0F19`},Ma={background:`#FAFAFA`,primaryColor:`#ECFDF5`,primaryTextColor:`#16181D`,primaryBorderColor:`#059669`,lineColor:`#64748B`,textColor:`#16181D`,mainBkg:`#FFFFFF`,secondaryColor:`#F0F9FF`,secondaryBorderColor:`#0284C7`,secondaryTextColor:`#0F172A`,tertiaryColor:`#FFFBEB`,tertiaryBorderColor:`#D97706`,tertiaryTextColor:`#92400E`,nodeBorder:`#CDD1D7`,clusterBkg:`#F1F2F4`,clusterBorder:`#CBD5E1`,titleColor:`#0F172A`,edgeLabelBackground:`#FFFFFF`,fontSize:`13px`,actorBkg:`#FFFFFF`,actorBorder:`#0284C7`,actorTextColor:`#0F172A`,actorLineColor:`#64748B`,signalColor:`#0284C7`,signalTextColor:`#0F172A`,labelBoxBkgColor:`#FFFFFF`,labelBoxBorderColor:`#CBD5E1`,labelTextColor:`#0F172A`,loopTextColor:`#0F172A`,noteBkgColor:`#FFFBEB`,noteBorderColor:`#D97706`,noteTextColor:`#92400E`,activationBkgColor:`#D1FAE5`,activationBorderColor:`#059669`,git0:`#059669`,git1:`#0284C7`,git2:`#7C3AED`,git3:`#E11D48`,gitBranchLabel0:`#FFFFFF`,gitBranchLabel1:`#FFFFFF`,gitBranchLabel2:`#FFFFFF`,gitBranchLabel3:`#FFFFFF`};function Na(e){return{startOnLoad:!1,securityLevel:`strict`,theme:e.dark?`dark`:`default`,themeVariables:{...e.dark?ja:Ma,fontFamily:e.font},suppressErrorRendering:!0,htmlLabels:!0,flowchart:{useMaxWidth:!0,wrappingWidth:220}}}var Pa=64,Fa=/* @__PURE__ */ new Map,Ia=/* @__PURE__ */ new Map,La=Promise.resolve(),Ra=0;function za(e,t){Fa.set(e,t),Fa.size>Pa&&Fa.delete(Fa.keys().next().value)}var Ba=!1;async function Va(e,t){if(Ba)return null;try{if(ka.initialize(Na(t)),!await ka.parse(e,{suppressErrors:!0}))return null;await document.fonts?.ready;let n=`aicore-mermaid-${++Ra}`,{svg:r}=await ka.render(n,e);return{id:n,svg:r}}catch(e){return e instanceof TypeError&&e.message.includes(`TrustedHTML`)&&(Ba=!0),null}}var Ha=/* @__PURE__ */ new Map,Ua=/* @__PURE__ */ new Map,Wa=!1;function Ga(){Wa||(Wa=!0,setTimeout(()=>{Wa=!1;for(let[e,t]of Ua)for(let n of t){let r=Ha.get(n);r&&!e.querySelector(`[id="${n}"]`)&&(ye(e,r),t.delete(n))}},1e3))}function Ka(e,t){let{fragment:n,css:r}=_e(e.svg);if(!n.querySelector(`svg`))return null;Ha.has(e.id)||Ha.set(e.id,he(r));let i=Ha.get(e.id);if(i){ve(t.root,i);let n=Ua.get(t.root);n||Ua.set(t.root,n=/* @__PURE__ */ new Set),n.add(e.id),Ga()}let a=document.createElement(`div`);return a.className=`diagram`,a.append(n),a}function qa(e,t){let n=`${t.dark}\n${t.font}\n${e}`;if(Fa.has(n)){let e=Fa.get(n);return e?Ka(e,t):null}let r=Ia.get(n);if(!r){let i=La.then(()=>Va(e,t));La=i,r=i.then(e=>(Ia.delete(n),za(n,e),e)),Ia.set(n,r)}return r.then(e=>e?Ka(e,t):null)}export{Oe as a,qa as draw,Ae as i,Zt as n,be as o,en as r,Aa as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as ee,g as te,h as ne,i as s,l as re,m as ie,n as c,o as l,p as ae,r as oe,s as se,t as u,u as d,v as ce,w as f,x as p,y as le}from"./chunk-NGNAAXSQ-DreF1ykJ.js";var ue=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},de=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new ue,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new de,`ValueConverter`)}};function h(n=l){let r=f(e(n),d),i=f(t({shared:r}),oe,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var fe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new fe,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)}};function _(n=l){let i=f(e(n),d),a=f(t({shared:i}),r,g);return i.ServiceRegistry.register(a),{shared:i,Cynefin:a}}p(_,`createCynefinServices`);var pe=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},me=/* @__PURE__ */ new Set([`cmd`,`command`]),v=/* @__PURE__ */ new Set([`evt`,`event`]),y=/* @__PURE__ */ new Set([`rmo`,`readmodel`]),b=/* @__PURE__ */ new Set([`pcr`,`processor`]),x=/* @__PURE__ */ new Set([`ui`]);function S(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(S,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(me.has(e.modelEntityType)?this.validateSources(e,/* @__PURE__ */ new Set([...x,...b]),`command`,`ui or processor`,t):v.has(e.modelEntityType)?this.validateSources(e,me,`event`,`command`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`read model`,`event`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`processor`,`read model`,t):x.has(e.modelEntityType)&&this.validateSources(e,y,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},C={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new pe,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:/* @__PURE__ */ p(()=>new he,`EventModelingValidator`)}};function w(n=l){let r=f(e(n),d),i=f(t({shared:r}),se,C);return r.ServiceRegistry.register(i),S(i),{shared:r,EventModel:i}}p(w,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},T={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new ge,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)}};function E(n=l){let r=f(e(n),d),i=f(t({shared:r}),a,T);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(E,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},D={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new _e,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)}};function O(n=l){let r=f(e(n),d),i=f(t({shared:r}),re,D);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(O,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},k={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new ve,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)}};function A(n=l){let r=f(e(n),d),i=f(t({shared:r}),o,k);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(A,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},j={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new ye,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new be,`ValueConverter`)}};function M(n=l){let r=f(e(n),d),i=f(t({shared:r}),ee,j);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(M,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},N={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new xe,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new s,`ValueConverter`)}};function P(n=l){let r=f(e(n),d),i=f(t({shared:r}),ae,N);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(P,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},F=/* @__PURE__ */ p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
2
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return F(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return F(t)}},I={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new Se,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new Ce,`ValueConverter`)}};function L(n=l){let r=f(e(n),d),i=f(t({shared:r}),te,I);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(L,`createRailroadServices`);var we=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Te=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},Ee={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new we,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new Te,`ValueConverter`)}};function R(n=l){let r=f(e(n),d),i=f(t({shared:r}),ie,Ee);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(R,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},z=/* @__PURE__ */ p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
3
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return z(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return z(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},B={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new De,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new Oe,`ValueConverter`)}};function V(n=l){let r=f(e(n),d),i=f(t({shared:r}),ne,B);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(V,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},H=/* @__PURE__ */ p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
4
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return H(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return H(t)}},U={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new ke,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new Ae,`ValueConverter`)}};function W(r=l){let i=f(e(r),d),a=f(t({shared:i}),n,U);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(W,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},G={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new Me,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new je,`ValueConverter`)}};function K(n=l){let r=f(e(n),d),i=f(t({shared:r}),ce,G);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(K,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function q(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(q,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},J={parser:{TokenBuilder:/* @__PURE__ */ p(()=>new Ne,`TokenBuilder`),ValueConverter:/* @__PURE__ */ p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:/* @__PURE__ */ p(()=>new Ie,`TreemapValidator`)}};function Y(n=l){let r=f(e(n),d),i=f(t({shared:r}),le,J);return r.ServiceRegistry.register(i),q(i),{shared:r,Treemap:i}}p(Y,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},X={parser:{ValueConverter:/* @__PURE__ */ p(()=>new Le,`ValueConverter`)}};function Z(n=l){let r=f(e(n),d),a=f(t({shared:r}),i,X);return r.ServiceRegistry.register(a),{shared:r,Wardley:a}}p(Z,`createWardleyServices`);var Q={},Re={info:/* @__PURE__ */ p(async()=>{let{createInfoServices:e}=await import(`./info-OHQRW6UA-BjEWvFlW.js`);Q.info=e().Info.parser.LangiumParser},`info`),packet:/* @__PURE__ */ p(async()=>{let{createPacketServices:e}=await import(`./packet-JDAUHWVQ-CgB2qE5t.js`);Q.packet=e().Packet.parser.LangiumParser},`packet`),pie:/* @__PURE__ */ p(async()=>{let{createPieServices:e}=await import(`./pie-XZMESJXO-CvXWTfIG.js`);Q.pie=e().Pie.parser.LangiumParser},`pie`),treeView:/* @__PURE__ */ p(async()=>{let{createTreeViewServices:e}=await import(`./treeView-D4JQ5SDB-CpjURS-c.js`);Q.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:/* @__PURE__ */ p(async()=>{let{createArchitectureServices:e}=await import(`./architecture-WOLXFQ4H-BXMyXdT1.js`);Q.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:/* @__PURE__ */ p(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-VSP46ZUC-DS7S_jKI.js`);Q.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:/* @__PURE__ */ p(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-K75KTNOO-B1q0nOJE.js`);Q.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:/* @__PURE__ */ p(async()=>{let{createRadarServices:e}=await import(`./radar-ABXABTNO-8V_xx_AB.js`);Q.radar=e().Radar.parser.LangiumParser},`radar`),railroad:/* @__PURE__ */ p(async()=>{let{createRailroadServices:e}=await import(`./railroad-I3PHUGI6-Bvb0GUva.js`);Q.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:/* @__PURE__ */ p(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-DWYD2UWJ-Ch8wBawI.js`);Q.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:/* @__PURE__ */ p(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-LNEFI6M7-D8xGcObq.js`);Q.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:/* @__PURE__ */ p(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-JR7BVNR7-CGndbjed.js`);Q.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:/* @__PURE__ */ p(async()=>{let{createTreemapServices:e}=await import(`./treemap-SAJKECNS-CFFTaiIN.js`);Q.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:/* @__PURE__ */ p(async()=>{let{createWardleyServices:e}=await import(`./wardley-7MLQ67FV-DhnATL7b.js`);Q.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:/* @__PURE__ */ p(async()=>{let{createCynefinServices:e}=await import(`./cynefin-EF2NZ3EQ-CcVPiRLN.js`);Q.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);Q[e]||await n();let r=Q[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var $=/* @__PURE__ */ p(e=>e!==void 0&&e>=0?e:`?`,`formatLocation`),Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${$(e.line)}, column ${$(e.column)}: ${e.message}`).join(`
|
|
5
|
+
`),n=e.parserErrors.map(e=>`Parse error on line ${$(e.token.startLine)}, column ${$(e.token.startColumn)}: ${e.message}`).join(`
|
|
6
|
+
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,D as C,C as D,E,h as M,w as O,A as S,T,N as _,J as a,M as b,K as c,B as d,V as f,L as g,I as h,Z as i,m as j,g as k,U as l,R as m,ze as n,Y as o,Ee as p,X as r,G as s,Be as t,W as u,P as v,O as w,k as x,j as y};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import{t as e}from"./chunk-XXDRQBXY-BIvjAdC_.js";import{t}from"./chunk-TU62E6Q5-B4GgWjUW.js";import{a as n,i as r}from"./mermaid-DaDuEHir.js";import"./chunk-M57EVK23-BRqFqW5o.js";import"./chunk-DQASFODM-DBWVlIjs.js";import"./chunk-LEVMRMFU-BdDTT4pw.js";import"./chunk-AXFCVDMN-D0Vqm50X.js";import"./chunk-X4PVCEUW-BcN5Aq5G.js";import"./chunk-STOXU5M4-DdqxXfKq.js";import"./chunk-R3KSYZAL-gmtEjdKU.js";import"./chunk-6MUBBAK2-CeH4cZO-.js";import{O as i,b as a,et as o,f as s,rt as c,tt as l,y as u,z as d}from"./chunk-BG4553SI-DUBI9JbR.js";import{n as f}from"./d3-selection-CBFxn8wf.js";import{n as p}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var m=(function(){var e=/* @__PURE__ */ p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],c=[6,7,8],l=[1,26],u=[1,24],d=[1,25],f=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:/* @__PURE__ */ p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:/* @__PURE__ */ p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:l,7:u,10:23,11:d},e(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(f,[2,18]),e(f,[2,19]),e(f,[2,20]),e(f,[2,21]),e(f,[2,23]),e(f,[2,24]),e(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:u,10:32,11:d},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(f,[2,15]),e(f,[2,16]),e(f,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(f,[2,25]),e(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:/* @__PURE__ */ p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:/* @__PURE__ */ p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}p(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=/* @__PURE__ */ (function(){return{EOF:1,parseError:/* @__PURE__ */ p(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:/* @__PURE__ */ p(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:/* @__PURE__ */ p(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:/* @__PURE__ */ p(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:/* @__PURE__ */ p(function(){return this._more=!0,this},`more`),reject:/* @__PURE__ */ p(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
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:/* @__PURE__ */ p(function(e){this.unput(this.match.slice(e))},`less`),pastInput:/* @__PURE__ */ p(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:/* @__PURE__ */ p(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:/* @__PURE__ */ p(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:/* @__PURE__ */ p(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:/* @__PURE__ */ p(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:/* @__PURE__ */ p(function(){return this.next()||this.lex()},`lex`),begin:/* @__PURE__ */ p(function(e){this.conditionStack.push(e)},`begin`),popState:/* @__PURE__ */ p(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:/* @__PURE__ */ p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:/* @__PURE__ */ p(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:/* @__PURE__ */ p(function(e){this.begin(e)},`pushState`),stateStackSize:/* @__PURE__ */ p(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:/* @__PURE__ */ p(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return p(y,`Parser`),y.prototype=v,v.Parser=y,new y})();m.parser=m;var h=m,g=12,_={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},v=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=_,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{p(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,r){f.info(`addNode`,e,t,n,r);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,i=!1);let o=a(),c=o.mindmap?.padding??s.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:c*=2}let l={id:this.count++,nodeId:d(t,o),level:e,descr:d(n,o),type:r,children:[],width:o.mindmap?.maxNodeWidth??s.mindmap.maxNodeWidth,padding:c,isRoot:i},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(i)this.nodes.push(l);else throw Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,t){switch(f.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=a(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=d(e.icon,t)),e.class&&(n.class=d(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t,n=0,r=!1){if(e.section=e.level===0?void 0:r?(n-1)%(g-1):t,e.children)for(let[i,a]of e.children.entries()){let o=e.level===0?i%(g-1):t;this.assignSections(a,o,n+1,r)}}flattenNodes(e,t){let n=a(),r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),o=/* @__PURE__ */ p(e=>{let t=(n.theme?.toLowerCase()??``).includes(`redux`);switch(e){case _.CIRCLE:return`mindmapCircle`;case _.RECT:return`rect`;case _.ROUNDED_RECT:return`rounded`;case _.CLOUD:return`cloud`;case _.BANG:return`bang`;case _.HEXAGON:return`hexagon`;case _.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case _.NO_BORDER:default:return`rect`}},`getShapeFromType`),s={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],centerLabel:!0,look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(s),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=a();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=a(),n=i().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};f.debug(`getData: mindmapRoot`,e,t),this.assignSections(e,void 0,0,t.mindmap?.colorBy===`depth`);let o=[],s=[];this.flattenNodes(e,o),this.generateEdges(e,s),f.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);let c=/* @__PURE__ */ new Map;for(let e of o)c.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:o,edges:s,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(c),type:`mindmap`}}getLogger(){return f}},y={draw:/* @__PURE__ */ p(async(i,a,o,c)=>{f.debug(`Rendering mindmap diagram
|
|
7
|
+
`+i);let l=c.db,d=l.getData(),p=e(a,d.config.securityLevel);if(d.type=c.type,d.layoutAlgorithm=r(d.config.layout,{fallback:`cose-bilkent`}),d.diagramId=a,!l.getMindmap())return;d.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await n(d,p);let{themeVariables:m}=u(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=p.attr(`id`),t=p.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}t(p,d.config.mindmap?.padding??s.mindmap.padding,`mindmapDiagram`,d.config.mindmap?.useMaxWidth??s.mindmap.useMaxWidth)},`draw`)},b=/* @__PURE__ */ p(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=l(e[`lineColor`+t],20):e[`lineColor`+t]=o(e[`lineColor`+t],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let a=``+(n===`neo`?Math.max(10-(i-1)*2,2):17-3*i),o=t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)];r+=`
|
|
8
|
+
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
9
|
+
fill: ${e[`cScale`+i]};
|
|
10
|
+
}
|
|
11
|
+
.section-${i-1} text {
|
|
12
|
+
fill: ${e[`cScaleLabel`+i]};
|
|
13
|
+
}
|
|
14
|
+
.section-${i-1} span {
|
|
15
|
+
color: ${e[`cScaleLabel`+i]};
|
|
16
|
+
}
|
|
17
|
+
.node-icon-${i-1} {
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: ${e[`cScaleLabel`+i]};
|
|
20
|
+
}
|
|
21
|
+
.section-edge-${i-1}{
|
|
22
|
+
stroke: ${e[`cScale`+i]};
|
|
23
|
+
}
|
|
24
|
+
.edge-depth-${i-1}{
|
|
25
|
+
stroke-width: ${a};
|
|
26
|
+
}
|
|
27
|
+
.section-${i-1} line {
|
|
28
|
+
stroke: ${e[`cScaleInv`+i]} ;
|
|
29
|
+
stroke-width: 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
39
|
+
fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+i]};
|
|
40
|
+
stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
41
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
42
|
+
}
|
|
43
|
+
[data-look="neo"].section-edge-${i-1}{
|
|
44
|
+
stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
45
|
+
}
|
|
46
|
+
[data-look="neo"].mindmap-node.section-${i-1} text, [data-look="neo"].mindmap-node.section-${i-1} span {
|
|
47
|
+
fill: ${o};
|
|
48
|
+
color: ${o};
|
|
49
|
+
}
|
|
50
|
+
`}return r},`genSections`),x=/* @__PURE__ */ p((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
|
|
51
|
+
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
52
|
+
stroke: url(${t}-gradient);
|
|
53
|
+
fill: ${n};
|
|
54
|
+
}
|
|
55
|
+
.section-${i-1} line {
|
|
56
|
+
stroke-width: 0;
|
|
57
|
+
}`;return r},`genGradient`),S={get db(){return new v},renderer:y,parser:h,styles:/* @__PURE__ */ p(e=>{let{theme:t}=e,n=e.svgId,r=t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)],i=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${b(e)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${e.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${e.gitBranchLabel0};
|
|
67
|
+
}
|
|
68
|
+
.section-root span {
|
|
69
|
+
color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
|
|
70
|
+
}
|
|
71
|
+
.icon-container {
|
|
72
|
+
height:100%;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
.edge {
|
|
78
|
+
fill: none;
|
|
79
|
+
}
|
|
80
|
+
.mindmap-node-label {
|
|
81
|
+
dy: 1em;
|
|
82
|
+
alignment-baseline: middle;
|
|
83
|
+
text-anchor: middle;
|
|
84
|
+
dominant-baseline: middle;
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
[data-look="neo"].mindmap-node {
|
|
88
|
+
filter: ${i};
|
|
89
|
+
}
|
|
90
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
91
|
+
fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
|
|
92
|
+
}
|
|
93
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
|
|
94
|
+
fill: ${r};
|
|
95
|
+
color: ${r};
|
|
96
|
+
}
|
|
97
|
+
${e.useGradient&&n&&e.mainBkg?x(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
|
|
98
|
+
`},`getStyles`)};export{S as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{S as createPacketServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-OY52VR5R-BamrP8d_.js";import{t as r}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid-DaDuEHir.js";import"./chunk-BG4553SI-DUBI9JbR.js";import{n as i}from"./d3-selection-CBFxn8wf.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as o,u as s}from"./mermaid-parser.core-Bv_Zx_ZE.js";var c=s().RailroadPeg.parser.LangiumParser,l=/* @__PURE__ */ a(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=/* @__PURE__ */ a(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=/* @__PURE__ */ a(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=/* @__PURE__ */ a(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=/* @__PURE__ */ a(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=/* @__PURE__ */ a(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=/* @__PURE__ */ a(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=/* @__PURE__ */ a(e=>{r(e,n),e.title&&n.setTitle(e.title),e.rules.map(e=>n.addRule(h(e)))},`populateDb`),_={parser:{parse:/* @__PURE__ */ a(e=>{n.clear(),i.debug(`[PEG Parser] Starting Langium parse`);let t=c.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new o(t);let r=t.value;i.debug(`[PEG Parser] Parsed rules:`,r.rules.length),g(r),i.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:n}},db:n,renderer:t,styles:e};export{_ as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as createPieServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{t as e}from"./chunk-JWPE2WC7-DVXcaiue.js";import{o as t}from"./mermaid-DaDuEHir.js";import{i as n,m as r}from"./chunk-6MUBBAK2-CeH4cZO-.js";import{C as i,H as a,U as o,_ as s,a as c,b as l,c as u,f as d,q as f,v as p}from"./chunk-BG4553SI-DUBI9JbR.js";import{n as m}from"./d3-selection-CBFxn8wf.js";import{n as h}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as g}from"./mermaid-parser.core-Bv_Zx_ZE.js";import{S as _,n as v}from"./d3-shape-v1Y4qR5e.js";import{d as y}from"./d3-scale-BEO6F4Sh.js";var b=d.pie,x={sections:/* @__PURE__ */ new Map,showData:!1,config:b},S=x.sections,C=x.showData,w=structuredClone(b),T={getConfig:/* @__PURE__ */ h(()=>structuredClone(w),`getConfig`),clear:/* @__PURE__ */ h(()=>{S=/* @__PURE__ */ new Map,C=x.showData,c()},`clear`),setDiagramTitle:f,getDiagramTitle:i,setAccTitle:o,getAccTitle:p,setAccDescription:a,getAccDescription:s,addSection:/* @__PURE__ */ h(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);S.has(e)||(S.set(e,t),m.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:/* @__PURE__ */ h(()=>S,`getSections`),setShowData:/* @__PURE__ */ h(e=>{C=e},`setShowData`),getShowData:/* @__PURE__ */ h(()=>C,`getShowData`)},E=/* @__PURE__ */ h((t,n)=>{e(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},`populateDb`),D={parse:/* @__PURE__ */ h(async e=>{let t=await g(`pie`,e);m.debug(t),E(t,T)},`parse`)},O=/* @__PURE__ */ h(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieCircle.highlighted{
|
|
8
|
+
scale: 1.05;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.pieCircle.highlightedOnHover:hover{
|
|
12
|
+
transition-duration: 250ms;
|
|
13
|
+
scale: 1.05;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
.pieOuterCircle{
|
|
17
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
18
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
19
|
+
fill: none;
|
|
20
|
+
}
|
|
21
|
+
.pieTitleText {
|
|
22
|
+
text-anchor: middle;
|
|
23
|
+
font-size: ${e.pieTitleTextSize};
|
|
24
|
+
fill: ${e.pieTitleTextColor};
|
|
25
|
+
font-family: ${e.fontFamily};
|
|
26
|
+
}
|
|
27
|
+
.slice {
|
|
28
|
+
font-family: ${e.fontFamily};
|
|
29
|
+
fill: ${e.pieSectionTextColor};
|
|
30
|
+
font-size:${e.pieSectionTextSize};
|
|
31
|
+
// fill: white;
|
|
32
|
+
}
|
|
33
|
+
.legend text {
|
|
34
|
+
fill: ${e.pieLegendTextColor};
|
|
35
|
+
font-family: ${e.fontFamily};
|
|
36
|
+
font-size: ${e.pieLegendTextSize};
|
|
37
|
+
}
|
|
38
|
+
`,`getStyles`),k=/* @__PURE__ */ h(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return _().value(e=>e.value).sort(null)(n)},`createPieArcs`),A={parser:D,db:T,renderer:{draw:/* @__PURE__ */ h((e,i,a,o)=>{m.debug(`rendering pie chart
|
|
39
|
+
`+e);let s=o.db,c=l(),d=n(s.getConfig(),c.pie),f=t(i),p=f.append(`g`);p.attr(`transform`,`translate(225,225)`);let{themeVariables:h}=c,[g]=r(h.pieOuterStrokeWidth);g??=2;let _=d.legendPosition,b=d.textPosition,x=d.donutHole>0&&d.donutHole<=.9?d.donutHole:0,S=v().innerRadius(x*185).outerRadius(185),C=v().innerRadius(185*b).outerRadius(185*b),w=p.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let T=s.getSections(),E=k(T),D=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],O=0;T.forEach(e=>{O+=e});let A=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),j=y(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(A).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>j(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return d.highlightSlice===`hover`?t+=` highlightedOnHover`:d.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(A).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let M=p.append(`text`).text(s.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),N=[...T.entries()].map(([e,t])=>({label:e,value:t})),P=p.selectAll(`.legend`).data(N).enter().append(`g`).attr(`class`,`legend`);P.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>j(e.label)).style(`stroke`,e=>j(e.label)),P.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>s.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...P.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=N.length*22;switch(_){case`center`:P.attr(`transform`,(e,t)=>{let n=22*N.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,P.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,P.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,P.attr(`transform`,(e,t)=>{let n=22*N.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,P.attr(`transform`,(e,t)=>{let n=22*N.length/2;return`translate(216,`+(t*22-n)+`)`})}let z=M.node()?.getBoundingClientRect().width??0,B=225-z/2,V=225+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;f.attr(`viewBox`,`${H} 0 ${U} ${I}`),u(f,I,U,d.useMaxWidth)},`draw`)},styles:O};export{A as diagram};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{C as e,E as t,H as n,U as r,_ as i,a,b as o,c as s,f as c,q as l,v as u,z as d}from"./chunk-BG4553SI-DUBI9JbR.js";import{n as f,t as p}from"./d3-selection-CBFxn8wf.js";import{n as m}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{l as h}from"./d3-scale-BEO6F4Sh.js";var g=(function(){var e=/* @__PURE__ */ m(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],l=[2,36],u=[1,37],d=[1,36],f=[1,38],p=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:/* @__PURE__ */ m(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:/* @__PURE__ */ m(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(c,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:d,10:f,12:p,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(c,[2,37]),e(c,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:d,10:f,12:p,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,39]),e(c,[2,40]),e(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(c,[2,45]),e(c,[2,46]),{18:[1,51]},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,10:f,12:p,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(o,[2,35]),e(c,[2,38]),e(c,[2,42]),e(c,[2,43]),e(c,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(c,[2,53],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(c,[2,56],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(c,[2,57],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,58],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,59],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,60],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(c,[2,52],{58:31,43:84,4:u,5:d,10:f,12:p,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(c,[2,55],{58:31,43:85,4:u,5:d,10:f,12:p,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(c,[2,51],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,54],{59:60,58:61,4:u,5:d,8:R,10:f,12:p,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(c,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(c,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(c,[2,49],{10:fe}),e(c,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(c,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:/* @__PURE__ */ m(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:/* @__PURE__ */ m(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}m(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}m(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(p)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=/* @__PURE__ */ (function(){return{EOF:1,parseError:/* @__PURE__ */ m(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:/* @__PURE__ */ m(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:/* @__PURE__ */ m(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:/* @__PURE__ */ m(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:/* @__PURE__ */ m(function(){return this._more=!0,this},`more`),reject:/* @__PURE__ */ m(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
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:/* @__PURE__ */ m(function(e){this.unput(this.match.slice(e))},`less`),pastInput:/* @__PURE__ */ m(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:/* @__PURE__ */ m(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:/* @__PURE__ */ m(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:/* @__PURE__ */ m(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:/* @__PURE__ */ m(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:/* @__PURE__ */ m(function(){return this.next()||this.lex()},`lex`),begin:/* @__PURE__ */ m(function(e){this.conditionStack.push(e)},`begin`),popState:/* @__PURE__ */ m(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:/* @__PURE__ */ m(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:/* @__PURE__ */ m(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:/* @__PURE__ */ m(function(e){this.begin(e)},`pushState`),stateStackSize:/* @__PURE__ */ m(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:/* @__PURE__ */ m(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return m($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=t(),y=class{constructor(){this.classes=/* @__PURE__ */ new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{m(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:c.quadrantChart?.chartWidth||500,chartWidth:c.quadrantChart?.chartHeight||500,titlePadding:c.quadrantChart?.titlePadding||10,titleFontSize:c.quadrantChart?.titleFontSize||20,quadrantPadding:c.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:c.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:c.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:c.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:c.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:c.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:c.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:c.quadrantChart?.pointTextPadding||5,pointLabelFontSize:c.quadrantChart?.pointLabelFontSize||12,pointRadius:c.quadrantChart?.pointRadius||5,xAxisPosition:c.quadrantChart?.xAxisPosition||`top`,yAxisPosition:c.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:c.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:c.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=/* @__PURE__ */ new Map,f.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){f.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){f.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=h().domain([0,1]).range([r,a+r]),s=h().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{m(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}m(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}m(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}m(C,`validateSizeInPixels`);function w(e){return d(e.trim(),o())}m(w,`textSanitizer`);var T=new y;function E(e){T.setData({quadrant1Text:w(e.text)})}m(E,`setQuadrant1Text`);function D(e){T.setData({quadrant2Text:w(e.text)})}m(D,`setQuadrant2Text`);function O(e){T.setData({quadrant3Text:w(e.text)})}m(O,`setQuadrant3Text`);function k(e){T.setData({quadrant4Text:w(e.text)})}m(k,`setQuadrant4Text`);function A(e){T.setData({xAxisLeftText:w(e.text)})}m(A,`setXAxisLeftText`);function j(e){T.setData({xAxisRightText:w(e.text)})}m(j,`setXAxisRightText`);function M(e){T.setData({yAxisTopText:w(e.text)})}m(M,`setYAxisTopText`);function N(e){T.setData({yAxisBottomText:w(e.text)})}m(N,`setYAxisBottomText`);function P(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}m(P,`parseStyles`);function F(e,t,n,r,i){let a=P(i);T.addPoints([{x:n,y:r,text:w(e.text),className:t,...a}])}m(F,`addPoint`);function I(e,t){T.addClass(e,P(t))}m(I,`addClass`);function L(e){T.setConfig({chartWidth:e})}m(L,`setWidth`);function R(e){T.setConfig({chartHeight:e})}m(R,`setHeight`);function z(){let{themeVariables:t,quadrantChart:n}=o();return n&&T.setConfig(n),T.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),T.setData({titleText:e()}),T.build()}m(z,`getQuadrantData`);var B={parser:_,db:{setWidth:L,setHeight:R,setQuadrant1Text:E,setQuadrant2Text:D,setQuadrant3Text:O,setQuadrant4Text:k,setXAxisLeftText:A,setXAxisRightText:j,setYAxisTopText:M,setYAxisBottomText:N,parseStyles:P,addPoint:F,addClass:I,getQuadrantData:z,clear:/* @__PURE__ */ m(function(){T.clear(),a()},`clear`),setAccTitle:r,getAccTitle:u,setDiagramTitle:l,getDiagramTitle:e,getAccDescription:i,setAccDescription:n},renderer:{draw:/* @__PURE__ */ m((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}m(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}m(a,`getTextAnchor`);function c(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}m(c,`getTransformation`);let l=o();f.debug(`Rendering quadrant chart
|
|
7
|
+
`+e);let u=l.securityLevel,d;u===`sandbox`&&(d=p(`#i`+t));let h=p(u===`sandbox`?d.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),g=h.append(`g`).attr(`class`,`main`),_=l.quadrantChart?.chartWidth??500,v=l.quadrantChart?.chartHeight??500;s(h,v,_,l.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),r.db.setHeight(v),r.db.setWidth(_);let y=r.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,i(y.title.horizontalPos)).attr(`text-anchor`,a(y.title.verticalPos)).attr(`transform`,c(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>c(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>c(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>c(e.text))},`draw`)},styles:/* @__PURE__ */ m(()=>``,`styles`)};export{B as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{v as createRadarServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{g as createRailroadServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{m as createRailroadAbnfServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{f as createRailroadEbnfServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{u as createRailroadPegServices}from"./mermaid-parser.core-Bv_Zx_ZE.js";import"./chunk-NGNAAXSQ-DreF1ykJ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-OY52VR5R-BamrP8d_.js";import{t as r}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid-DaDuEHir.js";import"./chunk-BG4553SI-DUBI9JbR.js";import{n as i}from"./d3-selection-CBFxn8wf.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{g as o,t as s}from"./mermaid-parser.core-Bv_Zx_ZE.js";var c=o().Railroad.parser.LangiumParser,l=/* @__PURE__ */ a(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=/* @__PURE__ */ a(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=/* @__PURE__ */ a(e=>{r(e,n),e.title&&n.setTitle(e.title),e.rules.map(e=>n.addRule(u(e)))},`populateDb`),f={parser:{parse:/* @__PURE__ */ a(e=>{n.clear(),i.debug(`[Railroad Parser] Starting Langium parse`);let t=c.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new s(t);let r=t.value;i.debug(`[Railroad Parser] Parsed rules:`,r.rules.length),d(r),i.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:n}},db:n,renderer:t,styles:e};export{f as diagram};
|