project-athena 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +247 -0
  3. package/dist/cli.js +8614 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/web/assets/Editor-DmFaONG7.js +39 -0
  6. package/dist/web/assets/_basePickBy-QJXUw_pr.js +1 -0
  7. package/dist/web/assets/_baseUniq-DR4vVjyC.js +1 -0
  8. package/dist/web/assets/abnfDiagram-O67JEVCF-BEaDGLKl.js +1 -0
  9. package/dist/web/assets/arc-DgcGdgmL.js +1 -0
  10. package/dist/web/assets/architecture-7GRP2DOG-CHNxu4zI.js +1 -0
  11. package/dist/web/assets/architectureDiagram-NJMV4G6O-Cr_YqU4C.js +36 -0
  12. package/dist/web/assets/array-BifhSqXX.js +1 -0
  13. package/dist/web/assets/blockDiagram-BEXU5L5S-NA64lNxM.js +140 -0
  14. package/dist/web/assets/c4Diagram-YGBWAQC7-C9OZTI8T.js +38 -0
  15. package/dist/web/assets/channel-D_T5GGJX.js +1 -0
  16. package/dist/web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  17. package/dist/web/assets/chunk-3FUC2YCW-PivwegVV.js +2 -0
  18. package/dist/web/assets/chunk-5DYCD2WN-DH_dVKgx.js +1 -0
  19. package/dist/web/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  20. package/dist/web/assets/chunk-742MDFTN-DTR6iTOw.js +1 -0
  21. package/dist/web/assets/chunk-7INBJB4K-XeJOzIDQ.js +62 -0
  22. package/dist/web/assets/chunk-7M6MHVWA-Bn-cXg0l.js +213 -0
  23. package/dist/web/assets/chunk-7PRAP22T-CPe5zfLc.js +1 -0
  24. package/dist/web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  25. package/dist/web/assets/chunk-FOHPRMQF-DzxwRta7.js +161 -0
  26. package/dist/web/assets/chunk-GTNCS2PH-DSn-mpqy.js +88 -0
  27. package/dist/web/assets/chunk-GWA4HPMP-DE4DJkth.js +1 -0
  28. package/dist/web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  29. package/dist/web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  30. package/dist/web/assets/chunk-MBY4JIJT-9uaOqseW.js +72 -0
  31. package/dist/web/assets/chunk-NETBCI7D-bxqe7jPe.js +1 -0
  32. package/dist/web/assets/chunk-O7XYJQB3-CjZQSnt8.js +126 -0
  33. package/dist/web/assets/chunk-UA2S7LBM-BfYbPxwY.js +1 -0
  34. package/dist/web/assets/chunk-WEXAMYUT-CT8bG5L7.js +1 -0
  35. package/dist/web/assets/chunk-XXDRQBXY-BvKO0v-W.js +1 -0
  36. package/dist/web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  37. package/dist/web/assets/chunk-Z7XXMR3K-CHWuLoFG.js +10 -0
  38. package/dist/web/assets/chunk-ZIGJFQKS-C6SOqBs6.js +2 -0
  39. package/dist/web/assets/classDiagram-v2-NBCMYWYE-CrSxkUNF.js +217 -0
  40. package/dist/web/assets/cose-bilkent-JH36ORCC-COXSdE6a.js +1 -0
  41. package/dist/web/assets/cynefin-OW5HDTMX-CMbTYwga.js +1 -0
  42. package/dist/web/assets/cynefinDiagram-VND7K2PF-B8wb03CF.js +62 -0
  43. package/dist/web/assets/cytoscape.esm-Yq6u8L66.js +321 -0
  44. package/dist/web/assets/dagre-6A5THRUB-Bz-BHtjW.js +4 -0
  45. package/dist/web/assets/defaultLocale-BFoDCU3G.js +1 -0
  46. package/dist/web/assets/diagram-22UHCM2B-C9M-mcex.js +200 -0
  47. package/dist/web/assets/diagram-3UASUU5V-q18RgATq.js +24 -0
  48. package/dist/web/assets/diagram-ATOU4E4O-zywdDXPc.js +3 -0
  49. package/dist/web/assets/diagram-CDSNMT55-BGMdofKO.js +30 -0
  50. package/dist/web/assets/diagram-MLGK6HIB-BdT0J6Xl.js +24 -0
  51. package/dist/web/assets/diagram-MPIPVDR6-BXdFmdOp.js +41 -0
  52. package/dist/web/assets/dist-B_J_HbC0.js +1 -0
  53. package/dist/web/assets/ebnfDiagram-ZINNZB2B-B7Mz8zd0.js +1 -0
  54. package/dist/web/assets/elk-276RUBZZ-CQ4lVw-r.js +27 -0
  55. package/dist/web/assets/erDiagram-OPXOYQCR-DmmZBLvC.js +99 -0
  56. package/dist/web/assets/eventmodeling-NTZA5JFV-BgPhBkRf.js +1 -0
  57. package/dist/web/assets/flowDiagram-KWPJA3E3-C3wNriu7.js +1 -0
  58. package/dist/web/assets/ganttDiagram-FUAMR5RP-B0egPzgH.js +292 -0
  59. package/dist/web/assets/gitGraph-4MIJSDKK-BdShI4JY.js +1 -0
  60. package/dist/web/assets/gitGraphDiagram-X574FWY7-jwG6nUmP.js +106 -0
  61. package/dist/web/assets/graphlib-C9Tl7QrK.js +1 -0
  62. package/dist/web/assets/index-BSiW3yI1.js +45 -0
  63. package/dist/web/assets/index-DKE3ojTe.css +1 -0
  64. package/dist/web/assets/info-A6RAGUB7-Hm3KO-lX.js +1 -0
  65. package/dist/web/assets/infoDiagram-VRGFBTTK-CdcggvNW.js +2 -0
  66. package/dist/web/assets/init-C-OQMol4.js +1 -0
  67. package/dist/web/assets/ishikawaDiagram-OU5B5YK6-C8x3tV6X.js +70 -0
  68. package/dist/web/assets/journeyDiagram-ZHPQQLJL-CLXIkiwl.js +139 -0
  69. package/dist/web/assets/kanban-definition-PNTS6WVX-P94klDAy.js +89 -0
  70. package/dist/web/assets/katex-ZlcWpGUi.js +257 -0
  71. package/dist/web/assets/line-DtGZCXZs.js +1 -0
  72. package/dist/web/assets/linear-BUnzfXgk.js +1 -0
  73. package/dist/web/assets/mermaid-parser.core-Du2mcMMx.js +7 -0
  74. package/dist/web/assets/mermaid.core-B4zgSyXF.js +44 -0
  75. package/dist/web/assets/mindmap-definition-NLK3R4M7-C0EF7lWr.js +96 -0
  76. package/dist/web/assets/ordinal-BDEzSJ7C.js +1 -0
  77. package/dist/web/assets/packet-AYTQ26CC-SJ1tKR5t.js +1 -0
  78. package/dist/web/assets/path-fybaL0A-.js +1 -0
  79. package/dist/web/assets/pegDiagram-GJSIUBJH-Dek_S7Z0.js +1 -0
  80. package/dist/web/assets/pie-WAS4IAKB-C0wgWLu4.js +1 -0
  81. package/dist/web/assets/pieDiagram-5QR66LMP-Dy1jV_P-.js +39 -0
  82. package/dist/web/assets/quadrantDiagram-O4NWA36T-Df6Jl4OG.js +7 -0
  83. package/dist/web/assets/radar-RG4KPBEZ-BCtk017a.js +1 -0
  84. package/dist/web/assets/railroad-74A4TZTK-_ZAooQok.js +1 -0
  85. package/dist/web/assets/railroad-abnf-HS5TGJTU-Bacbbg7g.js +1 -0
  86. package/dist/web/assets/railroad-ebnf-LZEXJU2U-Cb23oOsU.js +1 -0
  87. package/dist/web/assets/railroad-peg-WCYAUIDC-EPh5LyCw.js +1 -0
  88. package/dist/web/assets/railroadDiagram-XR7U4H2S-DNraioKj.js +1 -0
  89. package/dist/web/assets/requirementDiagram-PLB6GJNP-C09s8xl6.js +84 -0
  90. package/dist/web/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
  91. package/dist/web/assets/rough.esm-Dy-Kn_BL.js +1 -0
  92. package/dist/web/assets/sankeyDiagram-IPEJSGJF-cwVwdash.js +40 -0
  93. package/dist/web/assets/sequenceDiagram-PO4LG4MO-Uz6m2m-d.js +169 -0
  94. package/dist/web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  95. package/dist/web/assets/src-oBChb5qS.js +1 -0
  96. package/dist/web/assets/stateDiagram-v2-GCMORJYK-DASY_MN7.js +291 -0
  97. package/dist/web/assets/swimlanes-2SLR337P-DjbxDj0Z.js +1 -0
  98. package/dist/web/assets/swimlanesDiagram-TC7HE7FX-Bv90z5my.js +8 -0
  99. package/dist/web/assets/timeline-definition-EJHVYXUP-Dffxj5AG.js +120 -0
  100. package/dist/web/assets/treeView-Q6P3EWNA-CXAvuG6A.js +1 -0
  101. package/dist/web/assets/treemap-WGGIJYW6-D_BSE2GX.js +1 -0
  102. package/dist/web/assets/usecaseDiagram-POWQR4AR-CKcfbpDB.js +328 -0
  103. package/dist/web/assets/vennDiagram-UO4OBE2U-DkJknm_I.js +34 -0
  104. package/dist/web/assets/wardley-WFR3VGLG-Drx6WB-t.js +1 -0
  105. package/dist/web/assets/wardleyDiagram-VNRHLVJA-fdjd5am3.js +78 -0
  106. package/dist/web/assets/xychartDiagram-PMCCYNJV-DCWTWMv0.js +7 -0
  107. package/dist/web/favicon.svg +1 -0
  108. package/dist/web/index.html +17 -0
  109. package/package.json +77 -0
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ZIGJFQKS-C6SOqBs6.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
@@ -0,0 +1 @@
1
+ import{l as e,n as t,o as n,r,t as i}from"./src-oBChb5qS.js";import{i as a,n as o,r as s,t as c}from"./defaultLocale-BFoDCU3G.js";import{t as l}from"./init-C-OQMol4.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(a,o){var s=typeof o,c;return o==null||s===`boolean`?n(o):(s===`number`?t:s===`string`?(c=e(o))?(o=c,r):i:o instanceof e?r:o instanceof Date?D:T(o)?w:Array.isArray(o)?E:typeof o.valueOf!=`function`&&typeof o.toString!=`function`||isNaN(o)?O:t)(a,o)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(e){return Math.max(0,-a(Math.abs(e)))}function M(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(t)/3)))*3-a(Math.abs(e)))}function N(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,n=I,r=k,i,a,o,s=L,c,l,u;function d(){var t=Math.min(e.length,n.length);return s!==L&&(s=z(e[0],e[t-1])),c=t>2?V:B,l=u=null,f}function f(t){return t==null||isNaN(t=+t)?o:(l||=c(e.map(i),n,r))(i(s(t)))}return f.invert=function(r){return s(a((u||=c(n,e.map(i),t))(r)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}function W(){return U()(L,L)}function G(e,t,n,r){var i=C(e,t,n),a;switch(r=s(r??`,f`),r.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=M(i,l))&&(r.precision=a),o(r,l);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=N(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=j(i))&&(r.precision=a-(r.type===`%`)*2)}return c(r)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},l.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
@@ -0,0 +1,7 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-A6RAGUB7-Hm3KO-lX.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/packet-AYTQ26CC-SJ1tKR5t.js","assets/pie-WAS4IAKB-C0wgWLu4.js","assets/treeView-Q6P3EWNA-CXAvuG6A.js","assets/architecture-7GRP2DOG-CHNxu4zI.js","assets/gitGraph-4MIJSDKK-BdShI4JY.js","assets/eventmodeling-NTZA5JFV-BgPhBkRf.js","assets/radar-RG4KPBEZ-BCtk017a.js","assets/railroad-74A4TZTK-_ZAooQok.js","assets/railroad-ebnf-LZEXJU2U-Cb23oOsU.js","assets/railroad-abnf-HS5TGJTU-Bacbbg7g.js","assets/railroad-peg-WCYAUIDC-EPh5LyCw.js","assets/treemap-WGGIJYW6-D_BSE2GX.js","assets/wardley-WFR3VGLG-Drx6WB-t.js","assets/cynefin-OW5HDTMX-CMbTYwga.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./index-BSiW3yI1.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-DzxwRta7.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=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:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(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(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`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`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`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()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=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}continue}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 I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=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)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=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}continue}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 B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=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+=`
5
+ `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}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 U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`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`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`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 J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`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`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`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}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-Hm3KO-lX.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]));$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-SJ1tKR5t.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]));$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-C0wgWLu4.js`);return{createPieServices:e}},__vite__mapDeps([3,1]));$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-CXAvuG6A.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]));$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-CHNxu4zI.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]));$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-BdShI4JY.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]));$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-BgPhBkRf.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]));$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-BCtk017a.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]));$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-_ZAooQok.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]));$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-Cb23oOsU.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]));$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-Bacbbg7g.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]));$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-EPh5LyCw.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]));$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-D_BSE2GX.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]));$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-Drx6WB-t.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]));$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-CMbTYwga.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]));$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
6
+ `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
7
+ `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};
@@ -0,0 +1,44 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/elk-276RUBZZ-CQ4lVw-r.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-oBChb5qS.js","assets/chunk-O7XYJQB3-CjZQSnt8.js","assets/index-BSiW3yI1.js","assets/index-DKE3ojTe.css","assets/chunk-ZIGJFQKS-C6SOqBs6.js","assets/dist-B_J_HbC0.js","assets/chunk-742MDFTN-DTR6iTOw.js","assets/chunk-MBY4JIJT-9uaOqseW.js","assets/chunk-7PRAP22T-CPe5zfLc.js","assets/chunk-7INBJB4K-XeJOzIDQ.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-5DYCD2WN-DH_dVKgx.js","assets/chunk-Z7XXMR3K-CHWuLoFG.js","assets/line-DtGZCXZs.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-UA2S7LBM-BfYbPxwY.js","assets/chunk-3FUC2YCW-PivwegVV.js","assets/graphlib-C9Tl7QrK.js","assets/_baseUniq-DR4vVjyC.js","assets/chunk-NETBCI7D-bxqe7jPe.js","assets/dagre-6A5THRUB-Bz-BHtjW.js","assets/_basePickBy-QJXUw_pr.js","assets/swimlanes-2SLR337P-DjbxDj0Z.js","assets/cose-bilkent-JH36ORCC-COXSdE6a.js","assets/cytoscape.esm-Yq6u8L66.js","assets/c4Diagram-YGBWAQC7-C9OZTI8T.js","assets/chunk-GWA4HPMP-DE4DJkth.js","assets/flowDiagram-KWPJA3E3-C3wNriu7.js","assets/chunk-XXDRQBXY-BvKO0v-W.js","assets/chunk-WEXAMYUT-CT8bG5L7.js","assets/chunk-7M6MHVWA-Bn-cXg0l.js","assets/channel-D_T5GGJX.js","assets/chunk-5VM5RSS4-ZNzvKenW.js","assets/diagram-22UHCM2B-C9M-mcex.js","assets/swimlanesDiagram-TC7HE7FX-Bv90z5my.js","assets/erDiagram-OPXOYQCR-DmmZBLvC.js","assets/gitGraphDiagram-X574FWY7-jwG6nUmP.js","assets/mermaid-parser.core-Du2mcMMx.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/chunk-JWPE2WC7-DVXcaiue.js","assets/chunk-2Q5K7J3B-C1jixKkw.js","assets/ganttDiagram-FUAMR5RP-B0egPzgH.js","assets/linear-BUnzfXgk.js","assets/defaultLocale-BFoDCU3G.js","assets/init-C-OQMol4.js","assets/infoDiagram-VRGFBTTK-CdcggvNW.js","assets/pieDiagram-5QR66LMP-Dy1jV_P-.js","assets/ordinal-BDEzSJ7C.js","assets/arc-DgcGdgmL.js","assets/quadrantDiagram-O4NWA36T-Df6Jl4OG.js","assets/xychartDiagram-PMCCYNJV-DCWTWMv0.js","assets/requirementDiagram-PLB6GJNP-C09s8xl6.js","assets/sequenceDiagram-PO4LG4MO-Uz6m2m-d.js","assets/classDiagram-v2-NBCMYWYE-CrSxkUNF.js","assets/stateDiagram-v2-GCMORJYK-DASY_MN7.js","assets/journeyDiagram-ZHPQQLJL-CLXIkiwl.js","assets/timeline-definition-EJHVYXUP-Dffxj5AG.js","assets/mindmap-definition-NLK3R4M7-C0EF7lWr.js","assets/kanban-definition-PNTS6WVX-P94klDAy.js","assets/sankeyDiagram-IPEJSGJF-cwVwdash.js","assets/diagram-MLGK6HIB-BdT0J6Xl.js","assets/diagram-MPIPVDR6-BXdFmdOp.js","assets/blockDiagram-BEXU5L5S-NA64lNxM.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/diagram-CDSNMT55-BGMdofKO.js","assets/architectureDiagram-NJMV4G6O-Cr_YqU4C.js","assets/diagram-ATOU4E4O-zywdDXPc.js","assets/ishikawaDiagram-OU5B5YK6-C8x3tV6X.js","assets/vennDiagram-UO4OBE2U-DkJknm_I.js","assets/diagram-3UASUU5V-q18RgATq.js","assets/usecaseDiagram-POWQR4AR-CKcfbpDB.js","assets/wardleyDiagram-VNRHLVJA-fdjd5am3.js","assets/cynefinDiagram-VND7K2PF-B8wb03CF.js","assets/railroadDiagram-XR7U4H2S-DNraioKj.js","assets/chunk-GTNCS2PH-DSn-mpqy.js","assets/ebnfDiagram-ZINNZB2B-B7Mz8zd0.js","assets/abnfDiagram-O67JEVCF-BEaDGLKl.js","assets/pegDiagram-GJSIUBJH-Dek_S7Z0.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,t}from"./index-BSiW3yI1.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{h as r,m as i,p as a}from"./src-oBChb5qS.js";import{$ as o,C as s,E as c,I as l,J as u,K as d,L as f,N as p,P as m,Q as h,S as g,T as _,V as v,W as y,Z as b,_ as x,b as S,c as C,f as w,g as ee,l as T,m as E,n as D,p as O,r as k,s as A,t as j,u as M,x as te}from"./chunk-O7XYJQB3-CjZQSnt8.js";import{S as N,a as P,d as F,f as I,g as L,h as ne,i as re,o as ie,v as ae,x as oe,y as se}from"./chunk-ZIGJFQKS-C6SOqBs6.js";import{r as ce}from"./chunk-742MDFTN-DTR6iTOw.js";import{a as le}from"./chunk-MBY4JIJT-9uaOqseW.js";import{t as ue}from"./chunk-DUW6YSOI-Dgx8z5s3.js";import"./chunk-7PRAP22T-CPe5zfLc.js";import{o as de}from"./chunk-7INBJB4K-XeJOzIDQ.js";import{r as fe}from"./chunk-5DYCD2WN-DH_dVKgx.js";import{a as pe,c as me,i as R,l as he}from"./chunk-Z7XXMR3K-CHWuLoFG.js";import{r as ge}from"./chunk-UA2S7LBM-BfYbPxwY.js";var _e=n(e=>{let{securityLevel:t}=te(),n=a(`body`);if(t===`sandbox`){let t=a(`#i${e}`).node()?.contentDocument??document;n=a(t.body)}return n.select(`#${e}`)},`selectSvgElement`);function ve(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function ye(e){if(e==null)return!0;if(oe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!N(e)&&!ae(e)&&!se(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 ve(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var be={common:A,getConfig:S,insertCluster:ge,insertEdge:R,insertEdgeLabel:pe,insertMarkers:me,insertNode:fe,interpolateToCurve:F,labelHelper:de,log:i,positionEdgeLabel:he},xe=[`elk.stress`,`elk.force`,`elk.mrtree`,`elk.sporeOverlap`,`elk.box`,`elk.rectpacking`],Se=Object.create(null),Ce=n(e=>{for(let t of e)Se[t.name]=t},`registerLayoutLoaders`),we=n(()=>{let e=n(async()=>await t(()=>import(`./elk-276RUBZZ-CQ4lVw-r.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),`loader`);return[{name:`elk`,loader:e,algorithm:`elk.layered`},...xe.map(t=>({name:t,loader:e,algorithm:t}))]},`elkLayoutLoaders`);n(()=>{Ce([{name:`dagre`,loader:n(async()=>await t(()=>import(`./dagre-6A5THRUB-Bz-BHtjW.js`),__vite__mapDeps([25,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,23,26,22,20,21])),`loader`)},{name:`swimlane`,loader:n(async()=>await t(()=>import(`./swimlanes-2SLR337P-DjbxDj0Z.js`),__vite__mapDeps([27,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),`loader`)},{name:`cose-bilkent`,loader:n(async()=>await t(()=>import(`./cose-bilkent-JH36ORCC-COXSdE6a.js`),__vite__mapDeps([28,1,2,3,29])),`loader`)},...we()])},`registerDefaultLayoutLoaders`)();var Te=n(async(e,t)=>{if(!Object.hasOwn(Se,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 n=Se[e.layoutAlgorithm],r=await n.loader();return ue(t,e.config),r.render(e,t,be,{algorithm:n.algorithm})},`render`),Ee=`dagre`,De=n((e=``,{fallback:t=Ee}={})=>{if(Object.hasOwn(Se,e))return e;for(let n of[t,Ee])if(Object.hasOwn(Se,n))return i.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Neither layout algorithm ${e}, ${t}, nor ${Ee} is registered.`)},`getRegisteredLayoutAlgorithm`);function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}n(Oe,`getDefaultExportFromCjs`);var z={},ke={},B={},Ae;function V(){if(Ae)return B;Ae=1;function e(e){return e==null}n(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}n(t,`isObject`);function r(t){return Array.isArray(t)?t:e(t)?[]:[t]}n(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}n(i,`extend`);function a(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}n(a,`repeat`);function o(e){return e===0&&1/e==-1/0}return n(o,`isNegativeZero`),B.isNothing=e,B.isObject=t,B.toArray=r,B.repeat=a,B.isNegativeZero=o,B.extend=i,B}n(V,`requireCommon`);var je,Me;function H(){if(Me)return je;Me=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+=`
3
+
4
+ `+e.mark.snippet),r+` `+n):r}n(e,`formatError`);function t(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=Error().stack||``}return n(t,`YAMLException2`),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=n(function(t){return this.name+`: `+e(this,t)},`toString`),je=t,je}n(H,`requireException`);var Ne,Pe;function Fe(){if(Pe)return Ne;Pe=1;let e=V();function t(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}}n(t,`getLine`);function r(t,n){return e.repeat(` `,n-t.length)+t}n(r,`padStart`);function i(n,i){if(i=Object.create(i||null),!n.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(n.buffer);)s.push(c.index),o.push(c.index+c[0].length),n.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(n.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=t(n.buffer,o[l-a],s[l-a],n.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+r((n.line-a+1).toString(),d)+` | `+c.str+`
5
+ `+u}let p=t(n.buffer,o[l],s[l],n.position,f);u+=e.repeat(` `,i.indent)+r((n.line+1).toString(),d)+` | `+p.str+`
6
+ `,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
7
+ `;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(n.buffer,o[l+a],s[l+a],n.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+r((n.line+a+1).toString(),d)+` | `+c.str+`
8
+ `}return u.replace(/\n$/,``)}return n(i,`makeSnippet`),Ne=i,Ne}n(Fe,`requireSnippet`);var Ie,Le;function U(){if(Le)return Ie;Le=1;let e=H(),t=[`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}n(i,`compileStyleAliases`);function a(n,a){if(a||={},Object.keys(a).forEach(function(r){if(t.indexOf(r)===-1)throw new e(`Unknown option "`+r+`" is met in definition of "`+n+`" YAML type.`)}),this.options=a,this.tag=n,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 "`+n+`" YAML type.`)}return n(a,`Type2`),Ie=a,Ie}n(U,`requireType`);var Re,ze;function Be(){if(ze)return Re;ze=1;let e=H(),t=U();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}n(r,`compileList`);function i(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}n(t,`collectType`);for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}n(i,`compileMap`);function a(e){return this.extend(e)}return n(a,`Schema2`),a.prototype.extend=n(function(n){let o=[],s=[];if(n instanceof t)s.push(n);else if(Array.isArray(n))s=s.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(o=o.concat(n.implicit)),n.explicit&&(s=s.concat(n.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.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(n.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(n){if(!(n instanceof t))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`),Re=a,Re}n(Be,`requireSchema`);var Ve,He;function Ue(){return He?Ve:(He=1,Ve=new(U())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:n(function(e){return e===null?``:e},`construct`)}),Ve)}n(Ue,`requireStr`);var We,Ge;function Ke(){return Ge?We:(Ge=1,We=new(U())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:n(function(e){return e===null?[]:e},`construct`)}),We)}n(Ke,`requireSeq`);var qe,Je;function Ye(){return Je?qe:(Je=1,qe=new(U())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:n(function(e){return e===null?{}:e},`construct`)}),qe)}n(Ye,`requireMap`);var Xe,Ze;function Qe(){return Ze?Xe:(Ze=1,Xe=new(Be())({explicit:[Ue(),Ke(),Ye()]}),Xe)}n(Qe,`requireFailsafe`);var $e,et;function tt(){if(et)return $e;et=1;let e=U();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}n(t,`resolveYamlNull`);function r(){return null}n(r,`constructYamlNull`);function i(e){return e===null}return n(i,`isNull`),$e=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:r,predicate:i,represent:{canonical:n(function(){return`~`},`canonical`),lowercase:n(function(){return`null`},`lowercase`),uppercase:n(function(){return`NULL`},`uppercase`),camelcase:n(function(){return`Null`},`camelcase`),empty:n(function(){return``},`empty`)},defaultStyle:`lowercase`}),$e}n(tt,`require_null`);var nt,rt;function it(){if(rt)return nt;rt=1;let e=U();function t(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`)}n(t,`resolveYamlBoolean`);function r(e){return e===`true`||e===`True`||e===`TRUE`}n(r,`constructYamlBoolean`);function i(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return n(i,`isBoolean`),nt=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:r,predicate:i,represent:{lowercase:n(function(e){return e?`true`:`false`},`lowercase`),uppercase:n(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:n(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`}),nt}n(it,`requireBool`);var at,ot;function st(){if(ot)return at;ot=1;let e=V(),t=U();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}n(r,`isHexCode`);function i(e){return e>=48&&e<=55}n(i,`isOctCode`);function a(e){return e>=48&&e<=57}n(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}n(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)}n(s,`parseYamlInteger`);function c(e){return s(e)}n(c,`constructYamlInteger`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return n(l,`isInteger`),at=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:o,construct:c,predicate:l,represent:{binary:n(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:n(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:n(function(e){return e.toString(10)},`decimal`),hexadecimal:n(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`]}}),at}n(st,`requireInt`);var ct,lt;function ut(){if(lt)return ct;lt=1;let e=V(),t=U(),r=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),i=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)}n(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)}n(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}n(c,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return n(l,`isFloat`),ct=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:o,predicate:l,represent:c,defaultStyle:`lowercase`}),ct}n(ut,`requireFloat`);var dt,ft;function pt(){return ft?dt:(ft=1,dt=Qe().extend({implicit:[tt(),it(),st(),ut()]}),dt)}n(pt,`requireJson`);var mt,ht;function gt(){return ht?mt:(ht=1,mt=pt(),mt)}n(gt,`requireCore`);var _t,vt;function yt(){if(vt)return _t;vt=1;let e=U(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),r=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:t.exec(e)!==null||r.exec(e)!==null}n(i,`resolveYamlTimestamp`);function a(e){let n=0,i=null,a=t.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(n=a[7].slice(0,3);n.length<3;)n+=`0`;n=+n}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,n));return i&&f.setTime(f.getTime()-i),f}n(a,`constructYamlTimestamp`);function o(e){return e.toISOString()}return n(o,`representYamlTimestamp`),_t=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:i,construct:a,instanceOf:Date,represent:o}),_t}n(yt,`requireTimestamp`);var bt,xt;function St(){if(xt)return bt;xt=1;let e=U();function t(e){return e===`<<`||e===null}return n(t,`resolveYamlMerge`),bt=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),bt}n(St,`requireMerge`);var Ct,wt;function Tt(){if(wt)return Ct;wt=1;let e=U();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9
+ \r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}n(t,`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+/=
10
+ \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)}n(r,`constructYamlBinary`);function i(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
+ \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}n(i,`representYamlBinary`);function a(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return n(a,`isBinary`),Ct=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:r,predicate:a,represent:i}),Ct}n(Tt,`requireBinary`);var Et,Dt;function Ot(){if(Dt)return Et;Dt=1;let e=U(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(e){if(e===null)return!0;let n=[],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(t.call(a,s)){if(!o)o=!0;else return!1}if(!o)return!1;if(n.indexOf(s)===-1)n.push(s);else return!1}return!0}n(i,`resolveYamlOmap`);function a(e){return e===null?[]:e}return n(a,`constructYamlOmap`),Et=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:i,construct:a}),Et}n(Ot,`requireOmap`);var kt,At;function jt(){if(At)return kt;At=1;let e=U(),t=Object.prototype.toString;function r(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.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}n(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 n(i,`constructYamlPairs`),kt=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:r,construct:i}),kt}n(jt,`requirePairs`);var Mt,Nt;function Pt(){if(Nt)return Mt;Nt=1;let e=U(),t=Object.prototype.hasOwnProperty;function r(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}n(r,`resolveYamlSet`);function i(e){return e===null?{}:e}return n(i,`constructYamlSet`),Mt=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:r,construct:i}),Mt}n(Pt,`requireSet`);var Ft,It;function Lt(){return It?Ft:(It=1,Ft=gt().extend({implicit:[yt(),St()],explicit:[Tt(),Ot(),jt(),Pt()]}),Ft)}n(Lt,`require_default`);var Rt;function zt(){if(Rt)return ke;Rt=1;let e=V(),t=H(),r=Fe(),i=Lt(),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)}n(d,`_class`);function f(e){return e===10||e===13}n(f,`isEol`);function p(e){return e===9||e===32}n(p,`isWhiteSpace`);function m(e){return e===9||e===32||e===10||e===13}n(m,`isWsOrEol`);function h(e){return e===44||e===91||e===93||e===123||e===125}n(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}n(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}n(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}n(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`
12
+ `;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``}}n(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}n(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}n(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=[]}n(w,`State`);function ee(e,n){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 t(n,i)}n(ee,`generateError`);function T(e,t){throw ee(e,t)}n(T,`throwError`);function E(e,t){e.onWarning&&e.onWarning.call(null,ee(e,t))}n(E,`throwWarning`);function D(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}n(D,`storeAnchor`);function O(e){e.anchorMapTransactions.push(Object.create(null))}n(O,`beginAnchorTransaction`);function k(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])}}n(k,`commitAnchorTransaction`);function A(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]]}}n(A,`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}}n(j,`snapshotState`);function M(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}n(M,`restoreState`);let te={YAML:n(function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:n(function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],l.test(i)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),a.call(e.tagMap,i)&&T(e,`there is a previously declared suffix for "`+i+`" tag handle`),u.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r},`handleTagDirective`)};function N(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||T(e,`expected valid JSON character`)}else o.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}n(N,`captureSegment`);function P(t,n,r,i){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&T(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),a.call(n,s)||(x(n,s,r[s]),i[s]=!0)}}n(P,`mergeMappings`);function F(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])&&T(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))for(let r=0,i=o.length;r<i;r+=1)P(e,t,o[r],n);else P(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,T(e,`duplicated mapping key`)),x(t,i,o),delete n[i];return t}n(F,`storeMappingPair`);function I(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}n(I,`readLineBreak`);function L(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(I(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&&E(e,`deficient indentation`),r}n(L,`skipSeparationSpace`);function ne(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)))}n(ne,`testDocumentSeparator`);function re(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
13
+ `,n-1))}n(re,`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&&ne(e)||n&&h(d))break;else if(f(d)){if(o=e.line,s=e.lineStart,c=e.lineIndent,L(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&&=(N(e,r,i,!1),re(e,e.line-o),r=i=e.position,!1),p(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return N(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}n(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(N(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)?(N(e,n,r,!0),re(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}n(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 N(e,n,e.position,!0),e.position++,!0;else if(a===92){if(N(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))L(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:T(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else f(a)?(N(e,n,r,!0),re(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}n(oe,`readDoubleQuotedScalar`);function se(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p=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&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(L(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&&T(e,`expected the node content, but found ','`):T(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++,L(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,R(e,t,1,!1,!0),g=e.tag,h=e.result,L(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),L(e,!0,t),R(e,t,1,!1,!0),_=e.result),f?F(e,s,p,g,h,_,r,i,a):u?s.push(F(e,null,p,g,h,_,r,i,a)):s.push(h),L(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}n(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:T(t,`repeat of a chomping mode identifier`);else if((u=v(d))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(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(I(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&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
14
+ `,a?1+c:c):i===1&&a&&(t.result+=`
15
+ `);break}r?p(d)?(l=!0,t.result+=e.repeat(`
16
+ `,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
17
+ `,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
18
+ `,c):t.result+=e.repeat(`
19
+ `,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);N(t,n,t.position,!1)}return!0}n(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&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&m(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,L(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(R(e,t,3,!1,!0),i.push(e.result),L(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(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}n(le,`readBlockSequence`);function ue(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,f=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(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&&(F(e,l,u,d,f,null,i,a,o),d=f=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(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,!R(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)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(F(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(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(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),R(e,t,4,!0,r)&&(g?f=e.result:h=e.result),g||(F(e,l,u,d,f,h,i,a,o),d=f=h=null),L(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&F(e,l,u,d,f,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}n(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&&T(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)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!m(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(s-1,e.position+1),l.test(r)||T(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)&&T(e,`tag suffix cannot contain flow indicator characters`)}i&&!u.test(i)&&T(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{T(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:T(e,`undeclared tag handle "`+r+`"`),!0}n(de,`readTagProperty`);function fe(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(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&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}n(fe,`readAnchorProperty`);function pe(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&&T(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)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],L(e,!0,-1),!0}n(pe,`readAlias`);function me(e,t,n,r){let i=j(e);return O(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ue(e,n,r)&&e.kind===`mapping`?(k(e),!0):(A(e),M(e,i),!1)}n(me,`tryReadBlockMappingFromProperty`);function R(e,t,n,r,i){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(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&&L(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)&&!fe(e))break;d===null&&(d=r),L(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&&me(e,d,d.position-d.lineStart,p)||o&&ce(e,p)||ae(e,p)||oe(e,p)?u=!0:pe(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ie(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&le(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(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&&D(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||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(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&&D(e,e.anchor,e.result)):T(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}n(R,`composeNode`);function he(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(L(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&&T(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&&I(e),a.call(te,i)?te[i](e,i,o):E(e,`unknown document directive "`+i+`"`)}if(L(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,L(e,!0,-1)):n&&T(e,`directives end mark is expected`),R(e,e.lineIndent-1,4,!1,!0),L(e,!0,-1),e.checkLineBreaks&&s.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ne(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,L(e,!0,-1));return}e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}n(he,`readDocument`);function ge(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new w(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(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;)he(n);return n.documents}n(ge,`loadDocuments`);function _e(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=ge(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}n(_e,`loadAll2`);function ve(e,n){let r=ge(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return n(ve,`load2`),ke.loadAll=_e,ke.load=ve,ke}n(zt,`requireLoader`);var Bt={},Vt;function Ht(){if(Vt)return Bt;Vt=1;let e=V(),t=H(),r=Lt(),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}n(u,`compileStyleMap`);function d(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}n(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}n(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(`
21
+ `,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
22
+ `&&(a+=r),a+=e}return a}n(p,`indentString`);function m(t,n){return`
23
+ `+e.repeat(` `,t.indent*n)}n(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}n(h,`testImplicitResolving`);function g(e){return e===32||e===9}n(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}n(_,`isPrintable`);function v(e){return _(e)&&e!==o&&e!==13&&e!==10}n(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}n(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}n(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}n(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}n(S,`codePointAt`);function C(e){return/^\n* /.test(e)}n(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}n(w,`chooseScalarStyle`);function ee(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(n(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`|`+T(r,e.indent)+E(p(r,s));case 4:return`>`+T(r,e.indent)+E(p(D(r,u),s));case 5:return`"`+k(r)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}n(ee,`writeScalar`);function T(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===`
24
+ `;return n+(r&&(e[e.length-2]===`
25
+ `||e===`
26
+ `)?`+`:r?``:`-`)+`
27
+ `}n(T,`blockHeader`);function E(e){return e[e.length-1]===`
28
+ `?e.slice(0,-1):e}n(E,`dropEndingNewline`);function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
29
+ `);return r=r===-1?e.length:r,n.lastIndex=r,O(e.slice(0,r),t)})(),i=e[0]===`
30
+ `||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
31
+ `:``)+O(n,t),i=a}return r}n(D,`foldString`);function O(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+=`
32
+ `+e.slice(i,a),i=a+1),o=s;return c+=`
33
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
34
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}n(O,`foldLine`);function k(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}n(k,`escapeString`);function A(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)),(P(e,t,a,!1,!1)||a===void 0&&P(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}n(A,`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)),(P(e,t+1,o,!0,!0,!1,!0)||o===void 0&&P(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||`[]`}n(j,`writeBlockSequence`);function M(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)),P(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),P(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}n(M,`writeFlowMapping`);function te(e,n,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 t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=m(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!P(e,n+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,n)),P(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}n(te,`writeBlockMapping`);function N(e,n,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 n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=r?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let r=e.styleMap[c.tag]||c.defaultStyle,o;if(i.call(c.represent)===`[object Function]`)o=c.represent(n,r);else if(a.call(c.represent,r))o=c.represent[r](n,r);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+r+`" style`);e.dump=o}return!0}}return!1}n(N,`detectType`);function P(e,n,r,a,o,s,c){e.tag=null,e.dump=r,N(e,r,!1)||N(e,r,!0);let l=i.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;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&&n>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?(te(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(M(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?j(e,n-1,e.dump,o):j(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(A(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&ee(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`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}n(P,`writeNode`);function F(e,t){let n=[],r=[];I(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)}n(F,`getDuplicateReferences`);function I(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)I(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)I(e[r[i]],t,n)}}}n(I,`inspectNode`);function L(e,t){t||={};let n=new f(t);n.noRefs||F(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),P(n,0,r,!0,!0)?n.dump+`
35
+ `:``}return n(L,`dump2`),Bt.dump=L,Bt}n(Ht,`requireDumper`);var Ut;function Wt(){if(Ut)return z;Ut=1;let e=zt(),t=Ht();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 n(r,`renamed`),z.Type=U(),z.Schema=Be(),z.FAILSAFE_SCHEMA=Qe(),z.JSON_SCHEMA=pt(),z.CORE_SCHEMA=gt(),z.DEFAULT_SCHEMA=Lt(),z.load=e.load,z.loadAll=e.loadAll,z.dump=t.dump,z.YAMLException=H(),z.types={binary:Tt(),float:ut(),map:Ye(),null:tt(),pairs:jt(),set:Pt(),timestamp:yt(),bool:it(),int:st(),merge:St(),omap:Ot(),seq:Ke(),str:Ue()},z.safeLoad=r(`safeLoad`,`load`),z.safeLoadAll=r(`safeLoadAll`,`loadAll`),z.safeDump=r(`safeDump`,`dump`),z}n(Wt,`requireJsYaml`);var{Type:Gt,Schema:Kt,FAILSAFE_SCHEMA:qt,JSON_SCHEMA:Jt,CORE_SCHEMA:Yt,DEFAULT_SCHEMA:Xt,load:Zt,loadAll:Qt,dump:$t,YAMLException:en,types:tn,safeLoad:nn,safeLoadAll:rn,safeDump:an}=Oe(Wt()),on=`comm`,sn=`rule`,cn=`decl`,ln=`@import`,un=`@namespace`,dn=`@keyframes`,fn=`@layer`,pn=Math.abs,mn=String.fromCharCode;function hn(e){return e.trim()}function gn(e,t,n){return e.replace(t,n)}function W(e,t){return e.charCodeAt(t)|0}function G(e,t,n){return e.slice(t,n)}function K(e){return e.length}function _n(e){return e.length}function vn(e,t){return t.push(e),e}var yn=1,q=1,bn=0,J=0,Y=0,xn=``;function Sn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:yn,column:q,length:o,return:``,siblings:s}}function Cn(){return Y}function wn(){return Y=J>0?W(xn,--J):0,q--,Y===10&&(q=1,yn--),Y}function X(){return Y=J<bn?W(xn,J++):0,q++,Y===10&&(q=1,yn++),Y}function Z(){return W(xn,J)}function Tn(){return J}function En(e,t){return G(xn,e,t)}function Dn(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 On(e){return yn=q=1,bn=K(xn=e),J=0,[]}function kn(e){return xn=``,e}function An(e){return hn(En(J-1,Nn(e===91?e+2:e===40?e+1:e)))}function jn(e){for(;(Y=Z())&&Y<33;)X();return Dn(e)>2||Dn(Y)>3?``:` `}function Mn(e,t){for(;--t&&X()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return En(e,Tn()+(t<6&&Z()==32&&X()==32))}function Nn(e){for(;X();)switch(Y){case e:return J;case 34:case 39:e!==34&&e!==39&&Nn(Y);break;case 40:e===41&&Nn(e);break;case 92:X()}return J}function Pn(e,t){for(;X()&&e+Y!==57&&(e+Y!==84||Z()!==47););return`/*`+En(t,J-1)+`*`+mn(e===47?e:X())}function Fn(e){for(;!Dn(Z());)X();return En(e,J)}function In(e){return kn(Ln(``,null,null,null,[``],e=On(e),0,[0],e))}function Ln(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&&W(w,d-1)==58?(v++,w+=`(`):w+=An(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=An(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=mn(y);break}w+=jn(m);break;case 92:w+=Mn(Tn()-1,7);continue;case 47:switch(Z()){case 42:case 47:vn(zn(Pn(X(),Tn()),t,n,c),c),(Dn(m||1)==5||Dn(Z()||1)==5)&&K(w)&&G(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=K(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=mn(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=gn(w,/\f/g,``)),p>0&&(K(w)-d||h===0)&&vn(p>32?Bn(w+`;`,r,n,d-1,c):Bn(gn(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(vn(C=Rn(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)Ln(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(W(w,3)===110)break;case 108:if(W(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ln(e,C,C,r&&vn(Rn(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Ln(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+K(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&wn()==125)continue}switch(w+=mn(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(K(w)-1)*_,_=1;break;case 64:Z()===45&&(w+=An(X())),f=Z(),u=d=K(b=w+=Fn(Tn())),y++;break;case 45:m===45&&K(w)==2&&(h=0)}}return a}function Rn(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=_n(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=G(e,f+1,f=pn(g=o[h])),b=e;v<m;++v)(b=hn(g>0?p[v]+` `+y:gn(y,/&\f/g,p[v])))&&(c[_++]=b);return Sn(e,t,n,i===0?sn:s,c,l,u,d)}function zn(e,t,n,r){return Sn(e,t,n,on,mn(Cn()),G(e,2,-2),0,r)}function Bn(e,t,n,r,i){return Sn(e,t,n,cn,G(e,0,r),G(e,r+1,-1),r,i)}function Vn(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Hn(e,t,n,r){switch(e.type){case fn:if(e.children.length)break;case ln:case un:case cn:return e.return=e.return||e.value;case on:return``;case dn:return e.return=e.value+`{`+Vn(e.children,r)+`}`;case sn:if(!K(e.value=e.props.join(`,`)))return``}return K(n=Vn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Un(e){var t=_n(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 Wn=`c4`,Gn={id:Wn,detector:n(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./c4Diagram-YGBWAQC7-C9OZTI8T.js`);return{diagram:e}},__vite__mapDeps([30,2,3,1,4,5,6,7,8,9,10,11,12,13,14,31]));return{id:Wn,diagram:e}},`loader`)},Kn=`flowchart-v2`,qn={id:Kn,detector:n(e=>/^\s*(graph|flowchart)/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./flowDiagram-KWPJA3E3-C3wNriu7.js`);return{diagram:e}},__vite__mapDeps([32,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,31,33,34,20,35,36,37]));return{id:Kn,diagram:e}},`loader`)},Jn=`agentflow`,Yn={id:Jn,detector:n(e=>/^\s*agentflow-beta\b/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-22UHCM2B-C9M-mcex.js`);return{diagram:e}},__vite__mapDeps([38,5,1,6,2,3,4,36,7,8,9,10,37,11,13,12,14,15,16,17,18,19,31,33,34,20]));return{id:Jn,diagram:e}},`loader`)},Xn=`swimlane`,Zn={id:Xn,detector:n(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./swimlanesDiagram-TC7HE7FX-Bv90z5my.js`);return{diagram:e}},__vite__mapDeps([39,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,31,33,34,20,35,36,37]));return{id:Xn,diagram:e}},`loader`)},Qn=`er`,$n={id:Qn,detector:n(e=>/^\s*erDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./erDiagram-OPXOYQCR-DmmZBLvC.js`);return{diagram:e}},__vite__mapDeps([40,2,3,1,4,5,6,36,7,8,9,10,11,13,12,14,15,16,17,18,19,33,34,20]));return{id:Qn,diagram:e}},`loader`)},er=`gitGraph`,tr={id:er,detector:n(e=>/^\s*gitGraph/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-X574FWY7-jwG6nUmP.js`);return{diagram:e}},__vite__mapDeps([41,42,5,1,6,43,2,3,4,7,8,44,45]));return{id:er,diagram:e}},`loader`)},nr=`gantt`,rr={id:nr,detector:n(e=>/^\s*gantt/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./ganttDiagram-FUAMR5RP-B0egPzgH.js`);return{diagram:e}},__vite__mapDeps([46,1,2,3,4,5,6,47,48,49,8,7]));return{id:nr,diagram:e}},`loader`)},ir=`info`,ar={id:ir,detector:n(e=>/^\s*info/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./infoDiagram-VRGFBTTK-CdcggvNW.js`);return{diagram:e}},__vite__mapDeps([50,42,5,1,6,43,2,3,4]));return{id:ir,diagram:e}},`loader`)},or=`pie`,sr={id:or,detector:n(e=>/^\s*pie/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./pieDiagram-5QR66LMP-Dy1jV_P-.js`);return{diagram:e}},__vite__mapDeps([51,42,5,1,6,43,2,3,4,52,49,18,8,53,19,7,44]));return{id:or,diagram:e}},`loader`)},cr=`quadrantChart`,lr={id:cr,detector:n(e=>/^\s*quadrantChart/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./quadrantDiagram-O4NWA36T-Df6Jl4OG.js`);return{diagram:e}},__vite__mapDeps([54,2,3,1,4,5,6,47,48,49]));return{id:cr,diagram:e}},`loader`)},ur=`xychart`,dr={id:ur,detector:n(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./xychartDiagram-PMCCYNJV-DCWTWMv0.js`);return{diagram:e}},__vite__mapDeps([55,2,3,1,4,5,6,47,48,49,52,7,8,17,18,19,9,10]));return{id:ur,diagram:e}},`loader`)},fr=`requirement`,pr={id:fr,detector:n(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./requirementDiagram-PLB6GJNP-C09s8xl6.js`);return{diagram:e}},__vite__mapDeps([56,2,3,1,4,5,6,7,8,9,10,11,13,12,14,15,16,17,18,19,33,34,20]));return{id:fr,diagram:e}},`loader`)},mr=`sequence`,hr={id:mr,detector:n(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./sequenceDiagram-PO4LG4MO-Uz6m2m-d.js`);return{diagram:e}},__vite__mapDeps([57,2,3,1,4,5,6,8,7,31,45]));return{id:mr,diagram:e}},`loader`)},gr=`classDiagram`,_r={id:gr,detector:n(e=>/^\s*classDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./classDiagram-v2-NBCMYWYE-CrSxkUNF.js`);return{diagram:e}},__vite__mapDeps([58,5,1,6,2,3,4,7,8,9,10,37,11,13,12,14,15,16,17,18,19,31,33,34,20]));return{id:gr,diagram:e}},`loader`)},vr=`stateDiagram`,yr={id:vr,detector:n(e=>/^\s*stateDiagram/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-GCMORJYK-DASY_MN7.js`);return{diagram:e}},__vite__mapDeps([59,5,1,6,2,3,4,7,8,9,10,11,13,12,14,15,16,17,18,19,31,33,34,20]));return{id:vr,diagram:e}},`loader`)},br=`journey`,xr={id:br,detector:n(e=>/^\s*journey/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./journeyDiagram-ZHPQQLJL-CLXIkiwl.js`);return{diagram:e}},__vite__mapDeps([60,2,3,1,4,5,6,53,18,8,37,31]));return{id:br,diagram:e}},`loader`)},Sr={draw:n((e,t,n)=>{i.debug(`rendering svg for syntax error
36
+ `);let r=_e(t),a=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),C(r,100,512,!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}`)},`draw`)},Cr=Sr,wr={db:{},renderer:Sr,parser:{parse:n(()=>{},`parse`)}},Tr=`flowchart-elk`,Er={id:Tr,detector:n((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout=`elk`,!0):!1,`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./flowDiagram-KWPJA3E3-C3wNriu7.js`);return{diagram:e}},__vite__mapDeps([32,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,31,33,34,20,35,36,37]));return{id:Tr,diagram:e}},`loader`)},Dr=`timeline`,Or={id:Dr,detector:n(e=>/^\s*timeline/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./timeline-definition-EJHVYXUP-Dffxj5AG.js`);return{diagram:e}},__vite__mapDeps([61,2,3,1,4,5,6,53,18,8,7,13]));return{id:Dr,diagram:e}},`loader`)},kr=`mindmap`,Ar={id:kr,detector:n(e=>/^\s*mindmap/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./mindmap-definition-NLK3R4M7-C0EF7lWr.js`);return{diagram:e}},__vite__mapDeps([62,2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,33,34,20]));return{id:kr,diagram:e}},`loader`)},jr=`kanban`,Mr={id:jr,detector:n(e=>/^\s*kanban/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./kanban-definition-PNTS6WVX-P94klDAy.js`);return{diagram:e}},__vite__mapDeps([63,2,3,1,4,5,6,7,8,9,10,37,11,12,13,14,15,20]));return{id:jr,diagram:e}},`loader`)},Nr=`sankey`,Pr={id:Nr,detector:n(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./sankeyDiagram-IPEJSGJF-cwVwdash.js`);return{diagram:e}},__vite__mapDeps([64,2,3,1,4,5,6,52,49]));return{id:Nr,diagram:e}},`loader`)},Fr=`packet`,Ir={id:Fr,detector:n(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-MLGK6HIB-BdT0J6Xl.js`);return{diagram:e}},__vite__mapDeps([65,42,5,1,6,43,2,3,4,7,8,44]));return{id:Fr,diagram:e}},`loader`)},Lr=`radar`,Rr={id:Lr,detector:n(e=>/^\s*radar-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-MPIPVDR6-BXdFmdOp.js`);return{diagram:e}},__vite__mapDeps([66,42,5,1,6,43,2,3,4,7,8,44]));return{id:Lr,diagram:e}},`loader`)},zr=`block`,Br={id:zr,detector:n(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./blockDiagram-BEXU5L5S-NA64lNxM.js`);return{diagram:e}},__vite__mapDeps([67,2,3,1,4,5,6,36,7,8,9,10,37,68,11,13,12,14,15,16,17,18,19,22,23]));return{id:zr,diagram:e}},`loader`)},Vr=`treeView`,Hr={id:Vr,detector:n(e=>/^\s*treeView-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-CDSNMT55-BGMdofKO.js`);return{diagram:e}},__vite__mapDeps([69,42,5,1,6,43,2,3,4,7,8,44,9,45]));return{id:Vr,diagram:e}},`loader`)},Ur=`architecture`,Wr={id:Ur,detector:n(e=>/^\s*architecture/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./architectureDiagram-NJMV4G6O-Cr_YqU4C.js`);return{diagram:e}},__vite__mapDeps([70,1,42,5,6,43,2,3,4,7,8,44,9,10,29]));return{id:Ur,diagram:e}},`loader`)},Gr=`eventmodeling`,Kr={id:Gr,detector:n(e=>/^\s*eventmodeling/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-ATOU4E4O-zywdDXPc.js`);return{diagram:e}},__vite__mapDeps([71,43,42,5,1,6,2,3,4,7,8,44]));return{id:Gr,diagram:e}},`loader`)},qr=`ishikawa`,Jr={id:qr,detector:n(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-OU5B5YK6-C8x3tV6X.js`);return{diagram:e}},__vite__mapDeps([72,2,3,1,4,5,6,7,8,14]));return{id:qr,diagram:e}},`loader`)},Yr=`venn`,Xr={id:Yr,detector:n(e=>/^\s*venn-beta/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./vennDiagram-UO4OBE2U-DkJknm_I.js`);return{diagram:e}},__vite__mapDeps([73,2,3,1,4,5,6,7,8,14]));return{id:Yr,diagram:e}},`loader`)},Zr=`treemap`,Qr={id:Zr,detector:n(e=>/^\s*treemap/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./diagram-3UASUU5V-q18RgATq.js`);return{diagram:e}},__vite__mapDeps([74,42,5,1,6,43,2,3,4,52,49,48,7,8,44,11,34]));return{id:Zr,diagram:e}},`loader`)},$r=`usecase`,ei={id:$r,detector:n(e=>/^\s*usecase-beta(?:\s|$)/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./usecaseDiagram-POWQR4AR-CKcfbpDB.js`);return{diagram:e}},__vite__mapDeps([75,2,3,1,4,5,6,7,8,9,10,11,13,12,14,15,16,17,18,19,23,26,33,34,20]));return{id:$r,diagram:e}},`loader`)},ti=`wardley`,ni={id:ti,detector:n(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./wardleyDiagram-VNRHLVJA-fdjd5am3.js`);return{diagram:e}},__vite__mapDeps([76,42,5,1,6,43,2,3,4,7,8,44]));return{id:ti,diagram:e}},`loader`)},ri=`cynefin`,ii={id:ri,detector:n(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./cynefinDiagram-VND7K2PF-B8wb03CF.js`);return{diagram:e}},__vite__mapDeps([77,42,5,1,6,43,2,3,4,7,8,44]));return{id:ri,diagram:e}},`loader`)},ai=`railroad`,oi={id:ai,detector:n(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./railroadDiagram-XR7U4H2S-DNraioKj.js`);return{diagram:e}},__vite__mapDeps([78,42,5,1,6,43,2,3,4,79,44]));return{id:ai,diagram:e}},`loader`)},si=`railroadEbnf`,ci={id:si,detector:n(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./ebnfDiagram-ZINNZB2B-B7Mz8zd0.js`);return{diagram:e}},__vite__mapDeps([80,42,5,1,6,43,2,3,4,79,44]));return{id:si,diagram:e}},`loader`)},li=`railroadAbnf`,ui={id:li,detector:n(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./abnfDiagram-O67JEVCF-BEaDGLKl.js`);return{diagram:e}},__vite__mapDeps([81,42,5,1,6,43,2,3,4,79,44]));return{id:li,diagram:e}},`loader`)},di=`railroadPeg`,fi={id:di,detector:n(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:n(async()=>{let{diagram:e}=await t(async()=>{let{diagram:e}=await import(`./pegDiagram-GJSIUBJH-Dek_S7Z0.js`);return{diagram:e}},__vite__mapDeps([82,42,5,1,6,43,2,3,4,79,44]));return{id:di,diagram:e}},`loader`)},pi=!1,mi=n(()=>{pi||(pi=!0,p(`error`,wr,e=>e.toLowerCase().trim()===`error`),p(`---`,{db:{clear:n(()=>{},`clear`)},styles:{},renderer:{draw:n(()=>{},`draw`)},parser:{parse:n(()=>{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:n(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),m(Er,Ar,Wr),m(Yn,Gn,Mr,_r,$n,rr,ar,sr,pr,hr,Zn,qn,Or,tr,yr,xr,lr,Pr,Ir,dr,Br,Kr,Hr,Rr,Jr,Qr,oi,ci,ui,fi,Xr,ni,ii,ei))},`addDiagrams`),hi=n(async()=>{i.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(E).map(async([e,{detector:t,loader:n}])=>{if(n)try{g(e)}catch{try{let{diagram:e,id:r}=await n();p(r,e,t)}catch(t){throw i.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete E[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){i.error(`Failed to load ${e.length} external diagrams`);for(let t of e)i.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),gi=`graphics-document document`;function _i(e,t){e.attr(`role`,gi),t!==``&&e.attr(`aria-roledescription`,t)}n(_i,`setA11yDiagramInfo`);function vi(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)}}}n(vi,`addSVGa11yTitleDescription`);var yi=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{n(this,`Diagram`)}static async fromText(t,n={}){let r=typeof t==`string`?{raw:t,cleaned:t}:t,a=S(),o=O(r.cleaned,a);try{g(o)}catch{let e=s(o);if(!e)throw new j(`Diagram ${o} not found.`);let{id:t,diagram:n}=await e();p(t,n)}let{db:c,parser:l,renderer:u,init:d}=g(o);l.parser&&(l.parser.yy=c),c.clear?.(),d?.(a),n.title&&c.setDiagramTitle?.(n.title);let f=r.cleaned;if(c.preserveCommentsWhenParsing&&r.withComments){let e=a.maxTextSize??w.maxTextSize;r.withComments.length>e?i.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.`):f=r.withComments}let m=ie(f)+`
37
+ `;return r.frontmatterLineOffset&&c.setFrontmatterLineOffset?.(r.frontmatterLineOffset),await l.parse(m),new e(o,m,c,l,u)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},bi=[],xi=n(()=>{bi.forEach(e=>{e()}),bi=[]},`attachFunctions`),Si=n(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function Ci(e){let t=e.match(x);if(!t)return{text:e,metadata:{}};let n=t[1],r=Zt(n?t[2].split(`
38
+ `).map(e=>e.startsWith(n)?e.slice(n.length):e).join(`
39
+ `):t[2],{schema:Jt})??{};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[0].length),metadata:i}}n(Ci,`extractFrontMatter`);var wi=n(e=>e.replace(/\r\n?/g,`
40
+ `).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Ti=n(e=>{let{text:t,metadata:n}=Ci(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),Ei=n(e=>{let t=L.detectInit(e)??{},n=L.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:ne(e),directive:t}},`processDirectives`);function Di(e){let t=e,n=wi(e),r=Ti(n),i=Ei(r.text),a=re(r.config,i.directive),o=i.text;return{code:{raw:t,cleaned:Si(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}}n(Di,`preprocessDiagram`);function Oi(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}n(Oi,`toBase64`);var ki=5e4,Ai=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,ji=`sandbox`,Mi=`loose`,Ni=`http://www.w3.org/2000/svg`,Pi=`http://www.w3.org/1999/xlink`,Fi=`http://www.w3.org/1999/xhtml`,Ii=`100%`,Li=`100%`,Ri=`border:0;margin:0;`,zi=`margin:0`,Bi=`allow-top-navigation-by-user-activation allow-popups`,Vi=`The "iframe" tag is not supported by your browser.`,Hi=[`foreignobject`],Ui=[`dominant-baseline`];function Wi(e){let t=Di(e);l();let n;try{n=O(t.code.cleaned,S())}catch{n=void 0}return d(n),D(t.config??{}),t}n(Wi,`processAndSetConfigs`);async function Gi(e,t){mi();try{let{code:t,config:n}=Wi(e);return{diagramType:(await yi.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{d(void 0)}}n(Gi,`parse`);var Ki=n((e,t,n=[])=>`.${e} ${t} ${f(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),qi=n((e,t=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=_(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{ye(e.styles)||r.forEach(t=>{n.insertRule(Ki(e.id,t,e.styles),n.cssRules.length)}),ye(e.textStyles)||n.insertRule(Ki(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=T(t)+`
41
+ `}else r+=`${e.themeCSS}
42
+ `}return r+T(n)},`createCssStyles`),Ji=n((e,t)=>Vn(In(`${e}{${t}}`),Un([n(function(t,n,r,a){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`&&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)||(i.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=on))},`addNamespace`),Hn])),`compileCSS`),Yi=n((e,t,n,r)=>{let i=qi(e,n);return Ji(r,b(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),Xi=n((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=P(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Zi=n((e=``,t)=>`<iframe style="width:${Ii};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Li};${Ri}" src="data:text/html;charset=UTF-8;base64,${Oi(`<body style="${zi}">${e}</body>`)}" sandbox="${Bi}">
43
+ ${Vi}
44
+ </iframe>`,`putIntoIFrame`),Qi=n((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`,Ni);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function $i(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}n($i,`sandboxedIframe`);var ea=n((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),ta=n(async function(t,r,o){mi();let s=Wi(r),c=s.code;r=c.cleaned;let l=S();i.debug(l),r.length>(l?.maxTextSize??ki)&&(r=Ai,c={raw:r,cleaned:r});let u=`#${t}`,d=`i`+t,f=`#`+d,p=`d`+t,m=`#`+p,h=n(()=>{let e=a(_?f:m).node();e&&`remove`in e&&e.remove()},`removeTempElements`),g=a(document.body),_=l.securityLevel===ji,v=l.securityLevel===Mi,y=l.fontFamily;if(o!==void 0){if(o&&(o.innerHTML=``),_){let e=$i(a(o),d);g=a(e.nodes()[0].contentDocument.body),g.node().style.margin=`0`}else g=a(o);Qi(g,t,p,`font-family: ${y}`,Pi)}else{if(ea(document,t,p,d),_){let e=$i(a(document.body),d);g=a(e.nodes()[0].contentDocument.body),g.node().style.margin=`0`}else g=a(`body`);Qi(g,t,p)}let b,x;try{b=await yi.fromText(c,{title:s.title})}catch(e){if(l.suppressErrorRendering)throw h(),e;b=await yi.fromText(`error`),x=e}let C=g.select(m).node(),w=b.type,T=C.firstChild,E=T.firstChild,D=b.renderer.getClasses?.(r,b),O=Yi(l,w,D,u),k=document.createElement(`style`);k.innerHTML=O,T.insertBefore(k,E);try{await b.renderer.draw(r,t,`12.0.0`,b)}catch(e){throw l.suppressErrorRendering?h():Cr.draw(r,t,`12.0.0`),e}let A=g.select(`${m} svg`),j=b.db.getAccTitle?.(),M=b.db.getAccDescription?.();aa(w,A,j,M);let te=n(()=>{g.select(`[id="${t}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Fi);let n=g.select(m).node().innerHTML;if(i.debug(`config.arrowMarkerAbsolute`,l.arrowMarkerAbsolute),n=Xi(n,_,ee(l.arrowMarkerAbsolute)),_){let e=g.select(m+` svg`).node();n=Zi(n,e)}else v||(n=e.sanitize(n,{ADD_TAGS:Hi,ADD_ATTR:Ui,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return xi(),n},`serializeSvg`)();if(x)throw x;return h(),{diagramType:w,svg:te,bindFunctions:b.db.bindFunctions}},`renderDiagram`),na=n(async function(e,t,n){try{return await ta(e,t,n)}finally{d(void 0)}},`render`);function ra(e={}){let t=k({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),v(t);let n=M.theme;t?.theme&&Object.hasOwn(h,t.theme)?t.themeVariables=h[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!==`null`&&(t.theme=n),t.themeVariables=h[n].getThemeVariables(t.themeVariables));let i=typeof t==`object`?u(t):c();r(i.logLevel),mi()}n(ra,`initialize`);var ia=n((e,t={})=>{let{code:n}=Di(e);return yi.fromText(n,t)},`getDiagramFromText`);function aa(e,t,n,r){_i(t,e),vi(t,n,r,t.attr(`id`))}n(aa,`addA11yInfo`);var Q=Object.freeze({render:na,parse:Gi,getDiagramFromText:ia,initialize:ra,getConfig:S,setConfig:y,getSiteConfig:c,updateSiteConfig:o,reset:n(()=>{l()},`reset`),globalReset:n(()=>{l(M)},`globalReset`),defaultConfig:M});r(S().logLevel),l(S());var oa=n((e,t,n)=>{i.warn(e),I(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`),sa=n(async function(e={querySelector:`.mermaid`}){try{await ca(e)}catch(t){if(I(t)&&i.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw i.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),ca=n(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Q.getConfig();i.debug(`${e?``:`No `}Callback function found`);let a;if(n)a=n;else if(t)a=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);i.debug(`Found ${a.length} diagrams`),r?.startOnLoad!==void 0&&(i.debug(`Start On Load: `+r?.startOnLoad),Q.updateSiteConfig({startOnLoad:r?.startOnLoad}));let o=new L.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),s,c=[];for(let t of Array.from(a)){if(i.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${o.next()}`;s=t.innerHTML,s=le(L.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=L.detectInit(s);r&&i.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await va(n,s,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){oa(e,c,$.parseError)}}if(c.length>0)throw c[0]},`runThrowsErrors`),la=n(function(e){Q.initialize(e)},`initialize`),ua=n(async function(e,t,n){i.warn(`mermaid.init is deprecated. Please use run instead.`),e&&la(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await sa(r)},`init`),da=n(async(e,{lazyLoad:t=!0}={})=>{mi(),m(...e),t===!1&&await hi()},`registerExternalDiagrams`),fa=n(function(){if($.startOnLoad){let{startOnLoad:e}=Q.getConfig();e&&$.run().catch(e=>i.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,fa,!1);var pa=n(function(e){$.parseError=e},`setParseErrorHandler`),ma=[],ha=!1,ga=n(async()=>{if(!ha){for(ha=!0;ma.length>0;){let e=ma.shift();if(e)try{await e()}catch(e){i.error(`Error executing queue`,e)}}ha=!1}},`executeQueue`),_a=n(async(e,t)=>new Promise((r,a)=>{let o=n(()=>new Promise((n,o)=>{Q.parse(e,t).then(e=>{n(e),r(e)},e=>{i.error(`Error parsing`,e),$.parseError?.(e),o(e),a(e)})}),`performCall`);ma.push(o),ga().catch(a)}),`parse`),va=n((e,t,r)=>new Promise((a,o)=>{let s=n(()=>new Promise((n,s)=>{Q.render(e,t,r).then(e=>{n(e),a(e)},e=>{i.error(`Error parsing`,e),$.parseError?.(e),s(e),o(e)})}),`performCall`);ma.push(s),ga().catch(o)}),`render`),$={startOnLoad:!0,mermaidAPI:Q,parse:_a,render:va,init:ua,run:sa,registerExternalDiagrams:da,registerLayoutLoaders:Ce,initialize:la,parseError:void 0,contentLoaded:fa,setParseErrorHandler:pa,detectType:O,registerIconPacks:ce,getRegisteredDiagramsMetadata:n(()=>Object.keys(E).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},ya=$;export{_e as a,ya as default,Te as i,Zt as n,De as r,Jt as t};
@@ -0,0 +1,96 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-oBChb5qS.js";import{b as n,et as r,f as i,k as a,rt as o,tt as s,x as c,z as l}from"./chunk-O7XYJQB3-CjZQSnt8.js";import"./chunk-ZIGJFQKS-C6SOqBs6.js";import"./chunk-742MDFTN-DTR6iTOw.js";import"./chunk-MBY4JIJT-9uaOqseW.js";import"./chunk-7PRAP22T-CPe5zfLc.js";import"./chunk-7INBJB4K-XeJOzIDQ.js";import"./chunk-5DYCD2WN-DH_dVKgx.js";import"./chunk-Z7XXMR3K-CHWuLoFG.js";import{t as u}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as d}from"./chunk-WEXAMYUT-CT8bG5L7.js";import"./chunk-UA2S7LBM-BfYbPxwY.js";import{i as f,r as p}from"./mermaid.core-B4zgSyXF.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[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:e(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:e(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:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.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){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`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:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(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:e(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:e(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:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(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:e(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:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(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:e(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:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(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:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(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 e(y,`Parser`),y.prototype=v,v.Parser=y,new y})();b.parser=b;var x=b,S=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},w=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,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{e(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,n,r,a){t.info(`addNode`,e,n,r,a);let o=!1;this.nodes.length===0?(this.baseLevel=e,e=0,o=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,o=!1);let s=c(),u=s.mindmap?.padding??i.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2}let d={id:this.count++,nodeId:l(n,s),level:e,descr:l(r,s),type:a,children:[],width:s.mindmap?.maxNodeWidth??i.mindmap.maxNodeWidth,padding:u,isRoot:o},f=this.getParent(e);if(f)f.children.push(d),this.nodes.push(d);else if(o)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,n){switch(t.debug(`In get type`,e,n),e){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?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=c(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=l(e.icon,t)),e.class&&(n.class=l(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){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(S-1):t;this.assignSections(r,i)}}flattenNodes(t,n){let r=c(),i=[`mindmap-node`];t.isRoot===!0?i.push(`section-root`,`section--1`):t.section!==void 0&&i.push(`section-${t.section}`),t.class&&i.push(t.class);let a=i.join(` `),o=e(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case C.CIRCLE:return`mindmapCircle`;case C.RECT:return`rect`;case C.ROUNDED_RECT:return`rounded`;case C.CLOUD:return`cloud`;case C.BANG:return`bang`;case C.HEXAGON:return`hexagon`;case C.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case C.NO_BORDER:default:return`rect`}},`getShapeFromType`),s={id:t.id.toString(),domId:`node_`+t.id.toString(),label:t.descr,labelType:`markdown`,isGroup:!1,shape:o(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:a,cssStyles:[],look:r.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(n.push(s),t.children)for(let e of t.children)this.flattenNodes(e,n)}generateEdges(e,t){if(!e.children)return;let n=c();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(),n=c(),r=a().layout!==void 0,i=n;if(r||(i.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:i};t.debug(`getData: mindmapRoot`,e,n),this.assignSections(e);let o=[],s=[];this.flattenNodes(e,o),this.generateEdges(e,s),t.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);let l=new Map;for(let e of o)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:o,edges:s,config:i,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+v()}}getLogger(){return t}},T={draw:e(async(e,r,a,o)=>{t.debug(`Rendering mindmap diagram
7
+ `+e);let s=o.db,c=s.getData(),l=u(r,c.config.securityLevel);if(c.type=o.type,c.layoutAlgorithm=p(c.config.layout,{fallback:`cose-bilkent`}),c.diagramId=r,!s.getMindmap())return;c.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 f(c,l);let{themeVariables:m}=n(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=l.attr(`id`),t=l.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)}d(l,c.config.mindmap?.padding??i.mindmap.padding,`mindmapDiagram`,c.config.mindmap?.useMaxWidth??i.mindmap.useMaxWidth)},`draw`)},E=e(e=>{let{theme:t,look:n}=e,i=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],o(e[`lineColor`+t])?e[`lineColor`+t]=s(e[`lineColor`+t],20):e[`lineColor`+t]=r(e[`lineColor`+t],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let a=``+(n===`neo`?Math.max(10-(r-1)*2,2):17-3*r);i+=`
8
+ .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
9
+ fill: ${e[`cScale`+r]};
10
+ }
11
+ .section-${r-1} text {
12
+ fill: ${e[`cScaleLabel`+r]};
13
+ }
14
+ .section-${r-1} span {
15
+ color: ${e[`cScaleLabel`+r]};
16
+ }
17
+ .node-icon-${r-1} {
18
+ font-size: 40px;
19
+ color: ${e[`cScaleLabel`+r]};
20
+ }
21
+ .section-edge-${r-1}{
22
+ stroke: ${e[`cScale`+r]};
23
+ }
24
+ .edge-depth-${r-1}{
25
+ stroke-width: ${a};
26
+ }
27
+ .section-${r-1} line {
28
+ stroke: ${e[`cScaleInv`+r]} ;
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-${r-1} rect, [data-look="neo"].mindmap-node.section-${r-1} path, [data-look="neo"].mindmap-node.section-${r-1} circle, [data-look="neo"].mindmap-node.section-${r-1} polygon {
39
+ fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+r]};
40
+ stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+r]};
41
+ stroke-width: ${e.strokeWidth??2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${r-1}{
44
+ stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+r]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${r-1} text {
47
+ fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:r)]};
48
+ }
49
+ `}return i},`genSections`),D=e((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
50
+ [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 {
51
+ stroke: url(${t}-gradient);
52
+ fill: ${n};
53
+ }
54
+ .section-${i-1} line {
55
+ stroke-width: 0;
56
+ }`;return r},`genGradient`),O={get db(){return new w},renderer:T,parser:x,styles:e(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
57
+ .edge {
58
+ stroke-width: 3;
59
+ }
60
+ ${E(e)}
61
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
62
+ fill: ${e.git0};
63
+ }
64
+ .section-root text {
65
+ fill: ${e.gitBranchLabel0};
66
+ }
67
+ .section-root span {
68
+ color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
69
+ }
70
+ .icon-container {
71
+ height:100%;
72
+ display: flex;
73
+ justify-content: center;
74
+ align-items: center;
75
+ }
76
+ .edge {
77
+ fill: none;
78
+ }
79
+ .mindmap-node-label {
80
+ dy: 1em;
81
+ alignment-baseline: middle;
82
+ text-anchor: middle;
83
+ dominant-baseline: middle;
84
+ text-align: center;
85
+ }
86
+ [data-look="neo"].mindmap-node {
87
+ filter: ${r};
88
+ }
89
+ [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 {
90
+ fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
91
+ }
92
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
+ fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
94
+ }
95
+ ${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
96
+ `},`getStyles`)};export{O as diagram};
@@ -0,0 +1 @@
1
+ import{t as e}from"./init-C-OQMol4.js";var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.apply(c,arguments),c}export{s as t};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-Du2mcMMx.js";export{e as createPacketServices};
@@ -0,0 +1 @@
1
+ var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n){if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};o.prototype;function s(e){return function(){return e}}function c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}export{s as n,c as t};
@@ -0,0 +1 @@
1
+ import{t as e,u as t}from"./mermaid-parser.core-Du2mcMMx.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-O7XYJQB3-CjZQSnt8.js";import{n as i,r as a,t as o}from"./chunk-GTNCS2PH-DSn-mpqy.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-B4zgSyXF.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(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=n(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=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-Du2mcMMx.js";export{e as createPieServices};
@@ -0,0 +1,39 @@
1
+ import{n as e}from"./mermaid-parser.core-Du2mcMMx.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,U as i,a,c as o,f as s,q as c,v as l,w as u,x as d,y as f}from"./chunk-O7XYJQB3-CjZQSnt8.js";import{t as p}from"./ordinal-BDEzSJ7C.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-B_J_HbC0.js";import{t as g}from"./arc-DgcGdgmL.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-ZIGJFQKS-C6SOqBs6.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{a as x}from"./mermaid.core-B4zgSyXF.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=s.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,a()},`clear`),setDiagramTitle:c,getDiagramTitle:u,setAccTitle:i,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:t(({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.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(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`),P=t(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 w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:t((e,t,r,i)=>{n.debug(`rendering pie chart
39
+ `+e);let a=i.db,s=d(),c=v(a.getConfig(),s.pie),l=x(t),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=s,[m]=y(f.pieOuterStrokeWidth);m??=2;let h=c.legendPosition,_=c.textPosition,b=c.donutHole>0&&c.donutHole<=.9?c.donutHole:0,S=g().innerRadius(b*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=u.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=a.getSections(),E=P(T),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=p(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return c.highlightSlice===`hover`?t+=` highlightedOnHover`:c.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).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 j=u.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=u.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`})}let z=j.node()?.getBoundingClientRect().width??0,B=225-z/2,V=225+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;l.attr(`viewBox`,`${H} 0 ${U} ${I}`),o(l,I,U,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};