@moonshot-ai/kimi-code 2.2.0 → 2.3.1

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 (89) hide show
  1. package/dist/main.mjs +37415 -34827
  2. package/dist-web/assets/CodeBlockNode-Dg2zk5_M.js +43 -0
  3. package/dist-web/assets/PreCodeBlock-aZLOMBKx.js +1 -0
  4. package/dist-web/assets/{Tooltip-DGZLqZ7K.js → Tooltip-4PNR_f15.js} +1 -1
  5. package/dist-web/assets/{abnfDiagram-VRR7QNED-BjZkDU71.js → abnfDiagram-VRR7QNED-z_-0ai5E.js} +1 -1
  6. package/dist-web/assets/{arc-iJsCFL-l.js → arc-Kxg5RAqF.js} +1 -1
  7. package/dist-web/assets/{architectureDiagram-ZJ3FMSHR-DgSeucQZ.js → architectureDiagram-ZJ3FMSHR-2Xshi7A1.js} +1 -1
  8. package/dist-web/assets/{blockDiagram-677ZJIJ3-D-b-mXgF.js → blockDiagram-677ZJIJ3-XV6naLkL.js} +1 -1
  9. package/dist-web/assets/{c4Diagram-LMCZKHZV-BXuDG7QH.js → c4Diagram-LMCZKHZV-CSkBryI0.js} +1 -1
  10. package/dist-web/assets/channel-CLLh9fFD.js +1 -0
  11. package/dist-web/assets/{chunk-2Q5K7J3B-9PYvtmha.js → chunk-2Q5K7J3B-CQzCXLEo.js} +1 -1
  12. package/dist-web/assets/{chunk-32BRIVSS-CLNEOpa3.js → chunk-32BRIVSS-Bb3U5zL8.js} +1 -1
  13. package/dist-web/assets/{chunk-5VM5RSS4-BnPBVsDt.js → chunk-5VM5RSS4-C2_xpzY3.js} +1 -1
  14. package/dist-web/assets/{chunk-EX3LRPZG-B5sNtRSy.js → chunk-EX3LRPZG-BMjh3OP2.js} +1 -1
  15. package/dist-web/assets/{chunk-JWPE2WC7-D-sxo7as.js → chunk-JWPE2WC7-Bgwiccxa.js} +1 -1
  16. package/dist-web/assets/{chunk-MOJQB5TN-CPChu7zn.js → chunk-MOJQB5TN-CClISXJW.js} +1 -1
  17. package/dist-web/assets/{chunk-RYQCIY6F-CqdXJBtY.js → chunk-RYQCIY6F-H_GYUYTT.js} +1 -1
  18. package/dist-web/assets/{chunk-V7JOEXUC-Dq7hJ1E_.js → chunk-V7JOEXUC-B6kqo8yw.js} +1 -1
  19. package/dist-web/assets/{chunk-VR4S4FIN-DqbZLM7b.js → chunk-VR4S4FIN-Cm7c9b3N.js} +1 -1
  20. package/dist-web/assets/{chunk-XXDRQBXY-Ds7teyKk.js → chunk-XXDRQBXY-Vyf77H8-.js} +1 -1
  21. package/dist-web/assets/classDiagram-OUVF2IWQ-B90-0icA.js +1 -0
  22. package/dist-web/assets/classDiagram-v2-EOCWNBFH-B90-0icA.js +1 -0
  23. package/dist-web/assets/{cose-bilkent-JH36ORCC-DPZKSiow.js → cose-bilkent-JH36ORCC-CEByoa7c.js} +1 -1
  24. package/dist-web/assets/{cynefin-VYW2F7L2-Cn0w3Ba_.js → cynefin-VYW2F7L2-rK0CO-KU.js} +1 -1
  25. package/dist-web/assets/{cynefinDiagram-TSTJHNR4-QO_FhdFv.js → cynefinDiagram-TSTJHNR4-BkQYJXmy.js} +1 -1
  26. package/dist-web/assets/{dagre-VKFMJZFB-CxdDh_H-.js → dagre-VKFMJZFB-D3G9Vr0i.js} +1 -1
  27. package/dist-web/assets/{diagram-FQU43EPY-BWSognsT.js → diagram-FQU43EPY-D1AImL9B.js} +1 -1
  28. package/dist-web/assets/{diagram-G47NLZAW-CZSO-0jd.js → diagram-G47NLZAW-gEcij-QO.js} +1 -1
  29. package/dist-web/assets/{diagram-NH7WQ7WH-Cwtl6YSd.js → diagram-NH7WQ7WH-D_4fbKb7.js} +1 -1
  30. package/dist-web/assets/{diagram-OA4YK3LP-CfNlfr8r.js → diagram-OA4YK3LP-538HDlwm.js} +1 -1
  31. package/dist-web/assets/{diagram-WEI45ONY-Dnb8XHFb.js → diagram-WEI45ONY-BMdVxUiC.js} +1 -1
  32. package/dist-web/assets/{ebnfDiagram-CCIWWBDH-jYwb0Iuu.js → ebnfDiagram-CCIWWBDH-CfKSmD2e.js} +1 -1
  33. package/dist-web/assets/{erDiagram-Q63AITRT-BO-rbURM.js → erDiagram-Q63AITRT-B7q8kFgm.js} +1 -1
  34. package/dist-web/assets/{flowDiagram-23GEKE2U-s7QSUi5I.js → flowDiagram-23GEKE2U-BwfyZNsI.js} +1 -1
  35. package/dist-web/assets/{ganttDiagram-NO4QXBWP-Dmg9yeHR.js → ganttDiagram-NO4QXBWP-BRY0H5yQ.js} +1 -1
  36. package/dist-web/assets/{gitGraphDiagram-IHSO6WYX-CkENa9tF.js → gitGraphDiagram-IHSO6WYX-kNRoKY5x.js} +1 -1
  37. package/dist-web/assets/index-8y9QBU_r.js +1142 -0
  38. package/dist-web/assets/index-D4gW_Ktl.css +32 -0
  39. package/dist-web/assets/{index-DFJHK8jJ.js → index-D7dp20Xg.js} +1 -1
  40. package/dist-web/assets/{index-1w7mqrDT.js → index-DLFZel9T.js} +8 -8
  41. package/dist-web/assets/index10-DV07IRf8.js +8 -0
  42. package/dist-web/assets/index5-C8WgbVEm.js +1 -0
  43. package/dist-web/assets/index6-C48ZivJ7.js +1 -0
  44. package/dist-web/assets/index8-B0-UsTuT.js +2 -0
  45. package/dist-web/assets/index9-djyIJPZT.js +1 -0
  46. package/dist-web/assets/{infoDiagram-FWYZ7A6U-Cv8rxZZI.js → infoDiagram-FWYZ7A6U-CM68LLn5.js} +1 -1
  47. package/dist-web/assets/{ishikawaDiagram-FXEZZL3T-CuA1ztjv.js → ishikawaDiagram-FXEZZL3T-HdJO8tF7.js} +1 -1
  48. package/dist-web/assets/{journeyDiagram-5HDEW3XC-CVcfSie7.js → journeyDiagram-5HDEW3XC-DCD13lTN.js} +1 -1
  49. package/dist-web/assets/{kanban-definition-HUTT4EX6-CW1B_N8v.js → kanban-definition-HUTT4EX6-CH__Aque.js} +1 -1
  50. package/dist-web/assets/layout-DcalC1b9.js +4 -0
  51. package/dist-web/assets/{linear-SXgBlKNU.js → linear-B6spGXyl.js} +1 -1
  52. package/dist-web/assets/markstream-CqtaxtIA.js +7 -0
  53. package/dist-web/assets/{mermaid.core-07lp9GgB.js → mermaid.core-DY8EMjrF.js} +4 -4
  54. package/dist-web/assets/{mindmap-definition-LN4V7U3C-DB5YaY0-.js → mindmap-definition-LN4V7U3C-B25hoRAR.js} +1 -1
  55. package/dist-web/assets/{pegDiagram-2B236MQR-DPK1WhFw.js → pegDiagram-2B236MQR-D11k8twc.js} +1 -1
  56. package/dist-web/assets/{pieDiagram-ENE6RG2P-Bf4-DpBr.js → pieDiagram-ENE6RG2P-CwYDxGla.js} +1 -1
  57. package/dist-web/assets/preCodeDiffMetrics-CMO2XhRi.js +1 -0
  58. package/dist-web/assets/{quadrantDiagram-ABIIQ3AL-CDn1Eva8.js → quadrantDiagram-ABIIQ3AL-BPSI_vWW.js} +1 -1
  59. package/dist-web/assets/{railroadDiagram-RFXS5EU6-q0FBCwSb.js → railroadDiagram-RFXS5EU6-I9sb5DNu.js} +1 -1
  60. package/dist-web/assets/{requirementDiagram-TGXJPOKE-BCC0I0NM.js → requirementDiagram-TGXJPOKE-DeasTYe2.js} +1 -1
  61. package/dist-web/assets/{sankeyDiagram-HTMAVEWB-CrXP25QE.js → sankeyDiagram-HTMAVEWB-CqlcFoHA.js} +1 -1
  62. package/dist-web/assets/{sequenceDiagram-DBY2YBRQ-BybZOFTL.js → sequenceDiagram-DBY2YBRQ-BGEjue4x.js} +1 -1
  63. package/dist-web/assets/{sizeCapture-X5ZJPWSS-Wzxe-vov.js → sizeCapture-X5ZJPWSS-TaJA43Gu.js} +1 -1
  64. package/dist-web/assets/{stateDiagram-2N3HPSRC-B-6wH_c6.js → stateDiagram-2N3HPSRC-D4HN_SRR.js} +1 -1
  65. package/dist-web/assets/stateDiagram-v2-6OUMAXLB-BAKG7OO2.js +1 -0
  66. package/dist-web/assets/{swimlanes-5IMT3BWC-D2TiuF7A.js → swimlanes-5IMT3BWC-tHqSJXwl.js} +2 -2
  67. package/dist-web/assets/swimlanesDiagram-G3AALYLV-CjkdSqYs.js +8 -0
  68. package/dist-web/assets/{timeline-definition-FHXFAJF6-fKtSi0CT.js → timeline-definition-FHXFAJF6-BOOttnU8.js} +1 -1
  69. package/dist-web/assets/{vennDiagram-L72KCM5P-BDc6eB4F.js → vennDiagram-L72KCM5P-BnRZHHu9.js} +1 -1
  70. package/dist-web/assets/{vue.runtime.esm-bundler-X5RdzQbe.js → vue.runtime.esm-bundler-Bvx-UDBM.js} +1 -1
  71. package/dist-web/assets/{wardleyDiagram-EHGQE667-DeA9MR_N.js → wardleyDiagram-EHGQE667-Cex5DIJb.js} +1 -1
  72. package/dist-web/assets/{xychartDiagram-FW5EYKEG-gxnf-2A7.js → xychartDiagram-FW5EYKEG-CO75_OFH.js} +1 -1
  73. package/dist-web/index.html +2 -2
  74. package/package.json +10 -8
  75. package/dist-web/assets/CodeBlockNode-C1W11AeO.js +0 -29
  76. package/dist-web/assets/channel-CPw-eGij.js +0 -1
  77. package/dist-web/assets/classDiagram-OUVF2IWQ-gjB3Jhxa.js +0 -1
  78. package/dist-web/assets/classDiagram-v2-EOCWNBFH-gjB3Jhxa.js +0 -1
  79. package/dist-web/assets/index-Bka4JnyA.js +0 -1134
  80. package/dist-web/assets/index-CY1AHs2J.css +0 -32
  81. package/dist-web/assets/index-QvRKRZhc.js +0 -7
  82. package/dist-web/assets/index10-XHMeQILg.js +0 -2
  83. package/dist-web/assets/index11-efQCe3Z8.js +0 -8
  84. package/dist-web/assets/index5-DeylqHIW.js +0 -1
  85. package/dist-web/assets/index6-Bjn2CoJ6.js +0 -1
  86. package/dist-web/assets/index7-BUAQIV8C.js +0 -1
  87. package/dist-web/assets/index8-BjdKteDo.js +0 -1
  88. package/dist-web/assets/stateDiagram-v2-6OUMAXLB-B0aN8Hfn.js +0 -1
  89. package/dist-web/assets/swimlanesDiagram-G3AALYLV-B1JZNV9r.js +0 -8
