@softistx/pulsarix-widget 0.8.1 → 0.8.3

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 (110) hide show
  1. package/dist/chunks/{abnfDiagram-XWFEHMT6.jcqkp43e.js → abnfDiagram-XWFEHMT6.9eyf87ze.js} +1 -1
  2. package/dist/chunks/architecture-WOLXFQ4H.230b0n6c.js +1 -0
  3. package/dist/chunks/{architectureDiagram-CSQXQB3N.pk9dxdfb.js → architectureDiagram-CSQXQB3N.cy6247c8.js} +1 -1
  4. package/dist/chunks/{blockDiagram-BEDRHYPZ.ehefn7dt.js → blockDiagram-BEDRHYPZ.an5w7tk4.js} +1 -1
  5. package/dist/chunks/{c4Diagram-M2UUVUY5.knj3as6x.js → c4Diagram-M2UUVUY5.512525r3.js} +1 -1
  6. package/dist/chunks/{chat-markdown-DLDNLXM9.tvekh9sm.js → chat-markdown-COFhHMpe.fm39gs4e.js} +2 -2
  7. package/dist/chunks/{classDiagram-v2-KXABOMEV.vtb7vjzn.js → classDiagram-v2-KXABOMEV.5gw6azyv.js} +1 -1
  8. package/dist/chunks/{cose-bilkent-JH36ORCC.gb18dr42.js → cose-bilkent-JH36ORCC.9t42zmky.js} +1 -1
  9. package/dist/chunks/cynefin-EF2NZ3EQ.e9ycn4jb.js +1 -0
  10. package/dist/chunks/{cynefinDiagram-NJNITYFG.akmr90zk.js → cynefinDiagram-NJNITYFG.dta2tfnh.js} +1 -1
  11. package/dist/chunks/{dagre-KIHZ2IZ3.7n7s7vq2.js → dagre-KIHZ2IZ3.k7b2vmwy.js} +1 -1
  12. package/dist/chunks/{diagram-7YQZDPLS.d3sdv0py.js → diagram-7YQZDPLS.cd2t0saz.js} +1 -1
  13. package/dist/chunks/{diagram-QBROCOUO.2v08zs42.js → diagram-QBROCOUO.1x4d8w7m.js} +1 -1
  14. package/dist/chunks/{diagram-RJJCUUZO.tpnwa621.js → diagram-RJJCUUZO.jk65d82z.js} +1 -1
  15. package/dist/chunks/{diagram-WERXNKYE.hz7tgbtr.js → diagram-WERXNKYE.85c3en4j.js} +1 -1
  16. package/dist/chunks/{diagram-YHHI257C.9gge9ecb.js → diagram-YHHI257C.y494n4nm.js} +1 -1
  17. package/dist/chunks/{diagram-YR4HJLHV.bajpx75b.js → diagram-YR4HJLHV.z2n88j9s.js} +1 -1
  18. package/dist/chunks/{ebnfDiagram-N527522P.hxbbq671.js → ebnfDiagram-N527522P.cgfkzbkp.js} +1 -1
  19. package/dist/chunks/{editor-shortcuts-dialog-I77EAez1.0s00eh53.js → editor-shortcuts-dialog-Ch8GFC-h.n66q7eep.js} +1 -1
  20. package/dist/chunks/editor.yc8q5dd1.js +4 -0
  21. package/dist/chunks/{elk-O5DQBFGD.vy7cdqps.js → elk-O5DQBFGD.188pnf8b.js} +1 -1
  22. package/dist/chunks/{emoji-picker-BofyuTmK.qf287fk6.js → emoji-picker-Cv6ZOgpd.cmp5h45n.js} +1 -1
  23. package/dist/chunks/{erDiagram-K3K3BIDK.kzs3v0ts.js → erDiagram-K3K3BIDK.abxf5cgs.js} +1 -1
  24. package/dist/chunks/eventmodeling-K75KTNOO.q3y4xbmj.js +1 -0
  25. package/dist/chunks/{flow-diagram-OPO1ep57.5006stqg.js → flow-diagram-B6X1M34-.awp18a9v.js} +1 -1
  26. package/dist/chunks/flowDiagram-Z6JWZHQI.af312t1k.js +1 -0
  27. package/dist/chunks/{ganttDiagram-3PRQTZWP.qkcp8pvg.js → ganttDiagram-3PRQTZWP.p72ak8vx.js} +1 -1
  28. package/dist/chunks/gitGraph-VSP46ZUC.e4envgw8.js +1 -0
  29. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.ry9dejxm.js → gitGraphDiagram-VXDFKS5L.vtq378bg.js} +1 -1
  30. package/dist/chunks/{grid-E2QIVN74.q51enfx7.js → grid-E2QIVN74.8xqrr45y.js} +1 -1
  31. package/dist/chunks/illustration-BpmMAKpO.brt46gkr.js +1 -0
  32. package/dist/chunks/{index.fvh2m60c.js → index.2jsv3483.js} +1 -1
  33. package/dist/chunks/index.5vcex75v.js +44 -0
  34. package/dist/chunks/{index.20dvswea.js → index.6tc2v7mk.js} +1 -1
  35. package/dist/chunks/{index.bfeafb22.js → index.8hmrz817.js} +1 -1
  36. package/dist/chunks/{index.eec12m3n.js → index.b0pypc3w.js} +1 -1
  37. package/dist/chunks/{index.yf0h5qnv.js → index.btq862bx.js} +1 -1
  38. package/dist/chunks/{index.fab58nn0.js → index.je7pqrtm.js} +1 -1
  39. package/dist/chunks/{index.51yk4ene.js → index.jgvp2nkv.js} +1 -1
  40. package/dist/chunks/{index.fgsp5qqn.js → index.mjfjqm0b.js} +2 -2
  41. package/dist/chunks/{index.vnhefjwh.js → index.nphh2dtn.js} +1 -1
  42. package/dist/chunks/{index.23p1k2rx.js → index.pb5tn7q8.js} +1 -1
  43. package/dist/chunks/{index.x163xe9c.js → index.psaka010.js} +1 -1
  44. package/dist/chunks/{index.153rcscj.js → index.qy1pndre.js} +1 -1
  45. package/dist/chunks/{index.gqa9s37g.js → index.r8wc9n4q.js} +1 -1
  46. package/dist/chunks/{index.x1xqs5m5.js → index.vm7ezzet.js} +1 -1
  47. package/dist/chunks/{index.q9dsw4bt.js → index.x22rwqsz.js} +1 -1
  48. package/dist/chunks/{index.h6120080.js → index.ybmxf4mt.js} +1 -1
  49. package/dist/chunks/{index.9zhger75.js → index.yd3167gn.js} +2 -2
  50. package/dist/chunks/info-OHQRW6UA.yhwzx56w.js +1 -0
  51. package/dist/chunks/{infoDiagram-EZ3ZOAHP.r2yygqw8.js → infoDiagram-EZ3ZOAHP.q0047zjz.js} +1 -1
  52. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.gwqtdvb2.js → ishikawaDiagram-S3EKX5GW.41wwb1jp.js} +1 -1
  53. package/dist/chunks/{journeyDiagram-POQNLL5X.rp31qkq5.js → journeyDiagram-POQNLL5X.2c9swtn6.js} +1 -1
  54. package/dist/chunks/{kanban-definition-BH5XI6FM.ymsqx6en.js → kanban-definition-BH5XI6FM.xznh9d30.js} +1 -1
  55. package/dist/chunks/{markup-color-chrome-ykGNUl8y.06cy435c.js → markup-color-chrome-ykGNUl8y.955bjndb.js} +1 -1
  56. package/dist/chunks/{markup-custom-color-C8Xc6JxB.an2wngns.js → markup-custom-color-Dou38qUi.w8c65wn1.js} +1 -1
  57. package/dist/chunks/{mention-list-Dhq70jL5.1k61f24q.js → mention-list-D4eNNVs0.2k5cdtgy.js} +1 -1
  58. package/dist/chunks/{mermaid.core.x45crg0h.js → mermaid.core.d680cq0m.js} +2 -2
  59. package/dist/chunks/{mindmap-definition-WVAN44T4.5cbd4rg2.js → mindmap-definition-WVAN44T4.k41b9d4r.js} +1 -1
  60. package/dist/chunks/packet-JDAUHWVQ.gp9cmm94.js +1 -0
  61. package/dist/chunks/{panel.nm4pj2wm.js → panel.yh0jnkha.js} +1 -1
  62. package/dist/chunks/{pegDiagram-D4NLKWP3.fsryts4r.js → pegDiagram-D4NLKWP3.x25624w6.js} +1 -1
  63. package/dist/chunks/pie-XZMESJXO.fx385qqa.js +1 -0
  64. package/dist/chunks/{pieDiagram-36ENHN4W.k4k2gvg0.js → pieDiagram-36ENHN4W.j4fq9134.js} +1 -1
  65. package/dist/chunks/{plated-illustration-BzxADkoZ.wtc9psry.js → plated-illustration-0ro04oJt.0ebg0x7r.js} +1 -1
  66. package/dist/chunks/{quadrantDiagram-ZQUDMS73.j7nj12w0.js → quadrantDiagram-ZQUDMS73.1vgwgk90.js} +1 -1
  67. package/dist/chunks/radar-ABXABTNO.d58r1mqp.js +1 -0
  68. package/dist/chunks/railroad-I3PHUGI6.cwq84f31.js +1 -0
  69. package/dist/chunks/railroad-abnf-LNEFI6M7.7z7d547m.js +1 -0
  70. package/dist/chunks/railroad-ebnf-DWYD2UWJ.geje0ygg.js +1 -0
  71. package/dist/chunks/railroad-peg-JR7BVNR7.f8xnzs1y.js +1 -0
  72. package/dist/chunks/{railroadDiagram-JIZHGYPL.a681wt3b.js → railroadDiagram-JIZHGYPL.pbv1rqfp.js} +1 -1
  73. package/dist/chunks/{render-VIF2ZAQL.rn9hpsbx.js → render-VIF2ZAQL.2kz294jj.js} +1 -1
  74. package/dist/chunks/{requirementDiagram-AXW2TVFA.shapgy39.js → requirementDiagram-AXW2TVFA.qnxmvqx8.js} +1 -1
  75. package/dist/chunks/{sankeyDiagram-FBCJTAIF.2syz1e2b.js → sankeyDiagram-FBCJTAIF.whv6dy60.js} +1 -1
  76. package/dist/chunks/{sequenceDiagram-3LA2ROMG.jq1w12a6.js → sequenceDiagram-3LA2ROMG.w52darq5.js} +1 -1
  77. package/dist/chunks/{sizeCapture-2Q2CQKSF.jtv53a6j.js → sizeCapture-2Q2CQKSF.zgscrz2v.js} +1 -1
  78. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.x0g2rngz.js → stateDiagram-v2-ATKHQDJO.zk8w1ht1.js} +1 -1
  79. package/dist/chunks/{swimlanes-YQL5WMAO.j7j7c6ex.js → swimlanes-YQL5WMAO.cn1pz0jc.js} +1 -1
  80. package/dist/chunks/swimlanesDiagram-UCCPES4V.cy9ywqbn.js +8 -0
  81. package/dist/chunks/{timeline-definition-7Z437IG3.s5bvn8dr.js → timeline-definition-7Z437IG3.atpqnb0j.js} +1 -1
  82. package/dist/chunks/treeView-D4JQ5SDB.fj76b06b.js +1 -0
  83. package/dist/chunks/treemap-SAJKECNS.yk7967y9.js +1 -0
  84. package/dist/chunks/{usecaseDiagram-RDK6N6HP.9k4r423e.js → usecaseDiagram-RDK6N6HP.ase4sfgd.js} +1 -1
  85. package/dist/chunks/{vennDiagram-SHRQU5PJ.82q5dzm6.js → vennDiagram-SHRQU5PJ.as8z3hh5.js} +1 -1
  86. package/dist/chunks/wardley-7MLQ67FV.r3k2k1ra.js +1 -0
  87. package/dist/chunks/{wardleyDiagram-F3OXNVQS.fm4tw2nc.js → wardleyDiagram-F3OXNVQS.8pf1xb65.js} +1 -1
  88. package/dist/chunks/{xychartDiagram-GDYJKCDI.57vqn2zd.js → xychartDiagram-GDYJKCDI.z35xw169.js} +1 -1
  89. package/dist/index.js +21 -5
  90. package/package.json +2 -2
  91. package/dist/chunks/architecture-WOLXFQ4H.6qa86taq.js +0 -1
  92. package/dist/chunks/cynefin-EF2NZ3EQ.e86yfa9w.js +0 -1
  93. package/dist/chunks/editor.h5bxwyxn.js +0 -4
  94. package/dist/chunks/eventmodeling-K75KTNOO.9yb5zf47.js +0 -1
  95. package/dist/chunks/flowDiagram-Z6JWZHQI.zf0kndsp.js +0 -1
  96. package/dist/chunks/gitGraph-VSP46ZUC.txpj8e6d.js +0 -1
  97. package/dist/chunks/illustration-BoOzuxNg.h0gnxa4s.js +0 -1
  98. package/dist/chunks/index.0hrfbrja.js +0 -44
  99. package/dist/chunks/info-OHQRW6UA.xea9bh7d.js +0 -1
  100. package/dist/chunks/packet-JDAUHWVQ.c7dmae11.js +0 -1
  101. package/dist/chunks/pie-XZMESJXO.6rv4kzjx.js +0 -1
  102. package/dist/chunks/radar-ABXABTNO.58dfc8ba.js +0 -1
  103. package/dist/chunks/railroad-I3PHUGI6.00fqbahv.js +0 -1
  104. package/dist/chunks/railroad-abnf-LNEFI6M7.gt1x50q5.js +0 -1
  105. package/dist/chunks/railroad-ebnf-DWYD2UWJ.qr5qfkga.js +0 -1
  106. package/dist/chunks/railroad-peg-JR7BVNR7.m61rq7hj.js +0 -1
  107. package/dist/chunks/swimlanesDiagram-UCCPES4V.tzqcsrmd.js +0 -8
  108. package/dist/chunks/treeView-D4JQ5SDB.0x1grm2t.js +0 -1
  109. package/dist/chunks/treemap-SAJKECNS.1te19jsm.js +0 -1
  110. package/dist/chunks/wardley-7MLQ67FV.zp6gykk3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{E,d,P,l,H,Ns,Z,w,Ze,i,o,X,T,r,a,G,Nr,B,s,v,J,ne,W,ht,At,Tn,wr,Cn,Se,Bl,Tr,Fo,Cr,rn,x,Rn,jt,nn,Ks,Ys,jo,Ei,va,Ai}from"./index.0hrfbrja.js";import{oa}from"./index.q9dsw4bt.js";var ue={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};ue.node;var ee=x(ue);var de={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};de.node;var fe=x(de);var me=/mac|iphone|ipad|ipod/i;function te(c){if(c!==void 0)return me.test(c);if(typeof navigator>"u")return!1;return me.test(navigator.platform||navigator.userAgent||"")}function q(c){let e=c.trim(),t=e.endsWith("+"),n=t?"+":e.slice(e.lastIndexOf("+")+1),h=t?e.slice(0,-1):e.slice(0,-(n.length+1)),u=new Set(h.toLowerCase().split("+").map((f)=>f.trim()));return{mod:u.has("mod"),ctrl:u.has("ctrl")||u.has("control"),meta:u.has("meta")||u.has("cmd")||u.has("⌘"),alt:u.has("alt")||u.has("option"),shift:u.has("shift"),key:n.toLowerCase()}}function ge(c){let e=q(c);return e.mod||e.ctrl||e.meta||e.alt}function ie(c){return!ge(c)&&[...q(c).key].length===1}var pe=(c)=>c.length===1?c.toUpperCase():c;function se(c,e){if(!c)return;let t=q(c),n=[...t.alt?["Alt"]:[],...t.shift?["Shift"]:[],pe(t.key)],h=(m)=>[...m,...n].join("+");if(!t.mod)return h([...t.ctrl?["Control"]:[],...t.meta?["Meta"]:[]]);let u=h(["Meta"]),f=h(["Control"]);return e===void 0?`${u} ${f}`:e?u:f}function re(c,e=!1){let t=q(c),n=e||t.meta,h=[...t.ctrl||t.mod&&!n?[n?"⌃":"Ctrl"]:[],...t.alt?[n?"⌥":"Alt"]:[],...t.shift?[n?"⇧":"Shift"]:[],...t.meta||t.mod&&n?[n?"⌘":"Meta"]:[]],u=pe(t.key);return n?`${h.join("")}${u}`:[...h,u].join(" ")}function ke(c){let e=c?.trim();if(!e)return"general";return e.toLowerCase().replace(/ & /g,"_").replace(/\s+/g,"_")}function ve(c,e){let t={all:c},n=e.map((h)=>c.find((u)=>u.name===h)).filter((h)=>Boolean(h));if(n.length>0)t.recent=n;for(let h of c){let u=ke(h.group);t[u]=[...t[u]??[],h]}return Object.fromEntries(Object.entries(t).filter(([,h])=>h.length>0))}function be(c,e){let t=e.trim().toLowerCase();if(!t)return null;return c.filter((n)=>{if(n.name.toLowerCase().includes(t))return!0;return n.shortcodes?.some((h)=>h.toLowerCase().includes(t))})}var je={all:"All",recent:"Recent",general:"General",smileys_emotion:"Smileys & emotion",people_body:"People & body",components:"Components",animals_nature:"Animals & nature",food_drink:"Food & drink",travel_places:"Travel & places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"};function ye(c){let e=c.replace(/_/g," ");return je[c]??e.charAt(0).toUpperCase()+e.slice(1)}var De=function(c,e,t){if(!jo)return[e,Ys,Ys];if(!c)throw Error("useLocalStorage key may not be falsy");var n=t?t.raw?function(b){return b}:t.deserializer:JSON.parse,h=i(function(b){try{var p=t?t.raw?String:t.serializer:JSON.stringify,g=localStorage.getItem(b);return g===null?(e&&localStorage.setItem(b,p(e)),e):n(g)}catch{return e}}),u=o(function(){return h.current(c)}),f=u[0],m=u[1];return Z(function(){return m(h.current(c))},[c]),[f,d(function(b){try{var p=typeof b=="function"?b(f):b;if(p===void 0)return;var g=void 0;g=t?t.raw?typeof p=="string"?p:JSON.stringify(p):t.serializer?t.serializer(p):JSON.stringify(p):JSON.stringify(p),localStorage.setItem(c,g),m(n(g))}catch{}},[c,m]),d(function(){try{localStorage.removeItem(c),m(void 0)}catch{}},[c,m])]},Le=new Set(["button","checkbox","color","file","image","radio","reset","submit"]);function Re(c){let e,t;try{e=c.selectionStart,t=c.selectionEnd}catch{return null}return e===null||t===null?null:{atStart:t===0,atEnd:e===c.value.length}}function Ke(c){let e=c.target;if(e.isContentEditable||c.nativeEvent.isComposing)return!0;let t=c.key==="ArrowUp"||c.key==="ArrowDown";if(e instanceof HTMLSelectElement)return t;let n=e instanceof HTMLInputElement&&!Le.has(e.type)||e instanceof HTMLTextAreaElement?e:null;if(!n)return!1;let h=Re(n);if(!h||t)return!0;let u=getComputedStyle(e).direction==="rtl",f=u?"ArrowRight":"ArrowLeft",m=u?"ArrowLeft":"ArrowRight";return c.key===f||c.key==="Home"?!h.atStart:c.key===m||c.key==="End"?!h.atEnd:!1}var Ne=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function Fe(c){if(!Ne.has(c.key)||!Ke(c))return;let e=!0;Object.defineProperty(c,"defaultPrevented",{configurable:!0,get:()=>e?(e=!1,!0):c.nativeEvent.defaultPrevented})}var ce=E({inside:!1,spilled:new Set,entries:new Map,dir:"ltr",orientation:"horizontal",overflowing:!1,moreAnchor:{current:null},focusLost:{current:null}}),Pe=E(null);E(null);function We(c,e){let t=H(),{inside:n,spilled:h,entries:u}=P(ce),f=P(Pe);Z(()=>{n&&u.set(t,c)}),Z(()=>()=>void u.delete(t),[u,t]);let m=n&&(!!f?.spilled||h.has(t));return{id:t,spilled:m,inside:n,props:n?{"data-toolbar-id":t,"data-toolbar-priority":f?void 0:e,hidden:m||void 0,"data-toolbar-unlisted":c.more?.kind==="none"?"":void 0,"data-toolbar-choice":c.group?c.choice:void 0}:{}}}function Ve({own:c,folded:e}){let{moreAnchor:t}=P(ce),n=Bl(),h=w(()=>({get current(){return e?t.current:c.current},set current(u){}}),[e,c,t]);return n?r(rn,{virtualRef:h}):null}function He(c,e){let{inside:t,focusLost:n}=P(ce),h=i(null);return d((u)=>{if(!c||!t)h.current=u;else if(u===null){let f=h.current;if(h.current=null,f&&f.ownerDocument.activeElement===f){let m={label:e};n.current=m,queueMicrotask(()=>{n.current===m&&(n.current=null)})}}else if(h.current=u,n.current?.label===e){n.current=null;let{activeElement:f,body:m}=u.ownerDocument;f&&f!==m||u.focus({preventScroll:!0})}},[c,t,e,n])}function $e({children:c,label:e,icon:t,toggle:n,priority:h,onSelect:u,more:f,onKeyDown:m,fit:b,shape:p="pill",...g}){let{inside:S,spilled:M,props:O}=We({label:e,icon:t,toggle:n,onSelect:u,more:f},h),A=i(null),C=He(f?.kind==="popover",e),y=G(A,g.ref,C);return S?a(T,{children:[f?.kind==="popover"?r(Ve,{own:A,folded:M}):null,r(oa,{asChild:!0,...g,ref:y,...qe(c),onKeyDown:B(m,Fe),...O,"data-toolbar-item":"","data-toolbar-shape":p,"data-toolbar-fit":b??!Ce(c)?"":void 0,children:c})]}):r(Nr,{...g,onKeyDown:m,children:c})}function qe(c){let e=c.props;return c.type==="input"?{type:e.type??"text"}:Ce(c)?{type:void 0}:{}}var Ce=(c)=>c.type==="input"||c.type==="textarea"||c.type==="select",Je="--glyph-cell-size",Be="--glyph-gap",Ue="relative max-h-52 overflow-auto px-px pb-0.5 outline-none [overflow-anchor:none] [--glyph-cell-size:36px] pointer-coarse:[--glyph-cell-size:44px] [--glyph-gap:2px] [--scroll-fade-size:1rem] [scrollbar-gutter:stable_both-edges] scroll-fade-y",Ge="grid justify-center gap-(--glyph-gap) [grid-auto-rows:var(--gg-cell,var(--glyph-cell-size))] [grid-template-rows:repeat(var(--gg-rows),var(--gg-cell,var(--glyph-cell-size)))] [grid-template-columns:repeat(var(--gg-cols,8),var(--gg-cell,var(--glyph-cell-size)))]",Qe="flex size-[var(--gg-cell,var(--glyph-cell-size))] [grid-row:var(--gg-row)] [grid-column:var(--gg-col)] relative cursor-pointer items-center justify-center rounded-md text-xl transition outline-none hover:bg-card-tint-8 dark:hover:bg-card-tint-12 aria-selected:bg-card-tint-12 aria-selected:hover:bg-card-tint-18 aria-selected:inset-ring-2 aria-selected:inset-ring-primary-indicator dark:aria-selected:bg-card-tint-20 dark:aria-selected:hover:bg-card-tint-18 focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card";function Ye({item:c,itemKey:e,index:t,i:n,size:h,cols:u,active:f,shared:m}){let b=e===m.selectedKey;return r("div",{role:"option","data-glyph-key":e,tabIndex:f?0:-1,"aria-selected":b,"aria-label":m.getLabel?.(c),"aria-setsize":h,"aria-posinset":n+1,className:Qe,ref:(p)=>{p?.style.setProperty("--gg-row",String(Math.floor(n/u)+1)),p?.style.setProperty("--gg-col",String(n%u+1))},onFocus:()=>{m.setActive({s:t,i:n}),m.onHighlight?.(c)},onMouseEnter:()=>m.onHighlight?.(c),onMouseLeave:()=>m.onHighlight?.(null),onClick:()=>m.onPick(c),children:m.renderItem(c,{selected:b,active:f})})}function Xe(c){return typeof c=="object"?c.key:c}function et(c,e){let t=c.length;return new Proxy(c,{get(n,h,u){if(typeof h=="string"){let f=h.charCodeAt(0);if(f>=48&&f<=57){let m=+h;if(Number.isInteger(m)&&m>=0&&m<t){let b=n[m];if(typeof b!="object"){let p=e[m*2];b=n[m]={index:m,key:b,start:p,size:e[m*2+1],end:p+e[m*2+1],lane:0}}return b}}if(h==="length")return t}return Reflect.get(n,h,u)}})}function N(c,e,t){let n=t.initialDeps??[],h,u=!0;function f(){let m=!1,b=0;m&&(b=Date.now());let p=c();if(!(p.length!==n.length||p.some((S,M)=>n[M]!==S)))return h;n=p;let g=0;if(m&&(g=Date.now()),h=e(...p),m){let S=Math.round((Date.now()-b)*100)/100,M=Math.round((Date.now()-g)*100)/100,O=M/16,A=(C,y)=>{for(C=String(C);C.length<y;)C=" "+C;return C};console.info(`%c⏱ ${A(M,5)} /${A(S,5)} ms`,`
1
+ import{E,d,P,l,H,Ns,Z,w,Ze,i,o,X,T,r,a,G,Nr,B,s,v,J,ne,W,ht,At,Tn,wr,Cn,Se,Bl,Tr,Fo,Cr,rn,x,Rn,jt,nn,Ks,Ys,jo,Ei,va,Ai}from"./index.5vcex75v.js";import{oa}from"./index.x22rwqsz.js";var ue={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};ue.node;var ee=x(ue);var de={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};de.node;var fe=x(de);var me=/mac|iphone|ipad|ipod/i;function te(c){if(c!==void 0)return me.test(c);if(typeof navigator>"u")return!1;return me.test(navigator.platform||navigator.userAgent||"")}function q(c){let e=c.trim(),t=e.endsWith("+"),n=t?"+":e.slice(e.lastIndexOf("+")+1),h=t?e.slice(0,-1):e.slice(0,-(n.length+1)),u=new Set(h.toLowerCase().split("+").map((f)=>f.trim()));return{mod:u.has("mod"),ctrl:u.has("ctrl")||u.has("control"),meta:u.has("meta")||u.has("cmd")||u.has("⌘"),alt:u.has("alt")||u.has("option"),shift:u.has("shift"),key:n.toLowerCase()}}function ge(c){let e=q(c);return e.mod||e.ctrl||e.meta||e.alt}function ie(c){return!ge(c)&&[...q(c).key].length===1}var pe=(c)=>c.length===1?c.toUpperCase():c;function se(c,e){if(!c)return;let t=q(c),n=[...t.alt?["Alt"]:[],...t.shift?["Shift"]:[],pe(t.key)],h=(m)=>[...m,...n].join("+");if(!t.mod)return h([...t.ctrl?["Control"]:[],...t.meta?["Meta"]:[]]);let u=h(["Meta"]),f=h(["Control"]);return e===void 0?`${u} ${f}`:e?u:f}function re(c,e=!1){let t=q(c),n=e||t.meta,h=[...t.ctrl||t.mod&&!n?[n?"⌃":"Ctrl"]:[],...t.alt?[n?"⌥":"Alt"]:[],...t.shift?[n?"⇧":"Shift"]:[],...t.meta||t.mod&&n?[n?"⌘":"Meta"]:[]],u=pe(t.key);return n?`${h.join("")}${u}`:[...h,u].join(" ")}function ke(c){let e=c?.trim();if(!e)return"general";return e.toLowerCase().replace(/ & /g,"_").replace(/\s+/g,"_")}function ve(c,e){let t={all:c},n=e.map((h)=>c.find((u)=>u.name===h)).filter((h)=>Boolean(h));if(n.length>0)t.recent=n;for(let h of c){let u=ke(h.group);t[u]=[...t[u]??[],h]}return Object.fromEntries(Object.entries(t).filter(([,h])=>h.length>0))}function be(c,e){let t=e.trim().toLowerCase();if(!t)return null;return c.filter((n)=>{if(n.name.toLowerCase().includes(t))return!0;return n.shortcodes?.some((h)=>h.toLowerCase().includes(t))})}var je={all:"All",recent:"Recent",general:"General",smileys_emotion:"Smileys & emotion",people_body:"People & body",components:"Components",animals_nature:"Animals & nature",food_drink:"Food & drink",travel_places:"Travel & places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"};function ye(c){let e=c.replace(/_/g," ");return je[c]??e.charAt(0).toUpperCase()+e.slice(1)}var De=function(c,e,t){if(!jo)return[e,Ys,Ys];if(!c)throw Error("useLocalStorage key may not be falsy");var n=t?t.raw?function(b){return b}:t.deserializer:JSON.parse,h=i(function(b){try{var p=t?t.raw?String:t.serializer:JSON.stringify,g=localStorage.getItem(b);return g===null?(e&&localStorage.setItem(b,p(e)),e):n(g)}catch{return e}}),u=o(function(){return h.current(c)}),f=u[0],m=u[1];return Z(function(){return m(h.current(c))},[c]),[f,d(function(b){try{var p=typeof b=="function"?b(f):b;if(p===void 0)return;var g=void 0;g=t?t.raw?typeof p=="string"?p:JSON.stringify(p):t.serializer?t.serializer(p):JSON.stringify(p):JSON.stringify(p),localStorage.setItem(c,g),m(n(g))}catch{}},[c,m]),d(function(){try{localStorage.removeItem(c),m(void 0)}catch{}},[c,m])]},Le=new Set(["button","checkbox","color","file","image","radio","reset","submit"]);function Re(c){let e,t;try{e=c.selectionStart,t=c.selectionEnd}catch{return null}return e===null||t===null?null:{atStart:t===0,atEnd:e===c.value.length}}function Ke(c){let e=c.target;if(e.isContentEditable||c.nativeEvent.isComposing)return!0;let t=c.key==="ArrowUp"||c.key==="ArrowDown";if(e instanceof HTMLSelectElement)return t;let n=e instanceof HTMLInputElement&&!Le.has(e.type)||e instanceof HTMLTextAreaElement?e:null;if(!n)return!1;let h=Re(n);if(!h||t)return!0;let u=getComputedStyle(e).direction==="rtl",f=u?"ArrowRight":"ArrowLeft",m=u?"ArrowLeft":"ArrowRight";return c.key===f||c.key==="Home"?!h.atStart:c.key===m||c.key==="End"?!h.atEnd:!1}var Ne=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function Fe(c){if(!Ne.has(c.key)||!Ke(c))return;let e=!0;Object.defineProperty(c,"defaultPrevented",{configurable:!0,get:()=>e?(e=!1,!0):c.nativeEvent.defaultPrevented})}var ce=E({inside:!1,spilled:new Set,entries:new Map,dir:"ltr",orientation:"horizontal",overflowing:!1,moreAnchor:{current:null},focusLost:{current:null}}),Pe=E(null);E(null);function We(c,e){let t=H(),{inside:n,spilled:h,entries:u}=P(ce),f=P(Pe);Z(()=>{n&&u.set(t,c)}),Z(()=>()=>void u.delete(t),[u,t]);let m=n&&(!!f?.spilled||h.has(t));return{id:t,spilled:m,inside:n,props:n?{"data-toolbar-id":t,"data-toolbar-priority":f?void 0:e,hidden:m||void 0,"data-toolbar-unlisted":c.more?.kind==="none"?"":void 0,"data-toolbar-choice":c.group?c.choice:void 0}:{}}}function Ve({own:c,folded:e}){let{moreAnchor:t}=P(ce),n=Bl(),h=w(()=>({get current(){return e?t.current:c.current},set current(u){}}),[e,c,t]);return n?r(rn,{virtualRef:h}):null}function He(c,e){let{inside:t,focusLost:n}=P(ce),h=i(null);return d((u)=>{if(!c||!t)h.current=u;else if(u===null){let f=h.current;if(h.current=null,f&&f.ownerDocument.activeElement===f){let m={label:e};n.current=m,queueMicrotask(()=>{n.current===m&&(n.current=null)})}}else if(h.current=u,n.current?.label===e){n.current=null;let{activeElement:f,body:m}=u.ownerDocument;f&&f!==m||u.focus({preventScroll:!0})}},[c,t,e,n])}function $e({children:c,label:e,icon:t,toggle:n,priority:h,onSelect:u,more:f,onKeyDown:m,fit:b,shape:p="pill",...g}){let{inside:S,spilled:M,props:O}=We({label:e,icon:t,toggle:n,onSelect:u,more:f},h),A=i(null),C=He(f?.kind==="popover",e),y=G(A,g.ref,C);return S?a(T,{children:[f?.kind==="popover"?r(Ve,{own:A,folded:M}):null,r(oa,{asChild:!0,...g,ref:y,...qe(c),onKeyDown:B(m,Fe),...O,"data-toolbar-item":"","data-toolbar-shape":p,"data-toolbar-fit":b??!Ce(c)?"":void 0,children:c})]}):r(Nr,{...g,onKeyDown:m,children:c})}function qe(c){let e=c.props;return c.type==="input"?{type:e.type??"text"}:Ce(c)?{type:void 0}:{}}var Ce=(c)=>c.type==="input"||c.type==="textarea"||c.type==="select",Je="--glyph-cell-size",Be="--glyph-gap",Ue="relative max-h-52 overflow-auto px-px pb-0.5 outline-none [overflow-anchor:none] [--glyph-cell-size:36px] pointer-coarse:[--glyph-cell-size:44px] [--glyph-gap:2px] [--scroll-fade-size:1rem] [scrollbar-gutter:stable_both-edges] scroll-fade-y",Ge="grid justify-center gap-(--glyph-gap) [grid-auto-rows:var(--gg-cell,var(--glyph-cell-size))] [grid-template-rows:repeat(var(--gg-rows),var(--gg-cell,var(--glyph-cell-size)))] [grid-template-columns:repeat(var(--gg-cols,8),var(--gg-cell,var(--glyph-cell-size)))]",Qe="flex size-[var(--gg-cell,var(--glyph-cell-size))] [grid-row:var(--gg-row)] [grid-column:var(--gg-col)] relative cursor-pointer items-center justify-center rounded-md text-xl transition outline-none hover:bg-card-tint-8 dark:hover:bg-card-tint-12 aria-selected:bg-card-tint-12 aria-selected:hover:bg-card-tint-18 aria-selected:inset-ring-2 aria-selected:inset-ring-primary-indicator dark:aria-selected:bg-card-tint-20 dark:aria-selected:hover:bg-card-tint-18 focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card";function Ye({item:c,itemKey:e,index:t,i:n,size:h,cols:u,active:f,shared:m}){let b=e===m.selectedKey;return r("div",{role:"option","data-glyph-key":e,tabIndex:f?0:-1,"aria-selected":b,"aria-label":m.getLabel?.(c),"aria-setsize":h,"aria-posinset":n+1,className:Qe,ref:(p)=>{p?.style.setProperty("--gg-row",String(Math.floor(n/u)+1)),p?.style.setProperty("--gg-col",String(n%u+1))},onFocus:()=>{m.setActive({s:t,i:n}),m.onHighlight?.(c)},onMouseEnter:()=>m.onHighlight?.(c),onMouseLeave:()=>m.onHighlight?.(null),onClick:()=>m.onPick(c),children:m.renderItem(c,{selected:b,active:f})})}function Xe(c){return typeof c=="object"?c.key:c}function et(c,e){let t=c.length;return new Proxy(c,{get(n,h,u){if(typeof h=="string"){let f=h.charCodeAt(0);if(f>=48&&f<=57){let m=+h;if(Number.isInteger(m)&&m>=0&&m<t){let b=n[m];if(typeof b!="object"){let p=e[m*2];b=n[m]={index:m,key:b,start:p,size:e[m*2+1],end:p+e[m*2+1],lane:0}}return b}}if(h==="length")return t}return Reflect.get(n,h,u)}})}function N(c,e,t){let n=t.initialDeps??[],h,u=!0;function f(){let m=!1,b=0;m&&(b=Date.now());let p=c();if(!(p.length!==n.length||p.some((S,M)=>n[M]!==S)))return h;n=p;let g=0;if(m&&(g=Date.now()),h=e(...p),m){let S=Math.round((Date.now()-b)*100)/100,M=Math.round((Date.now()-g)*100)/100,O=M/16,A=(C,y)=>{for(C=String(C);C.length<y;)C=" "+C;return C};console.info(`%c⏱ ${A(M,5)} /${A(S,5)} ms`,`
2
2
  font-size: .6rem;
3
3
  font-weight: bold;
4
4
  color: hsl(${Math.max(0,Math.min(120-120*O,120))}deg 100% 31%);`,t?.key)}return t?.onChange&&!(u&&t.skipInitialOnChange)&&t.onChange(h),u=!1,h}return f.updateDeps=(m)=>{n=m},f}function xe(c,e){if(c===void 0)throw Error(`Unexpected undefined${e?`: ${e}`:""}`);return c}var tt=(c,e)=>Math.abs(c-e)<1.01,it=(c,e,t)=>{let n;return Object.assign(function(...h){c.clearTimeout(n),n=c.setTimeout(()=>e.apply(this,h),t)},{cancel:()=>{c.clearTimeout(n)}})},U,le=()=>{if(U!==void 0)return U;if(typeof navigator>"u")return U=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return U=!0;let c=navigator.maxTouchPoints;return U=navigator.platform==="MacIntel"&&c!==void 0&&c>0},we=(c)=>{let{offsetWidth:e,offsetHeight:t}=c;return{width:e,height:t}},nt=(c)=>c,Te=(c)=>{let e=Math.max(c.startIndex-c.overscan,0),t=Math.min(c.endIndex+c.overscan,c.count-1)-e+1,n=Array(t);for(let h=0;h<t;h++)n[h]=e+h;return n},st=(c,e)=>{let t=c.scrollElement;if(!t)return;let n=c.targetWindow;if(!n)return;let h=(f)=>{let{width:m,height:b}=f;e({width:Math.round(m),height:Math.round(b)})};if(h(we(t)),!n.ResizeObserver)return()=>{};let u=new n.ResizeObserver((f)=>{let m=()=>{let b=f[0];if(b?.borderBoxSize){let p=b.borderBoxSize[0];if(p){h({width:p.inlineSize,height:p.blockSize});return}}h(we(t))};c.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()});return u.observe(t,{box:"border-box"}),()=>{u.unobserve(t)}},Q={passive:!0},rt=typeof window>"u"||"onscrollend"in window,lt=(c,e,t)=>{let n=c.scrollElement;if(!n)return;let h=c.targetWindow;if(!h)return;let u=c.options.useScrollendEvent&&rt,f=0,m=u?null:it(h,()=>e(f,!1),c.options.isScrollingResetDelay),b=(S)=>()=>{f=t(n),m?.(),e(f,S)},p=b(!0),g=b(!1);return n.addEventListener("scroll",p,Q),u&&n.addEventListener("scrollend",g,Q),()=>{n.removeEventListener("scroll",p),u&&n.removeEventListener("scrollend",g),m?.cancel()}},ot=(c,e)=>lt(c,e,(t)=>{let{horizontal:n,isRtl:h}=c.options;return n?t.scrollLeft*(h&&-1||1):t.scrollTop}),at=(c,e,t)=>{if(t.options.useCachedMeasurements){let n=t.indexFromElement(c),h=t.options.getItemKey(n);return t.itemSizeCache.get(h)??t.options.estimateSize(n)}if(e?.borderBoxSize){let n=e.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}if(!e){let n=t.indexFromElement(c),h=t.options.getItemKey(n),u=t.itemSizeCache.get(h);if(u!==void 0)return u}return c[t.options.horizontal?"offsetWidth":"offsetHeight"]},ct=(c,{adjustments:e=0,behavior:t},n)=>{var h,u;(u=(h=n.scrollElement)?.scrollTo)==null||u.call(h,{[n.options.horizontal?"left":"top"]:c+e,behavior:t})};function ut(c,e,t,n){if(e===0)return!1;let h=n(0),u=new Set,f=0;for(;f<c;){let b=t(f);if(b===h)break;u.add(b),f++}let m=c-f;if(m===0||m>=e)return!1;for(let b=0;b<m;b++)if(n(b)!==t(f+b))return!1;for(let b=m;b<e;b++)if(u.has(n(b)))return!1;return!0}var dt=class{constructor(c){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e;return(e=this.targetWindow?.performance)?.now?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver((n)=>{n.forEach((h)=>{let u=()=>{let f=h.target,m=this.indexFromElement(f);if(f.isConnected)this.isIndexInRange(m)&&this.shouldMeasureDuringScroll(m)&&this.resizeItem(m,this.options.measureElement(f,h,this));else{this.observer.unobserve(f);for(let[b,p]of this.elementsCache)if(p===f){this.elementsCache.delete(b);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:(n)=>t()?.observe(n,{box:"border-box"}),unobserve:(n)=>t()?.unobserve(n)}})(),this.range=null,this.setOptions=(e)=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nt,rangeExtractor:Te,onChange:()=>{},measureElement:at,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let p in e){let g=e[p];g!==void 0&&(t[p]=g)}let n=this.options,h=null,u=null,f=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo==="end"&&this.scrollElement!==null){let p=n.count,g=t.count,S=this.getMeasurements(),M=this._singleLaneMeasurements?.items??S,O=(y)=>Xe(M[y]),A=p>0?O(0):null,C=p>0?O(p-1):null;if(g!==p||p>0&&g>0&&(t.getItemKey(0)!==A||t.getItemKey(g-1)!==C)){f=!0;let y=p>0?this.getVirtualItemForOffset(this.getScrollOffset())??S[0]:null;y&&(h=[y.key,this.getScrollOffset()-y.start]);let _=t.followOnAppend===!0?"auto":t.followOnAppend||null;_&&g>0&&this.isAtEnd(n.scrollEndThreshold)&&(p===0||t.getItemKey(g-1)!==C)&&(g>p||ut(p,g,O,t.getItemKey))&&(u=_)}}this.options=t,f&&(this.pendingMin=0,this.itemSizeCacheVersion++);let m=!1,b=0;if(h&&this.scrollOffset!==null){let[p,g]=h,S=this.getMeasurements(),{count:M,getItemKey:O}=this.options,A=0;for(;A<M&&O(A)!==p;)A++;if(A<M){let C=S[A];if(C){let y=Math.max(0,C.start+g);!u&&y!==this.scrollOffset&&(b=y-this.scrollOffset,this.scrollOffset=y,m=!0)}}}(m||u)&&(this.pendingScrollAnchor=[m?h[0]:null,m?h[1]:0,u,b])},this.notify=(e)=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=N(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),(e)=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e)=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&"ownerDocument"in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach((n)=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,(n)=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,h)=>{if(h&&this._intendedScrollOffset===null&&n===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(n-this._intendedScrollOffset)<1.5&&(n=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(n-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let u=this.getScrollOffset();this.scrollDirection=h?u===n?this.scrollDirection:u<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=h,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let n=this.scrollElement,h=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},u=()=>{this._iosTouching=!1,le()&&this.targetWindow!=null&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};n.addEventListener("touchstart",h,Q),n.addEventListener("touchend",u,Q),this.unsubs.push(()=>{n.removeEventListener("touchstart",h),n.removeEventListener("touchend",u),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[n,h,u,f]=t;n!==null&&!u&&(le()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?f!==0&&(this._iosDeferredAdjustment+=f):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),u&&this.scrollToEnd({behavior:u})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+0.5&&(this._clampedAdjustment=e>n+0.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=N(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,h,u,f,m,b)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:h,enabled:u,lanes:f,laneAssignmentMode:m,gap:b}),{key:!1}),this.isIndexInRange=(e)=>e>=0&&e<this.options.count,this.getMeasurements=N(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:h,enabled:u,lanes:f,laneAssignmentMode:m,gap:b},p)=>{let g=this.itemSizeCache;if(!u)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let y of this.laneAssignments.keys())y>=e&&this.laneAssignments.delete(y);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((y)=>{this.itemSizeCache.set(y.key,y.size)}));let S=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),f===1){let y=e*2,_=this._singleLaneMeasurements?.flat;if(!_||_.length<y){let k=new Float64Array(y);_&&S>0&&k.set(_.subarray(0,S*2)),_=k}let z=S===0?Array(e):this._singleLaneMeasurements.items.slice(),I;if(S===0)I=t+n;else{let k=S-1;I=_[k*2]+_[k*2+1]+b}for(let k=S;k<e;k++){let D=h(k);z[k]=D;let L=g.get(D),F=typeof L=="number"?L:this.options.estimateSize(k);_[k*2]=I,_[k*2+1]=F,I+=F+b}this._singleLaneMeasurements={flat:_,items:z};let j=et(z,_);return this.measurementsCache=j,j}let M=this.measurementsCache.slice(0,S),O=Array(f).fill(void 0),A=new Float64Array(f),C=0;for(let y=0;y<S;y++){let _=M[y];_&&(O[_.lane]===void 0&&C++,O[_.lane]=y,A[_.lane]=_.end)}for(let y=S;y<e;y++){let _=h(y),z=this.laneAssignments.get(y),I,j,k=m==="estimate"||g.has(_);if(z!==void 0&&this.options.lanes>1){I=z;let V=O[I],R=V===void 0?void 0:M[V];j=R?R.end+b:t+n}else if(C===f){let V=0,R=A[0],he=O[0];for(let K=1;K<f;K++){let Y=A[K];(Y<R||Y===R&&O[K]<he)&&(V=K,R=Y,he=O[K])}I=V,j=R+b,k&&this.laneAssignments.set(y,I)}else I=y%this.options.lanes,j=t+n,k&&this.laneAssignments.set(y,I);let D=g.get(_),L=typeof D=="number"?D:this.options.estimateSize(y),F=j+L;M[y]={index:y,start:j,size:L,end:F,key:_,lane:I},O[I]===void 0&&C++,O[I]=y,A[I]=F}return this.measurementsCache=M,M},{key:!1,debug:()=>this.options.debug}),this.calculateRange=N(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,h)=>e.length===0||t===0?(this.range=null,null):(this.range=mt(e,t,n,h,h===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=N(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,h,u)=>h===null||u===null?[]:e({startIndex:h,endIndex:u,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=(e)=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=(e)=>{if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),h=Math.max(0,t-n),u=Math.min(this.options.count-1,t+n);return e>=h&&e<=u}return!0},this.measureElement=(e)=>{if(!e){this.elementsCache.forEach((u,f)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(f))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),h=this.elementsCache.get(n);h!==e&&(h&&this.observer.unobserve(h),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(!this.isIndexInRange(e))return;let n,h,u,f=this._singleLaneMeasurements?.flat;if(this.options.lanes===1&&f!=null)u=this.options.getItemKey(e),h=f[e*2],n=f[e*2+1];else{let p=this.measurementsCache[e];if(!p)return;u=p.key,h=p.start,n=p.size}let m=this.itemSizeCache.get(u)??n,b=t-m;if(b!==0){let p=this.options.anchorTo==="end"&&this.scrollState?.behavior!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,g=p?this.getTotalSize():0,S=this.getScrollOffset()+this.scrollAdjustments,M=this.itemSizeCache.has(u)?h+m<=S&&this.scrollDirection!=="backward":h<S,O=this.scrollState?.behavior!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?M:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:u,start:h,size:n,end:h+n,lane:0},b,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(u,t),this.itemSizeCacheVersion++;let A=!1;p?A=this.applyScrollAdjustment(this.getTotalSize()-g):O&&(A=this.applyScrollAdjustment(b)),this.notify(A),this._retryClampedAdjustment()}},this.getVirtualItems=N(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let h=0,u=e.length;h<u;h++){let f=t[e[h]];n.push(f)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=(e)=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._singleLaneMeasurements?.flat,h=this.options.lanes===1&&n!=null;return xe(t[Oe(0,t.length-1,h?(u)=>n[u*2]:(u)=>xe(t[u]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let h=this.getSize(),u=this.getScrollOffset();t==="auto"&&(t=e>=u+h?"end":"start"),t==="center"?e+=(n-h)/2:t==="end"&&(e-=h);let f=this.getMaxScrollOffset();return Math.max(Math.min(f,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),h=this.getScrollOffset(),u=this.measurementsCache[e];if(!u)return;if(t==="auto")if(u.end>=h+n-this.options.scrollPaddingEnd)t="end";else if(u.start<=h+this.options.scrollPaddingStart)t="start";else return[h,t];if(t==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let f=t==="end"?u.end+this.options.scrollPaddingEnd:u.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,t,u.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let h=this.getOffsetForAlignment(e,t),u=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:u,lastTargetOffset:h,stableFrames:0},this._scrollToOffset(h,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let h=this.getOffsetForIndex(e,t);if(!h)return;let[u,f]=h,m=this.now();this.scrollState={index:e,align:f,behavior:n,startedAt:m,lastTargetOffset:u,stableFrames:0},this._scrollToOffset(u,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,h=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:h,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,h=this._singleLaneMeasurements?.flat;t=h==null?e[n]?.end??0:h[n*2]+h[n*2+1]}else{let n=Array(this.options.lanes).fill(null),h=e.length-1;for(;h>=0&&n.some((u)=>u===null);){let u=e[h];n[u.lane]===null&&(n[u.lane]=u.end),h--}t=Math.max(...n.filter((u)=>u!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(c)}applyScrollAdjustment(c,e){if(c===0)return!1;if(le()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=c,!1;{let t=this.getScrollOffset()+this.scrollAdjustments+c,n=this.scrollElement,h=n!==null&&(("scrollHeight"in n)||("document"in n))?this.getMaxScrollOffset():null;return this._clampedAdjustment=h!==null&&t>h+0.5?{target:t,maxAtWrite:h}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:e}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){this.targetWindow?this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}):this.scrollState=null}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5000){this.scrollState=null;return}let c=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),e=c?c[0]:this.scrollState.lastTargetOffset,t=e!==this.scrollState.lastTargetOffset;if(!t&&tt(e,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==e&&this._scrollToOffset(e,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,t){let n=this.getSize()||600,h=Math.abs(e-this.getScrollOffset()),u=this.scrollState.behavior==="smooth"&&h>n;this.scrollState.lastTargetOffset=e,u||(this.scrollState.behavior="auto"),this._scrollToOffset(e,{adjustments:void 0,behavior:u?"smooth":"auto"})}this.scheduleScrollReconcile()}},Oe=(c,e,t,n)=>{for(;c<=e;){let h=(c+e)/2|0,u=t(h);if(u<n)c=h+1;else if(u>n)e=h-1;else return h}return c>0?c-1:0};function ft(c,e,t){let n=0;for(;n<=e;){let h=(n+e)/2|0,u=c[h*2];if(u<t)n=h+1;else if(u>t)e=h-1;else return h}return n>0?n-1:0}function mt(c,e,t,n,h){let u=c.length-1;if(c.length<=n)return{startIndex:0,endIndex:u};if(n===1&&h!==null){let b=ft(h,u,t),p=b,g=t+e;for(;p<u&&h[p*2]+h[p*2+1]<g;)p++;return{startIndex:b,endIndex:p}}let f=Oe(0,u,(b)=>c[b].start,t),m=f;if(n===1)for(;m<u&&c[m].end<t+e;)m++;else if(n>1){let b=Array(n).fill(0);for(;m<u&&b.some((g)=>g<t+e);){let g=c[m];b[g.lane]=g.end,m++}let p=Array(n).fill(t+e);for(;f>=0&&p.some((g)=>g>=t);){let g=c[f];p[g.lane]=g.start,f--}f=Math.max(0,f-f%n),m=Math.min(u,m+(n-1-m%n))}return{startIndex:f,endIndex:m}}var oe=typeof document<"u"?Z:l;function gt({useFlushSync:c=!0,directDomUpdates:e=!1,directDomUpdatesMode:t="transform",...n}){let[,h]=Ze((O)=>O+1,0),u=i(h).current,f=i({enabled:e,mode:t,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});f.current.enabled=e,f.current.mode=t;let m=i(!1),b=(O)=>{let A=f.current;if(!A.enabled||!A.container)return;let C=O.getTotalSize();if(C!==A.lastSize){A.lastSize=C;let y=O.options.horizontal?"width":"height";A.container.style[y]=`${C}px`}},p=(O,A,C)=>{let y=f.current,_=!!O.options.horizontal,z=A.start-O.options.scrollMargin;y.lastPositions.get(C)!==z&&(y.lastPositions.set(C,z),y.mode==="transform"?C.style.transform=_?`translate3d(${z}px, 0, 0)`:`translate3d(0, ${z}px, 0)`:C.style[_?"left":"top"]=`${z}px`)},g=(O)=>{let A=f.current;if(A.enabled&&A.container){b(O);for(let C of O.getVirtualItems()){let y=O.elementsCache.get(C.key);y&&p(O,C,y)}}},S={...n,onChange:(O,A)=>{var C;let y=f.current,_=!0;if(y.enabled){g(O);let z=O.range,I=y.prevRange;_=!I||I.isScrolling!==O.isScrolling||I.startIndex!==z?.startIndex||I.endIndex!==z?.endIndex,_&&(y.prevRange=z?{startIndex:z.startIndex,endIndex:z.endIndex,isScrolling:O.isScrolling}:null)}_&&(c&&A&&!m.current?X(u):u()),(C=n.onChange)==null||C.call(n,O,A)}},[M]=o(()=>{let O=new dt(S),A=O.measureElement;return O.measureElement=(C)=>{m.current=!0;try{A(C)}finally{m.current=!1}let y=f.current;if(C!==null&&y.enabled&&y.container){let _=O.measurementsCache[O.indexFromElement(C)];_&&p(O,_,C)}},Object.assign(O,{containerRef:(C)=>{let y=f.current;y.container=C,y.lastSize=null,C!==null&&g(O)}})});return M.setOptions(S),oe(()=>M._didMount(),[]),oe(()=>(b(M),M._willUpdate())),oe(()=>{g(M)}),M}function pt(c){return gt({observeElementRect:st,observeElementOffset:ot,scrollToFn:ct,...c})}function vt(c,e,t){let{cols:n,cell:h,gap:u}=e.metrics,f=Math.ceil(c/n),m=i(null),[b,p]=o(0),g=pt({count:f,getScrollElement:()=>e.scrollerRef.current,estimateSize:()=>h,gap:u,overscan:3,scrollMargin:b,initialRect:{width:0,height:208},rangeExtractor:(S)=>[...new Set([...Te(S),...t.filter((M)=>M>=0&&M<f)])].sort((M,O)=>M-O)});return Z(()=>{let S=m.current;S&&(p((M)=>M===S.offsetTop?M:S.offsetTop),S.style.setProperty("--gg-rows",String(f)))}),{ref:m,rows:g.getVirtualItems().map((S)=>S.index)}}function bt({section:c,index:e,first:t,labelId:n,shared:h}){let{items:u}=c,{cols:f}=h.metrics,m=h.active.s===e?h.active.i:-1,b=h.target?.s===e?h.target.i:-1,{ref:p,rows:g}=vt(u.length,h,[m,b].filter((M)=>M>=0).map((M)=>Math.floor(M/f)));if(u.length===0)return null;let S=[];for(let M of g){let O=Math.min(u.length,(M+1)*f);for(let A=M*f;A<O;A++){let C=u[A],y=h.getKey(C);S.push(r(Ye,{item:C,itemKey:y,index:e,i:A,size:u.length,cols:f,active:A===m,shared:h},y))}}return a(T,{children:[r("div",{id:n,className:s("sticky top-0 z-[1] bg-[var(--glyph-surface,var(--card))] px-[var(--glyph-heading-inset,0.25rem)] text-xs font-medium text-muted-foreground","pt-1 pb-1",!t&&"mt-3",h.hideLabels&&"sr-only"),children:c.label}),r("div",{ref:p,role:"listbox","aria-labelledby":n,"data-section":c.id,className:Ge,children:S})]})}var yt=3,Ee=19;function St(c,e,t,n,h,u){let f=c.querySelector(`[data-section="${e}"]`);if(!f)return;let m=f.offsetTop+t*n,b=f.previousElementSibling,p=u?0:(b?.offsetHeight??0)+yt;m-p<c.scrollTop?c.scrollTop=Math.max(0,m-p):m+h+Ee>c.scrollTop+c.clientHeight&&(c.scrollTop=m+h+Ee-c.clientHeight)}function xt(c){let{sections:e,selectedKey:t,getKey:n,scrollerRef:h,metrics:u,hideLabels:f}=c,[m,b]=o(null),[p,g]=o(null),S=w(()=>e.map((C)=>C.items.length),[e]),M=w(()=>{if(m&&(S[m.s]??0)>m.i)return m;if(t!==void 0)for(let[y,_]of e.entries()){let z=_.items.findIndex((I)=>n(I)===t);if(z>=0)return{s:y,i:z}}let C=S.findIndex((y)=>y>0);return{s:Math.max(0,C),i:0}},[m,S,e,t,n]),O=d((C)=>{b(C),g(null)},[]),A=w(()=>{if(!p)return null;let C=Math.min(p.s,S.length-1),y=S[C]??0;return y>0?{s:C,i:Math.min(p.i,y-1)}:null},[p,S]);return Z(()=>{if(!p)return;let C=h.current,y=A&&e[A.s],_=A&&y?y.items[A.i]:void 0,z=C&&y&&_!==void 0?[...([...C.querySelectorAll("[data-section]")].find((k)=>k.dataset.section===y.id)??C).querySelectorAll("[data-glyph-key]")].find((k)=>k.dataset.glyphKey===n(_)):void 0;if(!A||!y||!C||!z){g(null);return}let I=u.cell+u.gap,j=Math.floor(A.i/u.cols);St(C,y.id,j,I,u.cell,!!f),z.focus({preventScroll:!0})},[p,A,e,n,u,h,f]),{active:M,target:A,move:d((C)=>g(C),[]),setActive:O,lengths:S}}var Ae=(c,e)=>c.findIndex((t,n)=>n>e&&t>0),ae=(c,e)=>{for(let t=Math.min(e,c.length)-1;t>=0;t--)if((c[t]??0)>0)return t;return-1};function wt(c,e,t,n,h=!1){let{s:u,i:f}=t,m=c[u]??0,b=f%e,p=f-b;switch(n){case"ArrowRight":{if(f+1<m)return{s:u,i:f+1};let g=Ae(c,u);return g<0?null:{s:g,i:0}}case"ArrowLeft":{if(f>0)return{s:u,i:f-1};let g=ae(c,u);return g<0?null:{s:g,i:(c[g]??1)-1}}case"ArrowDown":{if(f+e<m)return{s:u,i:f+e};if(p+e<m)return{s:u,i:m-1};let g=Ae(c,u);return g<0?null:{s:g,i:Math.min(b,(c[g]??1)-1)}}case"ArrowUp":{if(f-e>=0)return{s:u,i:f-e};let g=ae(c,u);if(g<0)return null;let S=c[g]??1,M=Math.floor((S-1)/e)*e;return{s:g,i:Math.min(M+b,S-1)}}case"Home":{if(!h)return{s:u,i:p};let g=c.findIndex((S)=>S>0);return g<0?null:{s:g,i:0}}case"End":{if(!h)return{s:u,i:Math.min(p+e-1,m-1)};let g=ae(c,c.length);return g<0?null:{s:g,i:(c[g]??1)-1}}default:return null}}var Et=new Set(["ArrowRight","ArrowLeft","ArrowDown","ArrowUp","Home","End"]);function Mt(c){return(e)=>{if(e.target.closest('[role="option"]'))if(Et.has(e.key)){let t=wt(c.lengths,c.cols,c.active,e.key,e.ctrlKey||e.metaKey);e.preventDefault(),t&&c.move(t)}else e.key==="Enter"||e.key===" "?(e.preventDefault(),c.pick(c.active)):c.onTypeAhead&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),c.onTypeAhead(e.key))}}var Me=(c,e,t)=>{let n=Number.parseFloat(getComputedStyle(c).getPropertyValue(e));return Number.isFinite(n)&&n>0?n:t};function Ct(c,e){let[t,n]=o({cols:e??8,cell:36,gap:2}),h=i(null);return Z(()=>{let u=c.current;if(!u)return;let f=()=>{let b=Me(u,Je,36),p=Me(u,Be,2),g=u.clientWidth-2,S=Math.floor((g+p)/(b+p)),M=e??(S>0?S:8),O=g>0?Math.max(b,(g-(M-1)*p)/M):b,A=Math.floor(O*100)/100,C=h.current;C&&C.cols===M&&A>=C.cell&&A-C.cell<0.5||(h.current={cols:M,cell:A},u.style.setProperty("--gg-cols",String(M)),u.style.setProperty("--gg-cell",`${A}px`),n((y)=>y.cols===M&&y.cell===A&&y.gap===p?y:{cols:M,cell:A,gap:p}))};if(f(),typeof ResizeObserver>"u")return;let m=new ResizeObserver(f);return m.observe(u),()=>m.disconnect()},[c,e]),t}var Tt=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,Ot=(c)=>Math.min(2000,600+Math.abs(c)*0.4),_t=100,It=2;function _e(c){return[...c.querySelectorAll("[data-section]")]}function Ie(c,e){let t=c.previousElementSibling;return c.offsetTop-(e?0:t?.offsetHeight??0)}function zt(c,e){let t=_e(c);if(c.scrollTop+c.clientHeight>=c.scrollHeight-1)return t[t.length-1]?.dataset.section;let n=t[0]?.dataset.section;for(let h of t)Ie(h,e)<=c.scrollTop+It&&(n=h.dataset.section);return n}function kt(c){let{scrollerRef:e,hideLabels:t,setActive:n,ref:h}=c,u=i({...c});u.current={...c};let f=i(!1),m=i(void 0),b=i(null),p=i(null),g=d((M)=>{M&&M!==m.current&&(m.current=M,u.current.onActiveSectionChange?.(M))},[]);l(()=>{let M=e.current;if(!M)return;let O=0,A=()=>{cancelAnimationFrame(O),O=requestAnimationFrame(()=>{f.current||p.current!==null&&Math.abs(M.scrollTop-p.current)<=1||(p.current=null,g(zt(M,t)))})};return M.addEventListener("scroll",A,{passive:!0}),()=>{cancelAnimationFrame(O),M.removeEventListener("scroll",A)}},[e,t,g]),l(()=>()=>b.current?.(),[]);let S=d((M,O)=>{let A=e.current,C=u.current.sections.findIndex((k)=>k.id===M),y=A?_e(A).find((k)=>k.dataset.section===M):void 0;if(!A||!y||C<0)return;let _=O?.behavior??(Tt()?"auto":"smooth"),z=Math.max(0,Ie(y,u.current.hideLabels));b.current?.(),f.current=!0,p.current=null;let I=()=>{f.current=!1,p.current=A.scrollTop,A.removeEventListener("scrollend",I),clearTimeout(j),b.current=null},j=setTimeout(I,_==="smooth"?Ot(z-A.scrollTop):_t);A.addEventListener("scrollend",I,{once:!0}),b.current=I,g(M),n({s:C,i:0}),A.scrollTo({top:z,behavior:_})},[e,g,n]);Ns(h,()=>({scrollToSection:S}),[S])}function Dt(c){let{sections:e,columns:t,selectedKey:n,onTypeAhead:h,hideLabels:u,onActiveSectionChange:f,ref:m,getKey:b,onPick:p}=c,g=i(null),S=Ei(),M=S.props.ref,O=d((j)=>{g.current=j,M(j)},[M]),A=Ct(g,t),{active:C,target:y,move:_,setActive:z,lengths:I}=xt({hideLabels:u,sections:e,selectedKey:n,getKey:b,scrollerRef:g,metrics:A});return kt({scrollerRef:g,sections:e,hideLabels:u,setActive:z,onActiveSectionChange:f,ref:m}),{scrollerRef:g,setScroller:O,fade:S,metrics:A,active:C,target:y,setActive:z,onKeyDown:Mt({lengths:I,cols:A.cols,active:C,move:_,onTypeAhead:h,pick:(j)=>{let k=e[j.s]?.items[j.i];k!==void 0&&p(k)}})}}function Lt({sections:c,columns:e,selectedKey:t,onTypeAhead:n,hideLabels:h,onActiveSectionChange:u,ref:f,className:m,...b}){let p=H(),{scrollerRef:g,setScroller:S,fade:M,metrics:O,active:A,target:C,setActive:y,onKeyDown:_}=Dt({sections:c,columns:e,selectedKey:t,onTypeAhead:n,hideLabels:h,onActiveSectionChange:u,ref:f,...b}),z=c.findIndex((I)=>I.items.length>0);return r("div",{"data-fade":M.props["data-fade"],ref:S,className:s(Ue,!h&&"[--scroll-fade-inset-start:1.5rem]",m),onKeyDown:_,onBlur:(I)=>{I.currentTarget.contains(I.relatedTarget)||b.onHighlight?.(null)},children:c.map((I,j)=>r(bt,{section:I,index:j,first:j===z,labelId:`${p}-${I.id}`,shared:{...b,selectedKey:t,scrollerRef:g,metrics:O,active:A,target:C,setActive:y,hideLabels:h}},I.id))})}function ze(){let[c,e]=o(void 0);return l(()=>{e(te())},[]),c}function Rt({className:c,...e}){return r("kbd",{"data-slot":"kbd",className:s("pointer-events-none inline-flex h-5 min-w-5 items-center justify-center rounded border bg-muted px-1 font-mono text-[10px] font-medium text-muted-foreground","in-[[data-slot=button][data-variant=filled]]:border-current/40 in-[[data-slot=button][data-variant=filled]]:bg-current/15 in-[[data-slot=button][data-variant=filled]]:text-inherit","dark:border-foreground/45 dark:bg-background","dark:in-[[data-slot=button][data-variant=filled]]:border-current/40 dark:in-[[data-slot=button][data-variant=filled]]:bg-current/15",c),...e})}function Kt({shortcut:c,loading:e,filled:t,disabled:n,onClear:h}){let{t:u}=v(),f=ze()===!0,m=c&&!t&&!e&&!n,b=t&&!e&&!n;return!m&&!b&&!e?null:a(wr,{align:"inline-end",className:"pe-2.5 has-[>button]:pe-2.5 has-[>kbd]:pe-[0.275rem]",children:[m&&r(Rt,{"aria-hidden":"true",dir:"ltr",children:c&&re(c,f)}),e&&r("span",{"data-slot":"field-box-clear","aria-hidden":!0,className:"pointer-events-none",children:r(fe,{className:"animate-spin motion-reduce:animate-none"})}),b&&r("button",{type:"button","data-slot":"field-box-clear","aria-label":u("material.search-field.clear","Clear search"),className:"cursor-pointer",onClick:(p)=>{let g=p.currentTarget.closest('[data-slot="input-group"]')?.querySelector("input");h(),g?.focus()},children:r(jt,{"aria-hidden":!0,className:"pointer-events-none"})})]})}function Nt({search:c,error:e,loading:t,shortcut:n,placeholder:h,disabled:u,...f}){let{t:m}=v(),b=ze(),p=n&&!ie(n)?n:void 0;return a(Tn,{"data-disabled":u||void 0,children:[r(wr,{align:"inline-start",className:"ps-2.5",children:r("span",{"data-slot":"field-box-lead","aria-hidden":!0,children:r(Rn,{})})}),r(Cn,{...f,type:"search",value:c.value,disabled:u,"aria-invalid":e||void 0,"aria-busy":t||void 0,"aria-keyshortcuts":se(p??null,b),placeholder:h??m("material.search-field.placeholder","Search"),className:"[&::-webkit-search-cancel-button]:hidden",onChange:c.handleChange,onKeyDown:c.handleKeyDown}),r(Kt,{shortcut:p,loading:t,filled:c.value!=="",disabled:u,onClear:c.clear})]})}function Ft({value:c,defaultValue:e="",debounceMs:t,onValueChange:n,onClear:h,onChange:u,onKeyDown:f}){let[m,b]=o(String(e??"")),p=c!==void 0,g=p?String(c??""):m,S=Se(n),M=n!==void 0,O=w(()=>t?Ai((y)=>S.current?.(y),t):null,[t,S]);l(()=>()=>O?.cancel(),[O]);let A=(y,_=!1)=>{p||b(y),M&&(_||!O?(O?.cancel(),S.current?.(y)):O(y))},C=()=>{A("",!0),h?.(),u?.({target:{value:""},currentTarget:{value:""}})};return{value:g,clear:C,handleChange:(y)=>{A(y.target.value),u?.(y)},handleKeyDown:(y)=>{y.key==="Escape"&&g&&(y.preventDefault(),C()),f?.(y)}}}function Pt({id:c,value:e,defaultValue:t="",onChange:n,onValueChange:h,onClear:u,debounceMs:f=0,loading:m=!1,placeholder:b,label:p,helperText:g,error:S,disabled:M,required:O,name:A,className:C,onKeyDown:y,shortcut:_,...z}){let I=H(),j=H(),k=Ft({value:e,defaultValue:t,debounceMs:f,onValueChange:h,onClear:u,onChange:n,onKeyDown:y}),D=c??I,L=va(z["aria-describedby"],!!g&&j);return a("div",{"data-slot":"search-field","data-pw":A??"search-field",className:s("grid w-full content-start gap-1.5",C),children:[p&&r(ht,{htmlFor:D,withAsterisk:O,children:p}),r(Nt,{...z,id:D,name:A,search:k,disabled:M,required:O,error:S,loading:m,shortcut:_,placeholder:b,"aria-describedby":L}),g&&r(At,{id:j,error:S,children:g})]})}function Wt(c,e){let t=i(!1);l(()=>{if(!t.current){t.current=!0;return}let n=c.current,h=n?.querySelector('[aria-current="true"]');n&&h&&(h.offsetLeft<n.scrollLeft?n.scrollTo({left:h.offsetLeft}):h.offsetLeft+h.offsetWidth>n.scrollLeft+n.clientWidth&&n.scrollTo({left:h.offsetLeft+h.offsetWidth-n.clientWidth}))},[e])}var Vt=`relative flex h-11 min-w-8 flex-1 shrink-0 cursor-pointer items-center justify-center rounded-[var(--nxgt-item-radius)] px-1.5 text-muted-foreground transition-colors hover:bg-card-tint-8 dark:hover:bg-card-tint-12 ${Ks} after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-[3px] aria-[current=true]:text-primary-text aria-[current=true]:after:bg-primary dark:aria-[current=true]:after:bg-track-fill`;function Ht(c,e,t){return c==="ArrowRight"?(e+1)%t:c==="ArrowLeft"?(e-1+t)%t:c==="Home"?0:c==="End"?t-1:-1}function $t({label:c,hint:e,links:t,current:n,onJump:h}){let u=H(),f=Ei("x"),m=i(null),b=f.props.ref;Wt(m,n);let p=Math.max(0,t.findIndex((g)=>g.id===n));return a(T,{children:[r("span",{id:u,className:"sr-only",children:e}),r("nav",{"data-fade":f.props["data-fade"],ref:(g)=>{m.current=g,b(g)},"aria-label":c,onKeyDown:(g)=>{let S=[...g.currentTarget.querySelectorAll("button")],M=S.indexOf(document.activeElement),O=Ht(g.key,M,S.length);M<0||O<0||(g.preventDefault(),S[O]?.focus())},className:s("sticky top-0 z-[2] flex overflow-x-auto bg-[var(--glyph-surface,var(--card))] scroll-fade-x [--scroll-fade-size:1.5rem] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),children:t.map((g,S)=>r("button",{type:"button","aria-label":g.label,title:g.label,tabIndex:S===p?0:-1,"aria-describedby":S===p?u:void 0,"aria-current":n===g.id?"true":void 0,className:Vt,onClick:()=>h(g.id),children:r(W,{name:g.icon,className:"size-5","aria-hidden":!0})},g.id))})]})}function qt({query:c,onClear:e}){let{t}=v();return r(nn,{size:"compact",kind:"search",icon:r(W,{name:"magnifying-glass",className:"size-8"}),title:t("material.emoji.no-match","No emoji match “{query}”",{query:c.trim()}),description:t("material.emoji.no-match-hint","Check the spelling or try a shorter word."),action:r(J,{variant:"tonal",size:"sm",onClick:e,children:t("material.emoji.clear","Clear search")})})}function Jt(c,e){let[t,n]=o(),[h,u]=o(),f=i(null),m=i(null);l(()=>{h&&!e&&(f.current?.scrollToSection(h),u(void 0))},[h,e]);let b=(S)=>{n(S),u(S),c("")},p=d((S)=>{c((M)=>M+S),m.current?.querySelector("input")?.focus()},[c]),g=(S)=>{S||n(void 0),c(S)};return{spied:t,setSpied:n,grid:f,box:m,onJump:b,typeAhead:p,changeQuery:g,clear:()=>{g(""),m.current?.querySelector("input")?.focus()}}}var Bt={recent:"clock-rotate-left",general:"icons",smileys_emotion:"face-smile",people_body:"hand",animals_nature:"leaf",food_drink:"utensils",travel_places:"earth-americas",activities:"trophy",objects:"lightbulb",symbols:"hashtag",flags:"flag"},Ut=new Set(["all","components","component"]);function Gt(c,e,t){let{t:n}=v(),h=d((m)=>n(`material.emoji.groups.${m}`,ye(m)),[n]),u=w(()=>Object.entries(ve(c,e)).filter(([m])=>!Ut.has(m)),[c,e]),f=w(()=>be(c,t),[c,t]);return{hits:f,sections:w(()=>(f?[["results",f]]:u).map(([m,b])=>({id:m,label:h(m),items:b})),[f,u,h]),links:w(()=>u.map(([m])=>({id:m,label:h(m),icon:Bt[m]??"icons"})),[u,h])}}var Qt="recent-emojis";function Yt(c){let[e,t]=De(Qt,[]),[n]=o(()=>e??[]);return{snapshot:n,handleSelect:d((h)=>{c(h),t((u)=>[h.name,...u?.filter((f)=>f!==h.name)??[]].slice(0,20))},[c,t])}}function Xt({emojis:c,onSelect:e}){let{t}=v(),[n,h]=o(null),{snapshot:u,handleSelect:f}=Yt(e),[m,b]=o(""),{hits:p,sections:g,links:S}=Gt(c,u,m),M=Jt(b,p!==null),{grid:O,box:A,changeQuery:C,clear:y,onJump:_,typeAhead:z,setSpied:I}=M,j=p!==null,k=j?void 0:M.spied??S[0]?.id;return a("div",{ref:A,"data-keeps-escape":m?"":void 0,className:"@container flex min-w-0 flex-col gap-1",onKeyDown:(D)=>{D.key==="Escape"&&m&&(D.preventDefault(),C(""))},children:[r(Pt,{debounceMs:0,value:m,onValueChange:C,placeholder:t("material.emoji.search","Search emoji")}),r($t,{label:t("material.emoji.categories","Emoji categories"),hint:t("material.emoji.categories-hint","Use the arrow keys to move between categories"),links:S,current:k,onJump:_}),j&&p.length===0?r(qt,{query:m,onClear:y}):r(Lt,{ref:O,sections:g,getKey:(D)=>D.name,getLabel:(D)=>D.name,renderItem:(D)=>D.emoji,onPick:f,onHighlight:h,onTypeAhead:z,onActiveSectionChange:I},j?"results":"sections"),r("p",{className:"truncate px-1 text-xs text-muted-foreground",children:n?`:${n.name}:`:t("material.emoji.pick","Choose an emoji")})]})}function _i({emojis:c,onSelect:e,className:t,toolbarItem:n}){let{t:h}=v(),[u,f]=o(!1),m=h("material.emoji.picker","Emoji"),b=r(ne,{variant:"ghost",tooltip:m,className:s("size-8 rounded-[var(--nxgt-icon-button-radius,0.25rem)]",t),children:r(ee,{})});return a(Tr,{open:u,onOpenChange:f,children:[r(Fo,{asChild:!0,children:n?r(oa,{asChild:!0,children:b}):r($e,{label:m,icon:r(ee,{}),priority:"pinned",more:{kind:"popover"},children:b})}),r(Cr,{align:"start","aria-label":m,className:"w-80 rounded border-border bg-background p-3 shadow-lg",children:r(Xt,{emojis:c,onSelect:(p)=>{e(p),f(!1)}})})]})}export{_i as EmojiPicker};
@@ -1,4 +1,4 @@
1
- import{e,dr,n,be,gt,y,A,L,I,R,M,O,D,u,m,Ia,ve,he,pe,Ct,z,We,Ae,_e}from"./index.fgsp5qqn.js";import{Ee}from"./index.gqa9s37g.js";import{ge}from"./index.h6120080.js";var ze=function(){var s=e(function(q,o,c,p){for(c=c||{},p=q.length;p--;c[q[p]]=o);return c},"o"),l=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],h=[1,9],k=[1,10],T=[1,11],g=[1,12],C=[1,30],f=[1,23],_=[1,24],V=[1,25],W=[1,26],X=[1,27],N=[1,19],F=[1,28],te=[1,29],B=[1,20],Y=[1,18],P=[1,21],U=[1,22],Ue=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Ie=[1,36],Re=[1,37],De=[1,38],Le=[1,39],we=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],j=[1,65],oe=[1,69],le=[1,71],de=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],fe=[1,78],ke=[1,77],ye=[1,76],Ke=[69,70,71,72,73],Ze=[1,91],je=[6,9,45,50],J=[6,9,12,44,45,50,51,52],me=[1,101],Se=[1,100],Te=[1,99],ce=[18,61],qe=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(o,c,p,r,E,t,ue){var i=t.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:this.$=t[i-1].concat(t[i]);break;case 4:this.$=t[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(t[i-4]),r.addEntity(t[i-2]),r.addRelationship(t[i-4],t[i],t[i-2],t[i-3]),this.$=[t[i-4],t[i-2]];break;case 8:r.addEntity(t[i-8]),r.addEntity(t[i-4]),r.addRelationship(t[i-8],t[i],t[i-4],t[i-5]),r.setClass([t[i-8]],t[i-6]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-8],t[i-4]];break;case 9:r.addEntity(t[i-6]),r.addEntity(t[i-2]),r.addRelationship(t[i-6],t[i],t[i-2],t[i-3]),r.setClass([t[i-6]],t[i-4]),this.$=[t[i-6],t[i-2]];break;case 10:r.addEntity(t[i-6]),r.addEntity(t[i-4]),r.addRelationship(t[i-6],t[i],t[i-4],t[i-5]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-6],t[i-4]];break;case 11:r.addEntity(t[i-3]),r.addAttributes(t[i-3],t[i-1]),this.$=[t[i-3]];break;case 12:r.addEntity(t[i-5]),r.addAttributes(t[i-5],t[i-1]),r.setClass([t[i-5]],t[i-3]),this.$=[t[i-5]];break;case 13:r.addEntity(t[i-2]),this.$=[t[i-2]];break;case 14:r.addEntity(t[i-4]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-4]];break;case 15:r.addEntity(t[i]),this.$=[t[i]];break;case 16:r.addEntity(t[i-2]),r.setClass([t[i-2]],t[i]),this.$=[t[i-2]];break;case 17:r.addEntity(t[i-6],t[i-4]),r.addAttributes(t[i-6],t[i-1]),this.$=[t[i-6]];break;case 18:r.addEntity(t[i-8],t[i-6]),r.addAttributes(t[i-8],t[i-1]),r.setClass([t[i-8]],t[i-3]),this.$=[t[i-8]];break;case 19:r.addEntity(t[i-5],t[i-3]),this.$=[t[i-5]];break;case 20:r.addEntity(t[i-7],t[i-5]),r.setClass([t[i-7]],t[i-2]),this.$=[t[i-7]];break;case 21:r.addEntity(t[i-3],t[i-1]);break;case 22:r.addEntity(t[i-5],t[i-3]),r.setClass([t[i-5]],t[i]);break;case 23:case 24:this.$=t[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=t[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(t[i].value),this.$=[];else this.$=t[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:t[i-2].id},t[i-1],{text:t[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-1],text:t[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-4],text:t[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[i];break;case 35:this.$=t[i-1]+" "+t[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[i-3],r.addClass(t[i-2],t[i-1]);break;case 41:case 42:case 63:case 72:this.$=[t[i]];break;case 43:case 44:this.$=t[i-2].concat([t[i]]);break;case 45:this.$=t[i-2],r.setClass(t[i-1],t[i]);break;case 46:this.$=t[i-3],r.addCssStyles(t[i-2],t[i-1]);break;case 47:this.$=[t[i]];break;case 48:t[i-2].push(t[i]),this.$=t[i-2];break;case 50:this.$=t[i-1]+t[i];break;case 58:case 84:case 85:this.$=t[i].replace(/"/g,"");break;case 64:t[i].push(t[i-1]),this.$=t[i];break;case 65:this.$={type:t[i-1],name:t[i]};break;case 66:this.$={type:t[i-2],name:t[i-1],keys:t[i]};break;case 67:this.$={type:t[i-2],name:t[i-1],comment:t[i]};break;case 68:this.$={type:t[i-3],name:t[i-2],keys:t[i-1],comment:t[i]};break;case 69:case 71:case 74:this.$=t[i];break;case 70:this.$=t[i-1]+t[i];break;case 73:t[i-2].push(t[i]),this.$=t[i-2];break;case 75:this.$=t[i].replace(/"/g,"");break;case 76:this.$={cardA:t[i],relType:t[i-1],cardB:t[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(l,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:h,23:k,25:T,27:g,28:13,29:14,30:15,31:16,32:17,34:C,37:f,38:_,39:V,40:W,41:X,43:N,46:F,47:te,51:B,53:Y,54:P,55:U},s(l,Ue,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Ie,70:Re,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:N,51:B,53:Y,54:P,55:U},{10:51,43:N,51:B,53:Y,54:P,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:N,51:B,53:Y,54:P,55:U},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:h,23:k,25:T,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:C,37:f,38:_,39:V,40:W,41:X,43:N,46:F,47:te,51:B,53:Y,54:P,55:U},{12:ae,42:64,44:ne,45:j,48:66,49:67,51:oe,52:le},s(de,[2,41]),s(de,[2,42]),{15:72,43:K,44:Z,45:j},{12:ae,42:73,44:ne,45:j,48:66,49:67,51:oe,52:le},{6:fe,9:ke,19:[1,75],35:74,50:ye},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Ie,70:Re,71:De,72:Le,73:we}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Ie,70:Re,71:De,72:Le,73:we},s(Ke,[2,82]),s(Ke,[2,83]),s(d,[2,31]),s(d,Ue),{6:fe,9:ke,35:90,45:Ze,50:ye},{43:[1,92],44:[1,93]},s(je,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:fe,9:ke,35:95,45:Ze,50:ye},s(d,[2,32]),{10:97,36:96,43:N,51:B,53:Y,54:P,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:me,53:Se,76:Te},{15:102,43:K,44:Z},{10:103,43:N,51:B,53:Y,54:P,55:U},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:qe,66:He}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(de,[2,43]),s(de,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:N,51:B,53:Y,54:P,55:U},s(Qe,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:He}),s(ce,[2,67]),s(Ve,[2,72]),s(ce,[2,75]),s(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:K,44:Z},s(je,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:fe,9:ke,35:125,50:ye},s(Qe,[2,35]),{13:126,43:me,53:Se,76:Te},{15:127,43:K,44:Z},{13:128,43:me,53:Se,76:Te},s(d,[2,12]),s(ce,[2,68]),{63:129,65:qe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(Ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:me,53:Se,76:Te},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(o,c){if(c.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=c,p}},"parseError"),parse:e(function(o){var c=this,p=[0],r=[],E=[null],t=[],ue=this.table,i="",Oe=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),S=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(S.setInput(o,H.yy),H.yy.lexer=S,H.yy.parser=this,typeof S.yylloc>"u")S.yylloc={};var Ge=S.yylloc;t.push(Ge);var ot=S.options&&S.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(w){p.length=p.length-2*w,E.length=E.length-w,t.length=t.length-w}e(lt,"popStack");function et(){var w=r.pop()||S.lex()||$e;if(typeof w!=="number"){if(w instanceof Array)r=w,w=r.pop();w=c.symbols_[w]||w}return w}e(et,"lex");var x,Fe,Q,v,ft,Ye,ee={},Ne,G,tt,xe;while(!0){if(Q=p[p.length-1],this.defaultActions[Q])v=this.defaultActions[Q];else{if(x===null||typeof x>"u")x=et();v=ue[Q]&&ue[Q][x]}if(typeof v>"u"||!v.length||!v[0]){var Pe="";xe=[];for(Ne in ue[Q])if(this.terminals_[Ne]&&Ne>at)xe.push("'"+this.terminals_[Ne]+"'");if(S.showPosition)Pe="Parse error on line "+(Oe+1)+`:
1
+ import{e,dr,n,be,gt,y,A,L,I,R,M,O,D,u,m,Ia,ve,he,pe,Ct,z,We,Ae,_e}from"./index.mjfjqm0b.js";import{Ee}from"./index.r8wc9n4q.js";import{ge}from"./index.ybmxf4mt.js";var ze=function(){var s=e(function(q,o,c,p){for(c=c||{},p=q.length;p--;c[q[p]]=o);return c},"o"),l=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],h=[1,9],k=[1,10],T=[1,11],g=[1,12],C=[1,30],f=[1,23],_=[1,24],V=[1,25],W=[1,26],X=[1,27],N=[1,19],F=[1,28],te=[1,29],B=[1,20],Y=[1,18],P=[1,21],U=[1,22],Ue=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Ie=[1,36],Re=[1,37],De=[1,38],Le=[1,39],we=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],j=[1,65],oe=[1,69],le=[1,71],de=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],fe=[1,78],ke=[1,77],ye=[1,76],Ke=[69,70,71,72,73],Ze=[1,91],je=[6,9,45,50],J=[6,9,12,44,45,50,51,52],me=[1,101],Se=[1,100],Te=[1,99],ce=[18,61],qe=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(o,c,p,r,E,t,ue){var i=t.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:this.$=t[i-1].concat(t[i]);break;case 4:this.$=t[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(t[i-4]),r.addEntity(t[i-2]),r.addRelationship(t[i-4],t[i],t[i-2],t[i-3]),this.$=[t[i-4],t[i-2]];break;case 8:r.addEntity(t[i-8]),r.addEntity(t[i-4]),r.addRelationship(t[i-8],t[i],t[i-4],t[i-5]),r.setClass([t[i-8]],t[i-6]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-8],t[i-4]];break;case 9:r.addEntity(t[i-6]),r.addEntity(t[i-2]),r.addRelationship(t[i-6],t[i],t[i-2],t[i-3]),r.setClass([t[i-6]],t[i-4]),this.$=[t[i-6],t[i-2]];break;case 10:r.addEntity(t[i-6]),r.addEntity(t[i-4]),r.addRelationship(t[i-6],t[i],t[i-4],t[i-5]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-6],t[i-4]];break;case 11:r.addEntity(t[i-3]),r.addAttributes(t[i-3],t[i-1]),this.$=[t[i-3]];break;case 12:r.addEntity(t[i-5]),r.addAttributes(t[i-5],t[i-1]),r.setClass([t[i-5]],t[i-3]),this.$=[t[i-5]];break;case 13:r.addEntity(t[i-2]),this.$=[t[i-2]];break;case 14:r.addEntity(t[i-4]),r.setClass([t[i-4]],t[i-2]),this.$=[t[i-4]];break;case 15:r.addEntity(t[i]),this.$=[t[i]];break;case 16:r.addEntity(t[i-2]),r.setClass([t[i-2]],t[i]),this.$=[t[i-2]];break;case 17:r.addEntity(t[i-6],t[i-4]),r.addAttributes(t[i-6],t[i-1]),this.$=[t[i-6]];break;case 18:r.addEntity(t[i-8],t[i-6]),r.addAttributes(t[i-8],t[i-1]),r.setClass([t[i-8]],t[i-3]),this.$=[t[i-8]];break;case 19:r.addEntity(t[i-5],t[i-3]),this.$=[t[i-5]];break;case 20:r.addEntity(t[i-7],t[i-5]),r.setClass([t[i-7]],t[i-2]),this.$=[t[i-7]];break;case 21:r.addEntity(t[i-3],t[i-1]);break;case 22:r.addEntity(t[i-5],t[i-3]),r.setClass([t[i-5]],t[i]);break;case 23:case 24:this.$=t[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=t[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(t[i].value),this.$=[];else this.$=t[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:t[i-2].id},t[i-1],{text:t[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-1],text:t[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:t[i-4],text:t[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[i];break;case 35:this.$=t[i-1]+" "+t[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[i-3],r.addClass(t[i-2],t[i-1]);break;case 41:case 42:case 63:case 72:this.$=[t[i]];break;case 43:case 44:this.$=t[i-2].concat([t[i]]);break;case 45:this.$=t[i-2],r.setClass(t[i-1],t[i]);break;case 46:this.$=t[i-3],r.addCssStyles(t[i-2],t[i-1]);break;case 47:this.$=[t[i]];break;case 48:t[i-2].push(t[i]),this.$=t[i-2];break;case 50:this.$=t[i-1]+t[i];break;case 58:case 84:case 85:this.$=t[i].replace(/"/g,"");break;case 64:t[i].push(t[i-1]),this.$=t[i];break;case 65:this.$={type:t[i-1],name:t[i]};break;case 66:this.$={type:t[i-2],name:t[i-1],keys:t[i]};break;case 67:this.$={type:t[i-2],name:t[i-1],comment:t[i]};break;case 68:this.$={type:t[i-3],name:t[i-2],keys:t[i-1],comment:t[i]};break;case 69:case 71:case 74:this.$=t[i];break;case 70:this.$=t[i-1]+t[i];break;case 73:t[i-2].push(t[i]),this.$=t[i-2];break;case 75:this.$=t[i].replace(/"/g,"");break;case 76:this.$={cardA:t[i],relType:t[i-1],cardB:t[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(l,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:h,23:k,25:T,27:g,28:13,29:14,30:15,31:16,32:17,34:C,37:f,38:_,39:V,40:W,41:X,43:N,46:F,47:te,51:B,53:Y,54:P,55:U},s(l,Ue,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Ie,70:Re,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:N,51:B,53:Y,54:P,55:U},{10:51,43:N,51:B,53:Y,54:P,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:N,51:B,53:Y,54:P,55:U},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:h,23:k,25:T,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:C,37:f,38:_,39:V,40:W,41:X,43:N,46:F,47:te,51:B,53:Y,54:P,55:U},{12:ae,42:64,44:ne,45:j,48:66,49:67,51:oe,52:le},s(de,[2,41]),s(de,[2,42]),{15:72,43:K,44:Z,45:j},{12:ae,42:73,44:ne,45:j,48:66,49:67,51:oe,52:le},{6:fe,9:ke,19:[1,75],35:74,50:ye},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Ie,70:Re,71:De,72:Le,73:we}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Ie,70:Re,71:De,72:Le,73:we},s(Ke,[2,82]),s(Ke,[2,83]),s(d,[2,31]),s(d,Ue),{6:fe,9:ke,35:90,45:Ze,50:ye},{43:[1,92],44:[1,93]},s(je,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:fe,9:ke,35:95,45:Ze,50:ye},s(d,[2,32]),{10:97,36:96,43:N,51:B,53:Y,54:P,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:me,53:Se,76:Te},{15:102,43:K,44:Z},{10:103,43:N,51:B,53:Y,54:P,55:U},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:qe,66:He}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(de,[2,43]),s(de,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:N,51:B,53:Y,54:P,55:U},s(Qe,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:He}),s(ce,[2,67]),s(Ve,[2,72]),s(ce,[2,75]),s(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:K,44:Z},s(je,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:fe,9:ke,35:125,50:ye},s(Qe,[2,35]),{13:126,43:me,53:Se,76:Te},{15:127,43:K,44:Z},{13:128,43:me,53:Se,76:Te},s(d,[2,12]),s(ce,[2,68]),{63:129,65:qe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(Ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:me,53:Se,76:Te},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(o,c){if(c.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=c,p}},"parseError"),parse:e(function(o){var c=this,p=[0],r=[],E=[null],t=[],ue=this.table,i="",Oe=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),S=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(S.setInput(o,H.yy),H.yy.lexer=S,H.yy.parser=this,typeof S.yylloc>"u")S.yylloc={};var Ge=S.yylloc;t.push(Ge);var ot=S.options&&S.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(w){p.length=p.length-2*w,E.length=E.length-w,t.length=t.length-w}e(lt,"popStack");function et(){var w=r.pop()||S.lex()||$e;if(typeof w!=="number"){if(w instanceof Array)r=w,w=r.pop();w=c.symbols_[w]||w}return w}e(et,"lex");var x,Fe,Q,v,ft,Ye,ee={},Ne,G,tt,xe;while(!0){if(Q=p[p.length-1],this.defaultActions[Q])v=this.defaultActions[Q];else{if(x===null||typeof x>"u")x=et();v=ue[Q]&&ue[Q][x]}if(typeof v>"u"||!v.length||!v[0]){var Pe="";xe=[];for(Ne in ue[Q])if(this.terminals_[Ne]&&Ne>at)xe.push("'"+this.terminals_[Ne]+"'");if(S.showPosition)Pe="Parse error on line "+(Oe+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+xe.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else Pe="Parse error on line "+(Oe+1)+": Unexpected "+(x==$e?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(Pe,{text:S.match,token:this.terminals_[x]||x,line:S.yylineno,loc:Ge,expected:xe})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+x);switch(v[0]){case 1:if(p.push(x),E.push(S.yytext),t.push(S.yylloc),p.push(v[1]),x=null,!Fe){if(Xe=S.yyleng,i=S.yytext,Oe=S.yylineno,Ge=S.yylloc,Je>0)Je--}else x=Fe,Fe=null;break;case 2:if(G=this.productions_[v[1]][1],ee.$=E[E.length-G],ee._$={first_line:t[t.length-(G||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(G||1)].first_column,last_column:t[t.length-1].last_column},ot)ee._$.range=[t[t.length-(G||1)].range[0],t[t.length-1].range[1]];if(Ye=this.performAction.apply(ee,[i,Xe,Oe,H.yy,v[1],E,t].concat(nt)),typeof Ye<"u")return Ye;if(G)p=p.slice(0,-1*G*2),E=E.slice(0,-1*G),t=t.slice(0,-1*G);p.push(this.productions_[v[1]][0]),E.push(ee.$),t.push(ee._$),tt=ue[p[p.length-2]][p[p.length-1]],p.push(tt);break;case 3:return!0}}return!0},"parse")},rt=function(){var q={EOF:1,parseError:e(function(c,p){if(this.yy.parser)this.yy.parser.parseError(c,p);else throw Error(c)},"parseError"),setInput:e(function(o,c){if(this.yy=c||this.yy||{},this._input=o,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];return this.offset=0,this},"setInput"),input:e(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:e(function(o){var c=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1)this.yylineno-=p.length-1;var E=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[E[0],E[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(o){this.unput(this.match.slice(o))},"less"),pastInput:e(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var o=this.pastInput(),c=Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{as}from"./index.yd3167gn.js";export{as as createEventModelingServices};
@@ -1,4 +1,4 @@
1
- import{E,oe,d,P,H,Z,w,i,o,r,a,s,v}from"./index.0hrfbrja.js";function k(t,e=2){let n=10**e;return Math.round(t*n)/n+0}function U(t,e=2){return String(k(t,e))}var Ut=24,Wt=[[32,352],[8208,24]],_t="E0880IHF4068H874C9A0232120F0I007MB1415080NG43G705650061EF01B00405A41219C1F0EDUD020B89C1ED00534CV00000000000000000000000000000000E0E247DG0GL64VX090A905C0D12A4A22HA00000EB7000F000O000000340000310300000IF0000F000G000000430000143878787A7878787602510000000008565656567A9F000000000SF4FK502FGFGBC9AFO78787RX47878787K0HBCBCBC34343434DEBCDK78787878787K77561343439F00OOXF00C00BM01JONSR00XAX9",Vt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_",ct;function qt(){let t=[],e=0,n=0;for(let l of _t){let c=Vt.indexOf(l);if(e=e*32+(c&31),c&32)continue;n+=e%2?-(e+1)/2:e/2,e=0,t.push(n)}return t}function Zt(t){ct??=qt();let e=0;for(let[n,l]of Wt){if(t>=n&&t<n+l)return ct[e+t-n]??-1;e+=l}return-1}function O(t,e={}){let n=0;for(let l of t){let c=l.codePointAt(0),f=Zt(c);if(f>=0)n+=f/Ut;else if(c>767&&c<880)n+=0;else n+=c>=11904?1:0.6}return n*(e.size??14)*(1+0.0002*((e.weight??400)-400))}var Ht={sans:"Inter Variable, Inter, system-ui, sans-serif",serif:"Georgia, serif",mono:"ui-monospace, monospace"};function D(t,e,n,l){let c=(h)=>O(h,{size:e,weight:n}),f=[];for(let h of t.split(`
1
+ import{E,oe,d,P,H,Z,w,i,o,r,a,s,v}from"./index.5vcex75v.js";function k(t,e=2){let n=10**e;return Math.round(t*n)/n+0}function U(t,e=2){return String(k(t,e))}var Ut=24,Wt=[[32,352],[8208,24]],_t="E0880IHF4068H874C9A0232120F0I007MB1415080NG43G705650061EF01B00405A41219C1F0EDUD020B89C1ED00534CV00000000000000000000000000000000E0E247DG0GL64VX090A905C0D12A4A22HA00000EB7000F000O000000340000310300000IF0000F000G000000430000143878787A7878787602510000000008565656567A9F000000000SF4FK502FGFGBC9AFO78787RX47878787K0HBCBCBC34343434DEBCDK78787878787K77561343439F00OOXF00C00BM01JONSR00XAX9",Vt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_",ct;function qt(){let t=[],e=0,n=0;for(let l of _t){let c=Vt.indexOf(l);if(e=e*32+(c&31),c&32)continue;n+=e%2?-(e+1)/2:e/2,e=0,t.push(n)}return t}function Zt(t){ct??=qt();let e=0;for(let[n,l]of Wt){if(t>=n&&t<n+l)return ct[e+t-n]??-1;e+=l}return-1}function O(t,e={}){let n=0;for(let l of t){let c=l.codePointAt(0),f=Zt(c);if(f>=0)n+=f/Ut;else if(c>767&&c<880)n+=0;else n+=c>=11904?1:0.6}return n*(e.size??14)*(1+0.0002*((e.weight??400)-400))}var Ht={sans:"Inter Variable, Inter, system-ui, sans-serif",serif:"Georgia, serif",mono:"ui-monospace, monospace"};function D(t,e,n,l){let c=(h)=>O(h,{size:e,weight:n}),f=[];for(let h of t.split(`
2
2
  `)){let u="";for(let p of h.split(" ")){let g=u?`${u} ${p}`:p;if(l===void 0||c(g)<=l){u=g;continue}if(u)f.push(u);u="";for(let y of p){if(u&&c(u+y)>l)f.push(u),u="";u+=y}}f.push(u)}return f}function Kt(t,e,n,l){if(t==="middle")return 0.36*e-(n-1)*l/2;if(t==="top")return 0.8*e;if(t==="bottom")return-(n-1)*l-0.2*e;return 0}function ft(t,e){let n=t.size??e.font?.size??14,l=t.weight??400,c=n*(t.lineHeight??1.25),f=D(t.text,n,l,t.maxWidth),h=(g)=>k(g,e.p),u={x:h(t.x),y:h(t.y+Kt(t.baseline,n,f.length,c)),"font-family":Ht[e.font?.family??"sans"],"font-size":h(n)};if(t.weight!==void 0)u["font-weight"]=l;if(t.italic)u["font-style"]="italic";if(t.anchor&&t.anchor!=="start")u["text-anchor"]=t.anchor;let[p]=f;if(f.length===1&&p!==void 0)return{tag:"text",attrs:u,children:[p]};return{tag:"text",attrs:u,children:f.map((g,y)=>{let m={x:h(t.x)};if(y)m.dy=h(c);return{tag:"tspan",attrs:m,children:[g]}})}}var V=["primary","secondary","tertiary","error","success","info","warning","neutral"];function Xt(t){let e=t.variant;return e==="on"?`on-${t.tone}`:e==="container"||e==="text"?`${t.tone}-${e}`:t.tone}function ut(t,e,n){let l="#";for(let c of[1,3,5]){let f=parseInt(t.slice(c,c+2),16),h=parseInt(e.slice(c,c+2),16);l+=Math.round(f*n+h*(1-n)).toString(16).padStart(2,"0")}return l}function dt(t){let[e,n,l,c,f]=(t?"#020918 #f8fafc #0f172b #8194af #1b222f":"#ffffff #020918 #ffffff #586a84 #e2e8f0").split(" "),h=(t?"#485096 #5198d3 #bc81e3 #e7000b #009689 #51a2ff #d98b09 #8194af":"#485096 #1c689f #782aa2 #e10000 #007266 #0061be #9c5400 #586a84").split(" "),u={surface:e,"on-surface":n,"surface-container":l,"on-surface-variant":c,outline:c,"outline-variant":f};return V.forEach((p,g)=>{let y=h[g],m=ut(y,t?"#ffffff":"#000000",t?0.55:0.94);if(u[p]=y,u[`on-${p}`]=t&&(g===2||g===7)?e:"#f8fafc",u[`${p}-container`]=ut(y,e,t?0.28:0.12),u[`${p}-text`]=m,g<4)u[`on-${p}-container`]=m}),u}var wt=(()=>({light:dt(!1),dark:dt(!0)}))(),Jt=["primary","secondary","tertiary","error"],R=(()=>{let t={surface:"--background","on-surface":"--foreground","surface-container":"--card","on-surface-variant":"--muted-foreground",outline:"--muted-foreground","outline-variant":"--border"};for(let e of V)t[e]=`--${e}`,t[`on-${e}`]=`--${e}-foreground`,t[`${e}-container`]=`--${e}-container`,t[`${e}-text`]=`--${e}-text`;for(let e of Jt)t[`on-${e}-container`]=`--${e}-text`;return t})();var Yt=/^(?:#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})|(?:rgb|hsl|oklch|oklab)a?\([0-9a-z .,%/+-]*\)|[a-z]+)$/i,Qt={fill:"f",stroke:"s","stop-color":"c"},te={on:"-foreground",text:"-text",container:"-container"},F=(t,e)=>Object.hasOwn(t,e);function ee(t,e){let n=t.palette;if(n&&F(n,e))return n[e];let l=wt[t.theme];return F(l,e)?l[e]:void 0}function vt(t,e,n,l){let c,f;if(typeof n==="object"){if(c=Xt(n),!V.includes(n.tone))f=n}else if(F(R,n))c=n;else if(n==="currentColor"||n==="transparent"||Yt.test(n)){t.a[e]=n;return}else throw Error(`Invalid colour "${n}"`);let h=Qt[e];if(l.mode==="class"){if(!f)return void t.c.push(`nxgt-draw-${h}-${c}`);if(t.tone&&t.tone!==f.tone)throw Error(`Tones "${t.tone}" and "${f.tone}" meet on one element: use two nodes in a group`);return t.tone=f.tone,t.a["data-tone"]=f.tone,void t.c.push(`nxgt-draw-${h}-tone${f.variant&&f.variant!=="base"?`-${f.variant}`:""}`)}let u=ee(l,c);if(l.mode==="literal"){if(!u)throw Error(`No colour for "${c}": pass palette: { "${c}": "#rrggbb" }`);t.a[e]=u;return}let p=(F(R,c)?R[c]:void 0)??`--${f?.tone}${te[f?.variant??""]??""}`;t.a[e]=`var(${p}${u?`, ${u}`:""})`}var ne=["translate","rotate","scale","skewX","skewY","matrix"];function W(t,e=2){if(!t)return"";let n=[];for(let l of ne){let c=t[l];if(c!==void 0)n.push(`${l}(${[c].flat().map((f)=>U(f,e)).join(" ")})`)}return n.join(" ")}function yt(t,e,n){let l=t.keys.get(e);if(l)return l;let c=`${t.prefix}-${++t.n}`;return t.keys.set(e,c),t.defs.push(n(c)),c}function re(t,e){let n={a:{offset:k(Math.min(1,Math.max(0,t.offset)),4)},c:[]};if(vt(n,"stop-color",t.color,e),t.opacity!==void 0)n.a["stop-opacity"]=k(t.opacity,3);if(n.c.length)n.a.class=n.c.join(" ");return{tag:"stop",attrs:n.a}}function ie(t,e,n){let l={id:e};if(t.type==="linear"){let c=(t.angle??0)*Math.PI/180,f=Math.cos(c)/2,h=Math.sin(c)/2;l.x1=k(0.5-f,4),l.y1=k(0.5-h,4),l.x2=k(0.5+f,4),l.y2=k(0.5+h,4)}else for(let c of["cx","cy","r","fx","fy"])if(t[c]!==void 0)l[c]=k(t[c],4);return{tag:t.type==="linear"?"linearGradient":"radialGradient",attrs:l,children:t.stops.map((c)=>re(c,n))}}function ht(t,e,n,l,c){let f={id:t,width:e,height:n,patternUnits:"userSpaceOnUse"};if(c)f.patternTransform=c;return{tag:"pattern",attrs:f,children:l}}function ae(t,e){return yt(e,JSON.stringify(t),(n)=>{if(t.type==="linear"||t.type==="radial")return ie(t,n,e);if(t.type==="pattern"){let h=t.children.map((u)=>e.emit(u));return ht(n,k(t.w,e.p),k(t.h,e.p),h,W(t.transform,e.p))}let l=t.gap??8;if(!(l>0))throw Error("hatch gap > 0");let c=e.emit({type:"rect",x:0,y:0,w:t.width??1.5,h:l,fill:t.color??"currentColor"}),f=W({rotate:(t.angle??45)-90},e.p);return ht(n,k(l,e.p),k(l,e.p),[c],f)})}function _(t,e,n,l){if(n==="none")t.a[e]="none";else if(typeof n==="object"&&"type"in n)t.a[e]=`url(#${ae(n,l)})`;else vt(t,e,n,l)}function pt(t,e,n){return yt(n,t+JSON.stringify(e),(l)=>({tag:t,attrs:{id:l},children:[n.emit(e)]}))}function se(t){let e=[];for(let n of t){if(n[0]==="Z")continue;for(let l=n[0]==="A"?n.length-2:1;l+1<n.length;l+=2)e.push([n[l],n[l+1]])}return e}var gt=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]);function le(t,e){let n=e.find((c)=>gt(c,t)>0.000001);if(!n)return;let l=gt(n,t);return[(t[0]-n[0])/l,(t[1]-n[1])/l]}function ce(t,e,n,l){let c=(m,x)=>[e[0]-n[0]*m-n[1]*x,e[1]-n[1]*m+n[0]*x],f=l*0.4,[h,u]=[c(l,f),c(l,-f)];if(t==="triangle")return{segs:[["M",...e],["L",...h],["L",...u],["Z"]],filled:!0};if(t==="open")return{segs:[["M",...c(l*0.8,f)],["L",...e],["L",...c(l*0.8,-f)]],filled:!1};if(t==="bar")return{segs:[["M",...c(0,f)],["L",...c(0,-f)]],filled:!1};let p=l*0.35,[g,y]=c(p,0);return{segs:[["M",g-p,y],["A",p,p,0,1,0,g+p,y],["A",p,p,0,1,0,g-p,y],["Z"]],filled:!0}}function fe(t,e,n){let l=[...t];return l[l.length-2]+=e,l[l.length-1]+=n,l}function ue(t,e,n){let l=[...t],c=[],f=se(t);if(f.length<2||t[t.length-1]?.[0]==="Z")return{segs:t,heads:c};let h=[[e.end,[...f].reverse(),l.length-1],[e.start,f,0]];for(let[u,p,g]of h){let y=u&&le(p[0],p);if(!u||!y)continue;let{kind:m,size:x}=typeof u==="string"?{kind:u,size:void 0}:u,S=x??6+3*n;c.push(ce(m,p[0],y,S));let T=m==="triangle"?0.8*S:m==="circle"?0.6*S:0;l[g]=fe(l[g],-y[0]*T,-y[1]*T)}return{segs:l,heads:c}}function xt(t,e=2){let n="";for(let l of t){n+=l[0];for(let c=1;c<l.length;c++)n+=(c>1?" ":"")+U(l[c],e)}return n}var de={contain:"xMidYMid meet",cover:"xMidYMid slice",fill:"none"},z=(t)=>typeof t==="object"&&("paint"in t);function he(t){if(t.type==="path")return t.segs;if(t.type==="line")return[["M",t.x1,t.y1],["L",t.x2,t.y2]];if(t.type!=="polygon")return[];let e=t.points.map((n,l)=>[l?"L":"M",n[0],n[1]]);if(!t.open)e.push(["Z"]);return e}function pe(t,e,n){let l="stroke"in t?t.stroke:void 0,f=(z(l)?l:void 0)?.width??t.strokeWidth??1,{segs:h,heads:u}=ue(he(t),e,f),p=(z(l)?l.paint:l)??"currentColor";return{el:{tag:"path",attrs:{d:xt(h,n.p)}},heads:u.map((g)=>n.emit(g.filled?{type:"path",segs:g.segs,fill:p,stroke:"none"}:{type:"path",segs:g.segs,fill:"none",stroke:{paint:p,width:f,cap:"round",join:"round"}}))}}var ge={rect:["x","y","w","h"],image:["x","y","w","h"],ellipse:["cx","cy","rx","ry"],line:["x1","y1","x2","y2"]},me={w:"width",h:"height"};function we(t,e){let n=(f)=>k(f,e.p),l=(f)=>({el:f,heads:[]}),c={};for(let f of ge[t.type]??[])c[me[f]??f]=n(t[f]);switch(t.type){case"rect":{if(t.r!==void 0){let[f,h]=typeof t.r==="number"?[t.r,t.r]:t.r;if(c.rx=n(f),h!==f)c.ry=n(h)}return l({tag:"rect",attrs:c})}case"ellipse":return l({tag:"ellipse",attrs:c});case"text":return l(ft(t,e));case"group":return l({tag:"g",attrs:c,children:t.children.map((f)=>e.emit(f))});case"image":if(c.href=t.href,c.preserveAspectRatio=de[t.fit??"contain"],t.alt)c["aria-label"]=t.alt;return l({tag:"image",attrs:c});default:if(t.arrow&&(t.arrow.start||t.arrow.end))return pe(t,t.arrow,e);if(t.type==="line")return l({tag:"line",attrs:c});if(t.type==="polygon"){let f=t.points.map((h)=>`${n(h[0])},${n(h[1])}`).join(" ");return l({tag:t.open?"polyline":"polygon",attrs:{points:f}})}return l({tag:"path",attrs:{d:xt(t.segs,e.p)}})}}var ve=["path","line","polyline","polygon","rect","ellipse"];function ye(t,e,n){if(t.fill!==void 0)_(n,"fill",t.fill,e);let l=t.stroke,c;if(l!==void 0)c=z(l)?l:void 0,_(n,"stroke",z(l)?l.paint:l,e);let f=c?.width??t.strokeWidth;if(f!==void 0)n.a["stroke-width"]=k(f,e.p);if(c?.dash)n.a["stroke-dasharray"]=c.dash.map((h)=>k(h,e.p)).join(" ");if(c?.cap)n.a["stroke-linecap"]=c.cap;if(c?.join)n.a["stroke-linejoin"]=c.join;if(c?.opacity!==void 0)n.a["stroke-opacity"]=k(c.opacity,3)}var bt=(t,e)=>{if(e.length)t.attrs.class=[t.attrs.class,...e].filter(Boolean).join(" ")};function xe(t,e,n,l){let c=n.attrs,f=W(t.transform,e.p);if(f)c.transform=f;if(t.opacity!==void 0)c.opacity=k(t.opacity,3);if(t.clip)c["clip-path"]=`url(#${pt("clipPath",t.clip,e)})`;if(t.mask)c.mask=`url(#${pt("mask",t.mask,e)})`;let h=t.className?[t.className]:[];if(t.anim){let{kind:u,step:p=0,dur:g="m"}=t.anim,y="nxgt-draw-";if(h.push("nxgt-draw-"+(u==="draw-on"?"on":"appear"),`nxgt-draw-d-${Math.min(19,Math.max(0,p|0))}`,`nxgt-draw-t-${g}`),u==="draw-on"&&ve.includes(l.tag))l.attrs.pathLength=1}bt(n,h);for(let[u,p]of Object.entries(t.meta??{}))c[`data-m-${u}`]=p;if(t.id!==void 0)n.node=t.id;if(t.label!==void 0)n.label=t.label;if(t.interactive)n.interactive=!0}function $t(t,e){let n={a:{},c:[]},{el:l,heads:c}=we(t,e);if(ye(t,e,n),t.type==="polygon"&&t.open&&t.fill===void 0)n.a.fill="none";if(c.length&&t.stroke===void 0)_(n,"stroke","currentColor",e);Object.assign(l.attrs,n.a),bt(l,n.c);let f=c.length?{tag:"g",attrs:{},children:[l,...c]}:l;return xe(t,e,f,l),f}function kt(t,e,n){let l=t.precision??2;if(!(l>=0&&l<=6))throw Error("precision is 0 to 6");return{mode:t.colors??"literal",theme:t.theme??"light",palette:t.palette,p:Math.trunc(l),prefix:t.idPrefix??"dr",n:0,defs:[],keys:new Map,font:n,emit:e}}var Et=(t)=>new Set(t.split(" ")),be=Et("svg g path rect ellipse line polygon polyline text tspan image defs linearGradient radialGradient stop pattern clipPath mask"),$e=Et("id class aria-label viewBox preserveAspectRatio width height x y dy cx cy r rx ry x1 y1 x2 y2 fx fy d points transform pathLength fill stroke stroke-width stroke-linecap stroke-linejoin stroke-dasharray stroke-opacity opacity stop-color stop-opacity clip-path mask offset patternUnits patternTransform font-family font-size font-weight font-style text-anchor href"),mt=/^[A-Za-z][\w-]*$/,ke=/^data-[a-z][a-z0-9-]*$/,Ee=/^(?:aria-label|data-m-.*)$/,Se=/[<>\\@;\u0000-\u001f]|NaN|Infinity/,Te=/^(?:https?:|data:image\/(?:png|jpeg|gif|webp)[;,]|[^:?#]*(?:[/?#]|$))/i;function q(t){let e=new Set,n=new Set,l=[],c=(f)=>{let h=(u)=>{throw Error(`Unsafe drawing at <${f.tag}>: ${u}`)};if(!be.has(f.tag))h("tag not allowed");if(f.node!==void 0){if(!mt.test(f.node)||n.has(f.node))h(`node id "${f.node}" unsafe or twice`);n.add(f.node)}for(let[u,p]of Object.entries(f.attrs)){let g=(m)=>h(`${u} ${m}`);if(!$e.has(u)&&!ke.test(u))g("not allowed");if(typeof p==="number"){if(!Number.isFinite(p))g("not finite");continue}if(u==="href"){if(!Te.test(p))g("must be http(s), relative or a data:image (png, jpeg, gif, webp)");continue}if(Ee.test(u))continue;if(Se.test(p))g("unsafe value");if((u==="id"||u==="data-tone")&&!mt.test(p))g("unsafe");if(u==="id"){if(e.has(p))g("used twice");e.add(p)}if(u==="class"&&!/^[\w -]+$/.test(p))g("unsafe");let y=p.replace(/url\(#([A-Za-z][\w-]*)\)/g,(m,x)=>(l.push(x),""));if(/url\s*\(|(?:javascript|data|https?|file):/i.test(y))g("holds a URL")}for(let u of f.children??[])if(typeof u!=="string")c(u)};c(t);for(let f of l)if(!e.has(f))throw Error(`Unsafe drawing: url(#${f}) points to no element of the drawing`)}function K(t,e={}){if(t.version!==1)throw Error("Unsupported scene version");let n=kt(e,(m)=>$t(m,n),t.font),l=(m)=>k(m,n.p),[c,f,h,u]=t.viewBox??[0,0,t.w,t.h],p=[];if(t.background!==void 0)p.push(n.emit({type:"rect",x:c,y:f,w:h,h:u,fill:t.background}));for(let m of t.children)p.push(n.emit(m));let g=n.defs.length?[{tag:"defs",attrs:{},children:n.defs}]:[],y={tag:"svg",attrs:{width:l(t.w),height:l(t.h),viewBox:`${l(c)} ${l(f)} ${l(h)} ${l(u)}`},children:[...g,...p]};return q(y),y}function X(t,e={}){let n=kt(e,(f)=>$t(f,n)),l=n.emit(t),c=n.defs.length?{tag:"g",attrs:{},children:[{tag:"defs",attrs:{},children:n.defs},l]}:l;return q(c),c}function I(t){let e=t.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"");return e?`dr-${e}`:"dr"}var J={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},Ae=/[\s,]*([-+]?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)/iy,Ce=/[\s,]*([01])/y;function Ne(t,e,n,l){let c=n?l.x:0,f=n?l.y:0,h=(m)=>[e[m]+c,e[m+1]+f],{c:u,q:p}=l;l.c=l.q=void 0;let g;if(t==="m"||t==="l"){let[m,x]=h(0);g=[t==="m"?"M":"L",m,x]}else if(t==="h")g=["L",e[0]+c,l.y];else if(t==="v")g=["L",l.x,e[0]+f];else if(t==="c"||t==="s"){let m=t==="c"?2:0,x=t==="c"?h(0):u?[2*l.x-u[0],2*l.y-u[1]]:[l.x,l.y],S=h(m),[T,C]=h(m+2);l.c=S,g=["C",x[0],x[1],S[0],S[1],T,C]}else if(t==="q"||t==="t"){let m=t==="q"?2:0,x=t==="q"?h(0):p?[2*l.x-p[0],2*l.y-p[1]]:[l.x,l.y],[S,T]=h(m);l.q=x,g=["Q",x[0],x[1],S,T]}else{let[m,x]=h(5);g=["A",e[0],e[1],e[2],e[3]?1:0,e[4]?1:0,m,x]}let y=g.length;if(l.x=g[y-2],l.y=g[y-1],g[0]==="M")[l.sx,l.sy]=[l.x,l.y];return g}function Me(t){let e=[],n={x:0,y:0,sx:0,sy:0},l=0,c="",f=(h)=>{h.lastIndex=l;let u=h.exec(t);if(!u)throw Error(`Invalid path data at ${l}: "${t.slice(l,l+12)}"`);return l=h.lastIndex,Number(u[1])};for(;;){while(l<t.length&&/[\s,]/.test(t.charAt(l)))l++;if(l>=t.length)break;let h=t.charAt(l);if(/[a-z]/i.test(h)){if(J[h.toLowerCase()]===void 0)throw Error(`Unknown path command "${h}" at ${l}`);c=h,l++}else if(!c||!J[c.toLowerCase()])throw Error(`Invalid path data at ${l}: "${t.slice(l,l+12)}"`);let u=c.toLowerCase();if(u==="z"){e.push(["Z"]),[n.x,n.y,n.c,n.q]=[n.sx,n.sy,void 0,void 0];continue}let p=[];for(let g=0;g<J[u];g++)p.push(f(u==="a"&&(g===3||g===4)?Ce:Ae));if(e.push(Ne(u,p,c!==c.toUpperCase(),n)),u==="m")c=c==="m"?"l":"L"}if(e.length&&e[0]?.[0]!=="M")throw Error("Path data must start with a moveto");return e}function Le(){let t=[],e=(l)=>(t.push(l),n),n={segs:t,moveTo:(l,c)=>e(["M",l,c]),lineTo:(l,c)=>e(["L",l,c]),curveTo:(l,c,f,h,u,p)=>e(["C",l,c,f,h,u,p]),quadTo:(l,c,f,h)=>e(["Q",l,c,f,h]),arcTo:(l,c,f,h,u,p,g)=>e(["A",l,c,f,h?1:0,u?1:0,p,g]),close:()=>e(["Z"])};return n}function St(t,e=[]){return{version:1,...t,children:e}}var Y=(t)=>({type:"rect",...t});var Tt=(t)=>({type:"polygon",...t});function Q(t,e={}){let n;if(typeof t==="string")n=Me(t);else{let l=Le();n=(t(l)??l).segs}return{type:"path",segs:n,...e}}function j(t,e){return{type:"text",text:t,...e}}function Nt(t){return t.decorative?"none":t.interactive?"group":"img"}function Ie(t,e){return t==="none"?{"aria-hidden":"true",focusable:"false"}:e===void 0?{}:{role:t,"aria-label":e}}function Mt(t){return t.interactive?{role:t.clickable?"button":"img",tabIndex:0,"aria-label":t.label}:t.label!==void 0&&t.root==="group"?{role:"img","aria-label":t.label}:{}}var Pe=()=>{return},Lt=E({root:"img",decorative:!1,exactText:!1,register:()=>Pe}),rt=()=>P(Lt);function It({role:t,title:e,description:n,descriptionId:l,attrs:c,rest:f,children:h}){let u=t!=="none"&&e!==void 0&&n!==void 0?l:void 0,p=[f["aria-describedby"],u].filter(Boolean).join(" ")||void 0;return oe("svg",{xmlns:"http://www.w3.org/2000/svg",...f,...c,...Ie(t,e),"aria-describedby":p,"data-slot":"drawing"},u===void 0?null:oe("desc",{id:u},n),h)}var je={sans:"Inter Variable, Inter, system-ui, sans-serif",serif:"Georgia, serif",mono:"ui-monospace, monospace"};function Oe(t,e,n){let l=[];for(let c of t.split(`
3
3
  `)){let f="";for(let h of c.split(" ")){let u=f?`${f} ${h}`:h;if(n(u)<=e)f=u;else{f&&l.push(f),f="";for(let p of h)f&&n(f+p)>e&&(l.push(f),f=""),f+=p}}l.push(f)}return l}function De(){try{let t=document.createElement("canvas").getContext("2d");return t?(e)=>(t.font=e,(n)=>t.measureText(n).width):void 0}catch{return}}function tt(t,e,n){if(t.type==="group"){let p=t.children.map((g)=>tt(g,e,n));return p.some((g,y)=>g!==t.children[y])?{...t,children:p}:t}if(t.type!=="text"||t.maxWidth===void 0)return t;let l=t.size??e?.size??14,c=`${t.italic?"italic ":""}${t.weight??400} ${l}px ${je[e?.family??"sans"]}`,f=Oe(t.text,t.maxWidth,n(c)),{maxWidth:h,...u}=t;return{...u,text:f.join(`
4
4
  `)}}function Pt(t){return"version"in t||t.type==="group"?t.children.some(Pt):t.type==="text"&&t.maxWidth!==void 0}function Re(t,e){let n=De();if(!n)return t;let l=(c)=>n(c);if("version"in t){let c=t.children.map((f)=>tt(f,t.font,l));return{...t,children:c}}return tt(t,e,l)}function jt(t,e,n){let l=i(t);l.current=t;let c=w(()=>e&&Pt(t)?JSON.stringify([t,n]):"",[t,e,n]),[f,h]=o();return Z(()=>{if(!c)return;let u=!0,p=()=>{let g=Re(l.current,n);u&&g!==l.current&&h({signature:c,value:g})};return p(),document.fonts?.ready.then(p),()=>{u=!1}},[c,n]),f&&f.signature===c?f.value:t}function Fe(t){let{id:e,handlers:n,onNodeClick:l,children:c}=t,f=n.onClick!==void 0||l!==void 0&&e!==void 0,h=Mt({interactive:!0,clickable:f,label:t.label,root:t.root});return oe("g",{...h,"data-id":e,className:t.outline?"nxgt-draw-i nxgt-draw-ig":"nxgt-draw-i",onClick:f?(u)=>{n.onClick?.(u),e!==void 0&&l?.(e,u)}:void 0,onKeyDown:(u)=>{n.onKeyDown?.(u),f&&!u.defaultPrevented&&u.target===u.currentTarget&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),u.currentTarget.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})))},onPointerEnter:n.onPointerEnter,onPointerLeave:n.onPointerLeave,onPointerDown:n.onPointerDown,onPointerUp:n.onPointerUp,onFocus:n.onFocus,onBlur:n.onBlur},c)}var ze=/^(aria|data)-/;function Be(t){return t==="class"?"className":ze.test(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function Ge(t){let e={};for(let[n,l]of Object.entries(t))e[Be(n)]=l;return e}var Ue=new Set("x y dy width height cx cy rx ry x1 y1 x2 y2 d points transform pathLength font-family font-size font-weight font-style text-anchor".split(" "));function Ot(t){if(t.tag==="defs"||t.tag==="text"||t.tag==="tspan"||t.attrs["data-m-sketch"]==="fill")return;let e={};for(let[l,c]of Object.entries(t.attrs))Ue.has(l)&&(e[l]=c);let n=t.children?.map((l)=>typeof l=="string"?l:Ot(l)).filter((l)=>l!==void 0);return t.tag==="g"?n?.length?{tag:"g",attrs:e,children:n}:void 0:(e.class="nxgt-draw-ring",t.tag==="image"?{tag:"rect",attrs:e}:{tag:t.tag,attrs:e,children:n})}var Dt=(t,e)=>Object.keys(t).includes(e),et={};function We(t,e){let n=t.node!==void 0&&Dt(e.handlers??et,t.node)?(e.handlers??et)[t.node]:void 0;return n?e.self&&t.interactive?{...e.self,...n}:n:t.interactive?e.self??{}:void 0}function Rt(t,e=et){return t.interactive||t.node!==void 0&&Dt(e,t.node)?!0:(t.children??[]).some((n)=>typeof n!="string"&&Rt(n,e))}var _e=(t)=>t.tag==="g"&&!t.children?.length;function B(t,e,n){let l=We(t,e),c=Ge(t.attrs);if(t.node!==void 0&&!l&&(c["data-id"]=t.node),!l){let g=Mt({interactive:!1,clickable:!1,label:t.label,root:e.root});Object.assign(c,g)}let f=(t.children??[]).map((g,y)=>typeof g=="string"?g:B(g,e,`${n}.${y}`)),h=e.slot!==void 0&&_e(t);h&&f.push(e.slot);let u=t.node===void 0?`p:${n}`:`n:${t.node}`;if(!l)return oe(t.tag,{...c,key:u},...f);let p=h?void 0:Ot(t);return a(Fe,{id:t.node,label:t.label,handlers:l,onNodeClick:e.onNodeClick,root:e.root,outline:h||!p,children:[oe(t.tag,c,...f),p&&B(p,e,`${n}.ring`)]},u)}function Ve({el:t,...e}){return B(t,e,"0")}function qe({el:t,...e}){return(t.children??[]).map((n,l)=>typeof n=="string"?n:B(n,e,`0.${l}`))}var Ze=["onClick","onPointerEnter","onPointerLeave","onPointerDown","onPointerUp","onFocus","onBlur","onKeyDown"];function He(t){let e={},n={...t};for(let l of Ze)t[l]!==void 0&&(e[l]=t[l]),delete n[l];return[e,n]}function Ke({node:t,events:e,slot:n}){let l=rt(),c=I(H()),f=t.interactive===!0||Object.keys(e).length>0;if(f&&l.decorative)throw Error("A decorative drawing has an interactive node: give the Drawing a title instead");let{register:h}=l;Z(()=>f?h():void 0,[f,h]);let u=jt(t,l.exactText&&t.type==="text"),p=f?{...u,interactive:!0}:u,g=X(l.transform?.(p)??p,{idPrefix:c,colors:"class"});return r(Ve,{el:g,self:e,root:l.root,onNodeClick:l.onNodeClick,slot:n})}function Xe(t){let[e,n]=He(t);return r(Ke,{node:Y(n),events:e})}var Je="A decorative drawing has an interactive node: give the Drawing a title instead";function Ye(t){let{scene:e,handlers:n,onNodeClick:l,title:c,description:f,decorative:h,exactText:u,...p}=t,g=I(H()),{transformScene:y}=rt(),m=jt(e,u!==!1),x=w(()=>K(y?.(m)??m,{idPrefix:g,colors:"class"}),[m,g,y]),S=Rt(x,n);if(h&&S)throw Error(Je);let T=Nt({decorative:h,interactive:S});return r(It,{role:T,title:c,description:f,descriptionId:`${g}-desc`,attrs:x.attrs,rest:p,children:r(qe,{el:x,handlers:n,onNodeClick:l,root:T})})}function Qe(t){let{w:e,h:n,viewBox:l,background:c,interactive:f=!1,onNodeClick:h,children:u,title:p,description:g,decorative:y,exactText:m,...x}=t,S=`${I(H())}-desc`,{transform:T,transformScene:C}=rt(),[b,N]=o(0),M=d(()=>(N((G)=>G+1),()=>N((G)=>G-1)),[]),L=Nt({decorative:y,interactive:f||b>0}),Gt=w(()=>({root:L,decorative:y===!0,exactText:m!==!1,onNodeClick:h,register:M,transform:T,transformScene:C}),[L,y,m,h,M,T,C]),[it,ot,at,st]=l??[0,0,e,n],lt=null;return c!==void 0&&(lt=r(Xe,{x:it,y:ot,w:at,h:st,fill:c})),r(It,{role:L,title:p,description:g,descriptionId:S,attrs:{width:e,height:n,viewBox:`${it} ${ot} ${at} ${st}`},rest:x,children:a(Lt.Provider,{value:Gt,children:[lt,u]})})}function tn(t){return t.scene?r(Ye,{...t}):r(Qe,{...t})}function en({message:t,source:e,className:n}){let{t:l}=v();return a("div",{"data-slot":"flow-diagram",role:"alert",className:s("w-full rounded-lg border border-destructive/50 bg-background p-3 text-sm",n),children:[r("p",{className:"font-medium text-destructive",children:l("material.flow.error","This flow cannot be drawn.")}),r("p",{className:"mt-1",children:t}),e===void 0?null:r("pre",{className:"mt-2 overflow-x-auto whitespace-pre-wrap font-mono text-xs",children:e})]})}function nn(t){let e=(n)=>n===void 0?t("material.flow.next-end","Then the end."):t("material.flow.next","Then go to step {n}.",{n});return{step:(n,l,c)=>c?t("material.flow.step-role","Step {n}, {role}: {label}.",{n,role:c,label:l}):t("material.flow.step","Step {n}: {label}.",{n,label:l}),branch:(n,l)=>n?l===void 0?t("material.flow.branch-end","{label}: end.",{label:n}):t("material.flow.branch","{label}: go to step {n}.",{label:n,n:l}):e(l),next:e}}var A=class extends Error{line;code;constructor(t,e,n){super(e>0?`Line ${e}: ${n}`:n),this.name="FlowParseError",this.code=t,this.line=e}},nt=1.3,Ft=22,At=["primary","secondary","tertiary"];function rn(t,e){if(!e)return;let n=t.roles.indexOf(e);return n<0?void 0:At[n%At.length]}function on(t){let e=new Map(t.steps.map((c,f)=>[c.id,f])),n=t.steps.length,l=[];return t.steps.forEach((c,f)=>{if(c.branches.length===0)l.push({from:f,to:f+1,label:""});else for(let h of c.branches){let u=h.target==="end"?n:e.get(h.target)??n;l.push({from:f,to:u,label:h.label})}}),l}function an(t,e,n){let l=[...t.steps.map((f)=>({id:f.id,text:f.text,role:f.role,decision:f.branches.length>1,terminal:!1})),{id:"end",text:e,role:void 0,decision:!1,terminal:!0}],c=8;return l.map((f,h)=>{let u=208-(f.decision?28:0),p=D(f.text,14,f.terminal?600:500,u),g=20+(f.role?18.3:0)+p.length*14*nt,y=Math.max(g,((n.get(h)??0)-1)*Ft+24),m={...f,text:p,tone:rn(t,f.role),y:c,h:y};return c+=y+44,m})}function Ct(t,e){return t.decision?240-14*Math.min(1,Math.abs(e)/(t.h/2)):240}function sn(t){let e=[];return t.map(([n,l])=>{let c=e.findIndex((f)=>f.every(([h,u])=>l<h||n>u));return c<0&&(c=e.length,e.push([])),e[c]?.push([n,l]),c})}function zt(t){let e=new Map;for(let n of t)e.set(n.from,(e.get(n.from)??0)+1),e.set(n.to,(e.get(n.to)??0)+1);return e}function ln(t,e){let n=zt(e),l=new Map;return(c)=>{let f=n.get(c)??1,h=l.get(c)??0;if(l.set(c,h+1),f<2)return 0;let u=((t[c]?.h??0)-12)/(f-1);return(h-(f-1)/2)*Math.min(Ft,u)}}var Bt={fill:"transparent",stroke:"outline",strokeWidth:1.5};function cn(t,e,n){return t.decision?Tt({points:[[22,t.y],[226,t.y],[240,t.y+t.h/2],[226,t.y+t.h],[22,t.y+t.h],[8,t.y+t.h/2]],fill:e,stroke:n,strokeWidth:1.5}):Y({x:8,y:t.y,w:232,h:t.h,r:t.terminal?t.h/2:10,fill:e,stroke:n,strokeWidth:1.5})}function fn(t){let e=t.tone,n=e?`on-${e}-container`:"on-surface",l=cn(t,e?`${e}-container`:"surface-container",e??(t.decision?"tertiary":"outline")),c=t.terminal||t.decision?"middle":"start",f=c==="middle"?124:20,h=[l],u=t.y+10;return t.role&&(h.push(j(t.role,{x:f,y:u,anchor:c,baseline:"top",size:11,weight:700,fill:n})),u+=11*nt+4),h.push(j(t.text.join(`
@@ -0,0 +1 @@
1
+ import"./index.qy1pndre.js";import"./index.mjfjqm0b.js";import"./index.pb5tn7q8.js";import{gc}from"./index.vm7ezzet.js";import"./index.b0pypc3w.js";import"./index.r8wc9n4q.js";import"./index.ybmxf4mt.js";export{gc as diagram};
@@ -1,4 +1,4 @@
1
- import{e,Qi,n,y,j,A,L,I,R,M,O,D,u,m,pn,z}from"./index.fgsp5qqn.js";import{al,il,sl,on,Wt,sn,ln,ar,Fr,cn,is,os,Ar,ss,ls,un,zn,Kt,ll}from"./index.cf9nd6xy.js";import{Fe,Ke}from"./index.0hrfbrja.js";var ve=Ke(function(Bt,jt){(function(t,i){typeof Bt=="object"&&typeof jt<"u"?jt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=i()})(Bt,function(){var t="day";return function(i,a,s){var o=function(F){return F.add(4-F.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),t);var E,K,H,et,W=o(this),V=(E=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(E).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var T=h.startOf;h.startOf=function(F,E){var K=this.$utils(),H=!!K.u(E)||E;return K.p(F)==="isoweek"?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):T.bind(this)(F,E)}}})});var Te=Ke(function(Gt,Xt){(function(t,i){typeof Gt=="object"&&typeof Xt<"u"?Xt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Gt,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,o=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,T={},F=function(S){return(S=+S)+(S>68?1900:2000)},E=function(S){return function(Y){this[S]=+Y}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(Y){if(!Y)return 0;if(Y==="Z")return 0;var C=Y.match(/([+-]|\d\d)/g),Z=60*C[1]+(+C[2]||0);return Z===0?0:C[0]==="+"?-Z:Z}(S)}],H=function(S){var Y=T[S];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},et=function(S,Y){var C,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(S.indexOf(Z(rt,0,Y))>-1){C=rt>12;break}}else C=S===(Y?"pm":"PM");return C},W={A:[h,function(S){this.afternoon=et(S,!1)}],a:[h,function(S){this.afternoon=et(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[o,E("seconds")],ss:[o,E("seconds")],m:[o,E("minutes")],mm:[o,E("minutes")],H:[o,E("hours")],h:[o,E("hours")],HH:[o,E("hours")],hh:[o,E("hours")],D:[o,E("day")],DD:[s,E("day")],Do:[h,function(S){var Y=T.ordinal,C=S.match(/\d+/);if(this.day=C[0],Y)for(var Z=1;Z<=31;Z+=1)Y(Z).replace(/\[|\]/g,"")===S&&(this.day=Z)}],w:[o,E("week")],ww:[s,E("week")],M:[o,E("month")],MM:[s,E("month")],MMM:[h,function(S){var Y=H("months"),C=(H("monthsShort")||Y.map(function(Z){return Z.slice(0,3)})).indexOf(S)+1;if(C<1)throw Error();this.month=C%12||C}],MMMM:[h,function(S){var Y=H("months").indexOf(S)+1;if(Y<1)throw Error();this.month=Y%12||Y}],Y:[/[+-]?\d+/,E("year")],YY:[s,function(S){this.year=F(S)}],YYYY:[/\d{4}/,E("year")],Z:K,ZZ:K};function V(S){var Y,C;Y=S,C=T&&T.formats;for(var Z=(S=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,p){var w=p&&p.toUpperCase();return q||C[p]||t[p]||C[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,_,c){return _||c.slice(1)})})).match(i),rt=Z.length,st=0;st<rt;st+=1){var U=Z[st],x=W[U],k=x&&x[0],P=x&&x[1];Z[st]=P?{regex:k,parser:P}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},p=0,w=0;p<rt;p+=1){var b=Z[p];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),g=_.exec(v)[0];c.call(q,g),Q=Q.replace(g,"")}}return function(f){var B=f.afternoon;if(B!==void 0){var r=f.hours;B?r<12&&(f.hours+=12):r===12&&(f.hours=0),delete f.afternoon}}(q),q}}return function(S,Y,C){C.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(F=S.parseTwoDigitYear);var Z=Y.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:k}=st;this.$u=x;var P=k[1];if(typeof P=="string"){var Q=k[2]===!0,q=k[3]===!0,p=Q||q,w=k[2];q&&(w=k[2]),T=this.$locale(),!Q&&w&&(T=C.Ls[w]),this.$d=function(v,g,f,B){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1000:1)*v);var r=V(g)(v),{year:G,month:d,day:at,hours:l,minutes:N,seconds:X,milliseconds:it,zone:nt,week:J}=r,tt=new Date,mt=at||(G||d?1:tt.getDate()),kt=G||tt.getFullYear(),Tt=0;G&&!d||(Tt=d>0?d-1:tt.getMonth());var bt,xt=l||0,ot=N||0,pt=X||0,ft=it||0;return nt?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft+60*nt.offset*1000)):f?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft)):(bt=new Date(kt,Tt,mt,xt,ot,pt,ft),J&&(bt=B(bt).week(J).toDate()),bt)}catch(lt){return new Date("")}}(U,P,x,C),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),p&&U!=this.format(P)&&(this.$d=new Date("")),T={}}else if(P instanceof Array)for(var b=P.length,_=1;_<=b;_+=1){k[1]=P[_-1];var c=C.apply(this,k);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}_===b&&(this.$d=new Date(""))}else rt.call(this,st)}}})});var be=Ke(function(Ut,qt){(function(t,i){typeof Ut=="object"&&typeof qt<"u"?qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(Ut,function(){return function(t,i){var a=i.prototype,s=a.format;a.format=function(o){var h=this,T=this.$locale();if(!this.isValid())return s.bind(this)(o);var F=this.$utils(),E=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(K){switch(K){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return T.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return T.ordinal(h.week(),"W");case"w":case"ww":return F.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return F.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return F.s(String(h.$H===0?24:h.$H),K==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1000);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return K}});return s.bind(this)(E)}}})});var xe=Ke(function(Zt,Qt){(function(t,i){typeof Zt=="object"&&typeof Qt<"u"?Qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Zt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,F=2628000000,E=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,H={years:T,months:F,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,k){return new rt(U,k,x.$l)},V=function(U){return i.p(U)+"s"},S=function(U){return U<0},Y=function(U){return S(U)?Math.ceil(U):Math.floor(U)},C=function(U){return Math.abs(U)},Z=function(U,x){return U?S(U)?{negative:!0,format:""+C(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(k,P,Q){var q=this;if(this.$d={},this.$l=Q,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return W(k*H[V(P)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(b){q.$d[V(b)]=k[b]}),this.calMilliseconds(),this;if(typeof k=="string"){var p=k.match(E);if(p){var w=p.slice(2).map(function(b){return b!=null?Number(b):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var x=U.prototype;return x.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(P,Q){return P+(k.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=Y(k/T),k%=T,this.$d.months=Y(k/F),k%=F,this.$d.days=Y(k/h),k%=h,this.$d.hours=Y(k/o),k%=o,this.$d.minutes=Y(k/s),k%=s,this.$d.seconds=Y(k/a),k%=a,this.$d.milliseconds=k},x.toISOString=function(){var k=Z(this.$d.years,"Y"),P=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),p=Z(this.$d.hours,"H"),w=Z(this.$d.minutes,"M"),b=this.$d.seconds||0;this.$d.milliseconds&&(b+=this.$d.milliseconds/1000,b=Math.round(1000*b)/1000);var _=Z(b,"S"),c=k.negative||P.negative||q.negative||p.negative||w.negative||_.negative,v=p.format||w.format||_.format?"T":"",g=(c?"-":"")+"P"+k.format+P.format+q.format+v+p.format+w.format+_.format;return g==="P"||g==="-P"?"P0D":g},x.toJSON=function(){return this.toISOString()},x.format=function(k){var P=k||"YYYY-MM-DDTHH:mm:ss",Q={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return P.replace(K,function(q,p){return p||String(Q[q])})},x.as=function(k){return this.$ms/H[V(k)]},x.get=function(k){var P=this.$ms,Q=V(k);return Q==="milliseconds"?P%=1000:P=Q==="weeks"?Y(P/H[Q]):this.$d[Q],P||0},x.add=function(k,P,Q){var q;return q=P?k*H[V(P)]:et(k)?k.$ms:W(k,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(k,P){return this.add(k,P,!0)},x.locale=function(k){var P=this.clone();return P.$l=k,P},x.clone=function(){return W(this.$ms,this)},x.humanize=function(k){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},U}(),st=function(U,x,k){return U.add(x.years()*k,"y").add(x.months()*k,"M").add(x.days()*k,"d").add(x.hours()*k,"h").add(x.minutes()*k,"m").add(x.seconds()*k,"s").add(x.milliseconds()*k,"ms")};return function(U,x,k){t=k,i=k().$utils(),k.duration=function(q,p){var w=k.locale();return W(q,{$l:w},p)},k.isDuration=et;var P=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,p){return et(q)?st(this,q,1):P.bind(this)(q,p)},x.prototype.subtract=function(q,p){return et(q)?st(this,q,-1):Q.bind(this)(q,p)}}})});function Ne(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function He(t){return"translate("+t+",0)"}function Be(t){return"translate(0,"+t+")"}function je(t){return(i)=>+t(i)}function Ge(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Xe(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,F=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,K=t===Lt||t===At?-1:1,H=t===At||t===Nt?"x":"y",et=t===Lt||t===Ht?He:Be;function W(V){var S=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,Y=o==null?i.tickFormat?i.tickFormat.apply(i,a):Ne:o,C=Math.max(h,0)+F,Z=i.range(),rt=+Z[0]+E,st=+Z[Z.length-1]+E,U=(i.bandwidth?Ge:je)(i.copy(),E),x=V.selection?V.selection():V,k=x.selectAll(".domain").data([null]),P=x.selectAll(".tick").data(S,i).order(),Q=P.exit(),q=P.enter().append("g").attr("class","tick"),p=P.select("line"),w=P.select("text");if(k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(q),p=p.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*C).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)k=k.transition(V),P=P.transition(V),p=p.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+E):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+E)});Q.remove(),k.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+E+"V"+st+"H"+K*T:"M"+E+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+E+"H"+st+"V"+K*T:"M"+rt+","+E+"H"+st),P.attr("opacity",1).attr("transform",function(b){return et(U(b)+E)}),p.attr(H+"2",K*h),w.attr(H,K*C).text(Y),x.filter(Xe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Nt?"start":t===At?"end":"middle"),x.each(function(){this.__axis=U})}return W.scale=function(V){return arguments.length?(i=V,W):i},W.ticks=function(){return a=Array.from(arguments),W},W.tickArguments=function(V){return arguments.length?(a=V==null?[]:Array.from(V),W):a.slice()},W.tickValues=function(V){return arguments.length?(s=V==null?null:Array.from(V),W):s&&s.slice()},W.tickFormat=function(V){return arguments.length?(o=V,W):o},W.tickSize=function(V){return arguments.length?(h=T=+V,W):h},W.tickSizeInner=function(V){return arguments.length?(h=+V,W):h},W.tickSizeOuter=function(V){return arguments.length?(T=+V,W):T},W.tickPadding=function(V){return arguments.length?(F=+V,W):F},W.offset=function(V){return arguments.length?(E=+V,W):E},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Fe(pn(),1),ut=Fe(Qi(),1),Ce=Fe(ve(),1),Me=Fe(Te(),1),Ee=Fe(be(),1),Dt=Fe(Qi(),1),Re=Fe(xe(),1);var te=function(){var t=e(function(_,c,v,g){for(v=v||{},g=_.length;g--;v[_[g]]=c);return v},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],a=[1,26],s=[1,27],o=[1,28],h=[1,29],T=[1,30],F=[1,31],E=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],S=[1,12],Y=[1,13],C=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],k=[1,22],P=[1,23],Q=[1,25],q=[1,35],p={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:e(function(c,v,g,f,B,r,G){var d=r.length-1;switch(B){case 1:return r[d-1];case 2:this.$=[];break;case 3:r[d-1].push(r[d]),this.$=r[d-1];break;case 4:case 5:this.$=r[d];break;case 6:case 7:this.$=[];break;case 8:f.setWeekday("monday");break;case 9:f.setWeekday("tuesday");break;case 10:f.setWeekday("wednesday");break;case 11:f.setWeekday("thursday");break;case 12:f.setWeekday("friday");break;case 13:f.setWeekday("saturday");break;case 14:f.setWeekday("sunday");break;case 15:f.setWeekend("friday");break;case 16:f.setWeekend("saturday");break;case 17:f.setDateFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 18:f.enableInclusiveEndDates(),this.$=r[d].substr(18);break;case 19:f.TopAxis(),this.$=r[d].substr(8);break;case 20:f.setAxisFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 21:f.setTickInterval(r[d].substr(13)),this.$=r[d].substr(13);break;case 22:f.setExcludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 23:f.setIncludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 24:f.setTodayMarker(r[d].substr(12)),this.$=r[d].substr(12);break;case 27:f.setDiagramTitle(r[d].substr(6)),this.$=r[d].substr(6);break;case 28:this.$=r[d].trim(),f.setAccTitle(this.$);break;case 29:case 30:this.$=r[d].trim(),f.setAccDescription(this.$);break;case 31:f.addSection(r[d].substr(8)),this.$=r[d].substr(8);break;case 33:f.addTask(r[d-1],r[d]),this.$="task";break;case 34:this.$=r[d-1],f.setClickEvent(r[d-1],r[d],null);break;case 35:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],r[d]);break;case 36:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],null),f.setLink(r[d-2],r[d]);break;case 37:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-2],r[d-1]),f.setLink(r[d-3],r[d]);break;case 38:this.$=r[d-2],f.setClickEvent(r[d-2],r[d],null),f.setLink(r[d-2],r[d-1]);break;case 39:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-1],r[d]),f.setLink(r[d-3],r[d-2]);break;case 40:this.$=r[d-1],f.setLink(r[d-1],r[d]);break;case 41:case 47:this.$=r[d-1]+" "+r[d];break;case 42:case 43:case 45:this.$=r[d-2]+" "+r[d-1]+" "+r[d];break;case 44:case 46:this.$=r[d-3]+" "+r[d-2]+" "+r[d-1]+" "+r[d];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:s,14:o,15:h,16:T,17:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,37:24,38:Q,40:q},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:a,13:s,14:o,15:h,16:T,17:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,37:24,38:Q,40:q},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:e(function(c,v){if(v.recoverable)this.trace(c);else{var g=Error(c);throw g.hash=v,g}},"parseError"),parse:e(function(c){var v=this,g=[0],f=[],B=[null],r=[],G=this.table,d="",at=0,l=0,N=0,X=2,it=1,nt=r.slice.call(arguments,1),J=Object.create(this.lexer),tt={yy:{}};for(var mt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,mt))tt.yy[mt]=this.yy[mt];if(J.setInput(c,tt.yy),tt.yy.lexer=J,tt.yy.parser=this,typeof J.yylloc>"u")J.yylloc={};var kt=J.yylloc;r.push(kt);var Tt=J.options&&J.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(dt){g.length=g.length-2*dt,B.length=B.length-dt,r.length=r.length-dt}e(bt,"popStack");function xt(){var dt=f.pop()||J.lex()||it;if(typeof dt!=="number"){if(dt instanceof Array)f=dt,dt=f.pop();dt=v.symbols_[dt]||dt}return dt}e(xt,"lex");var ot,pt,ft,lt,Pi,zt,wt={},Yt,yt,me,$t;while(!0){if(ft=g[g.length-1],this.defaultActions[ft])lt=this.defaultActions[ft];else{if(ot===null||typeof ot>"u")ot=xt();lt=G[ft]&&G[ft][ot]}if(typeof lt>"u"||!lt.length||!lt[0]){var Rt="";$t=[];for(Yt in G[ft])if(this.terminals_[Yt]&&Yt>X)$t.push("'"+this.terminals_[Yt]+"'");if(J.showPosition)Rt="Parse error on line "+(at+1)+`:
1
+ import{e,Qi,n,y,j,A,L,I,R,M,O,D,u,m,pn,z}from"./index.mjfjqm0b.js";import{al,il,sl,on,Wt,sn,ln,ar,Fr,cn,is,os,Ar,ss,ls,un,zn,Kt,ll}from"./index.cf9nd6xy.js";import{Fe,Ke}from"./index.5vcex75v.js";var ve=Ke(function(Bt,jt){(function(t,i){typeof Bt=="object"&&typeof jt<"u"?jt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=i()})(Bt,function(){var t="day";return function(i,a,s){var o=function(F){return F.add(4-F.isoWeekday(),t)},h=a.prototype;h.isoWeekYear=function(){return o(this).year()},h.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),t);var E,K,H,et,W=o(this),V=(E=this.isoWeekYear(),K=this.$u,H=(K?s.utc:s)().year(E).startOf("year"),et=4-H.isoWeekday(),H.isoWeekday()>4&&(et+=7),H.add(et,t));return W.diff(V,"week")+1},h.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var T=h.startOf;h.startOf=function(F,E){var K=this.$utils(),H=!!K.u(E)||E;return K.p(F)==="isoweek"?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):T.bind(this)(F,E)}}})});var Te=Ke(function(Gt,Xt){(function(t,i){typeof Gt=="object"&&typeof Xt<"u"?Xt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Gt,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,o=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,T={},F=function(S){return(S=+S)+(S>68?1900:2000)},E=function(S){return function(Y){this[S]=+Y}},K=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(Y){if(!Y)return 0;if(Y==="Z")return 0;var C=Y.match(/([+-]|\d\d)/g),Z=60*C[1]+(+C[2]||0);return Z===0?0:C[0]==="+"?-Z:Z}(S)}],H=function(S){var Y=T[S];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},et=function(S,Y){var C,Z=T.meridiem;if(Z){for(var rt=1;rt<=24;rt+=1)if(S.indexOf(Z(rt,0,Y))>-1){C=rt>12;break}}else C=S===(Y?"pm":"PM");return C},W={A:[h,function(S){this.afternoon=et(S,!1)}],a:[h,function(S){this.afternoon=et(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[o,E("seconds")],ss:[o,E("seconds")],m:[o,E("minutes")],mm:[o,E("minutes")],H:[o,E("hours")],h:[o,E("hours")],HH:[o,E("hours")],hh:[o,E("hours")],D:[o,E("day")],DD:[s,E("day")],Do:[h,function(S){var Y=T.ordinal,C=S.match(/\d+/);if(this.day=C[0],Y)for(var Z=1;Z<=31;Z+=1)Y(Z).replace(/\[|\]/g,"")===S&&(this.day=Z)}],w:[o,E("week")],ww:[s,E("week")],M:[o,E("month")],MM:[s,E("month")],MMM:[h,function(S){var Y=H("months"),C=(H("monthsShort")||Y.map(function(Z){return Z.slice(0,3)})).indexOf(S)+1;if(C<1)throw Error();this.month=C%12||C}],MMMM:[h,function(S){var Y=H("months").indexOf(S)+1;if(Y<1)throw Error();this.month=Y%12||Y}],Y:[/[+-]?\d+/,E("year")],YY:[s,function(S){this.year=F(S)}],YYYY:[/\d{4}/,E("year")],Z:K,ZZ:K};function V(S){var Y,C;Y=S,C=T&&T.formats;for(var Z=(S=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,q,p){var w=p&&p.toUpperCase();return q||C[p]||t[p]||C[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,_,c){return _||c.slice(1)})})).match(i),rt=Z.length,st=0;st<rt;st+=1){var U=Z[st],x=W[U],k=x&&x[0],P=x&&x[1];Z[st]=P?{regex:k,parser:P}:U.replace(/^\[|\]$/g,"")}return function(Q){for(var q={},p=0,w=0;p<rt;p+=1){var b=Z[p];if(typeof b=="string")w+=b.length;else{var{regex:_,parser:c}=b,v=Q.slice(w),g=_.exec(v)[0];c.call(q,g),Q=Q.replace(g,"")}}return function(f){var B=f.afternoon;if(B!==void 0){var r=f.hours;B?r<12&&(f.hours+=12):r===12&&(f.hours=0),delete f.afternoon}}(q),q}}return function(S,Y,C){C.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(F=S.parseTwoDigitYear);var Z=Y.prototype,rt=Z.parse;Z.parse=function(st){var{date:U,utc:x,args:k}=st;this.$u=x;var P=k[1];if(typeof P=="string"){var Q=k[2]===!0,q=k[3]===!0,p=Q||q,w=k[2];q&&(w=k[2]),T=this.$locale(),!Q&&w&&(T=C.Ls[w]),this.$d=function(v,g,f,B){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1000:1)*v);var r=V(g)(v),{year:G,month:d,day:at,hours:l,minutes:N,seconds:X,milliseconds:it,zone:nt,week:J}=r,tt=new Date,mt=at||(G||d?1:tt.getDate()),kt=G||tt.getFullYear(),Tt=0;G&&!d||(Tt=d>0?d-1:tt.getMonth());var bt,xt=l||0,ot=N||0,pt=X||0,ft=it||0;return nt?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft+60*nt.offset*1000)):f?new Date(Date.UTC(kt,Tt,mt,xt,ot,pt,ft)):(bt=new Date(kt,Tt,mt,xt,ot,pt,ft),J&&(bt=B(bt).week(J).toDate()),bt)}catch(lt){return new Date("")}}(U,P,x,C),this.init(),w&&w!==!0&&(this.$L=this.locale(w).$L),p&&U!=this.format(P)&&(this.$d=new Date("")),T={}}else if(P instanceof Array)for(var b=P.length,_=1;_<=b;_+=1){k[1]=P[_-1];var c=C.apply(this,k);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}_===b&&(this.$d=new Date(""))}else rt.call(this,st)}}})});var be=Ke(function(Ut,qt){(function(t,i){typeof Ut=="object"&&typeof qt<"u"?qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(Ut,function(){return function(t,i){var a=i.prototype,s=a.format;a.format=function(o){var h=this,T=this.$locale();if(!this.isValid())return s.bind(this)(o);var F=this.$utils(),E=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(K){switch(K){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return T.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return T.ordinal(h.week(),"W");case"w":case"ww":return F.s(h.week(),K==="w"?1:2,"0");case"W":case"WW":return F.s(h.isoWeek(),K==="W"?1:2,"0");case"k":case"kk":return F.s(String(h.$H===0?24:h.$H),K==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1000);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return K}});return s.bind(this)(E)}}})});var xe=Ke(function(Zt,Qt){(function(t,i){typeof Zt=="object"&&typeof Qt<"u"?Qt.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=i()})(Zt,function(){var t,i,a=1000,s=60000,o=3600000,h=86400000,T=31536000000,F=2628000000,E=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,H={years:T,months:F,days:h,hours:o,minutes:s,seconds:a,milliseconds:1,weeks:604800000},et=function(U){return U instanceof rt},W=function(U,x,k){return new rt(U,k,x.$l)},V=function(U){return i.p(U)+"s"},S=function(U){return U<0},Y=function(U){return S(U)?Math.ceil(U):Math.floor(U)},C=function(U){return Math.abs(U)},Z=function(U,x){return U?S(U)?{negative:!0,format:""+C(U)+x}:{negative:!1,format:""+U+x}:{negative:!1,format:""}},rt=function(){function U(k,P,Q){var q=this;if(this.$d={},this.$l=Q,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return W(k*H[V(P)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(b){q.$d[V(b)]=k[b]}),this.calMilliseconds(),this;if(typeof k=="string"){var p=k.match(E);if(p){var w=p.slice(2).map(function(b){return b!=null?Number(b):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var x=U.prototype;return x.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(P,Q){return P+(k.$d[Q]||0)*H[Q]},0)},x.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=Y(k/T),k%=T,this.$d.months=Y(k/F),k%=F,this.$d.days=Y(k/h),k%=h,this.$d.hours=Y(k/o),k%=o,this.$d.minutes=Y(k/s),k%=s,this.$d.seconds=Y(k/a),k%=a,this.$d.milliseconds=k},x.toISOString=function(){var k=Z(this.$d.years,"Y"),P=Z(this.$d.months,"M"),Q=+this.$d.days||0;this.$d.weeks&&(Q+=7*this.$d.weeks);var q=Z(Q,"D"),p=Z(this.$d.hours,"H"),w=Z(this.$d.minutes,"M"),b=this.$d.seconds||0;this.$d.milliseconds&&(b+=this.$d.milliseconds/1000,b=Math.round(1000*b)/1000);var _=Z(b,"S"),c=k.negative||P.negative||q.negative||p.negative||w.negative||_.negative,v=p.format||w.format||_.format?"T":"",g=(c?"-":"")+"P"+k.format+P.format+q.format+v+p.format+w.format+_.format;return g==="P"||g==="-P"?"P0D":g},x.toJSON=function(){return this.toISOString()},x.format=function(k){var P=k||"YYYY-MM-DDTHH:mm:ss",Q={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return P.replace(K,function(q,p){return p||String(Q[q])})},x.as=function(k){return this.$ms/H[V(k)]},x.get=function(k){var P=this.$ms,Q=V(k);return Q==="milliseconds"?P%=1000:P=Q==="weeks"?Y(P/H[Q]):this.$d[Q],P||0},x.add=function(k,P,Q){var q;return q=P?k*H[V(P)]:et(k)?k.$ms:W(k,this).$ms,W(this.$ms+q*(Q?-1:1),this)},x.subtract=function(k,P){return this.add(k,P,!0)},x.locale=function(k){var P=this.clone();return P.$l=k,P},x.clone=function(){return W(this.$ms,this)},x.humanize=function(k){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},U}(),st=function(U,x,k){return U.add(x.years()*k,"y").add(x.months()*k,"M").add(x.days()*k,"d").add(x.hours()*k,"h").add(x.minutes()*k,"m").add(x.seconds()*k,"s").add(x.milliseconds()*k,"ms")};return function(U,x,k){t=k,i=k().$utils(),k.duration=function(q,p){var w=k.locale();return W(q,{$l:w},p)},k.isDuration=et;var P=x.prototype.add,Q=x.prototype.subtract;x.prototype.add=function(q,p){return et(q)?st(this,q,1):P.bind(this)(q,p)},x.prototype.subtract=function(q,p){return et(q)?st(this,q,-1):Q.bind(this)(q,p)}}})});function Ne(t){return t}var Lt=1,Nt=2,Ht=3,At=4,ke=0.000001;function He(t){return"translate("+t+",0)"}function Be(t){return"translate(0,"+t+")"}function je(t){return(i)=>+t(i)}function Ge(t,i){if(i=Math.max(0,t.bandwidth()-i*2)/2,t.round())i=Math.round(i);return(a)=>+t(a)+i}function Xe(){return!this.__axis}function ye(t,i){var a=[],s=null,o=null,h=6,T=6,F=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,K=t===Lt||t===At?-1:1,H=t===At||t===Nt?"x":"y",et=t===Lt||t===Ht?He:Be;function W(V){var S=s==null?i.ticks?i.ticks.apply(i,a):i.domain():s,Y=o==null?i.tickFormat?i.tickFormat.apply(i,a):Ne:o,C=Math.max(h,0)+F,Z=i.range(),rt=+Z[0]+E,st=+Z[Z.length-1]+E,U=(i.bandwidth?Ge:je)(i.copy(),E),x=V.selection?V.selection():V,k=x.selectAll(".domain").data([null]),P=x.selectAll(".tick").data(S,i).order(),Q=P.exit(),q=P.enter().append("g").attr("class","tick"),p=P.select("line"),w=P.select("text");if(k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(q),p=p.merge(q.append("line").attr("stroke","currentColor").attr(H+"2",K*h)),w=w.merge(q.append("text").attr("fill","currentColor").attr(H,K*C).attr("dy",t===Lt?"0em":t===Ht?"0.71em":"0.32em")),V!==x)k=k.transition(V),P=P.transition(V),p=p.transition(V),w=w.transition(V),Q=Q.transition(V).attr("opacity",ke).attr("transform",function(b){return isFinite(b=U(b))?et(b+E):this.getAttribute("transform")}),q.attr("opacity",ke).attr("transform",function(b){var _=this.parentNode.__axis;return et((_&&isFinite(_=_(b))?_:U(b))+E)});Q.remove(),k.attr("d",t===At||t===Nt?T?"M"+K*T+","+rt+"H"+E+"V"+st+"H"+K*T:"M"+E+","+rt+"V"+st:T?"M"+rt+","+K*T+"V"+E+"H"+st+"V"+K*T:"M"+rt+","+E+"H"+st),P.attr("opacity",1).attr("transform",function(b){return et(U(b)+E)}),p.attr(H+"2",K*h),w.attr(H,K*C).text(Y),x.filter(Xe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Nt?"start":t===At?"end":"middle"),x.each(function(){this.__axis=U})}return W.scale=function(V){return arguments.length?(i=V,W):i},W.ticks=function(){return a=Array.from(arguments),W},W.tickArguments=function(V){return arguments.length?(a=V==null?[]:Array.from(V),W):a.slice()},W.tickValues=function(V){return arguments.length?(s=V==null?null:Array.from(V),W):s&&s.slice()},W.tickFormat=function(V){return arguments.length?(o=V,W):o},W.tickSize=function(V){return arguments.length?(h=T=+V,W):h},W.tickSizeInner=function(V){return arguments.length?(h=+V,W):h},W.tickSizeOuter=function(V){return arguments.length?(T=+V,W):T},W.tickPadding=function(V){return arguments.length?(F=+V,W):F},W.offset=function(V){return arguments.length?(E=+V,W):E},W}function ge(t){return ye(Lt,t)}function pe(t){return ye(Ht,t)}var Se=Fe(pn(),1),ut=Fe(Qi(),1),Ce=Fe(ve(),1),Me=Fe(Te(),1),Ee=Fe(be(),1),Dt=Fe(Qi(),1),Re=Fe(xe(),1);var te=function(){var t=e(function(_,c,v,g){for(v=v||{},g=_.length;g--;v[_[g]]=c);return v},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],a=[1,26],s=[1,27],o=[1,28],h=[1,29],T=[1,30],F=[1,31],E=[1,32],K=[1,33],H=[1,34],et=[1,9],W=[1,10],V=[1,11],S=[1,12],Y=[1,13],C=[1,14],Z=[1,15],rt=[1,16],st=[1,19],U=[1,20],x=[1,21],k=[1,22],P=[1,23],Q=[1,25],q=[1,35],p={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:e(function(c,v,g,f,B,r,G){var d=r.length-1;switch(B){case 1:return r[d-1];case 2:this.$=[];break;case 3:r[d-1].push(r[d]),this.$=r[d-1];break;case 4:case 5:this.$=r[d];break;case 6:case 7:this.$=[];break;case 8:f.setWeekday("monday");break;case 9:f.setWeekday("tuesday");break;case 10:f.setWeekday("wednesday");break;case 11:f.setWeekday("thursday");break;case 12:f.setWeekday("friday");break;case 13:f.setWeekday("saturday");break;case 14:f.setWeekday("sunday");break;case 15:f.setWeekend("friday");break;case 16:f.setWeekend("saturday");break;case 17:f.setDateFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 18:f.enableInclusiveEndDates(),this.$=r[d].substr(18);break;case 19:f.TopAxis(),this.$=r[d].substr(8);break;case 20:f.setAxisFormat(r[d].substr(11)),this.$=r[d].substr(11);break;case 21:f.setTickInterval(r[d].substr(13)),this.$=r[d].substr(13);break;case 22:f.setExcludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 23:f.setIncludes(r[d].substr(9)),this.$=r[d].substr(9);break;case 24:f.setTodayMarker(r[d].substr(12)),this.$=r[d].substr(12);break;case 27:f.setDiagramTitle(r[d].substr(6)),this.$=r[d].substr(6);break;case 28:this.$=r[d].trim(),f.setAccTitle(this.$);break;case 29:case 30:this.$=r[d].trim(),f.setAccDescription(this.$);break;case 31:f.addSection(r[d].substr(8)),this.$=r[d].substr(8);break;case 33:f.addTask(r[d-1],r[d]),this.$="task";break;case 34:this.$=r[d-1],f.setClickEvent(r[d-1],r[d],null);break;case 35:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],r[d]);break;case 36:this.$=r[d-2],f.setClickEvent(r[d-2],r[d-1],null),f.setLink(r[d-2],r[d]);break;case 37:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-2],r[d-1]),f.setLink(r[d-3],r[d]);break;case 38:this.$=r[d-2],f.setClickEvent(r[d-2],r[d],null),f.setLink(r[d-2],r[d-1]);break;case 39:this.$=r[d-3],f.setClickEvent(r[d-3],r[d-1],r[d]),f.setLink(r[d-3],r[d-2]);break;case 40:this.$=r[d-1],f.setLink(r[d-1],r[d]);break;case 41:case 47:this.$=r[d-1]+" "+r[d];break;case 42:case 43:case 45:this.$=r[d-2]+" "+r[d-1]+" "+r[d];break;case 44:case 46:this.$=r[d-3]+" "+r[d-2]+" "+r[d-1]+" "+r[d];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:s,14:o,15:h,16:T,17:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,37:24,38:Q,40:q},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:a,13:s,14:o,15:h,16:T,17:F,18:E,19:18,20:K,21:H,22:et,23:W,24:V,25:S,26:Y,27:C,28:Z,29:rt,30:st,31:U,33:x,35:k,36:P,37:24,38:Q,40:q},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:e(function(c,v){if(v.recoverable)this.trace(c);else{var g=Error(c);throw g.hash=v,g}},"parseError"),parse:e(function(c){var v=this,g=[0],f=[],B=[null],r=[],G=this.table,d="",at=0,l=0,N=0,X=2,it=1,nt=r.slice.call(arguments,1),J=Object.create(this.lexer),tt={yy:{}};for(var mt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,mt))tt.yy[mt]=this.yy[mt];if(J.setInput(c,tt.yy),tt.yy.lexer=J,tt.yy.parser=this,typeof J.yylloc>"u")J.yylloc={};var kt=J.yylloc;r.push(kt);var Tt=J.options&&J.options.ranges;if(typeof tt.yy.parseError==="function")this.parseError=tt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function bt(dt){g.length=g.length-2*dt,B.length=B.length-dt,r.length=r.length-dt}e(bt,"popStack");function xt(){var dt=f.pop()||J.lex()||it;if(typeof dt!=="number"){if(dt instanceof Array)f=dt,dt=f.pop();dt=v.symbols_[dt]||dt}return dt}e(xt,"lex");var ot,pt,ft,lt,Pi,zt,wt={},Yt,yt,me,$t;while(!0){if(ft=g[g.length-1],this.defaultActions[ft])lt=this.defaultActions[ft];else{if(ot===null||typeof ot>"u")ot=xt();lt=G[ft]&&G[ft][ot]}if(typeof lt>"u"||!lt.length||!lt[0]){var Rt="";$t=[];for(Yt in G[ft])if(this.terminals_[Yt]&&Yt>X)$t.push("'"+this.terminals_[Yt]+"'");if(J.showPosition)Rt="Parse error on line "+(at+1)+`:
2
2
  `+J.showPosition()+`
3
3
  Expecting `+$t.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else Rt="Parse error on line "+(at+1)+": Unexpected "+(ot==it?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(Rt,{text:J.match,token:this.terminals_[ot]||ot,line:J.yylineno,loc:kt,expected:$t})}if(lt[0]instanceof Array&&lt.length>1)throw Error("Parse Error: multiple actions possible at state: "+ft+", token: "+ot);switch(lt[0]){case 1:if(g.push(ot),B.push(J.yytext),r.push(J.yylloc),g.push(lt[1]),ot=null,!pt){if(l=J.yyleng,d=J.yytext,at=J.yylineno,kt=J.yylloc,N>0)N--}else ot=pt,pt=null;break;case 2:if(yt=this.productions_[lt[1]][1],wt.$=B[B.length-yt],wt._$={first_line:r[r.length-(yt||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(yt||1)].first_column,last_column:r[r.length-1].last_column},Tt)wt._$.range=[r[r.length-(yt||1)].range[0],r[r.length-1].range[1]];if(zt=this.performAction.apply(wt,[d,l,at,tt.yy,lt[1],B,r].concat(nt)),typeof zt<"u")return zt;if(yt)g=g.slice(0,-1*yt*2),B=B.slice(0,-1*yt),r=r.slice(0,-1*yt);g.push(this.productions_[lt[1]][0]),B.push(wt.$),r.push(wt._$),me=G[g[g.length-2]][g[g.length-1]],g.push(me);break;case 3:return!0}}return!0},"parse")},w=function(){var _={EOF:1,parseError:e(function(v,g){if(this.yy.parser)this.yy.parser.parseError(v,g);else throw Error(v)},"parseError"),setInput:e(function(c,v){if(this.yy=v||this.yy||{},this._input=c,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];return this.offset=0,this},"setInput"),input:e(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var v=c.match(/(?:\r\n?|\n).*/g);if(v)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),c},"input"),unput:e(function(c){var v=c.length,g=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var f=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1)this.yylineno-=g.length-1;var B=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-v},this.options.ranges)this.yylloc.range=[B[0],B[0]+this.yyleng-v];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(c){this.unput(this.match.slice(c))},"less"),pastInput:e(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var c=this.match;if(c.length<20)c+=this._input.substr(0,20-c.length);return(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var c=this.pastInput(),v=Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{Zo}from"./index.yd3167gn.js";export{Zo as createGitGraphServices};
@@ -1,4 +1,4 @@
1
- import{ee}from"./index.yf0h5qnv.js";import{Br}from"./index.vnhefjwh.js";import{e,n,F,k,y,A,L,I,R,M,O,D,u,ra,m,xs,K,z}from"./index.fgsp5qqn.js";import{se}from"./index.9zhger75.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=F.gitGraph,Z=e(()=>K({...Ce,...k().gitGraph}),"getConfig"),l=new Br(()=>{let t=Z(),{mainBranchName:r,mainBranchOrder:a}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return xs({length:7})}e(ne,"getID");function pe(t,r){let a=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!a[h])a[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){l.records.direction=t},"setDirection"),Ee=e(function(t){n.debug("options str",t),t=t?.trim(),t=t||"{}";try{l.records.options=JSON.parse(t)}catch(r){n.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return l.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:a,type:c,tags:i}=t;n.info("commit",r,a,c,i),n.debug("Entering commit:",r,a,c,i);let h=Z();a=y.sanitizeText(a,h),r=y.sanitizeText(r,h),i=i?.map((o)=>y.sanitizeText(o,h));let s={id:a?a:l.records.seq+"-"+ne(),message:r,seq:l.records.seq++,type:c??C.NORMAL,tags:i??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};if(l.records.head=s,n.info("main branch",h.mainBranchName),l.records.commits.has(s.id))n.warn(`Commit ID ${s.id} already exists`);l.records.commits.set(s.id,s),l.records.branches.set(l.records.currBranch,s.id),n.debug("in pushCommit "+s.id)},"commit"),Me=e(function(t){let{name:r,order:a}=t;if(r=y.sanitizeText(r,Z()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:a}),ye(r),n.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:a,type:c,tags:i}=t,h=Z();if(r=y.sanitizeText(r,h),a)a=y.sanitizeText(a,h);let s=l.records.branches.get(l.records.currBranch),o=l.records.branches.get(r),g=s?l.records.commits.get(s):void 0,p=o?l.records.commits.get(o):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!l.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&l.records.commits.has(a)){let d=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${c} ${i?.join(" ")}`,token:`merge ${r} ${a} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=o?o:"",f={id:a||`${l.records.seq}-${ne()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,x],branch:l.records.currBranch,type:C.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),n.debug(l.records.branches),n.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:a,tags:c,parent:i}=t;n.debug("Entering cherryPick:",r,a,c);let h=Z();if(r=y.sanitizeText(r,h),a=y.sanitizeText(a,h),c=c?.map((g)=>y.sanitizeText(g,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=l.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===C.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!l.records.commits.has(a)){if(o===l.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=l.records.branches.get(l.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=l.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let x={id:l.records.seq+"-"+ne(),message:`cherry-picked ${s?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,s.id],branch:l.records.currBranch,type:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===C.MERGE?`|parent:${i}`:""}`]};l.records.head=x,l.records.commits.set(x.id,x),l.records.branches.set(l.records.currBranch,x.id),n.debug(l.records.branches),n.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,Z()),!l.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{l.records.currBranch=t;let r=l.records.branches.get(l.records.currBranch);if(r===void 0||!r)l.records.head=null;else l.records.head=l.records.commits.get(r)??null}},"checkout");function he(t,r,a){let c=t.indexOf(r);if(c===-1)t.push(a);else t.splice(c,1,a)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),a="";t.forEach(function(i){if(i===r)a+="\t*";else a+="\t|"});let c=[a,r.id,r.seq];for(let i in l.records.branches)if(l.records.branches.get(i)===r.id)c.push(i);if(n.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=l.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(l.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=l.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){n.debug(l.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){l.reset(),A()},"clear"),_e=e(function(){return[...l.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=e(function(){return l.records.branches},"getBranches"),De=e(function(){return l.records.commits},"getCommits"),xe=e(function(){let t=[...l.records.commits.values()];return t.forEach(function(r){n.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),We=e(function(){return l.records.currBranch},"getCurrentBranch"),qe=e(function(){return l.records.direction},"getDirection"),Ae=e(function(){return l.records.head},"getHead"),ue={commitType:C,getConfig:Z,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:I,getAccDescription:M,setAccDescription:R,setDiagramTitle:O,getDiagramTitle:D},He=e((t,r)=>{if(ee(t,r),t.dir)r.setDirection(t.dir);for(let a of t.statements)Se(a,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else n.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?C[t.type]:C.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?C[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let r=await se("gitGraph",t);n.debug(r),He(r,ue)},"parse")},Y=10,j=40,q=4,S=2,U=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),V=e((t,r,a=!1)=>{if(a&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),_=new Map,G=new Map,ae=30,Q=new Map,oe=[],N=0,w="LR",Ve=e(()=>{_.clear(),G.clear(),Q.clear(),N=0,oe=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,a,c;if(w==="BT")a=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else a=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?G.get(i)?.y:G.get(i)?.x;if(h!==void 0&&a(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",a=1/0;return t.forEach((c)=>{let i=G.get(c).y;if(i<=a)r=c,a=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,a)=>{let c=a,i=a,h=[];t.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)c=Qe(o),i=Math.max(c,i);else h.push(o);et(o,c)}),c=i,h.forEach((s)=>{tt(s,c,a)}),t.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(c=G.get(g).y-j,c<=i)i=c;let p=_.get(o.branch).pos,x=c-Y;G.set(o.id,{x:p,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let a=G.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Qe=e((t)=>Je(t)+j,"calculateCommitPosition"),et=e((t,r)=>{let a=_.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+Y;return G.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=_.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;G.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),g=ge.has(s??""),p=Ue.has(s??"");if(h===C.HIGHLIGHT)t.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${V(i,U,g)} ${c}-outer`),t.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${V(i,U,g)} ${c}-inner`);else if(h===C.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",a.x),x.attr("cy",a.y),x.attr("r",o?7:10),x.attr("class",`commit ${r.id} commit${V(i,U,g)}`),h===C.MERGE){let f=t.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}if(h===C.REVERSE){let f=t.append("path"),d=o?4:5;f.attr("d",`M ${a.x-d},${a.y-d}L${a.x+d},${a.y+d}M${a.x-d},${a.y+d}L${a.x+d},${a.y-d}`).attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.MERGE)&&i.showCommitLabel){let h=t.append("g"),s=h.insert("rect").attr("class","commit-label-bkg"),o=h.append("text").attr("x",c).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-S).attr("y",a.y+13.5).attr("width",g.width+2*S).attr("height",g.height+2*S),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*q+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*q)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let p=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+p+", "+x+") rotate(-45, "+c+", "+a.y+")")}}}},"drawCommitLabel"),ot=e((t,r,a,c)=>{if(r.tags.length>0){let i=0,h=0,s=0,o=[];for(let g of r.tags.reverse()){let p=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),f.attr("x",a.posWithOffset-d.width/2),o.push({tag:f,hole:x,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:x,yOffset:f}of o){let d=s/2,B=a.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
1
+ import{ee}from"./index.btq862bx.js";import{Br}from"./index.nphh2dtn.js";import{e,n,F,k,y,A,L,I,R,M,O,D,u,ra,m,xs,K,z}from"./index.mjfjqm0b.js";import{se}from"./index.yd3167gn.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=F.gitGraph,Z=e(()=>K({...Ce,...k().gitGraph}),"getConfig"),l=new Br(()=>{let t=Z(),{mainBranchName:r,mainBranchOrder:a}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return xs({length:7})}e(ne,"getID");function pe(t,r){let a=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!a[h])a[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){l.records.direction=t},"setDirection"),Ee=e(function(t){n.debug("options str",t),t=t?.trim(),t=t||"{}";try{l.records.options=JSON.parse(t)}catch(r){n.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return l.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:a,type:c,tags:i}=t;n.info("commit",r,a,c,i),n.debug("Entering commit:",r,a,c,i);let h=Z();a=y.sanitizeText(a,h),r=y.sanitizeText(r,h),i=i?.map((o)=>y.sanitizeText(o,h));let s={id:a?a:l.records.seq+"-"+ne(),message:r,seq:l.records.seq++,type:c??C.NORMAL,tags:i??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};if(l.records.head=s,n.info("main branch",h.mainBranchName),l.records.commits.has(s.id))n.warn(`Commit ID ${s.id} already exists`);l.records.commits.set(s.id,s),l.records.branches.set(l.records.currBranch,s.id),n.debug("in pushCommit "+s.id)},"commit"),Me=e(function(t){let{name:r,order:a}=t;if(r=y.sanitizeText(r,Z()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:a}),ye(r),n.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:a,type:c,tags:i}=t,h=Z();if(r=y.sanitizeText(r,h),a)a=y.sanitizeText(a,h);let s=l.records.branches.get(l.records.currBranch),o=l.records.branches.get(r),g=s?l.records.commits.get(s):void 0,p=o?l.records.commits.get(o):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!l.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&l.records.commits.has(a)){let d=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${c} ${i?.join(" ")}`,token:`merge ${r} ${a} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=o?o:"",f={id:a||`${l.records.seq}-${ne()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,x],branch:l.records.currBranch,type:C.MERGE,customType:c,customId:a?!0:!1,tags:i??[]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),n.debug(l.records.branches),n.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:a,tags:c,parent:i}=t;n.debug("Entering cherryPick:",r,a,c);let h=Z();if(r=y.sanitizeText(r,h),a=y.sanitizeText(a,h),c=c?.map((g)=>y.sanitizeText(g,h)),i=y.sanitizeText(i,h),!r||!l.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=l.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===C.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!l.records.commits.has(a)){if(o===l.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=l.records.branches.get(l.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=l.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let x={id:l.records.seq+"-"+ne(),message:`cherry-picked ${s?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,s.id],branch:l.records.currBranch,type:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${s.id}${s.type===C.MERGE?`|parent:${i}`:""}`]};l.records.head=x,l.records.commits.set(x.id,x),l.records.branches.set(l.records.currBranch,x.id),n.debug(l.records.branches),n.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,Z()),!l.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{l.records.currBranch=t;let r=l.records.branches.get(l.records.currBranch);if(r===void 0||!r)l.records.head=null;else l.records.head=l.records.commits.get(r)??null}},"checkout");function he(t,r,a){let c=t.indexOf(r);if(c===-1)t.push(a);else t.splice(c,1,a)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),a="";t.forEach(function(i){if(i===r)a+="\t*";else a+="\t|"});let c=[a,r.id,r.seq];for(let i in l.records.branches)if(l.records.branches.get(i)===r.id)c.push(i);if(n.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=l.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(l.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=l.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){n.debug(l.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){l.reset(),A()},"clear"),_e=e(function(){return[...l.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=e(function(){return l.records.branches},"getBranches"),De=e(function(){return l.records.commits},"getCommits"),xe=e(function(){let t=[...l.records.commits.values()];return t.forEach(function(r){n.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),We=e(function(){return l.records.currBranch},"getCurrentBranch"),qe=e(function(){return l.records.direction},"getDirection"),Ae=e(function(){return l.records.head},"getHead"),ue={commitType:C,getConfig:Z,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:I,getAccDescription:M,setAccDescription:R,setDiagramTitle:O,getDiagramTitle:D},He=e((t,r)=>{if(ee(t,r),t.dir)r.setDirection(t.dir);for(let a of t.statements)Se(a,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else n.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?C[t.type]:C.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?C[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let r=await se("gitGraph",t);n.debug(r),He(r,ue)},"parse")},Y=10,j=40,q=4,S=2,U=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),V=e((t,r,a=!1)=>{if(a&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),_=new Map,G=new Map,ae=30,Q=new Map,oe=[],N=0,w="LR",Ve=e(()=>{_.clear(),G.clear(),Q.clear(),N=0,oe=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,a,c;if(w==="BT")a=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else a=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?G.get(i)?.y:G.get(i)?.x;if(h!==void 0&&a(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",a=1/0;return t.forEach((c)=>{let i=G.get(c).y;if(i<=a)r=c,a=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,a)=>{let c=a,i=a,h=[];t.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)c=Qe(o),i=Math.max(c,i);else h.push(o);et(o,c)}),c=i,h.forEach((s)=>{tt(s,c,a)}),t.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(c=G.get(g).y-j,c<=i)i=c;let p=_.get(o.branch).pos,x=c-Y;G.set(o.id,{x:p,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let a=G.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Qe=e((t)=>Je(t)+j,"calculateCommitPosition"),et=e((t,r)=>{let a=_.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let c=a.pos,i=r+Y;return G.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,a)=>{let c=_.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+a,h=c.pos;G.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,a,c,i,h)=>{let{theme:s}=u(),o=ce.has(s??""),g=ge.has(s??""),p=Ue.has(s??"");if(h===C.HIGHLIGHT)t.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${V(i,U,g)} ${c}-outer`),t.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${V(i,U,g)} ${c}-inner`);else if(h===C.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",a.x),x.attr("cy",a.y),x.attr("r",o?7:10),x.attr("class",`commit ${r.id} commit${V(i,U,g)}`),h===C.MERGE){let f=t.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}if(h===C.REVERSE){let f=t.append("path"),d=o?4:5;f.attr("d",`M ${a.x-d},${a.y-d}L${a.x+d},${a.y+d}M${a.x-d},${a.y+d}L${a.x+d},${a.y-d}`).attr("class",`commit ${c} ${r.id} commit${V(i,U,g)}`)}}},"drawCommitBullet"),at=e((t,r,a,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.MERGE)&&i.showCommitLabel){let h=t.append("g"),s=h.insert("rect").attr("class","commit-label-bkg"),o=h.append("text").attr("x",c).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-S).attr("y",a.y+13.5).attr("width",g.width+2*S).attr("height",g.height+2*S),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*q+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*q)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let p=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+p+", "+x+") rotate(-45, "+c+", "+a.y+")")}}}},"drawCommitLabel"),ot=e((t,r,a,c)=>{if(r.tags.length>0){let i=0,h=0,s=0,o=[];for(let g of r.tags.reverse()){let p=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",a.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),s=Math.max(s,d.height),f.attr("x",a.posWithOffset-d.width/2),o.push({tag:f,hole:x,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:x,yOffset:f}of o){let d=s/2,B=a.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
2
2
  ${c-h/2-q/2},${B+S}
3
3
  ${c-h/2-q/2},${B-S}
4
4
  ${a.posWithOffset-h/2-q},${B-d-S}