@@ -0,0 +1,8 @@
1
+ import{cv as jt,bQ as Ul,M as Vl,c2 as Xl,c1 as Zl,b$ as Kl,c0 as Gl,aU as m,bl as Jl,af as Ql,bY as en,bE as j,az as yl,ca as kl,aD as tn,as as I,aI as ln,aL as T,u as B,aY as Ft,v as u,bk as h,bb as Ke,au as oe,t as we,aw as ht,bL as nn,bB as rn,ar as xl,bd as bl,s as an,I as on,bJ as un,bO as sn,g as cn,T as dn,q as O,cw as Ml,c9 as Tl,cx as vn,c6 as zt,c3 as mn,cy as fn,cz as hn,cA as gn,cB as pn,cC as wn,b_ as yn,cD as kn}from"./index-8y9QBU_r.js";import{i as At}from"./safeRaf-DGuzXxDK.js";function xn(d,f){return/(?:&#\d+|#\d+|&[a-z]+)$/i.test(d.slice(Math.max(0,f-12),f))}function El(d){return d.includes("->")||d.includes("-->")||d.includes("->>")||d.includes("-->>")||d.includes("-x")||d.includes("--x")||d.includes("-)")||d.includes("--)")||d.includes("-+")||d.includes("--+")}function bn(d){const f=d.trimStart();return/^(?:accDescr|accTitle|activate|actor|and|alt|autonumber|box|break|critical|create\s+(?:actor|participant)|deactivate|destroy|else|end|link|links|loop|Note|opt|option|par|participant|properties|rect)\b/i.test(f)||(function(y){const A=y.split(";",1)[0],o=A.indexOf(":");return o>0&&El(A.slice(0,o))})(f)}function Mn(d){if(!d.includes(";"))return d;const f=d.indexOf(":");if(f===-1||!(function(D,ee){const k=D.slice(0,ee);return/^\s*Note\b/i.test(k)||El(k)})(d,f))return d;const y=d.slice(0,f+1),A=d.slice(f+1),o=(function(D){let ee="",k=!1;for(let E=0;E<D.length;E++){const te=D[E];te!==";"||xn(D,E)||bn(D.slice(E+1))?ee+=te:(ee+="#59;",k=!0)}return k?ee:D})(A);return o===A?d:`${y}${o}`}function Lt(d){if(jt(d)!=="sequencediagram")return d;const f=d.split(/(\r\n|\n|\r)/);let y=!1;for(let A=0;A<f.length;A+=2){const o=f[A],D=Mn(o);D!==o&&(f[A]=D,y=!0)}return y?f.join(""):d}var Tn=Object.defineProperty,Cn=Object.defineProperties,Bn=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,$n=Math.pow,Bl=(d,f,y)=>f in d?Tn(d,f,{enumerable:!0,configurable:!0,writable:!0,value:y}):d[f]=y,Ol=(d,f)=>{for(var y in f||(f={}))On.call(f,y)&&Bl(d,y,f[y]);if(Cl)for(var y of Cl(f))En.call(f,y)&&Bl(d,y,f[y]);return d},C=(d,f,y)=>new Promise((A,o)=>{var D=E=>{try{k(y.next(E))}catch(te){o(te)}},ee=E=>{try{k(y.throw(E))}catch(te){o(te)}},k=E=>E.done?A(E.value):Promise.resolve(E.value).then(D,ee);k((y=y.apply(d,f)).next())});const Sn=["data-markstream-mode","data-markstream-pending"],Pn={key:0,class:"mermaid-block-header flex items-center justify-between border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]"},Dn={key:0},Rn={key:1,class:"flex items-center gap-x-2 overflow-hidden"},Fn=["innerHTML"],zn={key:2},An={key:3,class:"mermaid-mode-toggle-group flex items-center gap-0.5"},Ln={class:"flex items-center gap-x-1"},Hn={class:"flex items-center gap-x-1"},jn={key:4},_n={key:5,class:"mermaid-header-actions flex items-center"},Nn=["aria-pressed"],In={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},Wn={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},Yn=["aria-label","disabled"],qn=["aria-label","disabled"],Un={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},Vn={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},Xn={class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap"},Zn={key:1,class:"relative"},Kn={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},Gn={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Jn={class:"dialog-panel mermaid-modal-panel relative w-full h-full max-w-full max-h-full rounded overflow-hidden"},Qn={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},gt="mermaid-action-btn p-[var(--ms-action-btn-padding)] rounded",Ht=Ul(Vl({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:void 0},estimatedPreviewHeightPx:{},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},renderDebounceMs:{default:300},contentStableDelayMs:{default:500},previewPollDelayMs:{default:800},previewPollMaxDelayMs:{default:4e3},previewPollMaxAttempts:{default:12},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0},enableWheelZoom:{type:Boolean,default:!1},isStrict:{type:Boolean,default:!0},enableMermaidInteractions:{type:Boolean,default:!1},showTooltips:{type:Boolean,default:!0},fitPreviewHeight:{type:Boolean,default:!1},onRenderError:{}},emits:["copy","export","openModal","toggleMode"],setup(d,{emit:f}){var y,A;const o=d,D=f,ee={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style","br"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},k=m(!1),E=m(typeof window>"u"),te=Xl(),_t=Zl(),Oe=O(()=>o.isStrict?"strict":"loose"),$l=O(()=>({startOnLoad:!1,securityLevel:Oe.value,dompurifyConfig:Oe.value==="strict"?ee:void 0,htmlLabels:Oe.value!=="strict"&&void 0,flowchart:Oe.value==="strict"?{htmlLabels:!1}:void 0}));function ye(e){if(e)try{e.replaceChildren()}catch{e.innerHTML=""}}function Ee(e,t,l={}){if(!e)return null;const n=(function(r,a){if(!r)return null;const c=wn(a);if(!c)return null;const g=(function(i,s){const w=Array.from(i.childNodes),$=document.createElement("div");return $.dataset.mermaidSvgLayer="1",$.style.zIndex="1",$.appendChild(s),i.insertBefore($,i.firstChild),w.length>0&&(function(q){const z=()=>{var X;for(const Z of q)(X=Z.parentNode)==null||X.removeChild(Z)};typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>{requestAnimationFrame(z)}):setTimeout(z,32)})(w),$})(r,c);return{svg:c.outerHTML,bindTarget:g}})(e,t);return n||l.keepPreviousOnFailure||ye(e),n}let ie=null;function ke(e){if(o.enableMermaidInteractions&&e?.querySelector("svg"))try{ie?.(e)}catch{}}const{t:p}=Kl();let ue=!1,xe=0;function Ge(){return C(this,null,function*(){try{const e=yield gn();return ue?null:(k.value=!!e,e)}catch(e){throw ue||(k.value=!1),e}finally{ue||(E.value=!0)}})}const Je=m(!1),U=m(!1),Qe=m(),K=m(),v=m(),se=m(),et=m(null),Sl=Gl(),Le=m(null),ce=m(typeof window>"u"||!te.value),Pl=Jl(),le=Ql(en,null);let de="",be=0,tt=0;const Nt=O(()=>yn(o,Pl));function pt(){const e=Nt.value;e&&(de&&de!==e&&(le?.markSettled(de),be=0),de=e,be+=1,tt+=1,be===1&&le?.markPending(e))}function wt(){return C(this,null,function*(){const e=de;if(!e||(be=Math.max(0,be-1),be>0))return;de="";const t=++tt;yield I(),t===tt&&((function(l=Nt.value){l&&Qe.value&&le?.reportHeight(l,Qe.value.offsetHeight)})(e),le?.markSettled(e))})}function It(){const e=de;e&&(de="",be=0,tt+=1,le?.markSettled(e))}const Wt=m(),R=O(()=>o.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function Dl(e,t=R.value){const l=t,n={theme:e==="dark"?"dark":"default"};Oe.value==="strict"&&(n.htmlLabels=!1,n.flowchart={htmlLabels:!1});const r=`%%{init: ${JSON.stringify(n)}}%%
2
+ `;return l.trim().startsWith("%%{")?l:r+l}const Rl=O(()=>{var e;return(e=zt(o.estimatedPreviewHeightPx))!=null?e:hn(R.value)});function Yt(){return(function(e){const t=(function(){var n;const r=K.value?getComputedStyle(K.value).getPropertyValue("--ms-size-diagram-min-height").trim():"";return(n=zt(r))!=null?n:360})(),l=ul();return fn(e,t,l)})(Rl.value)}function yt(){return`${Yt()}px`}const He=m(null);function lt(){var e;return!!((e=v.value)!=null&&e.querySelector("svg"))}function qt(){return o.loading!==!1&&(lt()||!!He.value)}const b=m(1),W=m(0),Y=m(0),Ut=m(!1),x=m(!0),je=m(!1),re=m(!1),ve=m(null),kt=m(!1);let _e=null;function Vt(){_e!=null&&(clearTimeout(_e),_e=null)}j([ce,E],([e,t])=>{Vt(),kt.value=!1,e&&!t&&(_e=setTimeout(()=>{_e=null,kt.value=!0},15e3))},{immediate:!0});const Fl=O(()=>{if((!E.value||k.value)&&x.value&&!je.value&&!kt.value)return yt()});let xt="",bt=!1,me="";const nt=m(0),Mt=m(!1),zl=O(()=>{var e;return Math.max(0,(e=o.renderDebounceMs)!=null?e:300)}),Al=O(()=>{var e;return Math.max(0,(e=o.contentStableDelayMs)!=null?e:500)}),Ne=O(()=>{var e;return Math.max(120,(e=o.previewPollDelayMs)!=null?e:800)}),Ll=O(()=>{var e;return Math.max(Ne.value,(e=o.previewPollMaxDelayMs)!=null?e:4e3)}),Xt=O(()=>{var e;return Math.max(1,Math.trunc((e=o.previewPollMaxAttempts)!=null?e:12))}),fe=O(()=>o.loading!==!1);let Ie=null,We=null,$e=null,Se=null,Ye=0;const Zt=(y=globalThis.requestIdleCallback)!=null?y:(e,t)=>setTimeout(()=>e({didTimeout:!0}),16),Kt=(A=globalThis.cancelIdleCallback)!=null?A:e=>clearTimeout(e);function M(e=xe){return!ue&&e===xe}function L(){return M()&&ce.value&&!U.value}function Tt(){$e!=null&&(globalThis.clearTimeout($e),$e=null),Se!=null&&(Kt(Se),Se=null)}function qe(){ue||$e==null&&Se==null&&($e=globalThis.setTimeout(()=>{$e=null,L()&&(Se=Zt(()=>{Se=null,L()&&pl()},{timeout:500}))},zl.value))}function Ue(){We!=null&&(globalThis.clearTimeout(We),We=null)}function Gt(e=600){if(typeof globalThis>"u"||ue)return;const t=Math.max(0,e);Ue(),We=globalThis.setTimeout(()=>{if(We=null,!ue){if(o.loading||re.value||!L())return void Gt(Math.min(1200,Math.max(300,1.2*t)));qe()}},t)}const _=m(yt()),rt=m(_.value),Hl=O(()=>o.fitPreviewHeight?`${Ml}px`:void 0);let Pe=null;const S=m(!1),G=m(!1),he=m({}),ge=m(0);let V=null,De=null;const N=m(!1),jl=O(()=>{var e,t;return!(U.value||x.value||E.value&&!re.value&&!ve.value&&(S.value||N.value&&((t=(e=v.value)==null?void 0:e.textContent)!=null&&t.trim())))}),Me=m({zoom:1,translateX:0,translateY:0,containerHeight:_.value}),Jt=O(()=>o.enableWheelZoom?{wheel:Nl}:{}),J=O(()=>{var e,t,l,n;return{worker:(e=o.workerTimeoutMs)!=null?e:1400,parse:(t=o.parseTimeoutMs)!=null?t:1800,render:(l=o.renderTimeoutMs)!=null?l:2500,fullRender:(n=o.fullRenderTimeoutMs)!=null?n:4e3}});let Re=null,at=null,Fe=!1,Te=Ne.value,ne=null,ot=0,Ct=!0,it=0;function Ce(e,t){const l=t?.timeoutMs,n=t?.signal;if(n?.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let r=null,a=!1,c=null;return new Promise((g,i)=>{const s=()=>{r!=null&&clearTimeout(r),c&&n&&n.removeEventListener("abort",c)};l&&l>0&&(r=globalThis.setTimeout(()=>{a||(a=!0,s(),i(new Error("Operation timed out")))},l)),n&&(c=()=>{a||(a=!0,s(),i(new DOMException("Aborted","AbortError")))},n.addEventListener("abort",c)),e().then(w=>{a||(a=!0,s(),g(w))}).catch(w=>{a||(a=!0,s(),i(w))})})}function Qt(e){if(typeof document>"u"||!v.value)return;if(typeof o.onRenderError=="function"&&o.onRenderError(e,R.value,v.value)===!0)return N.value=!0,void H();const t=document.createElement("div");t.style.padding="var(--ms-inset-panel-body)",t.style.color="hsl(var(--ms-destructive))",t.textContent="Failed to render diagram: ";const l=document.createElement("span");l.textContent=e instanceof Error?e.message:"Unknown error",t.appendChild(l),ye(v.value),v.value.appendChild(t);const n=v.value?getComputedStyle(v.value).getPropertyValue("--ms-size-diagram-min-height").trim():"";_.value=n||"360px",rt.value=_.value,N.value=!0,H()}function el(e){const t=typeof e=="string"?e:typeof e?.message=="string"?e.message:"";return typeof t=="string"&&/timed out/i.test(t)}function tl(e){return e?.name==="AbortError"}function Bt(e){return!el(e)&&!tl(e)}typeof window<"u"&&j([()=>Qe.value,te],([e,t])=>{var l;if((l=Le.value)==null||l.destroy(),Le.value=null,!t||ce.value)return void(ce.value=!0);if(!e)return void(ce.value=!1);const n=Sl(e,{rootMargin:_t?.value.heavyBlockMargin,allowIdle:!1});Le.value=n,ce.value=n.isVisible.value,n.whenVisible.then(()=>{ce.value=!0})},{immediate:!0}),yl(()=>{var e;ue=!0,xe+=1,ge.value+=1,(e=Le.value)==null||e.destroy(),Le.value=null,It(),Tt()});const ut=O(()=>o.showTooltips!==!1);function ll(e){return!e||e.disabled}function F(e,t,l="top"){if(!ut.value||ll(e.currentTarget))return;const n=e,r=n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0;Tl(e.currentTarget,t,l,!1,r,o.isDark)}function P(){ut.value&&kl()}function nl(e){if(!ut.value||ll(e.currentTarget))return;const t=Je.value?p("common.copied")||"Copied":p("common.copy")||"Copy",l=e,n=l?.clientX!=null&&l?.clientY!=null?{x:l.clientX,y:l.clientY}:void 0;Tl(e.currentTarget,t,"top",!1,n,o.isDark)}function rl(e,t){const l={theme:t==="dark"?"dark":"default"};Oe.value==="strict"&&(l.htmlLabels=!1,l.flowchart={htmlLabels:!1});const n=`%%{init: ${JSON.stringify(l)}}%%
3
+ `;return e.trimStart().startsWith("%%{")?e:n+e}function st(){return Ct&&!x.value&&!S.value&&!N.value}function al(e){const t=e.trim();return!(!t||t.startsWith("%%"))&&!/^(?:gantt|title|dateformat|axisformat|tickinterval|excludes|section|todaymarker|topaxis|weekday|weekend|acctitle|accdescr|accdescrmultiline)\b/i.test(t)&&t.includes(":")}function Ot(e){if(jt(e)==="gantt")return(function(l){var n;const r=l.split(/\r?\n/);for(!/\r?\n$/.test(l)&&r.length>0&&r.pop();r.length>0;){const a=(n=r[r.length-1])==null?void 0:n.trim();if(a&&!a.startsWith("%%")){if(al(a))break;r.pop()}else r.pop()}return r.some(al)?r.join(`
4
+ `):""})(e);const t=e.split(/\r?\n/);for(;t.length>0;){const l=t[t.length-1].trimEnd();if(l!==""){if(!(/^[-=~>|<\s]+$/.test(l.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(l)||/[-|><]$/.test(l)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(l)))break;t.pop()}else t.pop()}return t.join(`
5
+ `)}function ol(e,t,l,n){return C(this,null,function*(){try{return yield Ce(()=>e.render(t,l),{timeoutMs:n})}catch(r){if(!Bt(r))throw r;const a=Lt(l);if(a===l)throw r;try{return yield Ce(()=>e.render(`${t}-retry`,a),{timeoutMs:n})}catch{throw r}}})}function ct(e,t,l){return C(this,null,function*(){var n;try{return yield kn(e,t,(n=l?.timeoutMs)!=null?n:J.value.worker,l?.signal)}catch(r){if(r?.name==="AbortError")throw r;const a=r?.code||r?.name;if(a!=="WORKER_BUSY"&&a!=="WORKER_TIMEOUT"&&a!=="WORKER_INIT_ERROR"&&a!=="MERMAID_DISABLED"&&a!=="WORKER_REPLACED"||r?.fallbackToRenderer||a==="WORKER_TIMEOUT")return yield(function(c,g,i){return C(this,null,function*(){var s,w,$,q;const z=yield Ge();if(!z)return;const X=z,Z=rl(c,g);if(typeof X.parse=="function"){try{yield Ce(()=>X.parse(Z),{timeoutMs:(s=i?.timeoutMs)!=null?s:J.value.parse,signal:i?.signal})}catch(ae){if(!Bt(ae))throw ae;const Ze=Lt(Z);if(Ze===Z)throw ae;try{yield Ce(()=>X.parse(Ze),{timeoutMs:(w=i?.timeoutMs)!=null?w:J.value.parse,signal:i?.signal})}catch{throw ae}}return!0}const ft=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;try{yield Ce(()=>z.render(ft,Z),{timeoutMs:($=i?.timeoutMs)!=null?$:J.value.render,signal:i?.signal})}catch(ae){if(!Bt(ae))throw ae;const Ze=Lt(Z);if(Ze===Z)throw ae;try{yield Ce(()=>z.render(`${ft}-retry`,Ze),{timeoutMs:(q=i?.timeoutMs)!=null?q:J.value.render,signal:i?.signal})}catch{throw ae}}return!0})})(e,t,l);throw r}})}function il(e,t,l){return C(this,null,function*(){var n;if(jt(e)==="gantt"){const a=Ot(e);if(!a.trim())return{fullOk:!1,prefixOk:!1};try{if(yield ct(a,t,l))return a===e?{fullOk:!0,prefixOk:!1}:{fullOk:!1,prefixOk:!0,prefix:a}}catch(c){if(c?.name==="AbortError")throw c}return{fullOk:!1,prefixOk:!1}}try{if(yield ct(e,t,l))return{fullOk:!0,prefixOk:!1}}catch(a){if(a?.name==="AbortError")throw a}let r=Ot(e);if(r&&r.trim()&&r!==e)try{try{const a=yield pn(e,t,(n=l?.timeoutMs)!=null?n:J.value.worker,l?.signal);a&&a.trim()&&(r=a)}catch{}if(yield ct(r,t,l))return{fullOk:!1,prefixOk:!0,prefix:r}}catch(a){if(a?.name==="AbortError")throw a}return{fullOk:!1,prefixOk:!1}})}const dt=O(()=>x.value||re.value||U.value);function ul(){if(o.maxHeight==="none")return null;if(o.maxHeight!=null){const t=Number.parseFloat(String(o.maxHeight));if(Number.isFinite(t))return t}const e=K.value;if(e){const t=getComputedStyle(e).getPropertyValue("--ms-size-code-max-height").trim(),l=Number.parseFloat(t);if(Number.isFinite(l))return l}return 500}function Ve(e,t){if(!K.value||!v.value)return;const l=!t?.force&&o.loading!==!1&&lt(),n=v.value.querySelector("svg");if(!n)return;let r=0,a=0;const c=n.getAttribute("viewBox"),g=n.getAttribute("width"),i=n.getAttribute("height");if(c){const s=c.split(" ");s.length===4&&(r=Number.parseFloat(s[2]),a=Number.parseFloat(s[3]))}if(r&&a||g&&i&&(r=Number.parseFloat(g),a=Number.parseFloat(i)),Number.isNaN(r)||Number.isNaN(a)||r<=0||a<=0)try{const s=n.getBBox();s&&s.width>0&&s.height>0&&(r=s.width,a=s.height)}catch(s){return void console.error("Failed to get SVG BBox:",s)}if(r>0&&a>0){const s=a/r,w=e??K.value.clientWidth,$=n.getBoundingClientRect().width,q=$>0?$/Math.max(.01,b.value):w,z=ul(),X=q*s,Z=z==null?X:Math.min(X,z),ft=o.fitPreviewHeight?vn(Z,Ml,z):Math.max(Z,Yt());l||!o.fitPreviewHeight&&zt(o.estimatedPreviewHeightPx)!=null||(_.value=`${ft}px`),rt.value=_.value}}const Q=m(!1),Et=O(()=>({transform:`translate(${W.value}px, ${Y.value}px) scale(${b.value})`}));function sl(e){e.key==="Escape"&&Q.value&&St()}function $t(){var e;if(!K.value||!se.value)return!1;if(((e=se.value.firstElementChild)==null?void 0:e.getAttribute("data-mermaid-modal-clone"))==="1")return!0;const t=K.value.cloneNode(!0);t.dataset.mermaidModalClone="1",t.classList.add("fullscreen"),t.style.height="100%",t.style.maxHeight="100%";const l=t.querySelector("._mermaid");l&&(l.style.contain="none",l.style.contentVisibility="visible");const n=t.querySelector("[data-mermaid-wrapper]");return n&&(et.value=n,n.style.transform=Et.value.transform),ye(se.value),se.value.appendChild(t),ke(t),!0}function St(){if(Q.value=!1,se.value&&ye(se.value),et.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",sl)}catch{}}function cl(){b.value<3&&(b.value+=.1)}function dl(){b.value>.5&&(b.value-=.1)}function vl(){b.value=1,W.value=0,Y.value=0}j(se,e=>{Q.value&&e&&$t()}),j(Et,e=>{Q.value&&et.value&&(et.value.style.transform=e.transform)},{immediate:!0});const Pt=O(()=>Q.value||b.value>1),ml=mn({getTranslate:()=>({x:W.value,y:Y.value}),setTranslate:e=>{W.value=e.x,Y.value=e.y},canStart:e=>!!lt()&&(e.pointerType!=="touch"||Pt.value),onActiveChange:e=>Ut.value=e}),vt=ml.start,_l=ml.stop;function Nl(e){if(o.enableWheelZoom&&(e.ctrlKey||e.metaKey)){if(e.preventDefault(),!K.value)return;const t=K.value.getBoundingClientRect(),l=e.clientX-t.left,n=e.clientY-t.top,r=l-t.width/2,a=n-t.height/2,c=(r-W.value)/b.value,g=(a-Y.value)/b.value,i=.01,s=-e.deltaY*i,w=Math.min(Math.max(b.value+s,.5),3);w!==b.value&&(W.value=r-c*w,Y.value=a-g*w,b.value=w)}}function Il(){return C(this,null,function*(){try{const e=R.value,t={payload:{type:"copy",text:e},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};if(D("copy",t),t.defaultPrevented)return;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(e)),Je.value=!0,setTimeout(()=>{Je.value=!1},1e3)}catch(e){console.error("Failed to copy:",e)}})}function Wl(){var e;const t=(e=v.value)==null?void 0:e.querySelector("svg");if(!t)return void console.error("SVG element not found");const l=new XMLSerializer().serializeToString(t),n={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:t,svgString:l};D("export",n),n.defaultPrevented||(function(r,a=null){C(this,null,function*(){try{const c=a??new XMLSerializer().serializeToString(r),g=new Blob([c],{type:"image/svg+xml;charset=utf-8"}),i=URL.createObjectURL(g);if(typeof document<"u"){const s=document.createElement("a");s.href=i,s.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(s),s.click(),document.body.removeChild(s)}catch{}URL.revokeObjectURL(i)}}catch(c){console.error("Failed to export SVG:",c)}})})(t,l)}function Yl(){var e,t;const l=(t=(e=v.value)==null?void 0:e.querySelector("svg"))!=null?t:null,n=l?new XMLSerializer().serializeToString(l):null,r={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:l,svgString:n};D("openModal",r),r.defaultPrevented||(function(){if(Q.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",sl)}catch{}I(()=>{$t()||I($t)})})()}function fl(e){const t={payload:{type:"toggle-mode",target:e},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};D("toggleMode",e,t),t.defaultPrevented||hl(e)}function hl(e){return C(this,null,function*(){const t=Wt.value;if(!t)return je.value=!0,void(x.value=e==="source");const l=t.getBoundingClientRect().height;t.style.height=`${l}px`,t.style.overflow="hidden",je.value=!0,x.value=e==="source",yield I();const n=t.scrollHeight;t.style.transition="height var(--ms-duration-standard) var(--ms-ease-standard)",t.offsetHeight,t.style.height=`${n}px`;const r=()=>{t.style.transition="",t.style.height="",t.style.overflow="",t.removeEventListener("transitionend",a)};function a(){r()}t.addEventListener("transitionend",a),setTimeout(()=>r(),220)})}function pe(e=R.value,t=o.isDark?"dark":"light",l=o.loading===!1){return{code:e,codeWithTheme:Dl(t,e),final:l,signature:`${t}\0${e}`,theme:t}}function ze(e){return e.signature===pe().signature}function Be(){return C(this,arguments,function*(e=pe()){const t=xe;if(!M(t)||!ze(e))return!1;if(re.value){const l=ve.value,n=bt,r=xt;if(!l)return!1;const a=yield l;return!(!M(t)||!ze(e))&&(r===e.signature?!(!a||me!==e.signature)||!(!e.final||o.loading!==!1||n)&&Be(e):Be(e))}if(!v.value){if(yield I(),!M(t))return!1;if(!v.value)return console.warn("Mermaid container not ready"),!1}return!(!M(t)||!ze(e))&&(re.value=!0,bt=e.final,xt=e.signature,pt(),ve.value=C(null,null,function*(){var l,n,r,a;try{const c=yield Ge();if(!M(t)||!c)return!1;const g=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;S.value||G.value||(l=c.initialize)==null||l.call(c,(r=Ol({},$l.value),a={dompurifyConfig:Ol({},ee)},Cn(r,Bn(a))));const i=yield ol(c,g,e.codeWithTheme,J.value.fullRender);if(!M(t)||!(function($){return ze($)||!$.final&&o.loading!==!1&&R.value.startsWith($.code)})(e))return G.value&&(G.value=!1),!1;if(!v.value)return!1;const s=Ee(v.value,i?.svg,{keepPreviousOnFailure:!e.final||o.loading!==!1});if(!s)return G.value&&(G.value=!1),!1;const w=(n=i?.bindFunctions)!=null?n:null;return ie=w,ke(s.bindTarget),At(()=>Ve()),S.value||G.value||(S.value=!0,Me.value={zoom:b.value,translateX:W.value,translateY:Y.value,containerHeight:_.value}),he.value[e.theme]={svg:s.svg,bindFunctions:w},G.value&&(G.value=!1),me=e.signature,He.value=v.value.innerHTML,N.value=!1,Ye=0,Ue(),!0}catch(c){if(!M(t)||!ze(e))return G.value&&(G.value=!1),!1;const g=el(c),i=Ye+1;return g&&i<=3?(Ye=i,Gt(Math.min(1200,600*i))):(Ye=0,Ue(),e.final&&o.loading===!1&&console.error("Failed to render mermaid diagram:",c),e.final&&o.loading===!1&&Qt(c)),!1}finally{bt=!1,xt="",re.value=!1,ve.value=null,M(t)&&wt()}}),ve.value)})}function Ae(){return C(this,null,function*(){var e;const t=R.value;if(!t.trim())return qt()?void 0:(v.value&&ye(v.value),He.value=null,me="",void(N.value=!1));if(!k.value||!L())return;const l=pe(t);S.value&&l.signature===me&&((e=v.value)!=null&&e.querySelector("svg"))||(yield Be(l))&&(N.value=!1)})}function gl(e,t,l,n){return C(this,null,function*(){const r=xe;if(!M(r)||!st()||!v.value&&(yield I(),!M(r)||!v.value)||re.value)return;re.value=!0,pt();const a=pe(t,l),c=C(null,null,function*(){var g;try{const i=yield Ge();if(!M(r)||!i)return!1;const s=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,w=Ot(e),$=w&&w.trim()?w:e,q=yield ol(i,s,rl($,l),J.value.render);if(!M(r)||ge.value!==n||o.loading===!1||!st()||!ze(a))return!1;const z=q?.svg;if(!v.value||!z)return!1;const X=Ee(v.value,z,{keepPreviousOnFailure:!0});return!!X&&(ie=(g=q?.bindFunctions)!=null?g:null,ke(X.bindTarget),At(()=>Ve()),!1)}catch{return!1}finally{ve.value===c&&(re.value=!1,ve.value=null),M(r)&&wt()}});return ve.value=c,c})}function pl(){return C(this,null,function*(){var e;if(!L())return;const t=xe,l=Date.now(),n=++ge.value;pt();try{V&&V.abort(),V=new AbortController;const r=V.signal,a=o.isDark?"dark":"light",c=R.value;if(!c.trim())return qt()?void 0:(v.value&&ye(v.value),He.value=null,me="",void(N.value=!1));if(pe(c,a).signature===me)return;try{const i=yield il(c,a,{signal:r,timeoutMs:J.value.worker});if(!M(t))return;if(i.fullOk)return r.aborted||ge.value!==n||!(yield Be(pe(c,a)))?void 0:void(M(t)&&ge.value===n&&(N.value=!1));const s=ot&&l<=ot;if(i.prefixOk&&i.prefix&&!r.aborted&&ge.value===n&&st()&&!s)return void(yield gl(i.prefix,c,a,n))}catch(i){if(i?.name==="AbortError")return}if(!M(t)||ge.value!==n||N.value)return;const g=he.value[a];if(g&&v.value){const i=Ee(v.value,g.svg);i&&(ie=(e=g.bindFunctions)!=null?e:null,ke(i.bindTarget))}}finally{M(t)&&wt()}})}function H(){Fe&&(Fe=!1,Te=Ne.value,Ct=!1,ne&&(ne.abort(),ne=null),Re&&(globalThis.clearTimeout(Re),Re=null),at&&(Kt(at),at=null),ot=Date.now())}function Xe(){if(H(),Tt(),V){try{V.abort()}catch{}V=null}if(ne){try{ne.abort()}catch{}ne=null}Ue(),Ye=0}function Dt(){De?.abort(),De=null}function Rt(e=Ne.value){Fe&&(it>=Xt.value?H():(Re&&globalThis.clearTimeout(Re),Re=globalThis.setTimeout(()=>{at=Zt(()=>C(null,null,function*(){if(!Fe)return;if(!L()||x.value||S.value)return void H();const t=o.isDark?"dark":"light",l=R.value;if(!l.trim())return o.loading===!1?void H():void Rt(Te);if(it++,it>Xt.value)H();else{ne&&ne.abort(),ne=new AbortController;try{const n=yield il(l,t,{signal:ne.signal,timeoutMs:J.value.worker});if(n.fullOk){if((yield Be(pe(l,t)))&&S.value)return void H()}else n.prefixOk&&n.prefix&&st()&&(yield gl(n.prefix,l,t,ge.value))}catch{}Te=Math.min(Math.floor(1.5*Te),Ll.value),Rt(Te)}}),{timeout:500})},e)))}function mt(){Fe||fe.value&&k.value&&L()&&(x.value||S.value||(Fe=!0,ot=0,Ct=!0,it=0,Te=Ne.value,Rt(Te)))}function wl(){return C(this,null,function*(){const e=xe;M(e)&&(yield Ge().catch(t=>{M(e)&&(k.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",t))}),M(e)&&(yield I(),M(e)&&(je.value||(x.value=!k.value),L()&&(fe.value?(qe(),nt.value=R.value.length):x.value||Ae()))))})}return yl(_l),j(ut,e=>{e||kl()}),j(()=>R.value,e=>{if((e.trim()||o.loading===!1)&&(S.value=!1,he.value={}),!fe.value)return H(),void(L()&&!x.value&&Ae());L()&&qe(),!x.value&&k.value&&L()?mt():H(),(function(){if(!fe.value||!x.value||!k.value)return;const t=R.value.length;t!==nt.value&&(Mt.value=!0,nt.value=t,Ie&&clearTimeout(Ie),Ie=setTimeout(()=>{Mt.value&&x.value&&R.value.trim()&&(Mt.value=!1,hl("preview"))},Al.value))})()}),j(()=>o.isDark,()=>C(null,null,function*(){var e;if(N.value)return;const t=o.isDark?"dark":"light",l=he.value[t];if(l){if(v.value){const a=Ee(v.value,l.svg);a&&(ie=(e=l.bindFunctions)!=null?e:null,ke(a.bindTarget))}return}const n={zoom:b.value,translateX:W.value,translateY:Y.value,containerHeight:_.value},r=b.value!==1||W.value!==0||Y.value!==0;G.value=!0,r&&(b.value=1,W.value=0,Y.value=0,yield I()),yield Be(),r&&(yield I(),b.value=n.zoom,W.value=n.translateX,Y.value=n.translateY,_.value=n.containerHeight,Me.value=n)})),j(()=>x.value,e=>C(null,null,function*(){var t;if(e)H(),S.value&&(Me.value={zoom:b.value,translateX:W.value,translateY:Y.value,containerHeight:_.value});else{if(N.value)return;const l=o.isDark?"dark":"light";if(S.value&&he.value[l]){if(yield I(),v.value){const n=he.value[l],r=Ee(v.value,n.svg);r&&(ie=(t=n.bindFunctions)!=null?t:null,ke(r.bindTarget))}return b.value=Me.value.zoom,W.value=Me.value.translateX,Y.value=Me.value.translateY,void(_.value=Me.value.containerHeight)}if(yield I(),!k.value||!L())return;if(!fe.value)return H(),void(yield Ae());mt(),yield pl()}})),j(()=>o.loading,(e,t)=>C(null,null,function*(){var l;if(e)Dt();else if(t===!0){Dt();const n=R.value,r=n.trim();if(!r)return v.value&&ye(v.value),He.value=null,me="",N.value=!1,Xe();if(!L())return void Xe();const a=o.isDark?"dark":"light",c=pe(n,a);if(S.value&&c.signature===me){if(yield I(),v.value&&!v.value.querySelector("svg")&&he.value[a]){const i=he.value[a],s=Ee(v.value,i.svg);s&&(ie=(l=i.bindFunctions)!=null?l:null,ke(s.bindTarget))}return Ve(void 0,{force:!0}),void Xe()}const g=new AbortController;De=g;try{let i=0;for(;;)try{yield ct(r,a,{signal:g.signal,timeoutMs:J.value.worker});break}catch(s){const w=s?.code==="WORKER_BUSY"||s?.code==="WORKER_TIMEOUT",$=s?.code==="WORKER_TIMEOUT"?2:8;if(!w||i>=$)throw s;const q=Math.min(50*$n(2,i),400);i++,yield Ce(()=>new Promise(z=>setTimeout(z,q)),{signal:g.signal})}if(!(yield Be(c)))return;N.value=!1,Xe()}catch(i){if(tl(i))return;Xe(),Qt(i)}finally{De===g&&(De=null)}}})),j(K,e=>{Pe&&Pe.disconnect(),e&&(Pe=new ResizeObserver(t=>{t&&t.length>0&&!x.value&&!U.value&&At(()=>{Ve(t[0].contentRect.width)})}),Pe.observe(e))},{immediate:!0}),tn(()=>{te.value&&!L()||wl()}),j(()=>k.value,e=>{je.value||(x.value=!e)}),j(()=>o.maxHeight,()=>{I(()=>{Ve()})}),j([()=>o.estimatedPreviewHeightPx,()=>R.value],()=>{S.value||lt()||x.value||(_.value=yt(),rt.value=_.value)}),j(()=>ce.value,e=>C(null,null,function*(){e&&(E.value?(S.value||(fe.value?(qe(),nt.value=R.value.length):Ae()),o.loading||S.value||Ae(),!x.value&&k.value&&fe.value&&mt()):yield wl())}),{immediate:!1}),ln(()=>{Ie&&clearTimeout(Ie),Vt(),Tt(),Pe&&Pe.disconnect(),V&&(V.abort(),V=null),Dt(),H(),Ue(),It()}),j(()=>U.value,e=>C(null,null,function*(){e?(H(),V&&V.abort()):L()&&!S.value&&(yield I(),fe.value?(qe(),mt()):x.value||Ae())}),{immediate:!1}),(e,t)=>(T(),B("div",{ref_key:"blockContainer",ref:Qe,class:oe(["mermaid-block-container rounded-lg border overflow-hidden",[{"is-rendering":o.loading,dark:o.isDark}]]),"data-markstream-mermaid":"1","data-markstream-mode":x.value?"fallback":S.value?"preview":"pending","data-markstream-pending":jl.value?"true":void 0},[o.showHeader?(T(),B("div",Pn,[e.$slots["header-left"]?(T(),B("div",Dn,[Ft(e.$slots,"header-left",{},void 0,!0)])):(T(),B("div",Rn,[u("span",{class:"icon-slot action-icon shrink-0",innerHTML:h(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
6
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />
7
+ </svg>
8
+ `)},null,8,Fn),t[23]||(t[23]=u("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate"},"Mermaid",-1))])),e.$slots["header-center"]?(T(),B("div",zn,[Ft(e.$slots,"header-center",{},void 0,!0)])):o.showModeToggle&&k.value?(T(),B("div",An,[u("button",{class:oe(["mermaid-mode-btn px-2 py-0.5 rounded transition-colors",[x.value?"":"is-active"]]),onClick:t[0]||(t[0]=()=>fl("preview")),onMouseenter:t[1]||(t[1]=l=>F(l,h(p)("common.preview")||"Preview")),onFocus:t[2]||(t[2]=l=>F(l,h(p)("common.preview")||"Preview")),onMouseleave:P,onBlur:P},[u("div",Ln,[t[24]||(t[24]=u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),u("circle",{cx:"12",cy:"12",r:"3"})])],-1)),u("span",null,Ke(h(p)("common.preview")||"Preview"),1)])],34),u("button",{class:oe(["mermaid-mode-btn px-2 py-0.5 rounded transition-colors",[x.value?"is-active":""]]),onClick:t[3]||(t[3]=()=>fl("source")),onMouseenter:t[4]||(t[4]=l=>F(l,h(p)("common.source")||"Source")),onFocus:t[5]||(t[5]=l=>F(l,h(p)("common.source")||"Source")),onMouseleave:P,onBlur:P},[u("div",Hn,[t[25]||(t[25]=u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),u("span",null,Ke(h(p)("common.source")||"Source"),1)])],34)])):we("",!0),e.$slots["header-right"]?(T(),B("div",jn,[Ft(e.$slots,"header-right",{},void 0,!0)])):(T(),B("div",_n,[o.showCollapseButton?(T(),B("button",{key:0,class:oe(gt),"aria-pressed":U.value,onClick:t[6]||(t[6]=l=>U.value=!U.value),onMouseenter:t[7]||(t[7]=l=>F(l,U.value?h(p)("common.expand")||"Expand":h(p)("common.collapse")||"Collapse")),onFocus:t[8]||(t[8]=l=>F(l,U.value?h(p)("common.expand")||"Expand":h(p)("common.collapse")||"Collapse")),onMouseleave:P,onBlur:P},[(T(),B("svg",{style:ht({rotate:U.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...t[26]||(t[26]=[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Nn)):we("",!0),o.showCopyButton?(T(),B("button",{key:1,class:oe(gt),onClick:Il,onMouseenter:t[9]||(t[9]=l=>nl(l)),onFocus:t[10]||(t[10]=l=>nl(l)),onMouseleave:P,onBlur:P},[Je.value?(T(),B("svg",Wn,[...t[28]||(t[28]=[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(T(),B("svg",In,[...t[27]||(t[27]=[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),u("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],32)):we("",!0),o.showExportButton&&k.value?(T(),B("button",{key:2,class:oe(`${gt} ${dt.value?"opacity-50 cursor-not-allowed":""}`),"aria-label":h(p)("common.export")||"Export",disabled:dt.value,onClick:Wl,onMouseenter:t[11]||(t[11]=l=>F(l,h(p)("common.export")||"Export")),onFocus:t[12]||(t[12]=l=>F(l,h(p)("common.export")||"Export")),onMouseleave:P,onBlur:P},[...t[29]||(t[29]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),u("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,Yn)):we("",!0),o.showFullscreenButton&&k.value?(T(),B("button",{key:3,class:oe(`${gt} ${dt.value?"opacity-50 cursor-not-allowed":""}`),"aria-label":Q.value?h(p)("common.minimize")||"Minimize":h(p)("common.open")||"Open",disabled:dt.value,onClick:Yl,onMouseenter:t[13]||(t[13]=l=>F(l,Q.value?h(p)("common.minimize")||"Minimize":h(p)("common.open")||"Open")),onFocus:t[14]||(t[14]=l=>F(l,Q.value?h(p)("common.minimize")||"Minimize":h(p)("common.open")||"Open")),onMouseleave:P,onBlur:P},[Q.value?(T(),B("svg",Vn,[...t[31]||(t[31]=[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(T(),B("svg",Un,[...t[30]||(t[30]=[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,qn)):we("",!0)]))])):we("",!0),nn(u("div",{ref_key:"modeContainerRef",ref:Wt},[x.value?(T(),B("div",{key:0,class:"mermaid-source-panel",style:ht({minHeight:Fl.value})},[u("pre",Xn,Ke(R.value),1)],4)):(T(),B("div",Zn,[o.showZoomControls?(T(),B("div",Kn,[u("div",Gn,[u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] rounded transition-colors",onClick:cl,onMouseenter:t[15]||(t[15]=l=>F(l,h(p)("common.zoomIn")||"Zoom in")),onFocus:t[16]||(t[16]=l=>F(l,h(p)("common.zoomIn")||"Zoom in")),onMouseleave:P,onBlur:P},[...t[32]||(t[32]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],32),u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] rounded transition-colors",onClick:dl,onMouseenter:t[17]||(t[17]=l=>F(l,h(p)("common.zoomOut")||"Zoom out")),onFocus:t[18]||(t[18]=l=>F(l,h(p)("common.zoomOut")||"Zoom out")),onMouseleave:P,onBlur:P},[...t[33]||(t[33]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],32),u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] text-[length:var(--ms-text-label)] rounded transition-colors",onClick:vl,onMouseenter:t[19]||(t[19]=l=>F(l,h(p)("common.resetZoom")||"Reset zoom")),onFocus:t[20]||(t[20]=l=>F(l,h(p)("common.resetZoom")||"Reset zoom")),onMouseleave:P,onBlur:P},Ke(Math.round(100*b.value))+"% ",33)])])):we("",!0),u("div",xl({ref_key:"mermaidContainer",ref:K,class:["mermaid-preview-area relative overflow-hidden block transition-[height] ease-out",{"mermaid-pan-touch":Pt.value}],style:{height:_.value,minHeight:Hl.value}},bl(Jt.value,!0),{onPointerdown:t[21]||(t[21]=(...l)=>h(vt)&&h(vt)(...l))}),[u("div",{"data-mermaid-wrapper":"",class:oe(["absolute inset-0 cursor-grab",{"cursor-grabbing":Ut.value}]),style:ht(Et.value)},[u("div",{ref_key:"mermaidContent",ref:v,class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:ht({height:rt.value})},null,4)],6)],16),(T(),an(dn,{to:"body"},[u("div",{class:oe(["markstream-vue",{dark:o.isDark}])},[on(cn,{name:"mermaid-dialog",appear:""},{default:un(()=>[Q.value?(T(),B("div",{key:0,class:"mermaid-modal-overlay fixed inset-0 z-50 flex items-center justify-center p-4",onClick:sn(St,["self"])},[u("div",Jn,[u("div",Qn,[u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] rounded transition-colors",onClick:cl},[...t[34]||(t[34]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])]),u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] rounded transition-colors",onClick:dl},[...t[35]||(t[35]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])]),u("button",{class:"mermaid-action-btn p-[var(--ms-action-btn-padding)] text-[length:var(--ms-text-label)] rounded transition-colors",onClick:vl},Ke(Math.round(100*b.value))+"% ",1),u("button",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded transition-colors",onClick:St},[...t[36]||(t[36]=[u("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[u("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])])]),u("div",xl({ref_key:"modalContent",ref:se,class:["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"mermaid-pan-touch":Pt.value}]},bl(Jt.value,!0),{onPointerdown:t[22]||(t[22]=(...l)=>h(vt)&&h(vt)(...l))}),null,16)])])):we("",!0)]),_:1})],2)]))]))],512),[[rn,!U.value]])],10,Sn))}}),[["__scopeId","data-v-a0530481"]]);Ht.install=d=>{d.component(Ht.__name,Ht)};export{Ht as default};
@@ -0,0 +1 @@
1
+ import{bQ as G,M as ee,af as ne,bY as te,a0 as le,bS as ae,bT as X,aU as T,bZ as oe,bE as j,aD as re,az as ue,aL as B,u as H,I as ie,bJ as se,t as ce,v as de,g as ve,au as q,bb as fe,aw as me,q as J,bU as he,as as Q,bV as ge,bW as pe,bX as ye,b_ as be}from"./index-8y9QBU_r.js";var Y=(E,K,$)=>new Promise((t,c)=>{var u=v=>{try{R($.next(v))}catch(f){c(f)}},d=v=>{try{R($.throw(v))}catch(f){c(f)}},R=v=>v.done?t(v.value):Promise.resolve(v.value).then(u,d);R(($=$.apply(E,K)).next())});const ke=["data-markstream-mode","data-markstream-pending"],$e={key:0,class:"math-loading-overlay"},xe=["innerHTML"],we={key:1,class:"math-block__fallback text-left"},L=G(ee({__name:"MathBlockNode",props:{node:{},indexKey:{},cacheScope:{}},setup(E){var K,$;const t=E,c=T(null),u=ne(te,null),d=J(()=>he(t.node.content)),R=(($=(K=le())==null?void 0:K.vnode.el)==null?void 0:$.nodeType)===1,v=J(()=>be(t,{})),f=(function(){if(!t.node.content)return{html:"",text:t.node.raw,loading:!1};if(t.node.loading)return{html:"",text:"",loading:!0};const e=ae();if(!e){const n=typeof window>"u"||R;return{html:"",text:n?t.node.raw:"",loading:!n}}try{const n=e.renderToString(d.value,{throwOnError:!1,displayMode:!0});return X(d.value,!0,n),{html:n,text:"",loading:!1}}catch{return{html:"",text:t.node.loading?"":t.node.raw,loading:t.node.loading}}})(),i=T(f.html),g=T(f.text);let M=!1,x=0,m=!1,w=null;const p=oe();let I=null,y="";const b=T(f.loading),z=T(!1),k=T(U());function W(e){e!=null&&e!==x||(z.value=!1)}function C(){var e;if(t.indexKey==null)return"";const n=(e=t.cacheScope)!=null?e:p?.scope;return`${n!=null&&String(n).length>0?`${String(n)}:`:""}math-block:${String(t.indexKey)}`}function U(){var e;const n=C();return n&&(e=p?.cache.get(n))!=null?e:0}function O(){if(k.value===0)return;k.value=0;const e=C();e&&p?.cache.set(e,0)}function V(e){if(i.value)return void O();if(!Number.isFinite(e)||e<=0)return;const n=Math.max(k.value,e);if(n===k.value)return;k.value=n;const l=C();l&&p?.cache.set(l,n)}function _(){Q(()=>{var e,n;V((n=(e=c.value)==null?void 0:e.offsetHeight)!=null?n:0)})}function N(){const e=y;u&&e&&(y="",u.markSettled(e))}function D(){return Y(this,null,function*(){if(m)return N(),void W();w&&(w.abort(),w=null);const e=++x;if(!t.node.content)return N(),W(),b.value=!1,i.value="",g.value=t.node.raw,M=!1,void _();const n=new AbortController;w=n,z.value=!0,m||e!==x||n.signal.aborted?m||W(e):((function(){const l=v.value;u&&l&&y!==l&&(y&&u.markSettled(y),y=l,u.markPending(l))})(),ge(d.value,!0,{timeout:3e3,waitTimeout:2e3,maxRetries:8,signal:n.signal}).then(l=>{m||e!==x||(i.value=l,g.value="",M=!0,b.value=!1,O(),_())}).catch(l=>Y(null,null,function*(){if(m||e!==x)return;const r=l?.code||l?.name,a=r==="KATEX_DISABLED";if(r==="WORKER_INIT_ERROR"||l?.fallbackToRenderer||(r===pe||r==="WORKER_TIMEOUT")&&!t.node.loading){const o=yield ye();if(m||e!==x)return;if(o){try{const s=o.renderToString(d.value,{throwOnError:t.node.loading,displayMode:!0});i.value=s,g.value="",M=!0,b.value=!1,O(),_(),X(d.value,!0,s)}catch{}return}}if(a||!t.node.loading)return b.value=!1,i.value="",g.value=t.node.raw,void _();M||(b.value=!0)})).finally(()=>{m||e!==x||(W(e),(function(){const l=y;u&&l&&(y="",Q(()=>{var r,a;if(!m){const o=(a=(r=c.value)==null?void 0:r.offsetHeight)!=null?a:0;o>0&&u.reportHeight(l,o)}u.markSettled(l)}))})())}))})}f.html&&(M=!0),f.html&&O();const Z=[{family:"$$",open:"$$",close:"$$"},{family:"\\[]",open:"\\[",close:"\\]"},{family:"\\[]",open:"\\[",close:"]"},{family:"[]",open:"[",close:"\\]"},{family:"[]",open:"[",close:"]"},{family:"\\()",open:"\\(",close:"\\)"},{family:"$",open:"$",close:"$"}];function A(e,n){return(function(r){const a=String(r??"");for(const{family:o,open:s,close:S}of Z)if((s!=="$"||!a.startsWith("$$")&&!a.endsWith("$$"))&&a.length>=s.length+S.length&&a.startsWith(s)&&a.endsWith(S))return{family:o,inner:a.slice(s.length,a.length-S.length),trusted:!0};return null})(e)||{family:"content",inner:String(n??""),trusted:!1}}let h=null,P=`${d.value}\0${t.node.loading?"1":"0"}`;return j(()=>[t.node.content,t.node.loading,t.node.raw],([e,,n],[l,,r])=>{var a,o;a=A(r,l),o=A(n,e),a.inner===""||a.family===o.family&&(a.trusted&&o.trusted?o.inner.startsWith(a.inner):o.inner===a.inner)||O(),(function(){const s=d.value,S=t.node.loading===!0,F=`${s}\0${S?"1":"0"}`;if(F!==P){if(P=F,!S)return h!=null&&(clearTimeout(h),h=null),void D();h==null&&(h=setTimeout(()=>{h=null,D()},32))}})()},{flush:"post"}),j([()=>t.indexKey,()=>t.cacheScope],()=>{k.value=U(),_()}),re(()=>{typeof ResizeObserver<"u"&&c.value&&(I=new ResizeObserver(()=>{var e,n;V((n=(e=c.value)==null?void 0:e.offsetHeight)!=null?n:0)}),I.observe(c.value)),_(),i.value||D()}),ue(()=>{m=!0,h!=null&&(clearTimeout(h),h=null),N(),w&&(w.abort(),w=null),I?.disconnect(),I=null}),(e,n)=>(B(),H("div",{ref_key:"containerEl",ref:c,class:"math-block text-center overflow-x-auto relative","data-markstream-math":"block","data-markstream-mode":i.value?"katex":g.value?"fallback":"loading","data-markstream-pending":z.value?"true":void 0,style:me(k.value?{minHeight:`${k.value}px`}:void 0)},[ie(ve,{name:"math-fade"},{default:se(()=>[!b.value||i.value||g.value?ce("",!0):(B(),H("div",$e,[...n[0]||(n[0]=[de("div",{class:"math-loading-spinner"},null,-1)])]))]),_:1}),i.value?(B(),H("div",{key:0,class:q(["math-block__content",{"math-rendering":b.value}]),innerHTML:i.value},null,10,xe)):g.value?(B(),H("pre",we,fe(g.value),1)):(B(),H("div",{key:2,class:q(["math-block__content",{"math-rendering":b.value}])},null,2))],12,ke))}}),[["__scopeId","data-v-af54c877"]]);L.install=E=>{E.component(L.__name,L)};export{L as default};
@@ -0,0 +1 @@
1
+ import{bQ as A,M as K,a0 as W,bS as z,bT as C,aU as k,bU as I,bE as H,aD as P,az as V,aL as T,u as M,bb as X,s as q,bJ as j,v as B,aY as F,g as G,t as J,q as D,bV as Q,bW as Y,bX as Z}from"./index-8y9QBU_r.js";var N=(h,w,d)=>new Promise((y,e)=>{var _=o=>{try{t(d.next(o))}catch(i){e(i)}},s=o=>{try{t(d.throw(o))}catch(i){e(i)}},t=o=>o.done?y(o.value):Promise.resolve(o.value).then(_,s);t((d=d.apply(h,w)).next())});const ee=["data-markstream-mode","data-markstream-pending"],ne=["innerHTML"],ae={key:1,class:"math-inline math-inline--fallback"},le={class:"math-inline__loading",role:"status","aria-live":"polite"},L=A(K({__name:"MathInlineNode",props:{node:{}},setup(h){var w,d,y;const e=h,_=k(null),s=D(()=>e.node.markup==="$$"),t=D(()=>I(e.node.content)),o=((d=(w=W())==null?void 0:w.vnode.el)==null?void 0:d.nodeType)===1,i=(function(){if(!e.node.content)return{html:"",text:e.node.loading?"":e.node.raw,loading:e.node.loading};if(e.node.loading)return{html:"",text:"",loading:!0};const n=z();if(!n){const a=typeof window>"u"||o;return{html:"",text:a?e.node.raw:"",loading:!a}}try{const a=n.renderToString(t.value,{throwOnError:!1,displayMode:s.value});return C(t.value,s.value,a),{html:a,text:"",loading:!1}}catch{return{html:"",text:e.node.loading?"":e.node.raw,loading:e.node.loading}}})(),u=k(i.html),c=k(i.text);let b=!1,g=0,v=!1,m=null;const f=k(i.loading),x=k(!1);function E(n){n!=null&&n!==g||(x.value=!1)}function $(){return N(this,null,function*(){if(v)return;m&&(m.abort(),m=null);const n=++g;if(!e.node.content)return E(),u.value="",c.value=e.node.loading?"":e.node.raw,f.value=e.node.loading,void(b=!1);const a=new AbortController;m=a,x.value=!0,v||n!==g||a.signal.aborted?E(n):Q(t.value,s.value,{timeout:1500,waitTimeout:1500,maxRetries:8,signal:a.signal}).then(l=>{v||n!==g||(u.value=l,c.value="",f.value=!1,b=!0)}).catch(l=>N(null,null,function*(){if(v||n!==g)return;const p=l?.code||l?.name,U=p==="KATEX_DISABLED";if(p==="WORKER_INIT_ERROR"||l?.fallbackToRenderer||(p===Y||p==="WORKER_TIMEOUT")&&!e.node.loading){const S=yield Z();if(v||n!==g)return;if(S){try{const R=S.renderToString(t.value,{throwOnError:e.node.loading,displayMode:s.value});u.value=R,c.value="",f.value=!1,b=!0,C(t.value,s.value,R)}catch{}return}}if(U||!e.node.loading)return f.value=!1,u.value="",void(c.value=e.node.raw);b||(f.value=!0)})).finally(()=>{v||E(n)})})}i.html&&(b=!0);let r=null,O=`${I(e.node.content)}\0${(y=e.node.markup)!=null?y:""}\0${e.node.loading?"1":"0"}`;return H(()=>[e.node.content,e.node.loading,e.node.raw,e.node.markup],()=>{(function(){var n;const a=I(e.node.content),l=e.node.loading===!0,p=`${a}\0${(n=e.node.markup)!=null?n:""}\0${l?"1":"0"}`;if(p!==O){if(O=p,!l)return r!=null&&(clearTimeout(r),r=null),void $();r==null&&(r=setTimeout(()=>{r=null,$()},32))}})()}),P(()=>{u.value||$()}),V(()=>{v=!0,r!=null&&(clearTimeout(r),r=null),m&&(m.abort(),m=null)}),(n,a)=>(T(),M("span",{ref_key:"containerEl",ref:_,class:"math-inline-wrapper","data-markstream-math":"inline","data-markstream-mode":u.value?"katex":c.value?"fallback":"loading","data-markstream-pending":x.value?"true":void 0},[u.value?(T(),M("span",{key:0,class:"math-inline",innerHTML:u.value},null,8,ne)):c.value?(T(),M("span",ae,X(c.value),1)):f.value?(T(),q(G,{key:2,name:"table-node-fade"},{default:j(()=>[B("span",le,[F(n.$slots,"loading",{isLoading:f.value},()=>[a[0]||(a[0]=B("span",{class:"math-inline__spinner animate-spin","aria-hidden":"true"},null,-1)),a[1]||(a[1]=B("span",{class:"sr-only"},"Loading",-1))],!0)])]),_:3})):J("",!0)],8,ee))}}),[["__scopeId","data-v-73d5e320"]]);L.install=h=>{h.component(L.__name,L)};export{L as default};
@@ -0,0 +1,2 @@
1
+ import{bQ as o1,M as l1,b$ as a1,c0 as r1,c1 as i1,c2 as s1,aU as v,bl as u1,af as c1,bY as d1,bE as j,c3 as v1,as as I,aD as m1,c4 as Ae,az as h1,aL as s,u,aY as be,v as o,bk as a,bb as O,au as x,t as T,aw as Me,bL as p1,bB as f1,s as w1,I as g1,bJ as C1,bO as k1,g as x1,T as y1,q as F,c5 as b1,c6 as W,c7 as Re,c8 as M1,c9 as Xe,ca as B1,cb as F1,b_ as $1}from"./index-8y9QBU_r.js";var de=(U,Fe,l)=>new Promise((r,K)=>{var Z=c=>{try{z(l.next(c))}catch(E){K(E)}},ee=c=>{try{z(l.throw(c))}catch(E){K(E)}},z=c=>c.done?r(c.value):Promise.resolve(c.value).then(Z,ee);z((l=l.apply(U,Fe)).next())});const H1=["data-markstream-mode"],j1={key:0,class:"infographic-block-header flex justify-between items-center border-b"},T1={key:0},z1={key:1,class:"flex items-center gap-x-2 overflow-hidden"},E1=["innerHTML"],S1={key:2},P1={key:3,class:"infographic-mode-toggle flex items-center gap-0.5"},L1=["disabled"],V1={class:"flex items-center gap-x-1"},Z1={class:"flex items-center gap-x-1"},D1={key:4},N1={key:5,class:"infographic-header-actions flex items-center"},_1=["aria-pressed"],I1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},O1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},U1=["disabled"],Y1=["disabled"],A1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},R1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},X1={key:0,class:"infographic-source"},G1={class:"infographic-source-code text-sm font-mono whitespace-pre-wrap"},q1={key:1,class:"relative"},J1={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},Q1={class:"flex items-center gap-2 backdrop-blur rounded-lg"},W1={key:0,class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap"},K1={class:"dialog-panel infographic-modal-panel relative w-full h-full max-w-full max-h-full rounded overflow-hidden"},en={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ve="infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",Be=o1(l1({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:void 0},estimatedPreviewHeightPx:{},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(U,{emit:Fe}){const l=U,{t:r}=a1(),K=r1(),Z=i1(),ee=s1(),z=v(!1),c=v(!1),E=v(),p=v(),y=v(!0),$e=v(!1),$=v(!1),D=v(),ne=v(null),L=v(!1),te=v(!1),Y=v(null),S=v(typeof window>"u"||!ee.value),Ge=u1(),b=c1(d1,null);let P="";const He=F(()=>$1(l,Ge));typeof window<"u"&&j([()=>E.value,ee],([n,e])=>{var t,i,f;if((t=Y.value)==null||t.destroy(),Y.value=null,!e||S.value)return void(S.value=!0);if(!n)return void(S.value=!1);const C=(f=(i=Z?.value.heavyBlockMargin)!=null?i:Z?.value.rootMargin)!=null?f:"160px",w=K(n,{rootMargin:C,allowIdle:!1});Y.value=w,S.value=w.isVisible.value,w.whenVisible.then(()=>{S.value=!0})},{immediate:!0});const H=F(()=>l.node.code),me=F(()=>{var n;return(function(e){const t=(function(){var f;const C=p.value?getComputedStyle(p.value).getPropertyValue("--ms-size-diagram-min-height").trim():"";return(f=W(C))!=null?f:b1})();if(l.maxHeight==="none")return Re(e,t,null);const i=W(l.maxHeight);return Re(e,t,i)})((n=W(l.estimatedPreviewHeightPx))!=null?n:M1(H.value))}),he=v(`${me.value}px`),qe=F(()=>W(l.estimatedPreviewHeightPx)!=null);function je(){var n;if(!p.value||qe.value)return;const e=p.value.scrollHeight;if(e>0){const t=(n=W((function(i){if(l.maxHeight==="none")return`${i}px`;if(l.maxHeight!=null){const C=Number.parseFloat(String(l.maxHeight));if(Number.isFinite(C))return`${Math.min(i,C)}px`}const f=p.value;if(f){const C=getComputedStyle(f).getPropertyValue("--ms-size-code-max-height").trim(),w=Number.parseFloat(C);if(Number.isFinite(w))return`${Math.min(i,w)}px`}return`${Math.min(i,500)}px`})(e)))!=null?n:e;he.value=`${Math.max(t,me.value)}px`}}const M=v(1),A=v(0),R=v(0),oe=v(!1),pe=F(()=>H.value);function Te(n){return!n||n.disabled}function h(n,e,t="top"){if(Te(n.currentTarget))return;const i=n,f=i?.clientX!=null&&i?.clientY!=null?{x:i.clientX,y:i.clientY}:void 0;Xe(n.currentTarget,e,t,!1,f,l.isDark)}function d(){B1()}function ze(n){if(Te(n.currentTarget))return;const e=z.value?r("common.copied")||"Copied":r("common.copy")||"Copy",t=n,i=t?.clientX!=null&&t?.clientY!=null?{x:t.clientX,y:t.clientY}:void 0;Xe(n.currentTarget,e,"top",!1,i,l.isDark)}function Je(){return de(this,null,function*(){try{const n=H.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n)),z.value=!0,setTimeout(()=>{z.value=!1},1e3)}catch(n){console.error("Failed to copy:",n)}})}function Ee(n){(n!=="preview"||Ae())&&($e.value=!0,y.value=n==="source")}function Qe(){var n;const e=(n=p.value)==null?void 0:n.querySelector("svg");e?(function(t){de(this,null,function*(){try{const i=new XMLSerializer().serializeToString(t),f=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),C=URL.createObjectURL(f);if(typeof document<"u"){const w=document.createElement("a");w.href=C,w.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild(w),w.click(),document.body.removeChild(w)}catch{}URL.revokeObjectURL(C)}}catch(i){console.error("Failed to export SVG:",i)}})})(e):console.error("SVG element not found")}function fe(n){n.key==="Escape"&&$.value&&we()}function we(){if($.value=!1,D.value&&(D.value.innerHTML=""),ne.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",fe)}catch{}}function We(){(function(){if($.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",fe)}catch{}I(()=>{if(p.value&&D.value){D.value.innerHTML="";const n=document.createElement("div");n.style.transition="transform 0.1s ease",n.style.transformOrigin="center center",n.style.width="100%",n.style.height="100%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center";const e=p.value.cloneNode(!0);e.classList.add("fullscreen"),e.style.height="auto",n.appendChild(e),D.value.appendChild(n),ne.value=n,n.style.transform=`translate(${A.value}px, ${R.value}px) scale(${M.value})`}})})()}function Se(){M.value<3&&(M.value+=.1)}function Pe(){M.value>.5&&(M.value-=.1)}function Le(){M.value=1,A.value=0,R.value=0}const ge=F(()=>$.value||M.value>1),Ve=v1({getTranslate:()=>({x:A.value,y:R.value}),setTranslate:n=>{A.value=n.x,R.value=n.y},canStart:n=>!!L.value&&(n.pointerType!=="touch"||ge.value),onActiveChange:n=>oe.value=n}),le=Ve.start,Ke=Ve.stop;let k=null,Ce=!1,ae=!1,X=!1,re=!1,G=!1,ie="",q=!1,ke=0;function se(n){return!q&&n===ke}function Ze(n=!1){return de(this,null,function*(){var e,t,i,f,C,w;if(q||!S.value||!p.value)return;if(Ce)return ae=!0,void(X=X||n);const J=pe.value;if(!n&&J===ie&&L.value)return;const _e=H.value,Ie=l.loading===!1,ce=++ke;Ce=!0,(function(){const m=He.value;m&&P!==m&&(P&&b?.markSettled(P),P=m,b?.markPending(m))})();let g=null,_=null;try{const m=yield F1();if(!se(ce))return;if(!m)throw new Error("Infographic library failed to load.");const V=p.value;if(!V)return;const n1=l.loading===!0;if(!(J===pe.value||!Ie&&n1&&H.value.startsWith(_e)))return;_=Array.from(V.childNodes),g=new m({container:V,width:"100%",height:"100%"});let xe="",Oe=!1;if((e=g.on)==null||e.call(g,"error",Q=>{xe=(Array.isArray(Q)?Q:[Q]).map(B=>{var Ye;return B instanceof Error?B.message:typeof B=="string"?B:String(B&&typeof B=="object"&&"message"in B?(Ye=B.message)!=null?Ye:"":B??"")}).filter(Boolean).join("; ")}),(t=g.on)==null||t.call(g,"rendered",()=>{Oe=!0}),g.render(_e),xe)throw new Error(xe);const ye=Array.from(V.childNodes),t1=ye.length>0&&(ye.length!==_.length||ye.some((Q,Ue)=>Q!==_?.[Ue]));if(!Oe&&!t1)throw new Error("Infographic render returned empty output.");(i=k?.destroy)==null||i.call(k),k=g,g=null,L.value=!0,te.value=!1,ie=J,I(()=>{se(ce)&&je()})}catch(m){if(!se(ce))return;(f=g?.destroy)==null||f.call(g),g=null,Ie&&l.loading===!1&&J===pe.value?(console.error("Failed to render infographic:",m),(C=k?.destroy)==null||C.call(k),k=null,L.value=!1,te.value=!0,ie="",p.value&&(p.value.innerHTML=`<div style="padding: var(--ms-inset-panel-body); color: hsl(var(--ms-destructive))">Failed to render infographic: ${m instanceof Error?m.message:"Unknown error"}</div>`)):_&&p.value&&p.value.replaceChildren(..._)}finally{if((w=g?.destroy)==null||w.call(g),Ce=!1,se(ce))if(ae){const m=X;ae=!1,X=!1,I(()=>{Ze(m)})}else(function(){de(this,null,function*(){const m=P;m&&(P="",yield I(),(function(V=He.value){V&&E.value&&b?.reportHeight(V,E.value.offsetHeight)})(m),b?.markSettled(m))})})()}})}function N(n=!1){q||!S.value||y.value||c.value||(G=G||n,re||(re=!0,I(()=>{re=!1;const e=G;G=!1,q||Ze(e)})))}j(()=>H.value,()=>{N(!0)}),j(()=>l.loading,(n,e)=>{e&&!n&&N(!0)}),j(()=>y.value,n=>{n||N(!0)}),j(()=>c.value,n=>{n||N()}),j(()=>l.maxHeight,()=>{I(()=>{je()})}),j([()=>l.estimatedPreviewHeightPx,()=>H.value],()=>{L.value||y.value||(he.value=`${me.value}px`)}),j(()=>S.value,n=>{!n||y.value||c.value||N()}),m1(()=>{!$e.value&&Ae(),N()}),h1(()=>{var n,e;if(q=!0,Ke(),ke+=1,ae=!1,X=!1,re=!1,G=!1,(n=Y.value)==null||n.destroy(),Y.value=null,(function(){const t=P;t&&(P="",b?.markSettled(t))})(),k&&((e=k.destroy)==null||e.call(k),k=null),ie="",typeof window<"u")try{window.removeEventListener("keydown",fe)}catch{}});const De=F(()=>!0),ue=F(()=>y.value||c.value),e1=F(()=>y.value?"fallback":te.value?"error":L.value?"preview":"pending"),Ne=F(()=>({transform:`translate(${A.value}px, ${R.value}px) scale(${M.value})`}));return j(Ne,n=>{$.value&&ne.value&&(ne.value.style.transform=n.transform)}),(n,e)=>(s(),u("div",{ref_key:"viewportTarget",ref:E,class:x(["infographic-block-container rounded-lg border overflow-hidden",[{"is-rendering":l.loading,dark:l.isDark}]]),"data-markstream-infographic":"1","data-markstream-mode":e1.value},[l.showHeader?(s(),u("div",j1,[n.$slots["header-left"]?(s(),u("div",T1,[be(n.$slots,"header-left",{},void 0,!0)])):(s(),u("div",z1,[o("span",{class:"icon-slot action-icon shrink-0",innerHTML:a(`<svg width="15.52" height="16" viewBox="0 0 291 300" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path d="M140.904 239.376C128.83 239.683 119.675 239.299 115.448 243.843C110.902 248.07 111.288 257.227 110.979 269.302C111.118 274.675 111.118 279.478 111.472 283.52C111.662 285.638 111.95 287.547 112.406 289.224C112.411 289.243 112.416 289.259 112.422 289.28C112.462 289.419 112.496 289.558 112.539 289.691C113.168 291.787 114.088 293.491 115.446 294.758C116.662 296.064 118.283 296.963 120.264 297.59C120.36 297.614 120.464 297.646 120.555 297.675C120.56 297.68 120.56 297.68 120.566 297.68C120.848 297.768 121.142 297.846 121.443 297.923C121.454 297.923 121.464 297.928 121.478 297.934C122.875 298.272 124.424 298.507 126.11 298.678C126.326 298.696 126.542 298.718 126.763 298.739C130.79 299.086 135.558 299.088 140.904 299.222C152.974 298.912 162.128 299.302 166.36 294.758C170.904 290.526 170.515 281.371 170.824 269.302C170.515 257.227 170.907 248.07 166.36 243.843C162.131 239.299 152.974 239.683 140.904 239.376Z" fill="#FF6376"></path><path d="M21.2155 128.398C12.6555 128.616 6.16484 128.339 3.16751 131.56C-0.0538222 134.56 0.218178 141.054 -0.000488281 149.608C0.218178 158.168 -0.0538222 164.659 3.16751 167.656C6.16484 170.878 12.6555 170.606 21.2155 170.824C25.0262 170.726 28.4288 170.726 31.2955 170.475C32.7968 170.342 34.1488 170.136 35.3382 169.814C35.3542 169.811 35.3648 169.806 35.3782 169.803C35.4768 169.774 35.5755 169.747 35.6688 169.718C37.1568 169.272 38.3648 168.622 39.2635 167.656C40.1915 166.795 40.8262 165.646 41.2715 164.243C41.2875 164.174 41.3115 164.102 41.3328 164.035C41.3328 164.035 41.3355 164.032 41.3355 164.027C41.3968 163.827 41.4529 163.622 41.5062 163.406C41.5062 163.398 41.5115 163.392 41.5142 163.382C41.7542 162.392 41.9222 161.294 42.0422 160.096C42.0555 159.944 42.0715 159.792 42.0848 159.635C42.3328 156.779 42.3328 153.398 42.4262 149.608C42.2075 141.054 42.4848 134.56 39.2635 131.56C36.2635 128.339 29.7728 128.616 21.2155 128.398Z" fill="#FFCCCC"></path><path d="M81.0595 184.171C70.8568 184.433 63.1208 184.102 59.5475 187.942C55.7075 191.518 56.0328 199.254 55.7742 209.454C56.0328 219.657 55.7075 227.393 59.5475 230.963C63.1208 234.803 70.8568 234.478 81.0595 234.739C85.6008 234.622 89.6595 234.622 93.0728 234.323C94.8648 234.163 96.4755 233.921 97.8942 233.534C97.9102 233.529 97.9235 233.526 97.9422 233.521C98.0568 233.486 98.1742 233.457 98.2888 233.422C100.06 232.889 101.5 232.113 102.569 230.963C103.676 229.937 104.433 228.566 104.964 226.894C104.985 226.811 105.012 226.726 105.036 226.646C105.041 226.643 105.041 226.643 105.041 226.638C105.116 226.401 105.18 226.153 105.244 225.897C105.244 225.889 105.249 225.881 105.254 225.867C105.54 224.689 105.74 223.379 105.881 221.953C105.9 221.771 105.916 221.59 105.934 221.403C106.228 218.001 106.228 213.969 106.342 209.454C106.081 199.254 106.412 191.518 102.572 187.942C98.9955 184.102 91.2568 184.433 81.0595 184.171Z" fill="#FF939F"></path><path d="M260.591 151.87C215.652 151.87 203.02 164.523 203.02 209.462H198.476C198.476 164.523 185.836 151.881 140.895 151.881V147.337C185.836 147.337 198.487 134.705 198.487 89.7659H203.02C203.02 134.705 215.652 147.337 260.591 147.337V151.87ZM286.052 124.158C281.82 119.614 272.66 120.001 260.591 119.689C248.521 119.385 239.361 119.771 235.129 115.227C230.585 110.995 230.983 101.846 230.671 89.7659C230.513 83.7312 230.535 78.4272 230.023 74.1019C229.513 69.7659 228.481 66.4219 226.209 64.3046C221.967 59.7606 212.817 60.1472 200.748 59.8459C188.681 60.1472 179.519 59.7606 175.287 64.3046C170.753 68.5366 171.129 77.6966 170.828 89.7659C170.516 101.835 170.9 110.995 166.356 115.227C162.124 119.771 152.985 119.374 140.905 119.689C138.873 119.739 136.924 119.771 135.071 119.811C119.313 118.697 106.337 112.318 106.337 89.7659C106.212 84.6699 106.233 80.1792 105.807 76.5206C105.367 72.8726 104.492 70.0379 102.575 68.2566C99.0013 64.4112 91.2573 64.7446 81.0653 64.4832C70.86 64.7446 63.1186 64.4112 59.5533 68.2566C55.708 71.8299 56.0306 79.5632 55.7693 89.7659C56.0306 99.9686 55.708 107.702 59.5533 111.278C63.1186 115.113 70.86 114.79 81.0653 115.049C103.617 115.049 109.996 128.035 111.1 143.803C111.068 145.659 111.028 147.587 110.975 149.619C111.121 154.987 111.121 159.79 111.476 163.835C111.663 165.95 111.945 167.857 112.404 169.534C112.412 169.555 112.412 169.566 112.423 169.598C112.465 169.734 112.497 169.867 112.537 170.003C113.164 172.099 114.092 173.809 115.447 175.07C116.665 176.371 118.281 177.278 120.271 177.905C120.364 177.934 120.46 177.955 120.564 177.987C120.855 178.081 121.145 178.153 121.439 178.238C121.46 178.238 121.471 178.238 121.479 178.249C122.876 178.582 124.42 178.822 126.108 178.987C126.327 179.009 126.545 179.03 126.764 179.051C130.788 179.395 135.559 179.395 140.905 179.529C152.975 179.843 162.124 179.457 166.356 184.001C170.9 188.233 170.516 197.371 170.828 209.451C171.129 221.529 170.743 230.681 175.287 234.91C179.519 239.454 188.681 239.07 200.748 239.371C206.127 239.235 210.921 239.235 214.975 238.881C217.079 238.694 218.985 238.403 220.676 237.955C220.695 237.945 220.705 237.934 220.727 237.934C220.873 237.891 220.999 237.859 221.135 237.819C223.228 237.193 224.937 236.265 226.209 234.91C227.511 233.691 228.409 232.065 229.044 230.097C229.065 230.003 229.095 229.899 229.127 229.803V229.793C229.22 229.513 229.295 229.222 229.367 228.918C229.367 228.897 229.377 228.897 229.377 228.878C229.721 227.481 229.951 225.937 230.127 224.249C230.137 224.03 230.169 223.811 230.191 223.593C230.535 219.571 230.535 214.798 230.671 209.451C230.972 197.371 230.585 188.233 235.129 184.001C239.361 179.457 248.511 179.843 260.591 179.529C272.66 179.227 281.82 179.614 286.052 175.07C290.596 170.838 290.209 161.689 290.511 149.619C290.209 137.539 290.596 128.379 286.052 124.158Z" fill="#FF356A"></path><path d="M112.405 49.848C112.411 49.8694 112.416 49.8827 112.421 49.904C112.461 50.0427 112.499 50.1814 112.539 50.3147C113.171 52.4134 114.088 54.1147 115.448 55.384C116.661 56.6907 118.283 57.5894 120.264 58.2134C120.36 58.24 120.464 58.2694 120.555 58.3014C120.56 58.3067 120.56 58.3067 120.565 58.3067C120.848 58.3947 121.141 58.4694 121.443 58.5467C121.453 58.5467 121.464 58.552 121.48 58.5574C122.875 58.896 124.424 59.1334 126.112 59.3014C126.325 59.3227 126.541 59.3414 126.763 59.3627C130.789 59.712 135.56 59.712 140.904 59.8454C152.973 59.5387 162.128 59.928 166.36 55.384C170.907 51.152 170.515 41.9947 170.824 29.9254C170.517 17.8507 170.907 8.69602 166.363 4.46935C162.131 -0.0746511 152.973 0.309349 140.904 1.52588e-05C128.829 0.309349 119.675 -0.0746511 115.448 4.46935C110.904 8.69602 111.288 17.8507 110.979 29.9254C111.117 35.3014 111.117 40.1014 111.472 44.144C111.661 46.2614 111.949 48.1707 112.405 49.848Z" fill="#FF6376"></path></g></svg>
2
+ `)},null,8,E1),e[23]||(e[23]=o("span",{class:"infographic-label font-medium font-mono truncate"},"Infographic",-1))])),n.$slots["header-center"]?(s(),u("div",S1,[be(n.$slots,"header-center",{},void 0,!0)])):l.showModeToggle?(s(),u("div",P1,[o("button",{class:x(["infographic-mode-btn px-2 py-0.5 rounded transition-colors",[y.value?"":"is-active",De.value?"opacity-50 cursor-not-allowed":""]]),disabled:De.value,onClick:e[0]||(e[0]=()=>Ee("preview")),onMouseenter:e[1]||(e[1]=t=>h(t,a(r)("common.preview")||"Preview")),onFocus:e[2]||(e[2]=t=>h(t,a(r)("common.preview")||"Preview")),onMouseleave:d,onBlur:d},[o("div",V1,[e[24]||(e[24]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),o("circle",{cx:"12",cy:"12",r:"3"})])],-1)),o("span",null,O(a(r)("common.preview")||"Preview"),1)])],42,L1),o("button",{class:x(["infographic-mode-btn px-2 py-0.5 rounded transition-colors",[y.value?"is-active":""]]),onClick:e[3]||(e[3]=()=>Ee("source")),onMouseenter:e[4]||(e[4]=t=>h(t,a(r)("common.source")||"Source")),onFocus:e[5]||(e[5]=t=>h(t,a(r)("common.source")||"Source")),onMouseleave:d,onBlur:d},[o("div",Z1,[e[25]||(e[25]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),o("span",null,O(a(r)("common.source")||"Source"),1)])],34)])):T("",!0),n.$slots["header-right"]?(s(),u("div",D1,[be(n.$slots,"header-right",{},void 0,!0)])):(s(),u("div",N1,[l.showCollapseButton?(s(),u("button",{key:0,class:x(ve),"aria-pressed":c.value,onClick:e[6]||(e[6]=t=>c.value=!c.value),onMouseenter:e[7]||(e[7]=t=>h(t,c.value?a(r)("common.expand")||"Expand":a(r)("common.collapse")||"Collapse")),onFocus:e[8]||(e[8]=t=>h(t,c.value?a(r)("common.expand")||"Expand":a(r)("common.collapse")||"Collapse")),onMouseleave:d,onBlur:d},[(s(),u("svg",{style:Me({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...e[26]||(e[26]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,_1)):T("",!0),l.showCopyButton?(s(),u("button",{key:1,class:x(ve),onClick:Je,onMouseenter:e[9]||(e[9]=t=>ze(t)),onFocus:e[10]||(e[10]=t=>ze(t)),onMouseleave:d,onBlur:d},[z.value?(s(),u("svg",O1,[...e[28]||(e[28]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(s(),u("svg",I1,[...e[27]||(e[27]=[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),o("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],32)):T("",!0),l.showExportButton?(s(),u("button",{key:2,class:x(`${ve} ${ue.value?"opacity-50 cursor-not-allowed":""}`),disabled:ue.value,onClick:Qe,onMouseenter:e[11]||(e[11]=t=>h(t,a(r)("common.export")||"Export")),onFocus:e[12]||(e[12]=t=>h(t,a(r)("common.export")||"Export")),onMouseleave:d,onBlur:d},[...e[29]||(e[29]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),o("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,U1)):T("",!0),l.showFullscreenButton?(s(),u("button",{key:3,class:x(`${ve} ${ue.value?"opacity-50 cursor-not-allowed":""}`),disabled:ue.value,onClick:We,onMouseenter:e[13]||(e[13]=t=>h(t,$.value?a(r)("common.minimize")||"Minimize":a(r)("common.open")||"Open")),onFocus:e[14]||(e[14]=t=>h(t,$.value?a(r)("common.minimize")||"Minimize":a(r)("common.open")||"Open")),onMouseleave:d,onBlur:d},[$.value?(s(),u("svg",R1,[...e[31]||(e[31]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(s(),u("svg",A1,[...e[30]||(e[30]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,Y1)):T("",!0)]))])):T("",!0),p1(o("div",null,[y.value?(s(),u("div",X1,[o("pre",G1,O(H.value),1)])):(s(),u("div",q1,[l.showZoomControls?(s(),u("div",J1,[o("div",Q1,[o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Se,onMouseenter:e[15]||(e[15]=t=>h(t,a(r)("common.zoomIn")||"Zoom in")),onFocus:e[16]||(e[16]=t=>h(t,a(r)("common.zoomIn")||"Zoom in")),onMouseleave:d,onBlur:d},[...e[32]||(e[32]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],32),o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Pe,onMouseenter:e[17]||(e[17]=t=>h(t,a(r)("common.zoomOut")||"Zoom out")),onFocus:e[18]||(e[18]=t=>h(t,a(r)("common.zoomOut")||"Zoom out")),onMouseleave:d,onBlur:d},[...e[33]||(e[33]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],32),o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Le,onMouseenter:e[19]||(e[19]=t=>h(t,a(r)("common.resetZoom")||"Reset zoom")),onFocus:e[20]||(e[20]=t=>h(t,a(r)("common.resetZoom")||"Reset zoom")),onMouseleave:d,onBlur:d},O(Math.round(100*M.value))+"% ",33)])])):T("",!0),o("div",{class:x(["infographic-preview relative transition-all overflow-hidden block",{"infographic-pan-touch":ge.value}]),style:Me({height:he.value}),onPointerdown:e[21]||(e[21]=(...t)=>a(le)&&a(le)(...t))},[L.value||te.value?T("",!0):(s(),u("pre",W1,O(H.value),1)),o("div",{class:x(["absolute inset-0 cursor-grab",{"cursor-grabbing":oe.value}]),style:Me(Ne.value)},[o("div",{ref_key:"infographicContainer",ref:p,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[f1,!c.value]]),(s(),w1(y1,{to:"body"},[o("div",{class:x(["markstream-vue",{dark:l.isDark}])},[g1(x1,{name:"infographic-dialog",appear:""},{default:C1(()=>[$.value?(s(),u("div",{key:0,class:"infographic-modal-overlay fixed inset-0 z-50 flex items-center justify-center p-4",onClick:k1(we,["self"])},[o("div",K1,[o("div",en,[o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Se},[...e[34]||(e[34]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])]),o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Pe},[...e[35]||(e[35]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])]),o("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Le},O(Math.round(100*M.value))+"% ",1),o("button",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",onClick:we},[...e[36]||(e[36]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])])]),o("div",{ref_key:"modalContent",ref:D,class:x(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!oe.value,"cursor-grabbing":oe.value,"infographic-pan-touch":ge.value}]),onPointerdown:e[22]||(e[22]=(...t)=>a(le)&&a(le)(...t))},null,34)])])):T("",!0)]),_:1})],2)]))],10,H1))}}),[["__scopeId","data-v-3bff4a01"]]);Be.install=U=>{U.component(Be.__name,Be)};export{Be as default};
@@ -0,0 +1 @@
1
+ import{bQ as rt,M as ut,bl as it,af as st,bY as dt,b$ as ct,c0 as vt,c1 as mt,c2 as ft,aU as c,bE as J,as as fe,aD as pt,az as gt,aL as v,u as m,v as i,bk as f,au as pe,bb as R,t as j,aw as ge,bL as ht,bB as yt,q as k,c9 as Se,ca as wt,c6 as bt,cc as kt,b_ as xt}from"./index-8y9QBU_r.js";var Bt=Object.defineProperty,Le=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Ne=(g,o,s)=>o in g?Bt(g,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):g[o]=s,he=(g,o)=>{for(var s in o||(o={}))Dt.call(o,s)&&Ne(g,s,o[s]);if(Le)for(var s of Le(o))Ct.call(o,s)&&Ne(g,s,o[s]);return g},ye=(g,o,s)=>new Promise((w,a)=>{var H=h=>{try{p(s.next(h))}catch(r){a(r)}},x=h=>{try{p(s.throw(h))}catch(r){a(r)}},p=h=>h.done?w(h.value):Promise.resolve(h.value).then(H,x);p((s=s.apply(g,o)).next())});let Re=0;const Mt=["data-markstream-mode","data-markstream-pending"],Et={key:0,class:"d2-block-header flex justify-between items-center border-b"},Tt={class:"d2-header-actions flex items-center"},At={key:0,class:"d2-mode-toggle flex items-center gap-0.5"},jt=["aria-label"],Ht={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},Ot={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},It=["aria-label"],Ft=["aria-pressed"],Pt={key:0,class:"d2-source"},St={class:"d2-code"},Lt={key:0,class:"d2-error mt-2 text-xs"},Nt={key:1},Rt={key:0,class:"d2-source"},_t={class:"d2-code"},$t={key:0,class:"d2-error mt-2 text-xs"},Ut=["innerHTML"],Vt={key:0,class:"d2-error px-4 pb-3 text-xs"},we=rt(ut({__name:"D2BlockNode",props:{node:{},maxHeight:{default:void 0},estimatedPreviewHeightPx:{default:void 0},loading:{type:Boolean,default:!0},isDark:{type:Boolean},progressiveRender:{type:Boolean,default:!0},progressiveIntervalMs:{default:700},themeId:{},darkThemeId:{},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0}},setup(g){const o=g,s=it(),w=st(dt,null),{t:a}=ct(),H=c(!1),x=c(!1),p=c(!1),h=c(!1),r=c(null),K=c(!1),O=c(""),re=c(""),ue=c(0),_=c(""),I=c(""),W=c(null),be=c(null),ie=c(null),_e=vt(),ee=mt(),ke=ft(),Y=c(null),xe=typeof window<"u",Be=c(!1),F=c(typeof window>"u"||!ke.value),M=k(()=>{var t;return(t=o.node.code)!=null?t:""}),$e=k(()=>xt(o,s)),te=k(()=>{var t,e;return[o.isDark?"dark":"light",(t=o.themeId)!=null?t:"auto",(e=o.darkThemeId)!=null?e:"auto",M.value].join(":")}),oe=k(()=>!!O.value&&re.value===te.value),De=k(()=>{if(!Be.value||!M.value||p.value)return!1;const t=te.value;return!!K.value||_.value!==t&&(!r.value||I.value!==t)}),se=k(()=>oe.value||!!O.value&&De.value),ne=k(()=>p.value||!h.value||!se.value),Ue=k(()=>{var t;return p.value||se.value?0:M.value?r.value&&I.value===te.value?0:(t=bt(o.estimatedPreviewHeightPx))!=null?t:0:0}),Ve=k(()=>{var t;if(!ne.value)return;const e=Math.max((t=be.value)!=null?t:0,Ue.value);return e>0?{minHeight:`${e}px`}:void 0}),Ye=k(()=>{if(o.maxHeight==="none")return{maxHeight:"none","--ms-d2-render-max-height":"none"};if(o.maxHeight!=null){const t=typeof o.maxHeight=="number"?`${o.maxHeight}px`:String(o.maxHeight);return{maxHeight:t,"--ms-d2-render-max-height":t}}});let B=null,de=!1,$=!1,Ce=0,U=null,P=!1,z=null,E="";typeof window<"u"&&J([()=>ie.value,ke],([t,e])=>{var n,d,S;if((n=Y.value)==null||n.destroy(),Y.value=null,!e||F.value)return void(F.value=!0);if(!t)return void(F.value=!1);const le=(S=(d=ee?.value.heavyBlockMargin)!=null?d:ee?.value.rootMargin)!=null?S:"160px",D=_e(t,{rootMargin:le,allowIdle:!1});Y.value=D,F.value=D.isVisible.value,D.whenVisible.then(()=>{F.value=!0})},{immediate:!0});const ze={N1:"#E5E7EB",N2:"#CBD5E1",N3:"#94A3B8",N4:"#64748B",N5:"#475569",N6:"#334155",N7:"#0B1220",B1:"#60A5FA",B2:"#3B82F6",B3:"#2563EB",B4:"#1D4ED8",B5:"#1E40AF",B6:"#111827",AA2:"#22D3EE",AA4:"#0EA5E9",AA5:"#0284C7",AB4:"#FBBF24",AB5:"#F59E0B"};function Me(t){return!t||t.disabled}function T(t,e,n="top"){if(Me(t.currentTarget))return;const d=t,S=d?.clientX!=null&&d?.clientY!=null?{x:d.clientX,y:d.clientY}:void 0;Se(t.currentTarget,e,n,!1,S,o.isDark)}function b(){wt()}function Ee(t){if(Me(t.currentTarget))return;const e=H.value?a("common.copied")||"Copied":a("common.copy")||"Copy",n=t,d=n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0;Se(t.currentTarget,e,"top",!1,d,o.isDark)}function qe(){return ye(this,null,function*(){try{const t=M.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(t)),H.value=!0,setTimeout(()=>{H.value=!1},1e3)}catch(t){console.error("Copy failed:",t)}})}function Xe(){x.value=!x.value}function Te(t){p.value=t==="source"}const Ge=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],Qe=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function Ze(t){if(!t)return"";const e=t.trim();return Qe.test(e)?e:""}function Ae(){O.value="",re.value=""}function q(t){return $||t!==ue.value}function Je(){return ye(this,null,function*(){var t,e,n,d,S,le;if(!xe||$||!F.value||o.loading&&!o.progressiveRender)return;const D=te.value;if(D===_.value&&!r.value&&oe.value)return h.value=!0,void(o.loading&&(p.value=!1));const je=M.value;if(!je)return Ae(),r.value=null,_.value="",void(I.value="");const G=++ue.value;K.value=!0,r.value=null,I.value="",(function(){const u=$e.value;w&&u&&E!==u&&(E&&w.markSettled(E),E=u,w.markPending(u))})();try{const u=yield(function(){return ye(this,null,function*(){if(B)return B;const l=yield kt();if($||!l)return null;if(typeof l=="function"){const Q=new l;return Q&&typeof Q.compile=="function"?B=Q:typeof l.compile=="function"&&(B=l),B}return l?.D2&&typeof l.D2=="function"?(B=new l.D2,B):(typeof l.compile=="function"&&(B=l),B)})})();if(q(G))return;if(!u)return h.value=!1,p.value=!0,Ae(),r.value="D2 is not available.",void(I.value=D);if(typeof u.compile!="function"||typeof u.render!="function")throw new TypeError("D2 instance is missing compile/render methods.");h.value=!0;const y=yield u.compile(je);if(q(G))return;const ae=(t=y?.diagram)!=null?t:y,C=(n=(e=y?.renderOptions)!=null?e:y?.options)!=null?n:{},We=(d=o.themeId)!=null?d:C.themeID,He=(S=o.darkThemeId)!=null?S:C.darkThemeID,L=he({},C);if(L.themeID=o.isDark&&He!=null?He:We,L.darkThemeID=null,L.darkThemeOverrides=null,o.isDark){const l=C.themeOverrides&&typeof C.themeOverrides=="object"?C.themeOverrides:null;L.themeOverrides=he(he({},ze),l||{})}L.salt=(le=L.salt)!=null?le:(function(l="markstream-vue-d2"){return Re+=1,`${l}-${Re}`})();const et=yield u.render(ae,L);if(q(G))return;const Oe=(function(l){return l?typeof l=="string"?l:typeof l.svg=="string"?l.svg:typeof l.data=="string"?l.data:"":""})(et);if(!Oe)throw new Error("D2 render returned empty output.");(function(l,Q){const Ie=(function(Fe){if(typeof window>"u"||typeof DOMParser>"u"||!Fe)return"";const tt=Fe.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),ve=new DOMParser().parseFromString(tt,"image/svg+xml").documentElement;if(!ve||ve.nodeName.toLowerCase()!=="svg")return"";const me=ve;return(function(Pe){const ot=new Set(["script"]),nt=[Pe,...Array.from(Pe.querySelectorAll("*"))];for(const N of nt){if(ot.has(N.tagName.toLowerCase())){N.remove();continue}const lt=Array.from(N.attributes);for(const V of lt){const A=V.name;if(/^on/i.test(A))N.removeAttribute(A);else{if(A==="style"&&V.value){const Z=V.value;if(Ge.some(at=>at.test(Z))){N.removeAttribute(A);continue}}if((A==="href"||A==="xlink:href")&&V.value){const Z=Ze(V.value);if(!Z){N.removeAttribute(A);continue}Z!==V.value&&N.setAttribute(A,Z)}}}}})(me),me.classList.add("markstream-d2-root-svg"),me.outerHTML})(l);O.value=Ie||"",re.value=Ie?Q:""})(Oe,D),_.value=D,I.value="",o.loading&&(p.value=!1),r.value=null}catch(u){if(q(G))return;const y=u?.message?String(u.message):"D2 render failed.";o.loading||(r.value=y,I.value=D),_.value="",y.includes("@terrastruct/d2")&&(h.value=!1,p.value=!0)}finally{q(G)||(K.value=!1,P?(P=!1,X()):(function(){const u=E;w&&u&&(E="",fe(()=>{var y,ae;if(!$){const C=(ae=(y=ie.value)==null?void 0:y.offsetHeight)!=null?ae:0;C>0&&w.reportHeight(u,C)}w.markSettled(u)}))})())}})}function X(t=!1){if(de||!xe||$)return;if(K.value)return void(P=!0);const e=Math.max(120,Number(o.progressiveIntervalMs)||0),n=Date.now()-Ce;if(!t&&n<e)return P=!0,void(U==null&&(U=window.setTimeout(()=>{U=null,P&&(P=!1,X(!0))},Math.max(0,e-n))));de=!0;const d=()=>{de=!1,Ce=Date.now(),Je()};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(d):setTimeout(d,0)}function Ke(){if(oe.value)try{const t=new Blob([O.value],{type:"image/svg+xml;charset=utf-8"}),e=URL.createObjectURL(t);if(typeof document<"u"){const n=document.createElement("a");n.href=e,n.download=`d2-diagram-${Date.now()}.svg`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}URL.revokeObjectURL(e)}catch(t){console.error("Failed to export SVG:",t)}}function ce(){var t;const e=W.value;if(!e)return;const n=((t=e.firstElementChild)!=null?t:e).getBoundingClientRect().height;n>0&&(be.value=n)}return J(()=>[o.node.code,o.loading,o.isDark,o.themeId,o.darkThemeId],()=>{X()},{immediate:!0}),J(()=>o.loading,(t,e)=>{e&&!t&&X(!0)}),J(()=>F.value,t=>{t&&X(!0)}),J(()=>[ne.value,O.value,M.value],()=>{fe(()=>{ce()})}),pt(()=>{Be.value=!0,fe(()=>{ce()}),typeof ResizeObserver<"u"&&(z=new ResizeObserver(()=>{ce()}),W.value&&z.observe(W.value))}),gt(()=>{var t;$=!0,ue.value+=1,P=!1,(function(){const e=E;w&&e&&(E="",w.markSettled(e))})(),_.value="",(t=Y.value)==null||t.destroy(),Y.value=null,U!=null&&(clearTimeout(U),U=null),z?.disconnect(),z=null}),(t,e)=>(v(),m("div",{ref_key:"viewportTarget",ref:ie,class:pe(["d2-block-container rounded-lg border overflow-hidden",{dark:o.isDark}]),"data-markstream-d2":"1","data-markstream-mode":ne.value?"fallback":"preview","data-markstream-pending":De.value?"true":void 0},[o.showHeader?(v(),m("div",Et,[e[16]||(e[16]=i("div",{class:"flex items-center gap-x-2"},[i("span",{class:"d2-label font-medium font-mono"},"D2")],-1)),i("div",Tt,[o.showModeToggle?(v(),m("div",At,[i("button",{type:"button",class:pe(["mode-btn px-2 py-0.5 rounded",p.value?"":"is-active"]),onClick:e[0]||(e[0]=n=>Te("preview")),onMouseenter:e[1]||(e[1]=n=>T(n,f(a)("common.preview")||"Preview")),onFocus:e[2]||(e[2]=n=>T(n,f(a)("common.preview")||"Preview")),onMouseleave:b,onBlur:b},R(f(a)("common.preview")||"Preview"),35),i("button",{type:"button",class:pe(["mode-btn px-2 py-0.5 rounded",p.value?"is-active":""]),onClick:e[3]||(e[3]=n=>Te("source")),onMouseenter:e[4]||(e[4]=n=>T(n,f(a)("common.source")||"Source")),onFocus:e[5]||(e[5]=n=>T(n,f(a)("common.source")||"Source")),onMouseleave:b,onBlur:b},R(f(a)("common.source")||"Source"),35)])):j("",!0),o.showCopyButton?(v(),m("button",{key:1,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-label":H.value?f(a)("common.copied")||"Copied":f(a)("common.copy")||"Copy",onClick:qe,onMouseenter:e[6]||(e[6]=n=>Ee(n)),onFocus:e[7]||(e[7]=n=>Ee(n)),onMouseleave:b,onBlur:b},[H.value?(v(),m("svg",Ot,[...e[13]||(e[13]=[i("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(v(),m("svg",Ht,[...e[12]||(e[12]=[i("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[i("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),i("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,jt)):j("",!0),o.showExportButton&&oe.value?(v(),m("button",{key:2,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-label":f(a)("common.export")||"Export",onClick:Ke,onMouseenter:e[8]||(e[8]=n=>T(n,f(a)("common.export")||"Export")),onFocus:e[9]||(e[9]=n=>T(n,f(a)("common.export")||"Export")),onMouseleave:b,onBlur:b},[...e[14]||(e[14]=[i("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[i("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v12m0-12l-4 4m4-4l4 4M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"})],-1)])],40,It)):j("",!0),o.showCollapseButton?(v(),m("button",{key:3,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-pressed":x.value,onClick:Xe,onMouseenter:e[10]||(e[10]=n=>T(n,x.value?f(a)("common.expand")||"Expand":f(a)("common.collapse")||"Collapse")),onFocus:e[11]||(e[11]=n=>T(n,x.value?f(a)("common.expand")||"Expand":f(a)("common.collapse")||"Collapse")),onMouseleave:b,onBlur:b},[(v(),m("svg",{style:ge({rotate:x.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...e[15]||(e[15]=[i("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Ft)):j("",!0)])])):j("",!0),ht(i("div",{ref_key:"bodyRef",ref:W,class:"d2-block-body",style:ge(Ve.value)},[o.loading&&!se.value?(v(),m("div",Pt,[i("pre",St,[i("code",null,R(M.value),1)]),r.value?(v(),m("p",Lt,R(r.value),1)):j("",!0)])):(v(),m("div",Nt,[ne.value?(v(),m("div",Rt,[i("pre",_t,[i("code",null,R(M.value),1)]),r.value?(v(),m("p",$t,R(r.value),1)):j("",!0)])):(v(),m("div",{key:1,class:"d2-render",style:ge(Ye.value)},[i("div",{class:"d2-svg",innerHTML:O.value},null,8,Ut),r.value?(v(),m("p",Vt,R(r.value),1)):j("",!0)],4))]))],4),[[yt,!x.value]])],10,Mt))}}),[["__scopeId","data-v-196847dc"]]);we.install=g=>{g.component(we.__name,we)};export{we as default};
@@ -1,2 +1,2 @@
1
- import{_ as a,l as s,F as o,e as i}from"./mermaid.core-07lp9GgB.js";import{p as g}from"./cynefin-VYW2F7L2-Cn0w3Ba_.js";import"./index-Bka4JnyA.js";var p={parse:a(async r=>{const e=await g("info",r);s.debug(e)},"parse")},v={version:"11.16.0"},d=a(()=>v.version,"getVersion"),m={getVersion:d},c=a((r,e,n)=>{s.debug(`rendering info diagram
1
+ import{_ as a,l as s,F as o,e as i}from"./mermaid.core-DY8EMjrF.js";import{p as g}from"./cynefin-VYW2F7L2-rK0CO-KU.js";import"./index-8y9QBU_r.js";var p={parse:a(async r=>{const e=await g("info",r);s.debug(e)},"parse")},v={version:"11.16.0"},d=a(()=>v.version,"getVersion"),m={getVersion:d},c=a((r,e,n)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=o(e);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),l={draw:c},b={parser:p,db:m,renderer:l};export{b as diagram};
@@ -1,4 +1,4 @@
1
- import{_ as l,c as lt,a1 as ct,F as ut,al as dt,q as yt,k as ft,o as et,a as pt,b as gt,g as kt,s as mt,p as wt,e as _t}from"./mermaid.core-07lp9GgB.js";import"./index-Bka4JnyA.js";var Q=(function(){var t=l(function(T,e,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=e);return s},"o"),d=[1,4],n=[1,14],a=[1,12],o=[1,13],y=[6,7,8],p=[1,20],u=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,f,r,v){var w=r.length-1;switch(f){case 6:case 7:return h;case 15:h.addNode(r[w-1].length,r[w].trim());break;case 16:h.addNode(0,r[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:n,7:[1,10],9:9,12:11,13:a,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:n,12:15,13:a,14:o},{6:n,9:16,12:11,13:a,14:o},{6:p,7:u,10:17,11:m},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:p,7:u,10:22,11:m},{1:[2,7],6:n,12:15,13:a,14:o},t(k,[2,14],{7:g,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(k,[2,13],{7:g,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],f=[null],r=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=r.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(e,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;r.push(R);var H=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,f.length=f.length-B,r.length=r.length-B}l(X,"popStack");function J(){var B;return B=h.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(h=B,B=h.pop()),B=s.symbols_[B]||B),B}l(J,"lex");for(var M,F,N,Y,W={},G,V,tt,U;;){if(F=i[i.length-1],this.defaultActions[F]?N=this.defaultActions[F]:((M===null||typeof M>"u")&&(M=J()),N=v[F]&&v[F][M]),typeof N>"u"||!N.length||!N[0]){var q="";U=[];for(G in v[F])this.terminals_[G]&&G>L&&U.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{_ as l,c as lt,a1 as ct,F as ut,al as dt,q as yt,k as ft,o as et,a as pt,b as gt,g as kt,s as mt,p as wt,e as _t}from"./mermaid.core-DY8EMjrF.js";import"./index-8y9QBU_r.js";var Q=(function(){var t=l(function(T,e,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=e);return s},"o"),d=[1,4],n=[1,14],a=[1,12],o=[1,13],y=[6,7,8],p=[1,20],u=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,f,r,v){var w=r.length-1;switch(f){case 6:case 7:return h;case 15:h.addNode(r[w-1].length,r[w].trim());break;case 16:h.addNode(0,r[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:n,7:[1,10],9:9,12:11,13:a,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:n,12:15,13:a,14:o},{6:n,9:16,12:11,13:a,14:o},{6:p,7:u,10:17,11:m},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:p,7:u,10:22,11:m},{1:[2,7],6:n,12:15,13:a,14:o},t(k,[2,14],{7:g,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(k,[2,13],{7:g,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],f=[null],r=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=r.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(e,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;r.push(R);var H=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,f.length=f.length-B,r.length=r.length-B}l(X,"popStack");function J(){var B;return B=h.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(h=B,B=h.pop()),B=s.symbols_[B]||B),B}l(J,"lex");for(var M,F,N,Y,W={},G,V,tt,U;;){if(F=i[i.length-1],this.defaultActions[F]?N=this.defaultActions[F]:((M===null||typeof M>"u")&&(M=J()),N=v[F]&&v[F][M]),typeof N>"u"||!N.length||!N[0]){var q="";U=[];for(G in v[F])this.terminals_[G]&&G>L&&U.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+U.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:U})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+M);switch(N[0]){case 1:i.push(M),f.push(b.yytext),r.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],W.$=f[f.length-V],W._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},H&&(W._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),Y=this.performAction.apply(W,[w,$,I,S.yy,N[1],f,r].concat(C)),typeof Y<"u")return Y;V&&(i=i.slice(0,-1*V*2),f=f.slice(0,-1*V),r=r.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),f.push(W.$),r.push(W._$),tt=v[i[i.length-2]][i[i.length-1]],i.push(tt);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(e,s){return this.yy=s||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:l(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var s=e.match(/(?:\r\n?|\n).*/g);return s?(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:l(function(e){var s=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=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),i.length-1&&(this.yylineno-=i.length-1);var f=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:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(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:l(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:l(function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./chunk-5VM5RSS4-BnPBVsDt.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-32BRIVSS-CLNEOpa3.js";import{g as _t,s as vt,a as bt,b as wt,p as Tt,o as St,_ as s,c as R,d as X,e as $t,q as Mt}from"./mermaid.core-07lp9GgB.js";import{d as it}from"./arc-iJsCFL-l.js";import"./index-Bka4JnyA.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./chunk-5VM5RSS4-C2_xpzY3.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-32BRIVSS-Bb3U5zL8.js";import{g as _t,s as vt,a as bt,b as wt,p as Tt,o as St,_ as s,c as R,d as X,e as $t,q as Mt}from"./mermaid.core-DY8EMjrF.js";import{d as it}from"./arc-Kxg5RAqF.js";import"./index-8y9QBU_r.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as o,l as te,c as H,F as fe,af as ye,ag as be,ah as me,ad as _e,D as Y,i as j,Y as ke,Z as Ee,aa as Se,ab as ce,ac as le}from"./mermaid.core-07lp9GgB.js";import{g as Ne}from"./chunk-5VM5RSS4-BnPBVsDt.js";import"./index-Bka4JnyA.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:G}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:G}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(i,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Z=b.yylloc;t.push(Z);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,q,F={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Q="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Q="Parse error on line "+(W+1)+`:
1
+ import{_ as o,l as te,c as H,F as fe,af as ye,ag as be,ah as me,ad as _e,D as Y,i as j,Y as ke,Z as Ee,aa as Se,ab as ce,ac as le}from"./mermaid.core-DY8EMjrF.js";import{g as Ne}from"./chunk-5VM5RSS4-C2_xpzY3.js";import"./index-8y9QBU_r.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:G}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:G}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(i,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Z=b.yylloc;t.push(Z);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,q,F={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Q="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Q="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Q="Parse error on line "+(W+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:Z,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:r.push(E),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),E=null,se=b.yyleng,c=b.yytext,W=b.yylineno,Z=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],F.$=u[u.length-C],F._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(F._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),q=this.performAction.apply(F,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof q<"u")return q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(F.$),t.push(F._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},K=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -0,0 +1,4 @@
1
+ var de=Object.defineProperty,Dt=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ht=(t,e,n)=>e in t?de(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;const ge=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],$t=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function pe(t){if(t<=255)return ge[t];let e=0,n=$t.length-1;for(;e<=n;){const r=e+n>>1,u=$t[r];if(t<u[0])n=r-1;else{if(!(t>u[1]))return u[2];e=r+1}}return"L"}function Jt(t,e,n,r){let u=0;for(let i=n;i<r;i++){const a=t[i];if(a==="L"){u=0;break}if(a==="R"||a==="AL"){u=1;break}}const l=1&u?"R":"L",N=l;let o=N;for(let i=n;i<r;i++)t[i]==="NSM"?t[i]=o:o=t[i];o=N;for(let i=n;i<r;i++){const a=t[i];a==="EN"?t[i]=o==="AL"?"AN":"EN":a!=="R"&&a!=="L"&&a!=="AL"||(o=a)}for(let i=n;i<r;i++)t[i]==="AL"&&(t[i]="R");for(let i=n+1;i<r-1;i++)t[i]==="ES"&&t[i-1]==="EN"&&t[i+1]==="EN"&&(t[i]="EN"),t[i]!=="CS"||t[i-1]!=="EN"&&t[i-1]!=="AN"||t[i+1]!==t[i-1]||(t[i]=t[i-1]);for(let i=n;i<r;i++){if(t[i]!=="EN")continue;let a;for(a=i-1;a>=n&&t[a]==="ET";a--)t[a]="EN";for(a=i+1;a<r&&t[a]==="ET";a++)t[a]="EN"}for(let i=n;i<r;i++){const a=t[i];a!=="WS"&&a!=="ES"&&a!=="ET"&&a!=="CS"||(t[i]="ON")}o=N;for(let i=n;i<r;i++){const a=t[i];a==="EN"?t[i]=o==="L"?"L":"EN":a!=="R"&&a!=="L"||(o=a)}for(let i=n;i<r;i++){if(t[i]!=="ON")continue;let a=i+1;for(;a<r&&t[a]==="ON";)a++;const R=(i>n?t[i-1]:N)!=="L"?"R":"L";if(R===((a<r?t[a]:N)!=="L"?"R":"L"))for(let k=i;k<a;k++)t[k]=R;i=a-1}for(let i=n;i<r;i++)t[i]==="ON"&&(t[i]=l);for(let i=n;i<r;i++){const a=t[i];let R=u;1&u?a!=="L"&&a!=="AN"&&a!=="EN"||R++:a==="R"?R++:a!=="AN"&&a!=="EN"||(R+=2),e[i]=R}return u}const Oe=/[ \t\n\r\f]+/g,xe=/[\t\n\r\f]| {2,}|^ | $/;let pt=null;function ut(){return pt===null&&(pt=new Intl.Segmenter(void 0,{granularity:"grapheme"})),pt}let Et,St=null;const Le=new RegExp("\\p{Script=Arabic}","u"),et=new RegExp("\\p{M}","u"),ht=new RegExp("\\p{Nd}","u");function Qt(t){return Le.test(t)}const me=/[\u3000-\u30FF\u3130-\u318F\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF\u{20000}-\u{2A6DF}\u{2A700}-\u{2EE5D}\u{2F800}-\u{2FA1F}\u{30000}-\u{33479}]/u;function X(t){return me.test(t)}const ke=new Set([" "," ","⁠","\uFEFF"]),Ae=new Set(["-","‐","–","—"]);function re(t,e){return!((function(n){const r=dt(n);return r!==null&&ke.has(r)})(t)||e&&((function(n){const r=dt(n);return r!==null&&(Ct.has(r)||it.has(r))})(t)||(function(n){const r=dt(n);return r!==null&&Ae.has(r)})(t)))}const Ct=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),mt=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),Ft=new Set(["'","’"]),it=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ee=new Set([":",".","،","؛"]),Ie=new Set(["၏"]),be=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Be(t){if(Rt(t))return!0;let e=!1;for(const n of t)if(it.has(n)||ot(n))e=!0;else if(!e||!et.test(n))return!1;return e}function ve(t){for(const e of t)if(!Ct.has(e)&&!it.has(e))return!1;return t.length>0}function we(t){if(Rt(t))return!0;for(const e of t)if(!(mt.has(e)||Ft.has(e)||et.test(e)||ot(e)))return!1;return t.length>0}function Rt(t){let e=!1;for(const n of t)if(n!=="\\"&&!et.test(n)){if(!(mt.has(n)||it.has(n)||Ft.has(n)))return!1;e=!0}return e}function at(t,e){const n=e-1;if(n<=0)return Math.max(n,0);const r=t.charCodeAt(n);if(r<56320||r>57343)return n;const u=n-1;if(u<0)return n;const l=t.charCodeAt(u);return l>=55296&&l<=56319?u:n}function dt(t){if(t.length===0)return null;const e=at(t,t.length);return t.slice(e)}function Wt(t,e=t.length){for(;e>0;){const n=at(t,e),r=t.slice(n,e);if(!et.test(r))return r;e=n}return null}const Ce=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function ot(t){const e=t.codePointAt(0);return e!==void 0&&(function(n,r){for(let u=0;u<r.length;u+=2)if(n>=r[u]&&n<=r[u+1])return!0;return!1})(e,Ce)}function Fe(t){const e=(function(n){for(const r of n)if(!et.test(r))return r;return null})(t);return e!==null&&ht.test(e)}function Re(t){let e=t.length;for(;e>0;){const n=at(t,e),r=t.slice(n,e);if(!(et.test(r)||mt.has(r)||Ft.has(r)))break;e=n}return e<=0||e===t.length?null:{head:t.slice(0,e),tail:t.slice(e)}}function We(t,e,n){return n!=="text"||e||t.length!==1||t==="-"||t==="—"?null:t}function Zt(t,e){return t&&e!==null&&Ee.has(e)}function ye(t){const e=dt(t);return e!==null&&Ie.has(e)}function Pe(t){if(t.length<2||t[0]!==" ")return null;const e=t.slice(1);return new RegExp("^\\p{M}+$","u").test(e)?{space:" ",marks:e}:null}function It(t){let e=t.length;for(;e>0;){const n=at(t,e),r=t.slice(n,e);if(be.has(r))return!0;if(!it.has(r))return!1;e=n}return!1}function Te(t,e){if(e==="pre-wrap"){if(t===" ")return"preserved-space";if(t===" ")return"tab";if(t===`
2
+ `)return"hard-break"}return t===" "?"space":t===" "||t===" "||t==="⁠"||t==="\uFEFF"?"glue":t==="​"?"zero-width-break":t==="­"?"soft-hyphen":"text"}const ze=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function rt(t){return t.length===1?t[0]:t.join("")}function Vt(t,e){const n=[];for(let r=t.length-1;r>=0;r--)n.push(t[r]);return n.push(e),rt(n)}function je(t,e,n,r){if(!ze.test(t))return[{text:t,isWordLike:e,kind:"text",start:n}];const u=[];let l=null,N=0,o=!1,i=0;for(const a of t){const R=Te(a,r),k=R==="text"&&e;(l===null||R!==l||k!==o)&&(l!==null&&u.push({text:t.slice(N,i),isWordLike:o,kind:l,start:n+N}),l=R,N=i,o=k),i+=a.length}return l!==null&&u.push({text:t.slice(N),isWordLike:o,kind:l,start:n+N}),u}function At(t){return t==="space"||t==="preserved-space"||t==="zero-width-break"||t==="hard-break"}const _e=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Yt(t,e){const n=t.texts[e];return!!n.startsWith("www.")||_e.test(n)&&e+1<t.len&&t.kinds[e+1]==="text"&&t.texts[e+1]==="//"}function Ge(t){return t.includes("?")&&(t.includes("://")||t.startsWith("www."))}const Ke=new Set([":","-","/","×",",",".","+","–","—"]),De=/[\p{P}\p{S}\p{Co}]/u,se=new RegExp("\\p{Emoji_Presentation}","u"),He=new Set(["?","֊","-","‐","‒","–","—","…","‼","‽","⁉"]);function le(t){const e=t.charCodeAt(0);return e<128?(function(n){return n>=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(e):!He.has(t)&&!se.test(t)&&De.test(t)}function qt(t){let e=!1;for(const n of t)if(!et.test(n)){if(!le(n))return!1;e=!0}return e}const bt=/[A-Za-z#&*<=>@^_`~]/;function ue(t,e){return t.charCodeAt(0)<128&&e.charCodeAt(0)<128}function tt(t,e,n){if(!n.geckoAsciiLineBreaks||e<=0||e>=t.length)return null;const r=Wt(t,e),u=String.fromCodePoint(t.codePointAt(e));if(r===null||!ue(r,u))return null;const l=ot(r),N=ot(u);return l||N?!!(u===")"||u==="]"||u==="}"||"!,.:;?/".includes(u)||"([{".includes(r)||r==='"'||r==="'"||u==='"'||u==="'"||u==="|"||u==="-"||l&&bt.test(u)||bt.test(r)&&N||N&&(")]}".includes(r)||/[0-9]/.test(r))||l&&("([{".includes(u)||/[0-9]/.test(u))):null}function Ot(t,e,n,r=t.length){const u=e[0];if(u===void 0||!"([{".includes(u))return null;const l=Wt(t,r);return l===null?null:n.geckoAsciiLineBreaks&&ue(l,u)?bt.test(l)||ht.test(l)||`"'([{`.includes(l)||ot(l):l.charCodeAt(0)>=128?!(X(l)||!/[\p{L}\p{N}]/u.test(l))||null:/[A-Za-z0-9]/.test(l)||"$'(/<@[^_`{".includes(l)}function $e(t,e,n,r,u){if(n[0]==="-"&&X(t))return!0;if(X(t)||X(n))return!1;const l=Ot(t,n,u);if(l!==null)return l;const N=!e&&qt(t),o=!r&&qt(n),i=(function(R){const k=Wt(R);return k!==null&&ot(k)})(t),a=(e||i)&&(function(R){for(let k=R.length;k>0;){const W=at(R,k),x=R.slice(W,k);if(!et.test(x))return le(x)||ot(x);k=W}return!1})(t);return!!(N||o||a)&&(e||N||i)&&(r||o)}function Ut(t){for(const e of t)if(ht.test(e))return!0;return!1}function xt(t){if(t.length===0)return!1;for(const e of t)if(!ht.test(e)&&!Ke.has(e))return!1;return!0}function ie(t,e){const n=t.charCodeAt(e+1);if(n<128){if(n<48||n>57)return!1}else{const r=t.codePointAt(e+1);if(r===void 0||!ht.test(String.fromCodePoint(r)))return!1}for(let r=e;r>0;){const u=at(t,r),l=t.slice(u,r);if(!et.test(l))return X(l)||!/[\p{L}\p{N}]/u.test(l);r=u}return!0}function Je(t,e,n){const r=(function(u,l){const N=[];let o=0,i=0,a=!1,R=!1,k=!1,W=!1,x=!1;function v(){i!==o&&(N.push({text:u.slice(o,i),start:o,overflow:a?W?"grapheme":"none":"word-like"}),o=i,a=!1,R=!1,k=!1,W=!1,x=!1)}function E(f,O,g){o=O,i=O+f.length,a=g,W=f==="-",R=It(f),k=mt.has(f)}function p(f,O){i+=f.length,a=a||O,W=W||f==="-";const g=It(f);R=f.length===1&&it.has(f)&&R||g,k=!1}for(const f of ut().segment(u)){const O=f.segment,g=X(O);if(i===o){E(O,f.index,g);continue}const z=O==="-"&&a;z&&ie(u,f.index)&&(x=!0),k||Ct.has(O)||it.has(O)||z||x&&!g||l.carryCJKAfterClosingQuote&&g&&R?p(O,g):a||g?(v(),E(O,f.index,g)):p(O,g)}return v(),N})(t,e);return n==="keep-all"?(function(u,l,N){if(l.length<=1)return l;const o=[];let i=-1,a=!1;function R(k){if(!(i<0)){if(a)i+1===k?o.push(l[i]):(function(W,x){const v=l[W].start,E=x<l.length?l[x].start:u.length;o.push({text:u.slice(v,E),start:v,overflow:"word-like"})})(i,k);else for(let W=i;W<k;W++)o.push(l[W]);i=-1,a=!1}}for(let k=0;k<l.length;k++){const W=l[k];i>=0&&(!re(l[k-1].text,N.breakKeepAllAfterPunctuation)||tt(u,W.start,N)===!1)&&R(k),i<0&&(i=k),a=a||X(W.text)}return R(l.length),o})(t,r,e):r}function Qe(t){return t==="-"||t==="֊"||t==="‐"||t==="‒"||t==="–"||t==="—"}function Ze(t){if(t.length===0||new RegExp("\\p{Cf}","u").test(t))return!1;for(const{segment:e}of ut().segment(t)){const n=String.fromCodePoint(e.codePointAt(0));if(!/[\p{P}\p{S}]/u.test(n)||se.test(n)||e.includes("️")||new RegExp("\\p{Emoji_Modifier}","u").test(n))return!1}return!0}function Ve(t,e,n="normal",r="normal"){const u=n==="pre-wrap"?(function(N){return/[\r\f]/.test(N)?N.replace(/\r\n/g,`
3
+ `).replace(/[\r\f]/g,`
4
+ `):N})(t):(function(N){if(!xe.test(N))return N;let o=N.replace(Oe," ");return o.charCodeAt(0)===32&&(o=o.slice(1)),o.length>0&&o.charCodeAt(o.length-1)===32&&(o=o.slice(0,-1)),o})(t);if(u.length===0)return{normalized:u,len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const l=(function(N,o,i){var a,R,k,W,x;const v=(St===null&&(St=new Intl.Segmenter(Et,{granularity:"word"})),St);let E=0;const p=[],f=[],O=[],g=[];let z=!1,_=0,J=0,H=!1,Q="text",Z=null,T=!1,h=!1,b=!1,P=!1,m=!1;for(const s of v.segment(N))for(const c of je(s.segment,(a=s.isWordLike)!=null&&a,s.index,i)){const L=c.kind==="text",w=We(c.text,c.isWordLike,c.kind),A=X(c.text),S=Qt(c.text),B=dt(c.text),C=It(c.text),y=ye(c.text),j=c.start+c.text.length,K=(R=tt(N,c.start,o))!=null?R:T||A?null:Ot(N,c.text,o,c.start);let G=!1;if(o.carryCJKAfterClosingQuote&&L&&z&&Q==="text"&&A&&T&&b)G=!0;else if(L&&z&&Q==="text"&&ve(c.text)&&T)G=!0;else if(L&&z&&Q==="text"&&P)G=!0;else if(L&&z&&Q==="text"&&c.isWordLike&&S&&m)G=!0;else{if(w!==null&&z&&Q==="text"&&Z===w&&K!==!1){J=j;continue}L&&!c.isWordLike&&z&&Q==="text"&&!T&&(Be(c.text)||c.text==="-"&&H)&&(G=!0)}L&&z&&Q==="text"&&K!==null&&(G=K),G?(J=j,H=H||c.isWordLike,Z=null,T=T||A,h=h||S,b=C,P=y,m=Zt(h,B)):(z&&(p[E]=N.slice(_,J),f[E]=H,O[E]=Q,g[E]=_,E++),z=!0,_=c.start,J=j,H=c.isWordLike,Q=c.kind,Z=w,T=A,h=S,b=C,P=y,m=Zt(S,B))}z&&(p[E]=N.slice(_,J),f[E]=H,O[E]=Q,g[E]=_,E++);for(let s=1;s<E;s++)O[s]!=="text"||f[s]||!Rt(p[s])||O[s-1]!=="text"||X(p[s-1])||((k=tt(N,g[s],o))!=null?k:Ot(N,p[s],o,g[s]))===!1||(p[s-1]+=p[s],f[s-1]=f[s-1]||f[s],p[s]="");let d=-1,M=null;for(let s=E-1;s>=0;s--){const c=p[s];if(c.length===0)continue;const L=(W=M?.at(-1))!=null?W:d>=0?p[d]:null;O[s]!=="text"||f[s]||L===null||O[d]!=="text"||!(((x=tt(N,g[s]+c.length,o))!=null?x:we(c)&&Ot(c,L,o)!==!1)||c==="-"&&Fe(L))?(M!==null&&(p[d]=Vt(M,p[d]),M=null),d=s):(M===null&&(M=[]),M.push(c),g[d]=g[s],p[s]="")}M!==null&&(p[d]=Vt(M,p[d]));let I=0;for(let s=0;s<E;s++){const c=p[s];c.length!==0&&(I!==s&&(p[I]=c,f[I]=f[s],O[I]=O[s],g[I]=g[s]),I++)}p.length=I,f.length=I,O.length=I,g.length=I;const F=(function(s,c,L){var w;const A=[],S=[],B=[],C=[];let y=0;for(;y<s.len;){const j=s.texts[y],K=s.kinds[y],G=s.isWordLike[y];if(K==="text"){const $=[j];let D=y+1,q=G;for(;D<s.len&&s.kinds[D]==="text"&&((w=tt(c,s.starts[D],L))!=null?w:$e(s.texts[D-1],s.isWordLike[D-1],s.texts[D],s.isWordLike[D],L));){const V=s.texts[D];$.push(V),q=q||s.isWordLike[D],D++}if(D>y+1){A.push(rt($)),S.push(q),B.push("text"),C.push(s.starts[y]),y=D;continue}}A.push(j),S.push(G),B.push(K),C.push(s.starts[y]),y++}return{len:A.length,texts:A,isWordLike:S,kinds:B,starts:C}})((function(s,c,L){const w=[],A=[],S=[],B=[];function C(y,j){if(y.includes("-")){const K=y.split("-");let G=K.length>1;for(let $=0;$<K.length;$++){const D=K[$];if(!G)break;D.length!==0&&Ut(D)&&xt(D)||(G=!1)}if(G){let $=0;for(let D=0;D<K.length;D++){const q=K[D],V=D<K.length-1?`${q}-`:q;w.push(V),A.push(!0),S.push("text"),B.push(j+$),$+=V.length}return}}w.push(y),A.push(!0),S.push("text"),B.push(j)}for(let y=0;y<s.len;y++){const j=s.texts[y],K=s.kinds[y];if(K==="text"&&xt(j)&&Ut(j)){const G=[j];let $=y+1;for(;$<s.len&&s.kinds[$]==="text"&&xt(s.texts[$])&&tt(c,s.starts[$],L)!==!1;)G.push(s.texts[$]),$++;C(rt(G),s.starts[y]),y=$-1;continue}w.push(j),A.push(s.isWordLike[y]),S.push(K),B.push(s.starts[y])}return{len:w.length,texts:w,isWordLike:A,kinds:S,starts:B}})((function(s,c,L){const w=[],A=[],S=[],B=[];for(let C=0;C<s.len;C++){const y=s.starts[C];let j=s.texts[C],K=s.isWordLike[C];const G=s.kinds[C];let $=-1;if(G==="text"&&Yt(s,C)){const st=[j];let U=C+1;for(;U<s.len&&!At(s.kinds[U])&&tt(c,s.starts[U],L)!==!1;){$<0&&Yt(s,U)&&($=s.starts[U]);const ft=s.texts[U];if(st.push(ft),K=!0,U++,ft.includes("?"))break}j=rt(st),C=U-1}if(w.push(j),A.push(K),S.push(G),B.push(y),!Ge(j))continue;const D=C+1;if(D>=s.len||At(s.kinds[D]))continue;const q=[],V=$<0?s.starts[D]:$;let Y=D;for(;Y<s.len&&!At(s.kinds[Y])&&tt(c,s.starts[Y],L)!==!1;)q.push(s.texts[Y]),Y++;q.length>0&&(w.push(rt(q)),A.push(!0),S.push("text"),B.push(V),C=Y-1)}return{len:w.length,texts:w,isWordLike:A,kinds:S,starts:B}})((function(s){const c=[],L=[],w=[],A=[];let S=0;for(;S<s.len;){const B=[s.texts[S]];let C=s.isWordLike[S],y=s.kinds[S],j=s.starts[S];if(y==="glue"){const K=[B[0]],G=j;for(S++;S<s.len&&s.kinds[S]==="glue";)K.push(s.texts[S]),S++;const $=rt(K);if(!(S<s.len&&s.kinds[S]==="text")){c.push($),L.push(!1),w.push("glue"),A.push(G);continue}B[0]=$,B.push(s.texts[S]),C=s.isWordLike[S],y="text",j=G,S++}else S++;if(y==="text")for(;S<s.len&&s.kinds[S]==="glue";){const K=[];for(;S<s.len&&s.kinds[S]==="glue";)K.push(s.texts[S]),S++;const G=rt(K);S<s.len&&s.kinds[S]==="text"?(B.push(G,s.texts[S]),C=C||s.isWordLike[S],S++):B.push(G)}c.push(rt(B)),L.push(C),w.push(y),A.push(j)}return{len:c.length,texts:c,isWordLike:L,kinds:w,starts:A}})({len:I,texts:p,isWordLike:f,kinds:O,starts:g}),N,o),N,o),N,o);(function(s){const{texts:c,kinds:L,starts:w}=s;for(let A=0;A<c.length-1;A++){if(L[A]!=="text"||L[A+1]!=="text"||!X(c[A])||!X(c[A+1]))continue;const S=Re(c[A]);S!==null&&(c[A]=S.head,c[A+1]=S.tail+c[A+1],w[A+1]=w[A]+S.head.length)}})(F);for(let s=0;s<F.len-1;s++){const c=Pe(F.texts[s]);c!==null&&(F.kinds[s]!=="space"&&F.kinds[s]!=="preserved-space"||F.kinds[s+1]!=="text"||!Qt(F.texts[s+1])||(F.texts[s]=c.space,F.isWordLike[s]=!1,F.kinds[s]=F.kinds[s]==="preserved-space"?"preserved-space":"space",F.texts[s+1]=c.marks+F.texts[s+1],F.starts[s+1]=F.starts[s]+c.space.length))}return F})(u,e,n);return((N,o)=>{for(var i in o||(o={}))he.call(o,i)&&Ht(N,i,o[i]);if(Dt)for(var i of Dt(o))Me.call(o,i)&&Ht(N,i,o[i]);return N})({normalized:u},r==="keep-all"?(function(N,o,i){if(o.len<=1)return o;const a=[],R=[],k=[],W=[];let x=-1,v=!1;function E(f){a.push(o.texts[f]),R.push(o.isWordLike[f]),k.push("text"),W.push(o.starts[f])}function p(f){if(!(x<0)){if(v)x+1===f?E(x):(function(O,g){let z=!1;for(let H=O;H<g;H++)z=z||o.isWordLike[H];const _=o.starts[O],J=g<o.len?o.starts[g]:N.length;a.push(N.slice(_,J)),R.push(z),k.push("text"),W.push(_)})(x,f);else for(let O=x;O<f;O++)E(O);x=-1,v=!1}}for(let f=0;f<o.len;f++){const O=o.texts[f],g=o.kinds[f];g!=="text"?(p(f),a.push(O),R.push(o.isWordLike[f]),k.push(g),W.push(o.starts[f])):(x>=0&&(!re(o.texts[f-1],i.breakKeepAllAfterPunctuation)||tt(N,o.starts[f],i)===!1)&&p(f),x<0&&(x=f),v=v||X(O))}return p(o.len),{len:a.length,texts:a,isWordLike:R,kinds:k,starts:W}})(u,l,e):l)}let Nt=null;const Bt=new Map;let ct=null;const Ye=new RegExp("\\p{Emoji_Presentation}","u"),qe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,vt=new Map;function yt(){if(Nt!==null)return Nt;if(typeof OffscreenCanvas<"u")return Nt=new OffscreenCanvas(1,1).getContext("2d"),Nt;if(typeof document<"u")return Nt=document.createElement("canvas").getContext("2d"),Nt;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function nt(t,e){let n=e.get(t);return n===void 0&&(n={width:yt().measureText(t).width},e.set(t,n)),n}function Mt(){if(ct!==null)return ct;if(typeof navigator>"u")return ct={geckoAsciiLineBreaks:!1,lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1},ct;const t=navigator.userAgent,e=navigator.vendor==="Apple Computer, Inc."&&t.includes("Safari/")&&!t.includes("Chrome/")&&!t.includes("Chromium/")&&!t.includes("CriOS/")&&!t.includes("FxiOS/")&&!t.includes("EdgiOS/"),n=t.includes("Chrome/")||t.includes("Chromium/")||t.includes("CriOS/")||t.includes("Edg/");return ct={geckoAsciiLineBreaks:t.includes("Firefox/")&&!t.includes("FxiOS/"),lineFitEpsilon:e?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!e,preferPrefixWidthsForBreakableRuns:e},ct}function Ue(t){return Ye.test(t)||t.includes("️")}function Xe(t){let e=vt.get(t);if(e!==void 0)return e;const n=(function(l){const N=l.match(/(?:^|\D)(\d+(?:\.\d+)?)\s*px/);return N?parseFloat(N[1]):16})(t),r=yt();r.font=t;const u=r.measureText("😀").width;if(e=0,u>n+.5&&typeof document<"u"&&document.body!==null){const l=document.createElement("span");l.style.font=t,l.style.display="inline-block",l.style.visibility="hidden",l.style.position="absolute",l.textContent="😀",document.body.appendChild(l);const N=l.getBoundingClientRect().width;document.body.removeChild(l),u-N>.5&&(e=u-N)}return vt.set(t,e),e}function lt(t,e,n){return n===0?e.width:e.width-(function(r,u){return u.emojiCount===void 0&&(u.emojiCount=(function(l){let N=0;const o=ut();for(const i of o.segment(l))Ue(i.segment)&&N++;return N})(r)),u.emojiCount})(t,e)*n}function oe(t,e,n){return n===0&&e>0&&e<t.length&&t[e-1]==="soft-hyphen"}function tn(t){return t==="space"||t==="zero-width-break"||t==="soft-hyphen"}function Pt(t){return t==="space"||t==="preserved-space"||t==="tab"||t==="zero-width-break"||t==="soft-hyphen"}function Ne(t,e,n=t.widths.length){for(;e<n&&tn(t.kinds[e]);)e++;return e}function en(t,e){if(e<=0)return 0;const n=t%e;return Math.abs(n)<=1e-6?e:e-n}function nn(t,e,n){return t.letterSpacing!==0&&e&&t.spacingGraphemeCounts[n]>0?t.letterSpacing:0}function Tt(t,e){return e===0?0:t+e}function rn(t,e,n,r,u){return Tt(r,e==="tab"?u+(function(l,N){return l.letterSpacing!==0&&l.spacingGraphemeCounts[N]>0?l.letterSpacing:0})(t,n):t.lineEndFitAdvances[n])}function Xt(t,e,n,r){return Tt(r,e==="tab"?0:t.lineEndFitAdvances[n])}function te(t,e,n,r,u){return Tt(r,e==="tab"?u:t.lineEndPaintAdvances[n])}function sn(t,e,n){return t.letterSpacing!==0&&e?n+t.letterSpacing:n}function ln(t,e){return t.letterSpacing===0?e:e+t.letterSpacing}function Lt(t,e,n){let r=e;if(r>=t.length||t[r]>=n)return r;let u=t.length;for(r++;r<u;){const l=Math.floor((r+u)/2);t[l]<n?r=l+1:u=l}return r}function ce(t,e,n){let r=n.segmentIndex;if(n.graphemeIndex>0)return e;for(let u=e;u<t.chunks.length;u++){const l=t.chunks[u];if(l.startSegmentIndex===l.endSegmentIndex&&r===l.startSegmentIndex||(r<l.startSegmentIndex&&(r=l.startSegmentIndex),r=Ne(t,r,l.endSegmentIndex),r<l.endSegmentIndex))return n.segmentIndex=r,n.graphemeIndex=0,u;if(l.consumedEndSegmentIndex>=t.widths.length)return-1;r=l.consumedEndSegmentIndex,n.segmentIndex=r,n.graphemeIndex=0}return-1}function gt(t,e){if(e.segmentIndex>=t.widths.length)return-1;const n=(function(r,u){let l=0,N=r.chunks.length;for(;l<N;){const o=Math.floor((l+N)/2);u<r.chunks[o].consumedEndSegmentIndex?N=o:l=o+1}return l<r.chunks.length?l:-1})(t,e.segmentIndex);return n<0?-1:ce(t,n,e)}function un(t,e,n){if(n.segmentIndex>=t.widths.length)return-1;let r=e;for(;r<t.chunks.length&&n.segmentIndex>=t.chunks[r].consumedEndSegmentIndex;)r++;return r>=t.chunks.length?-1:ce(t,r,n)}function kt(t,e,n){if(t.simpleLineWalkFastPath)return(function(u,l,N){const{widths:o,kinds:i,breakableFitAdvances:a,breakablePreferredBreaks:R}=u;if(o.length===0)return 0;const k=l+Mt().lineFitEpsilon;let W=0,x=0,v=!1,E=0,p=0,f=0,O=0,g=-1,z=0;function _(h=f,b=O,P=x){W++,N?.(P,E,p,h,b),x=0,v=!1,g=-1,z=0}function J(h,b){v=!0,E=h,p=0,f=h+1,O=0,x=b}function H(h,b,P){v=!0,E=h,p=b,f=h,O=b+1,x=P}function Q(h,b){v?(x+=b,f=h+1,O=0):J(h,b)}function Z(h,b){var P;const m=a[h],d=(P=R[h])!=null?P:null;let M=d===null?-1:Lt(d,0,b+1),I=-1,F=0,s=b;for(;s<m.length;){const c=m[s];if(v)if(x+c>k){if(d!==null&&I>b){_(h,I,F),s=I,M=Lt(d,M,s+1),I=-1,F=0;continue}_(),H(h,s,c)}else x+=c,f=h,O=s+1;else H(h,s,c);const L=s+1;d!==null&&d[M]===L&&(I=L,F=x,M++),s++}v&&f===h&&O===m.length&&(f=h+1,O=0)}let T=0;for(;T<o.length&&(v||(T=Ne(u,T),!(T>=o.length)));){const h=o[T],b=Pt(i[T]);if(v)if(x+h>k){if(b){Q(T,h),_(T+1,0,x-h),T++;continue}if(g>=0){if(f>g||f===g&&O>0){_();continue}_(g,0,z);continue}if(h>k&&a[T]!==null){_(),Z(T,0),T++;continue}_()}else Q(T,h),b&&(g=T+1,z=x-h),T++;else h>k&&a[T]!==null?Z(T,0):J(T,h),b&&(g=T+1,z=x-h),T++}return v&&_(),W})(t,e,n);const r={segmentIndex:0,graphemeIndex:0};return zt(t,r,gt(t,r),e,n).lineCount}function zt(t,e,n,r,u,l=Number.POSITIVE_INFINITY){const{widths:N,kinds:o,breakableFitAdvances:i,breakablePreferredBreaks:a,discretionaryHyphenWidth:R}=t,k=r+Mt().lineFitEpsilon;let W,x,v,E,p,f,O,g,z,_;function J(m=p,d=f,M=(function(){return _==="soft-hyphen"&&O===p&&f===0?z:v})()){return E?(e.segmentIndex=m,e.graphemeIndex=d,(function(I,F,s,c,L,w){return F+(function(A,S,B,C,y){if(A.letterSpacing===0)return 0;if(y>0)return A.spacingGraphemeCounts[C]>0?A.letterSpacing:0;if(oe(A.kinds,C,y))return 0;for(let j=C-1;j>=S;j--){const K=A.kinds[j];if(K!=="space"&&K!=="zero-width-break"&&K!=="hard-break"&&K!=="soft-hyphen")return j===S&&B>0||A.spacingGraphemeCounts[j]>0?A.letterSpacing:0}return 0})(I,s,c,L,w)})(t,M,W,x,m,d)):null}function H(m,d){E=!0,p=m+1,f=0,v=d}function Q(m,d,M){E=!0,p=m,f=d+1,v=M}function Z(m,d){E?(v+=d,p=m+1,f=0):H(m,d)}function T(m,d,M,I,F,s){if(!d)return;const c=Xt(t,m,M,F),L=te(t,m,M,F,I);O=M+1,g=v-s+c,z=v-s+L,_=m}function h(m,d){var M;const I=i[m],F=(M=a[m])!=null?M:null;let s=F===null?-1:Lt(F,0,d+1),c=-1,L=0;for(let w=d;w<I.length;w++){const A=I[w];if(E){const B=sn(t,!0,A),C=v+B;if(ln(t,C)>k)return F!==null&&c>d?J(m,c,L):J();v=C,p=m,f=w+1}else Q(m,w,A);const S=w+1;F!==null&&F[s]===S&&(c=S,L=v,s++)}return E&&p===m&&f===I.length&&(p=m+1,f=0),null}let b=0,P=null;for(;n>=0&&b<l;){W=e.segmentIndex,x=e.graphemeIndex,v=0,E=!1,p=e.segmentIndex,f=e.graphemeIndex,O=-1,g=0,z=0,_=null;const m=t.chunks[n];let d=null;if(m.startSegmentIndex===m.endSegmentIndex)e.segmentIndex=m.consumedEndSegmentIndex,e.graphemeIndex=0,d=0;else{t:for(let M=e.segmentIndex;M<m.endSegmentIndex;M++){const I=o[M],F=Pt(I),s=M===e.segmentIndex?e.graphemeIndex:0,c=nn(t,E,M),L=I==="tab"?en(v+c,t.tabStopAdvance):N[M],w=c+L,A=rn(t,I,M,c,L);if(I!=="soft-hyphen"||s!==0)if(E){if(v+A>k){const S=v+Xt(t,I,M,c),B=v+te(t,I,M,c,L);if(F&&S<=k){Z(M,w),d=J(M+1,0,B);break t}if(O>=0&&g<=k){if(p>O||p===O&&f>0){d=J();break t}d=J(O,0,z);break t}d=J();break t}Z(M,w),T(I,F,M,L,c,w)}else{if(s>0){const S=h(M,s);if(S!==null){d=S;break t}}else if(A>k&&i[M]!==null){const S=h(M,0);if(S!==null){d=S;break t}}else H(M,L);T(I,F,M,L,c,w)}else E&&(p=M+1,f=0,M+1<m.endSegmentIndex&&(O=M+1,g=v+R,z=v+R,_=I))}d===null&&(d=O===m.consumedEndSegmentIndex&&f===0?J(m.consumedEndSegmentIndex,0,z):J(m.consumedEndSegmentIndex,0,v))}if(d===null)break;P=d,b++,u?.(d,W,x,e.segmentIndex,e.graphemeIndex),b<l&&(n=un(t,n,e))}return{lineCount:b,lastLineWidth:P}}function jt(t,e,n,r){return t.simpleLineWalkFastPath?(function(u,l,N){var o;const{widths:i,kinds:a,breakableFitAdvances:R,breakablePreferredBreaks:k}=u,W=N+Mt().lineFitEpsilon;let x=0,v=!1,E=l.segmentIndex,p=l.graphemeIndex,f=-1,O=0;for(let g=l.segmentIndex;g<i.length;g++){const z=Pt(a[g]),_=g===l.segmentIndex?l.graphemeIndex:0,J=R[g],H=i[g];if(v){if(x+H>W)return z?(l.segmentIndex=g+1,l.graphemeIndex=0,x):f>=0?E>f||E===f&&p>0?(l.segmentIndex=E,l.graphemeIndex=p,x):(l.segmentIndex=f,l.graphemeIndex=0,O):(l.segmentIndex=E,l.graphemeIndex=p,x);x+=H,E=g+1,p=0,z&&(f=g+1,O=x-H)}else{if(_>0||H>W&&J!==null){const Q=J,Z=(o=k[g])!=null?o:null;let T=Z===null?-1:Lt(Z,0,_+1),h=-1,b=0;v=!0,x=Q[_],E=g,p=_+1,Z!==null&&Z[T]===p&&(h=p,b=x,T++);for(let P=_+1;P<Q.length;P++){const m=Q[P];if(x+m>W)return Z!==null&&h>_?(l.segmentIndex=g,l.graphemeIndex=h,b):(l.segmentIndex=E,l.graphemeIndex=p,x);x+=m,E=g,p=P+1,Z!==null&&Z[T]===p&&(h=p,b=x,T++)}E===g&&p===Q.length&&(E=g+1,p=0)}else v=!0,x=H,E=g+1,p=0;z&&(f=g+1,O=x-H)}}return v?(l.segmentIndex=E,l.graphemeIndex=p,x):null})(t,e,r):(function(u,l,N,o){return zt(u,l,N,o,void 0,1).lastLineWidth})(t,e,n,r)}function on(t,e,n){const r=gt(t,e);return r<0?null:jt(t,e,r,n)}let wt=new WeakMap;function ee(t,e,n){let r=n.get(t);if(r!==void 0)return r;r=[0];const u=ut();for(const l of u.segment(e[t]))r.push(l.index+l.segment.length);return n.set(t,r),r}function _t(t){let e=wt.get(t);return e!==void 0||(e=new Map,wt.set(t,e)),e}function Nn(t,e,n,r,u,l){let N="";for(let o=n;o<u;o++)if(t.kinds[o]!=="soft-hyphen"&&t.kinds[o]!=="hard-break")if(o===n&&r>0){const i=ee(o,t.segments,e);N+=t.segments[o].slice(i[r])}else N+=t.segments[o];if(l>0){const o=ee(u,t.segments,e);N+=t.segments[u].slice(o[n===u?r:0],o[l])}return oe(t.kinds,u,l)?N+"-":N}function ne(t,e){if(e==="zero-width-break"||e==="soft-hyphen"||e==="hard-break")return 0;if(e==="tab")return 1;let n=0;const r=ut();for(const u of r.segment(t))n++;return n}function cn(t,e,n,r,u){const l=Mt(),{cache:N,emojiCorrection:o}=(function(h,b){return yt().font=h,{cache:(function(m){let d=Bt.get(m);return d||(d=new Map,Bt.set(m,d)),d})(h),emojiCorrection:b?Xe(h):0}})(e,(i=t.normalized,qe.test(i)));var i;const a=lt("-",nt("-",N),o)+(u===0?0:2*u),R=8*lt(" ",nt(" ",N),o),k=u!==0;if(t.len===0)return(function(h){return h?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}})(n);const W=[],x=[],v=[],E=[];let p=!k;const f=n?[]:null,O=[],g=[],z=[],_=n?[]:null,J=[];let H=0;function Q(h,b,P,m,d,M,I,F,s){d!=="text"&&d!=="space"&&d!=="zero-width-break"&&(p=!1),W.push(b),x.push(P),v.push(m),E.push(d),f?.push(M),O.push(I),g.push(F),k&&z.push(s),_!==null&&_.push(h)}function Z(h,b,P,m,d){const M=k?ne(h,P):0,I=(function(L,w,A){return w>1?L+(w-1)*A:L})(lt(h,b,o),M,u),F=P==="space"||P==="preserved-space"||P==="zero-width-break"?0:I,s=F===0?0:F+(M>0?u:0),c=P==="space"||P==="zero-width-break"?0:I;if(d&&h.length>1){let L="sum-graphemes";u!==0?L="segment-prefixes":xt(h)?L="pair-context":l.preferPrefixWidthsForBreakableRuns&&(L="segment-prefixes");const w=(function(S,B,C,y,j){if(B.breakableFitAdvances!==void 0&&B.breakableFitMode===j)return B.breakableFitAdvances;B.breakableFitMode=j;const K=ut(),G=[];for(const V of K.segment(S))G.push(V.segment);if(G.length<=1)return B.breakableFitAdvances=null,B.breakableFitAdvances;if(j==="sum-graphemes"){const V=[];for(const Y of G){const st=nt(Y,C);V.push(lt(Y,st,y))}return B.breakableFitAdvances=V,B.breakableFitAdvances}if(j==="pair-context"||G.length>96){const V=[];let Y=null,st=0;for(const U of G){const ft=lt(U,nt(U,C),y);if(Y===null)V.push(ft);else{const Kt=Y+U,Se=nt(Kt,C);V.push(lt(Kt,Se,y)-st)}Y=U,st=ft}return B.breakableFitAdvances=V,B.breakableFitAdvances}const $=[];let D="",q=0;for(const V of G){D+=V;const Y=lt(D,nt(D,C),y);$.push(Y-q),q=Y}return B.breakableFitAdvances=$,B.breakableFitAdvances})(h,b,N,o,L),A=w===null||r==="keep-all"?null:(function(S){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(S))return null;const B=[];let C=0;for(const y of ut().segment(S)){C++;const j=y.segment==="-"&&ie(S,y.index);Qe(y.segment)&&!j&&B.push(C)}return B.length===0?null:B})(h);return void Q(h,I,s,c,P,m,w,A,M)}Q(h,I,s,c,P,m,null,null,M)}for(let h=0;h<t.len;h++){const b=t.texts[h],P=t.kinds[h],m=t.starts[h];if(P!=="soft-hyphen"){if(P==="hard-break"){const d=W.length;Q(b,0,0,0,P,m,null,null,0),J.push({startSegmentIndex:H,endSegmentIndex:d,consumedEndSegmentIndex:W.length}),H=W.length;continue}if(P!=="tab"){if(P==="text"&&X(b)){const d=Je(b,l,r);for(let M=0;M<d.length;M++){const I=d[M],F=nt(I.text,N);Z(I.text,F,"text",m+I.start,I.overflow==="grapheme"||t.isWordLike[h]&&(r==="keep-all"||I.overflow==="word-like"))}continue}Z(b,nt(b,N),P,m,P==="text"&&(t.isWordLike[h]||Ze(b)))}else Q(b,0,0,0,P,m,null,null,k?ne(b,P):0)}else Q(b,0,a,a,P,m,null,null,0)}H<W.length&&J.push({startSegmentIndex:H,endSegmentIndex:W.length,consumedEndSegmentIndex:W.length});const T=f===null?null:(function(h,b){const P=(function(d){const M=d.length;if(M===0)return null;const I=new Array(M);let F=!1,s=0,c=null;for(let L=0;L<M;){const w=d.charCodeAt(L);let A=w,S=1;if(w>=55296&&w<=56319&&L+1<M){const C=d.charCodeAt(L+1);C>=56320&&C<=57343&&(A=C-56320+(w-55296<<10)+65536,S=2)}const B=pe(A);B!=="R"&&B!=="AL"&&B!=="AN"||(F=!0);for(let C=0;C<S;C++)I[L+C]=B;B==="B"&&(F&&(c!=null||(c=new Int8Array(M)),c[L]=Jt(I,c,s,L)),s=L+S,F=!1),L+=S}return F&&(c!=null||(c=new Int8Array(M)),Jt(I,c,s,M)),c})(h);if(P===null)return null;const m=new Int8Array(b.length);for(let d=0;d<b.length;d++)m[d]=P[b[d]];return m})(t.normalized,f);return _!==null?{widths:W,lineEndFitAdvances:x,lineEndPaintAdvances:v,kinds:E,simpleLineWalkFastPath:p,segLevels:T,breakableFitAdvances:O,breakablePreferredBreaks:g,letterSpacing:u,spacingGraphemeCounts:z,discretionaryHyphenWidth:a,tabStopAdvance:R,chunks:J,segments:_}:{widths:W,lineEndFitAdvances:x,lineEndPaintAdvances:v,kinds:E,simpleLineWalkFastPath:p,segLevels:T,breakableFitAdvances:O,breakablePreferredBreaks:g,letterSpacing:u,spacingGraphemeCounts:z,discretionaryHyphenWidth:a,tabStopAdvance:R,chunks:J}}function ae(t,e,n,r){var u,l;const N=(u=r?.wordBreak)!=null?u:"normal",o=(l=r?.letterSpacing)!=null?l:0;return cn(Ve(t,Mt(),r?.whiteSpace,N),e,n,N,o)}function fn(t,e,n){return ae(t,e,!1,n)}function Sn(t,e,n){return ae(t,e,!0,n)}function dn(t,e,n){const r=(function(u,l){return kt(u,l)})(t,e);return{lineCount:r,height:r*n}}function Gt(t,e,n,r,u,l,N){return{text:Nn(t,e,r,u,l,N),width:n,start:{segmentIndex:r,graphemeIndex:u},end:{segmentIndex:l,graphemeIndex:N}}}function fe(t,e,n,r,u){return{width:t,start:{segmentIndex:e,graphemeIndex:n},end:{segmentIndex:r,graphemeIndex:u}}}function hn(t,e){return Gt(t,_t(t),e.width,e.start.segmentIndex,e.start.graphemeIndex,e.end.segmentIndex,e.end.graphemeIndex)}function Mn(t,e,n){return t.widths.length===0?0:kt(t,e,(r,u,l,N,o)=>{n(fe(r,u,l,N,o))})}function gn(t,e){return(function(n,r){if(n.widths.length===0)return{lineCount:0,maxLineWidth:0};const u={segmentIndex:0,graphemeIndex:0};let l=0,N=0;if(!n.simpleLineWalkFastPath)return l=zt(n,u,gt(n,u),r,o=>{o>N&&(N=o)}).lineCount,{lineCount:l,maxLineWidth:N};for(;;){const o=on(n,u,r);if(o===null)return{lineCount:l,maxLineWidth:N};l++,o>N&&(N=o)}})(t,e)}function pn(t){let e=0;return kt(t,Number.POSITIVE_INFINITY,n=>{n>e&&(e=n)}),e}function On(t,e,n){const r=t,u={segmentIndex:e.segmentIndex,graphemeIndex:e.graphemeIndex},l=gt(r,u);if(l<0)return null;const N=u.segmentIndex,o=u.graphemeIndex,i=jt(r,u,l,n);return i===null?null:Gt(t,_t(t),i,N,o,u.segmentIndex,u.graphemeIndex)}function xn(t,e,n){const r=t,u={segmentIndex:e.segmentIndex,graphemeIndex:e.graphemeIndex},l=gt(r,u);if(l<0)return null;const N=u.segmentIndex,o=u.graphemeIndex,i=jt(r,u,l,n);return i===null?null:fe(i,N,o,u.segmentIndex,u.graphemeIndex)}function Ln(t,e,n){const r=[];if(t.widths.length===0)return{lineCount:0,height:0,lines:r};const u=_t(t),l=kt(t,e,(N,o,i,a,R)=>{r.push(Gt(t,u,N,o,i,a,R))});return{lineCount:l,height:l*n,lines:r}}function an(){pt=null,St=null,wt=new WeakMap,Bt.clear(),vt.clear()}function mn(t){(function(e){const n=e&&e.length>0?e:void 0;Et!==n&&(Et=n,St=null)})(t),an()}export{an as clearCache,dn as layout,On as layoutNextLine,xn as layoutNextLineRange,Ln as layoutWithLines,hn as materializeLineRange,gn as measureLineStats,pn as measureNaturalWidth,fn as prepare,Sn as prepareWithSegments,mn as setLocale,Mn as walkLineRanges};
@@ -1 +1 @@
1
- import{ba as j,bb as p,bc as w,bd as k,be as q}from"./mermaid.core-07lp9GgB.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,f as F,a as z,b as B}from"./defaultLocale-DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
1
+ import{ba as j,bb as p,bc as w,bd as k,be as q}from"./mermaid.core-DY8EMjrF.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,f as F,a as z,b as B}from"./defaultLocale-DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};