orcaq 1.1.2 → 1.1.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 (127) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BJCrbji-.js → 5oARMrld.js} +1 -1
  3. package/.output/public/_nuxt/{kvtnkChG.js → 9sDqz0uT.js} +1 -1
  4. package/.output/public/_nuxt/{Bmgr9uz4.js → B-4cXhNx.js} +1 -1
  5. package/.output/public/_nuxt/{DpT8FO1Q.js → BC6CdfCG.js} +1 -1
  6. package/.output/public/_nuxt/{Ca0KO9Xq.js → BCAMWuzu.js} +1 -1
  7. package/.output/public/_nuxt/{Bq47tjcm.js → BG-rJefG.js} +1 -1
  8. package/.output/public/_nuxt/{BpvGVfME.js → BKFPmrcv.js} +1 -1
  9. package/.output/public/_nuxt/{COHOh4Oe.js → BMLhg7hE.js} +1 -1
  10. package/.output/public/_nuxt/{atdCACH-.js → BYOPXIhP.js} +1 -1
  11. package/.output/public/_nuxt/{B46blMXm.js → BYxQJ0gE.js} +1 -1
  12. package/.output/public/_nuxt/{BrNfge84.js → BZ4ThSRp.js} +1 -1
  13. package/.output/public/_nuxt/{Dq1JM9WZ.js → BZmDBfmV.js} +1 -1
  14. package/.output/public/_nuxt/{DHAL8jJG.js → B_ERKujF.js} +4 -4
  15. package/.output/public/_nuxt/{CycELG5y.js → BccuQbKA.js} +1 -1
  16. package/.output/public/_nuxt/{B6MkNyZd.js → BcyZ-eCi.js} +1 -1
  17. package/.output/public/_nuxt/{63YtjFEq.js → BdZsZgcB.js} +1 -1
  18. package/.output/public/_nuxt/{S1qa1a4x.js → BigePTMZ.js} +1 -1
  19. package/.output/public/_nuxt/{BL__uYa3.js → BkN-uAef.js} +1 -1
  20. package/.output/public/_nuxt/{BWZ7atse.js → BmAp-sfn.js} +1 -1
  21. package/.output/public/_nuxt/{BogEzQi9.js → BqHKqsJ5.js} +3 -3
  22. package/.output/public/_nuxt/{DpEV6S2O.js → BseVuOZ1.js} +1 -1
  23. package/.output/public/_nuxt/{B2IKcIj2.js → BtuY54_l.js} +1 -1
  24. package/.output/public/_nuxt/{B8TrrBEb.js → Buh0pI3n.js} +1 -1
  25. package/.output/public/_nuxt/{CAnr3OhD.js → BzVvHKKC.js} +1 -1
  26. package/.output/public/_nuxt/{DuCDilAk.js → BzywwPw6.js} +1 -1
  27. package/.output/public/_nuxt/BzzgEvr9.js +7 -0
  28. package/.output/public/_nuxt/{AymhMj9v.js → C-I81xfB.js} +1 -1
  29. package/.output/public/_nuxt/{DAr5YiBT.js → C-Pa1rIR.js} +1 -1
  30. package/.output/public/_nuxt/{CMkzSwnO.js → C-pX1zRI.js} +1 -1
  31. package/.output/public/_nuxt/{ioXB9E2w.js → C0vscAQB.js} +1 -1
  32. package/.output/public/_nuxt/C4FrpL8k.js +1 -0
  33. package/.output/public/_nuxt/{Cq-MDPLE.js → C4zYnWdF.js} +1 -1
  34. package/.output/public/_nuxt/{C_7gtl40.js → C9kgALYc.js} +1 -1
  35. package/.output/public/_nuxt/{Oe2GG0Lt.js → CCmd8DpQ.js} +1 -1
  36. package/.output/public/_nuxt/{DsmBazLf.js → CGq9Twnj.js} +1 -1
  37. package/.output/public/_nuxt/{BEyCol50.js → CHMlsxJw.js} +1 -1
  38. package/.output/public/_nuxt/{Y1gXUmjt.js → CLQzuV82.js} +1 -1
  39. package/.output/public/_nuxt/{BJVPtt2X.js → CL_1HDtg.js} +1 -1
  40. package/.output/public/_nuxt/{DVnDb6ua.js → CRqiHVA4.js} +1 -1
  41. package/.output/public/_nuxt/{ByibjLZn.js → CS4EJV3B.js} +1 -1
  42. package/.output/public/_nuxt/{Bf6Q3Zl5.js → CSExCj8O.js} +1 -1
  43. package/.output/public/_nuxt/{MeLWmO7R.js → CY_CG0AU.js} +1 -1
  44. package/.output/public/_nuxt/{D-9vaM6z.js → CbHZwHBV.js} +1 -1
  45. package/.output/public/_nuxt/{MW5K_zef.js → Cbo6GmdE.js} +1 -1
  46. package/.output/public/_nuxt/{dWu56FdP.js → Cf460dGA.js} +1 -1
  47. package/.output/public/_nuxt/{DcCF9IZB.js → CfseWBL0.js} +1 -1
  48. package/.output/public/_nuxt/{qzrMNYut.js → Ch0I4juX.js} +1 -1
  49. package/.output/public/_nuxt/Chvs1m1n.js +1 -0
  50. package/.output/public/_nuxt/{CHEpbbGc.js → Chx1IK9D.js} +1 -1
  51. package/.output/public/_nuxt/{ByiJDSw8.js → CjpXgncp.js} +1 -1
  52. package/.output/public/_nuxt/{BpUSbMUb.js → CkjXKCQH.js} +1 -1
  53. package/.output/public/_nuxt/{C3ZBsVV_.js → Ckry8tuC.js} +2 -2
  54. package/.output/public/_nuxt/{CsRSZpa6.js → CmOZ0DCP.js} +1 -1
  55. package/.output/public/_nuxt/{Bq7OeLM1.js → CmjR7OTc.js} +1 -1
  56. package/.output/public/_nuxt/{CDJKw_ak.js → Co7e2XML.js} +1 -1
  57. package/.output/public/_nuxt/{BzvSm28k.js → CqkctA6I.js} +1 -1
  58. package/.output/public/_nuxt/{DEZMnZ2r.js → CtB2-SFY.js} +1 -1
  59. package/.output/public/_nuxt/{dNPwafbq.js → CtCx-4nJ.js} +1 -1
  60. package/.output/public/_nuxt/{xOD4Ev56.js → CtkhwZY7.js} +1 -1
  61. package/.output/public/_nuxt/Cty7uMrC.js +1 -0
  62. package/.output/public/_nuxt/{C2XHqDOf.js → CvFjsYJZ.js} +1 -1
  63. package/.output/public/_nuxt/{D4pAW_0T.js → Czr647QE.js} +1 -1
  64. package/.output/public/_nuxt/{BcsKoAPU.js → D0lW43G8.js} +28 -28
  65. package/.output/public/_nuxt/{DDebxXP-.js → D28ykMUi.js} +1 -1
  66. package/.output/public/_nuxt/{Ci5B19-c.js → DA4Xn6lm.js} +1 -1
  67. package/.output/public/_nuxt/{BWebIWit.js → DChDHsIe.js} +1 -1
  68. package/.output/public/_nuxt/{DSaBCmOg.js → DJBO_9pO.js} +1 -1
  69. package/.output/public/_nuxt/{DPIEiNwW.js → DJXB1Li8.js} +1 -1
  70. package/.output/public/_nuxt/{DJH-4SVI.js → DKLk0T0H.js} +1 -1
  71. package/.output/public/_nuxt/{C6dIAdHr.js → DLBsdU7G.js} +1 -1
  72. package/.output/public/_nuxt/{BtyzMl9p.js → DOAixkpJ.js} +1 -1
  73. package/.output/public/_nuxt/{BoMjapT5.js → DPq8O9CC.js} +1 -1
  74. package/.output/public/_nuxt/{Bmx1kTaZ.js → DQdA5Twt.js} +1 -1
  75. package/.output/public/_nuxt/{DGvAu532.js → DRh-06Hb.js} +1 -1
  76. package/.output/public/_nuxt/{JOg_XIAv.js → DTvJImVU.js} +1 -1
  77. package/.output/public/_nuxt/{C7BQpy74.js → DVkCRFXi.js} +1 -1
  78. package/.output/public/_nuxt/{BjqbQLK3.js → DX8ecA59.js} +1 -1
  79. package/.output/public/_nuxt/DakKehZj.js +1 -0
  80. package/.output/public/_nuxt/{BoIj4dtd.js → Db3rTgnd.js} +1 -1
  81. package/.output/public/_nuxt/{BRFPdiIh.js → DfyynWBR.js} +1 -1
  82. package/.output/public/_nuxt/{B5WGo5x7.js → DgJOougY.js} +1 -1
  83. package/.output/public/_nuxt/DkQCknMw.js +1 -0
  84. package/.output/public/_nuxt/{Sf02B6Pt.js → DpBeiFQV.js} +1 -1
  85. package/.output/public/_nuxt/{sk7V7xQl.js → DrdbRRXx.js} +1 -1
  86. package/.output/public/_nuxt/{CS9hqyP3.js → Dtl3qje7.js} +1 -1
  87. package/.output/public/_nuxt/{DNoTlUiY.js → Du5Ka6uI.js} +1 -1
  88. package/.output/public/_nuxt/{B73IHAoF.js → Dunt8-TF.js} +1 -1
  89. package/.output/public/_nuxt/{CrNLwdoE.js → DvWEWtFg.js} +1 -1
  90. package/.output/public/_nuxt/{DkD29_YA.js → KynNdNgX.js} +1 -1
  91. package/.output/public/_nuxt/{BqU89KuH.js → MWrJVKEf.js} +2 -2
  92. package/.output/public/_nuxt/{DMmjWR_K.js → NYpsF1lW.js} +1 -1
  93. package/.output/public/_nuxt/{L2I3LmpB.js → Nof0nVJ6.js} +1 -1
  94. package/.output/public/_nuxt/{BTYBVtfa.js → Ohrg3hU7.js} +1 -1
  95. package/.output/public/_nuxt/{CerLmMsC.js → Rrce0BXL.js} +3 -3
  96. package/.output/public/_nuxt/{xp7rFxcm.js → VNOocds9.js} +1 -1
  97. package/.output/public/_nuxt/Y-MEKhtd.js +1 -0
  98. package/.output/public/_nuxt/{CSQ0xnqv.js → YdOCcCRS.js} +1 -1
  99. package/.output/public/_nuxt/bYQCSC5-.js +1 -0
  100. package/.output/public/_nuxt/{vhkvHdfO.js → bkzIFcLw.js} +1 -1
  101. package/.output/public/_nuxt/builds/latest.json +1 -1
  102. package/.output/public/_nuxt/builds/meta/ad11b978-8fdd-4bb2-9b38-1d6fe93f994e.json +1 -0
  103. package/.output/public/_nuxt/{FDw04QOj.js → eOeO5uM0.js} +1 -1
  104. package/.output/public/_nuxt/{BPACuoI0.js → g9ZMnTLJ.js} +1 -1
  105. package/.output/public/_nuxt/{Cnfx1zWl.js → hIbRoJ89.js} +1 -1
  106. package/.output/public/_nuxt/{8tyEaimf.js → j23gQsG7.js} +1 -1
  107. package/.output/public/_nuxt/klVlxnpt.js +1 -0
  108. package/.output/public/_nuxt/{DWqOZJe7.js → qRiDKEr7.js} +1 -1
  109. package/.output/public/_nuxt/{iNy-Nl0_.js → syq5mCJi.js} +1 -1
  110. package/.output/public/_nuxt/{COq7mAG7.js → v41yYOa9.js} +1 -1
  111. package/.output/public/_nuxt/{B9uki8o2.js → vaJvtND9.js} +1 -1
  112. package/.output/public/_nuxt/{wRAs0MDn.js → wodl4bLW.js} +1 -1
  113. package/.output/server/chunks/build/client.manifest.mjs +675 -675
  114. package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
  115. package/.output/server/chunks/nitro/nitro.mjs +635 -635
  116. package/.output/server/package.json +1 -1
  117. package/package.json +1 -1
  118. package/.output/public/_nuxt/BS-LtKx4.js +0 -1
  119. package/.output/public/_nuxt/BTheloyh.js +0 -1
  120. package/.output/public/_nuxt/Bj7ctTfH.js +0 -1
  121. package/.output/public/_nuxt/BpLDGvqy.js +0 -1
  122. package/.output/public/_nuxt/CtWq1MER.js +0 -7
  123. package/.output/public/_nuxt/Cww9dXBK.js +0 -1
  124. package/.output/public/_nuxt/DfNTLojg.js +0 -1
  125. package/.output/public/_nuxt/M6bBaUHa.js +0 -1
  126. package/.output/public/_nuxt/_qKPTuua.js +0 -1
  127. package/.output/public/_nuxt/builds/meta/7c171291-8bbd-4c4c-8904-0afae065b82e.json +0 -1
@@ -1 +1 @@
1
- import{M as t}from"./BcsKoAPU.js";import{h as a}from"./DsmBazLf.js";const s=o=>t.of([{key:"Mod-s",mac:"Cmd-s",preventDefault:!0,run:r=>a(r,o)}]);export{s};
1
+ import{M as t}from"./D0lW43G8.js";import{h as a}from"./CGq9Twnj.js";const s=o=>t.of([{key:"Mod-s",mac:"Cmd-s",preventDefault:!0,run:r=>a(r,o)}]);export{s};
@@ -1,4 +1,4 @@
1
- import{_ as e}from"./DHAL8jJG.js";var l=e(()=>`
1
+ import{_ as e}from"./B_ERKujF.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{r as ge,di as Bo,d as fe,as as us,cX as ja,cW as el,ar as qi,c as W,aj as tl,dj as nl,k as we,o as X,w as re,f as q,D as Te,g as N,bL as Xn,bk as yt,ak as cs,cY as ol,dk as ds,ay as Ye,d0 as Lt,d5 as fs,p as Dt,bM as il,dl as Qi,dm as Ci,dn as rl,dp as sl,dq as al,dr as ll,ds as ul,e as oe,F as Ie,s as wt,q as ki,aZ as Ee,n as Ae,j as cl,aL as dl,m as he,bA as hs,aS as Ft,dt as gs,au as xe,aR as Nn,du as Mi,l as Ne,bx as fl,av as St,aQ as ps,dv as hl,aB as _e,t as Pe,aC as gl,by as Un,dw as pl,z as He,aT as Bt,dx as vs,az as be,aN as me,i as _t,dy as vl,aO as ml,c1 as dn,dz as bt,dA as ei,b3 as yl,b4 as wl,b6 as _l,dB as bl,aK as xl,ab as ms,b2 as gn,A as ze,dC as ys,a0 as Ke,dD as Ji,dE as ji,df as $l,aY as at,a_ as lt,a$ as ut,d9 as er,dF as tr,dG as Kn,bZ as El,dH as Sl,cq as Nl,dI as An,dJ as Oo,aP as Cl,dg as kl,dK as Ml,bo as Il,dL as Tl,dM as Al,dN as zl,dO as Pl,dP as Dl,ac as Bl}from"./BcsKoAPU.js";function Ol(e,t){const n=ge(),o=(r,s)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior==="replace")e.value=[r],n.value=r;else{const a=e.value.findIndex(l=>s(l));a!==-1?e.value=e.value.filter((l,u)=>u!==a):e.value=[...e.value,r]}else t.selectionBehavior==="replace"?e.value={...r}:!Array.isArray(e.value)&&s(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,s,a,l){var f;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;const c=(f=a().filter(g=>g.ref.dataset.disabled!=="").find(g=>g.ref===s))==null?void 0:f.value;if(!c)return;let d=null;switch(r){case"prev":case"next":{d=Bo(l,n.value,c);break}case"first":{d=Bo(l,n.value,l==null?void 0:l[0]);break}case"last":{d=Bo(l,n.value,l==null?void 0:l[l.length-1]);break}}e.value=d}return{firstValue:n,onSelectItem:o,handleMultipleReplace:i}}function no(e){return e.reduce((t,n)=>(t.push(n),n.children&&t.push(...no(n.children)),t),[])}const[ws,Rl]=tl("TreeRoot");var Hl=fe({__name:"TreeRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:"toggle"},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},emits:["update:modelValue","update:expanded"],setup(e,{emit:t}){const n=e,o=t,{items:i,multiple:r,disabled:s,propagateSelect:a,dir:l,bubbleSelect:u}=us(n),{handleTypeaheadSearch:c}=ja(),d=el(l),f=ge(),g=ge(!1),$=nl(),y=qi(n,"modelValue",o,{defaultValue:n.defaultValue??(r.value?[]:void 0),passive:!0,deep:!0}),m=qi(n,"expanded",o,{defaultValue:n.defaultExpanded??[],passive:n.expanded===void 0,deep:!0}),{onSelectItem:p,handleMultipleReplace:b}=Ol(y,n),w=W(()=>r.value&&Array.isArray(y.value)?y.value.map(R=>n.getKey(R)):[n.getKey(y.value??{})]);function C(R,O=1,F){return R.reduce((k,G,h)=>{const M=n.getKey(G),v=n.getChildren(G),T=m.value.includes(M),I={_id:M,value:G,index:h,level:O,parentItem:F,hasChildren:!!v,bind:{value:G,level:O,"aria-setsize":R.length,"aria-posinset":h+1}};return k.push(I),v&&T&&k.push(...C(v,O+1,G)),k},[])}const P=W(()=>{const R=n.items;return m.value.map(O=>O),C(R??[])});function z(R){var O;if(g.value)$.trigger(R);else{const F=((O=f.value)==null?void 0:O.getItems())??[];c(R.key,F)}}function D(R){if(g.value)return;const O=ds[R.key];Ye(()=>{var F;b(O,Lt(),(F=f.value)==null?void 0:F.getItems,P.value.map(k=>k.value))})}function V(R){var O;if(R.parentItem!=null&&Array.isArray(y.value)&&n.multiple){const F=P.value.find(k=>R.parentItem!=null&&n.getKey(k.value)===n.getKey(R.parentItem));F!=null&&(((O=n.getChildren(F.value))==null?void 0:O.every(G=>y.value.find(h=>n.getKey(h)===n.getKey(G))))?y.value=[...y.value,F.value]:y.value=y.value.filter(G=>n.getKey(G)!==n.getKey(F.value)),V(F))}}return Rl({modelValue:y,selectedKeys:w,onSelect:R=>{var k;const O=G=>n.getKey(G??{})===n.getKey(R),F=n.multiple&&Array.isArray(y.value)?((k=y.value)==null?void 0:k.findIndex(O))!==-1:void 0;if(p(R,O),n.bubbleSelect&&n.multiple&&Array.isArray(y.value)){const G=P.value.find(h=>n.getKey(h.value)===n.getKey(R));G!=null&&V(G)}if(n.propagateSelect&&n.multiple&&Array.isArray(y.value)){const G=no(n.getChildren(R)??[]);F?y.value=[...y.value].filter(h=>!G.some(M=>n.getKey(h??{})===n.getKey(M))):y.value=[...y.value,...G]}},expanded:m,onToggle(R){if(!(R?n.getChildren(R):void 0))return;const F=n.getKey(R)??R;m.value.includes(F)?m.value=m.value.filter(k=>k!==F):m.value=[...m.value,F]},getKey:n.getKey,getChildren:n.getChildren,items:i,expandedItems:P,disabled:s,multiple:r,dir:d,propagateSelect:a,bubbleSelect:u,isVirtual:g,virtualKeydownHook:$,handleMultipleReplace:b}),(R,O)=>(X(),we(N(ol),{ref_key:"rovingFocusGroupRef",ref:f,"as-child":"",orientation:"vertical",dir:N(d)},{default:re(()=>[q(N(cs),{role:"tree",as:R.as,"as-child":R.asChild,"aria-multiselectable":N(r)?!0:void 0,onKeydown:[z,Xn(yt(D,["shift"]),["up","down"])]},{default:re(()=>[Te(R.$slots,"default",{flattenItems:P.value,modelValue:N(y),expanded:N(m)})]),_:3},8,["as","as-child","aria-multiselectable","onKeydown"])]),_:3},8,["dir"]))}}),Fl=Hl;const Vl="tree.select",Ll="tree.toggle";var Yl=fe({inheritAttrs:!1,__name:"TreeItem",props:{value:{type:null,required:!0},level:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["select","toggle"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=ws(),{getItems:s}=fs(),a=W(()=>!!r.getChildren(o.value)),l=W(()=>{const p=r.getKey(o.value);return r.expanded.value.includes(p)}),u=W(()=>{const p=r.getKey(o.value);return r.selectedKeys.value.includes(p)}),c=W(()=>{if(r.bubbleSelect.value&&a.value&&Array.isArray(r.modelValue.value)){const p=no(r.getChildren(o.value)||[]);return p.some(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))&&!p.every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))}else return r.propagateSelect.value&&u.value&&a.value&&Array.isArray(r.modelValue.value)?!no(r.getChildren(o.value)||[]).every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b))):void 0});function d(p){if(a.value)if(l.value){const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(C).find(D=>Number(D.getAttribute("data-indent"))===o.level+1);z&&z.focus()}else m(p)}function f(p){if(l.value)m(p);else{const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(0,C).reverse().find(D=>Number(D.getAttribute("data-indent"))===o.level-1);z&&z.focus()}}async function g(p){i("select",p),!(p!=null&&p.defaultPrevented)&&r.onSelect(o.value)}async function $(p){i("toggle",p),!(p!=null&&p.defaultPrevented)&&r.onToggle(o.value)}async function y(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Vl,g,b)}async function m(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Ll,$,b)}return t({isExpanded:l,isSelected:u,isIndeterminate:c,handleToggle:()=>r.onToggle(o.value),handleSelect:()=>r.onSelect(o.value)}),(p,b)=>(X(),we(N(il),{"as-child":"",value:p.value,"allow-shift-key":""},{default:re(()=>[q(N(cs),Dt(p.$attrs,{role:"treeitem",as:p.as,"as-child":p.asChild,"aria-selected":u.value,"aria-expanded":a.value?l.value:void 0,"aria-level":p.level,"data-indent":p.level,"data-selected":u.value?"":void 0,"data-expanded":l.value?"":void 0,onKeydown:[Xn(yt(y,["self","prevent"]),["enter","space"]),b[0]||(b[0]=Xn(yt(w=>N(r).dir.value==="ltr"?d(w):f(w),["prevent"]),["right"])),b[1]||(b[1]=Xn(yt(w=>N(r).dir.value==="ltr"?f(w):d(w),["prevent"]),["left"]))],onClick:b[2]||(b[2]=yt(w=>{y(w),m(w)},["stop"]))}),{default:re(()=>[Te(p.$slots,"default",{isExpanded:l.value,isSelected:u.value,isIndeterminate:c.value,handleSelect:()=>N(r).onSelect(p.value),handleToggle:()=>N(r).onToggle(p.value)})]),_:3},16,["as","as-child","aria-selected","aria-expanded","aria-level","data-indent","data-selected","data-expanded","onKeydown"])]),_:3},8,["value"]))}}),Gl=Yl,Xl=fe({__name:"TreeVirtualizer",props:{overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){const t=e,n=Ci(),o=ws(),i=rl(),{getItems:r}=fs(),s=sl("",1e3),a=W(()=>{const f=g=>t.textContent?t.textContent(g):g.toString().toLowerCase();return o.expandedItems.value.map((g,$)=>({index:$,textContent:f(g.value)}))});o.isVirtual.value=!0;const l=W(()=>{const f=i.value;if(f){const g=window.getComputedStyle(f);return{start:Number.parseFloat(g.paddingBlockStart||g.paddingTop),end:Number.parseFloat(g.paddingBlockEnd||g.paddingBottom)}}else return{start:0,end:0}}),u=al({get scrollPaddingStart(){return l.value.start},get scrollPaddingEnd(){return l.value.end},get count(){return o.expandedItems.value.length??0},get horizontal(){return!1},getItemKey(f){return f+o.getKey(o.expandedItems.value[f].value)},estimateSize(f){return typeof t.estimateSize=="function"?t.estimateSize(f):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=W(()=>u.value.getVirtualItems().map(f=>({item:f,is:ll(n.default({item:o.expandedItems.value[f.index],virtualizer:u.value,virtualItem:f})[0],{"data-index":f.index,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}})})));function d(f){u.value.scrollToIndex(f,{align:"start"}),requestAnimationFrame(()=>{const g=i.value.querySelector(`[data-index="${f}"]`);g instanceof HTMLElement&&g.focus()})}return o.virtualKeydownHook.on(f=>{var m;const g=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!g)return;const y=ds[f.key];if(["first","last"].includes(y)){f.preventDefault();const p=y==="first"?0:o.expandedItems.value.length-1;u.value.scrollToIndex(p),requestAnimationFrame(()=>{const b=r();(y==="first"?b[0]:b[b.length-1]).ref.focus()})}else if(y==="prev"&&f.key!=="ArrowUp"){const p=Lt(),b=Number(p.getAttribute("data-index")),w=Number(p.getAttribute("data-indent")),P=o.expandedItems.value.slice(0,b).map((z,D)=>({...z,index:D})).reverse().find(z=>z.level===w-1);P&&d(P.index)}else if(!y&&!g){s.value+=f.key;const p=Number((m=Lt())==null?void 0:m.getAttribute("data-index")),b=a.value[p].textContent,w=a.value.map(z=>z.textContent),C=ul(w,s.value,b),P=a.value.find(z=>z.textContent===C);P&&d(P.index)}Ye(()=>{f.shiftKey&&y&&o.handleMultipleReplace(y,Lt(),r,o.expandedItems.value.map(p=>p.value))})}),(f,g)=>(X(),oe("div",{"data-reka-virtualizer":"",style:Ee({position:"relative",width:"100%",height:`${N(u).getTotalSize()}px`})},[(X(!0),oe(Ie,null,wt(c.value,({is:$,item:y})=>(X(),we(ki($),{key:y.key}))),128))],4))}}),Ul=Xl;const Kl=fe({__name:"KbdGroup",props:{class:{}},setup(e){const t=e;return(n,o)=>(X(),oe("kbd",{"data-slot":"kbd-group",class:Ae(N(cl)("inline-flex items-center gap-1",t.class))},[Te(n.$slots,"default")],2))}});function bo(e){return hs()?(Un(e),!0):!1}function tt(e){return typeof e=="function"?e():N(e)}const Wl=typeof window<"u"&&typeof document<"u",Zl=e=>typeof e<"u",ql=Object.prototype.toString,Ql=e=>ql.call(e)==="[object Object]",Jl=()=>{};function jl(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const _s=e=>e();function eu(e=_s){const t=ge(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:ml(t),pause:n,resume:o,eventFilter:i}}function nr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function tu(e,t,n={}){const{eventFilter:o=_s,...i}=n;return xe(e,jl(o,t),i)}function Vt(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=eu(o);return{stop:tu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function nu(e,t={}){if(!_t(e))return us(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=vl(()=>({get(){return e.value[o]},set(i){var r;if((r=tt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:f="sync",deep:g=!1,timeout:$,throwOnTimeout:y}={}){let m=null;const b=[new Promise(w=>{m=xe(e,C=>{d(C)!==t&&(m==null||m(),w(C))},{flush:f,deep:g,immediate:!0})})];return $!=null&&b.push(nr($,y).then(()=>tt(e)).finally(()=>m==null?void 0:m())),Promise.race(b)}function o(d,f){if(!_t(d))return n(C=>C===d,f);const{flush:g="sync",deep:$=!1,timeout:y,throwOnTimeout:m}=f??{};let p=null;const w=[new Promise(C=>{p=xe([e,d],([P,z])=>{t!==(P===z)&&(p==null||p(),C(P))},{flush:g,deep:$,immediate:!0})})];return y!=null&&w.push(nr(y,m).then(()=>tt(e)).finally(()=>(p==null||p(),tt(e)))),Promise.race(w)}function i(d){return n(f=>!!f,d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(tt(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let g=-1;return n(()=>(g+=1,g>=d),f)}return Array.isArray(tt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function ou(e){var t;const n=tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bs=Wl?window:void 0;function xs(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=bs):[t,n,o,i]=e,!t)return Jl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,d,f,g)=>(c.addEventListener(d,f,g),()=>c.removeEventListener(d,f,g)),l=xe(()=>[ou(t),tt(i)],([c,d])=>{if(s(),!c)return;const f=Ql(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>a(c,g,$,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return bo(u),u}function iu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function or(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=bs,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=iu(t);return xs(i,r,c=>{c.repeat&&tt(a)||l(c)&&n(c)},s)}function ru(e){return JSON.parse(JSON.stringify(e))}function Ro(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=o,g=Nn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((s=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(g==null?void 0:g.proxy));let y=u;t||(t="modelValue"),y=y||`update:${t.toString()}`;const m=w=>a?typeof a=="function"?a(w):ru(w):w,p=()=>Zl(e[t])?m(e[t]):d,b=w=>{f?f(w)&&$(y,w):$(y,w)};if(l){const w=p(),C=ge(w);let P=!1;return xe(()=>e[t],z=>{P||(P=!0,C.value=m(z),Ye(()=>P=!1))}),xe(C,z=>{!P&&(z!==e[t]||c)&&b(z)},{deep:c}),C}else return W({get(){return p()},set(w){b(w)}})}var su={value:()=>{}};function xo(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Wn(n)}function Wn(e){this._=e}function au(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",i=n.indexOf(".");if(i>=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=xo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=au(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r<s;)if((i=(e=o[r]).type)&&(i=lu(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(i=(e=o[r]).type)n[i]=ir(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ir(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wn(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),o=0,i,r;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(t,n)}};function lu(e,t){for(var n=0,o=e.length,i;n<o;++n)if((i=e[n]).name===t)return i.value}function ir(e,t,n){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=su,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var oi="http://www.w3.org/1999/xhtml";const rr={svg:"http://www.w3.org/2000/svg",xhtml:oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $o(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rr.hasOwnProperty(t)?{space:rr[t],local:e}:e}function uu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function cu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $s(e){var t=$o(e);return(t.local?cu:uu)(t)}function du(){}function Ii(e){return e==null?du:function(){return this.querySelector(e)}}function fu(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Oe(o,this._parents)}function hu(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gu(){return[]}function Es(e){return e==null?gu:function(){return this.querySelectorAll(e)}}function pu(e){return function(){return hu(e.apply(this,arguments))}}function vu(e){typeof e=="function"?e=pu(e):e=Es(e);for(var t=this._groups,n=t.length,o=[],i=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(o.push(e.call(l,l.__data__,u,s)),i.push(l));return new Oe(o,i)}function Ss(e){return function(){return this.matches(e)}}function Ns(e){return function(t){return t.matches(e)}}var mu=Array.prototype.find;function yu(e){return function(){return mu.call(this.children,e)}}function wu(){return this.firstElementChild}function _u(e){return this.select(e==null?wu:yu(typeof e=="function"?e:Ns(e)))}var bu=Array.prototype.filter;function xu(){return Array.from(this.children)}function $u(e){return function(){return bu.call(this.children,e)}}function Eu(e){return this.selectAll(e==null?xu:$u(typeof e=="function"?e:Ns(e)))}function Su(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new Oe(o,this._parents)}function Cs(e){return new Array(e.length)}function Nu(){return new Oe(this._enter||this._groups.map(Cs),this._parents)}function oo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oo.prototype={constructor:oo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Cu(e){return function(){return e}}function ku(e,t,n,o,i,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],o[s]=a):n[s]=new oo(e,r[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Mu(e,t,n,o,i,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),g;for(a=0;a<c;++a)(l=t[a])&&(f[a]=g=s.call(l,l.__data__,a,t)+"",u.has(g)?i[a]=l:u.set(g,l));for(a=0;a<d;++a)g=s.call(e,r[a],a,r)+"",(l=u.get(g))?(o[a]=l,l.__data__=r[a],u.delete(g)):n[a]=new oo(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(i[a]=l)}function Iu(e){return e.__data__}function Tu(e,t){if(!arguments.length)return Array.from(this,Iu);var n=t?Mu:ku,o=this._parents,i=this._groups;typeof e!="function"&&(e=Cu(e));for(var r=i.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=o[u],d=i[u],f=d.length,g=Au(e.call(c,c&&c.__data__,u,o)),$=g.length,y=a[u]=new Array($),m=s[u]=new Array($),p=l[u]=new Array(f);n(c,d,y,m,p,g,t);for(var b=0,w=0,C,P;b<$;++b)if(C=y[b]){for(b>=w&&(w=b+1);!(P=m[w])&&++w<$;);C._next=P||null}}return s=new Oe(s,o),s._enter=a,s._exit=l,s}function Au(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zu(){return new Oe(this._exit||this._groups.map(Cs),this._parents)}function Pu(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function Du(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,s=Math.min(i,r),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=o[l],d=u.length,f=a[l]=new Array(d),g,$=0;$<d;++$)(g=u[$]||c[$])&&(f[$]=g);for(;l<i;++l)a[l]=n[l];return new Oe(a,this._parents)}function Bu(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],i=o.length-1,r=o[i],s;--i>=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function Ou(e){e||(e=Ru);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,o=n.length,i=new Array(o),r=0;r<o;++r){for(var s=n[r],a=s.length,l=i[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Oe(i,this._parents).order()}function Ru(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Hu(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fu(){return Array.from(this)}function Vu(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length;i<r;++i){var s=o[i];if(s)return s}return null}function Lu(){let e=0;for(const t of this)++e;return e}function Yu(){return!this.node()}function Gu(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var i=t[n],r=0,s=i.length,a;r<s;++r)(a=i[r])&&e.call(a,a.__data__,r,i);return this}function Xu(e){return function(){this.removeAttribute(e)}}function Uu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ku(e,t){return function(){this.setAttribute(e,t)}}function Wu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function qu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Qu(e,t){var n=$o(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?Uu:Xu:typeof t=="function"?n.local?qu:Zu:n.local?Wu:Ku)(n,t))}function ks(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ju(e){return function(){this.style.removeProperty(e)}}function ju(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ec(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function tc(e,t,n){return arguments.length>1?this.each((t==null?Ju:typeof t=="function"?ec:ju)(e,t,n??"")):Kt(this.node(),e)}function Kt(e,t){return e.style.getPropertyValue(t)||ks(e).getComputedStyle(e,null).getPropertyValue(t)}function nc(e){return function(){delete this[e]}}function oc(e,t){return function(){this[e]=t}}function ic(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rc(e,t){return arguments.length>1?this.each((t==null?nc:typeof t=="function"?ic:oc)(e,t)):this.node()[e]}function Ms(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Is(e)}function Is(e){this._node=e,this._names=Ms(e.getAttribute("class")||"")}Is.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.add(t[o])}function As(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.remove(t[o])}function sc(e){return function(){Ts(this,e)}}function ac(e){return function(){As(this,e)}}function lc(e,t){return function(){(t.apply(this,arguments)?Ts:As)(this,e)}}function uc(e,t){var n=Ms(e+"");if(arguments.length<2){for(var o=Ti(this.node()),i=-1,r=n.length;++i<r;)if(!o.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?lc:t?sc:ac)(n,t))}function cc(){this.textContent=""}function dc(e){return function(){this.textContent=e}}function fc(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function hc(e){return arguments.length?this.each(e==null?cc:(typeof e=="function"?fc:dc)(e)):this.node().textContent}function gc(){this.innerHTML=""}function pc(e){return function(){this.innerHTML=e}}function vc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function mc(e){return arguments.length?this.each(e==null?gc:(typeof e=="function"?vc:pc)(e)):this.node().innerHTML}function yc(){this.nextSibling&&this.parentNode.appendChild(this)}function wc(){return this.each(yc)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bc(){return this.each(_c)}function xc(e){var t=typeof e=="function"?e:$s(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $c(){return null}function Ec(e,t){var n=typeof e=="function"?e:$s(e),o=t==null?$c:typeof t=="function"?t:Ii(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Sc(){var e=this.parentNode;e&&e.removeChild(this)}function Nc(){return this.each(Sc)}function Cc(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mc(e){return this.select(e?kc:Cc)}function Ic(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tc(e){return function(t){e.call(this,t,this.__data__)}}function Ac(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function zc(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,r;n<i;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++o]=r;++o?t.length=o:delete this.__on}}}function Pc(e,t,n){return function(){var o=this.__on,i,r=Tc(t);if(o){for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),i.value=t;return}}this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Dc(e,t,n){var o=Ac(e+""),i,r=o.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<r;++i)if((s=o[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Pc:zc,i=0;i<r;++i)this.each(a(o[i],t,n));return this}function zs(e,t,n){var o=ks(e),i=o.CustomEvent;typeof i=="function"?i=new i(t,n):(i=o.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Bc(e,t){return function(){return zs(this,e,t)}}function Oc(e,t){return function(){return zs(this,e,t.apply(this,arguments))}}function Rc(e,t){return this.each((typeof t=="function"?Oc:Bc)(e,t))}function*Hc(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length,s;i<r;++i)(s=o[i])&&(yield s)}var Ps=[null];function Oe(e,t){this._groups=e,this._parents=t}function Cn(){return new Oe([[document.documentElement]],Ps)}function Fc(){return this}Oe.prototype=Cn.prototype={constructor:Oe,select:fu,selectAll:vu,selectChild:_u,selectChildren:Eu,filter:Su,data:Tu,enter:Nu,exit:zu,join:Pu,merge:Du,selection:Fc,order:Bu,sort:Ou,call:Hu,nodes:Fu,node:Vu,size:Lu,empty:Yu,each:Gu,attr:Qu,style:tc,property:rc,classed:uc,text:hc,html:mc,raise:wc,lower:bc,append:xc,insert:Ec,remove:Nc,clone:Mc,datum:Ic,on:Dc,dispatch:Rc,[Symbol.iterator]:Hc};function Fe(e){return typeof e=="string"?new Oe([[document.querySelector(e)]],[document.documentElement]):new Oe([[e]],Ps)}function Vc(e){let t;for(;t=e.sourceEvent;)e=t;return e}function We(e,t){if(e=Vc(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Lc={passive:!1},pn={capture:!0,passive:!1};function Ho(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ds(e){var t=e.document.documentElement,n=Fe(e).on("dragstart.drag",Yt,pn);"onselectstart"in t?n.on("selectstart.drag",Yt,pn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Bs(e,t){var n=e.document.documentElement,o=Fe(e).on("dragstart.drag",null);t&&(o.on("click.drag",Yt,pn),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const zn=e=>()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Yc(e){return!e.ctrlKey&&!e.button}function Gc(){return this.parentNode}function Xc(e,t){return t??{x:e.x,y:e.y}}function Uc(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kc(){var e=Yc,t=Gc,n=Xc,o=Uc,i={},r=xo("start","drag","end"),s=0,a,l,u,c,d=0;function f(C){C.on("mousedown.drag",g).filter(o).on("touchstart.drag",m).on("touchmove.drag",p,Lc).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(C,P){if(!(c||!e.call(this,C,P))){var z=w(this,t.call(this,C,P),C,P,"mouse");z&&(Fe(C.view).on("mousemove.drag",$,pn).on("mouseup.drag",y,pn),Ds(C.view),Ho(C),u=!1,a=C.clientX,l=C.clientY,z("start",C))}}function $(C){if(Yt(C),!u){var P=C.clientX-a,z=C.clientY-l;u=P*P+z*z>d}i.mouse("drag",C)}function y(C){Fe(C.view).on("mousemove.drag mouseup.drag",null),Bs(C.view,u),Yt(C),i.mouse("end",C)}function m(C,P){if(e.call(this,C,P)){var z=C.changedTouches,D=t.call(this,C,P),V=z.length,R,O;for(R=0;R<V;++R)(O=w(this,D,C,P,z[R].identifier,z[R]))&&(Ho(C),O("start",C,z[R]))}}function p(C){var P=C.changedTouches,z=P.length,D,V;for(D=0;D<z;++D)(V=i[P[D].identifier])&&(Yt(C),V("drag",C,P[D]))}function b(C){var P=C.changedTouches,z=P.length,D,V;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),D=0;D<z;++D)(V=i[P[D].identifier])&&(Ho(C),V("end",C,P[D]))}function w(C,P,z,D,V,R){var O=r.copy(),F=We(R||z,P),k,G,h;if((h=n.call(C,new ii("beforestart",{sourceEvent:z,target:f,identifier:V,active:s,x:F[0],y:F[1],dx:0,dy:0,dispatch:O}),D))!=null)return k=h.x-F[0]||0,G=h.y-F[1]||0,function M(v,T,I){var B=F,A;switch(v){case"start":i[V]=M,A=s++;break;case"end":delete i[V],--s;case"drag":F=We(I||T,P),A=s;break}O.call(v,C,new ii(v,{sourceEvent:T,subject:h,target:f,identifier:V,active:A,x:F[0]+k,y:F[1]+G,dx:F[0]-B[0],dy:F[1]-B[1],dispatch:O}),D)}}return f.filter=function(C){return arguments.length?(e=typeof C=="function"?C:zn(!!C),f):e},f.container=function(C){return arguments.length?(t=typeof C=="function"?C:zn(C),f):t},f.subject=function(C){return arguments.length?(n=typeof C=="function"?C:zn(C),f):n},f.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:zn(!!C),f):o},f.on=function(){var C=r.on.apply(r,arguments);return C===r?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Ai(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Os(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function kn(){}var vn=.7,io=1/vn,Gt="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wc=/^#([0-9a-f]{3,8})$/,Zc=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),qc=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),Qc=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${mn}\\)$`),Jc=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${mn}\\)$`),jc=new RegExp(`^hsl\\(${mn},${Ze},${Ze}\\)$`),ed=new RegExp(`^hsla\\(${mn},${Ze},${Ze},${mn}\\)$`),sr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ai(kn,yn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:td,formatHsl:nd,formatRgb:lr,toString:lr});function ar(){return this.rgb().formatHex()}function td(){return this.rgb().formatHex8()}function nd(){return Rs(this).formatHsl()}function lr(){return this.rgb().formatRgb()}function yn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Wc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zc.exec(e))?new De(t[1],t[2],t[3],1):(t=qc.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qc.exec(e))?Pn(t[1],t[2],t[3],t[4]):(t=Jc.exec(e))?Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jc.exec(e))?fr(t[1],t[2]/100,t[3]/100,1):(t=ed.exec(e))?fr(t[1],t[2]/100,t[3]/100,t[4]):sr.hasOwnProperty(e)?ur(sr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function ur(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Pn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function od(e){return e instanceof kn||(e=yn(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?od(e):new De(e,t,n,o??1)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(At(this.r),At(this.g),At(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cr,formatHex:cr,formatHex8:id,formatRgb:dr,toString:dr}));function cr(){return`#${It(this.r)}${It(this.g)}${It(this.b)}`}function id(){return`#${It(this.r)}${It(this.g)}${It(this.b)}${It((isNaN(this.opacity)?1:this.opacity)*255)}`}function dr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${At(this.r)}, ${At(this.g)}, ${At(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function At(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function It(e){return e=At(e),(e<16?"0":"")+e.toString(16)}function fr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function Rs(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof kn||(e=yn(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n<o)*6:n===r?s=(o-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+i:2-r-i,s*=60):a=l>0&&l<1?0:s,new Ve(s,a,l,e.opacity)}function rd(e,t,n,o){return arguments.length===1?Rs(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Ve,rd,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Fo(e>=240?e-240:e+120,i,o),Fo(e,i,o),Fo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(hr(this.h),Dn(this.s),Dn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${hr(this.h)}, ${Dn(this.s)*100}%, ${Dn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hr(e){return e=(e||0)%360,e<0?e+360:e}function Dn(e){return Math.max(0,Math.min(1,e||0))}function Fo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Hs=e=>()=>e;function sd(e,t){return function(n){return e+n*t}}function ad(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function ld(e){return(e=+e)==1?Fs:function(t,n){return n-t?ad(t,n,e):Hs(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?sd(e,n):Hs(isNaN(e)?t:e)}const gr=function e(t){var n=ld(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),u=Fs(i.opacity,r.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vo=new RegExp(si.source,"g");function ud(e){return function(){return e}}function cd(e){return function(t){return e(t)+""}}function dd(e,t){var n=si.lastIndex=Vo.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Vo.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Vo.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?cd(l[0].x):ud(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var pr=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vs(e,t,n,o,i,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*o)&&(n-=e*l,o-=t*l),(a=Math.sqrt(n*n+o*o))&&(n/=a,o/=a,l/=a),e*o<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:r,rotate:Math.atan2(t,e)*pr,skewX:Math.atan(l)*pr,scaleX:s,scaleY:a}}var Bn;function fd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ai:Vs(t.a,t.b,t.c,t.d,t.e,t.f)}function hd(e){return e==null||(Bn||(Bn=document.createElementNS("http://www.w3.org/2000/svg","g")),Bn.setAttribute("transform",e),!(e=Bn.transform.baseVal.consolidate()))?ai:(e=e.matrix,Vs(e.a,e.b,e.c,e.d,e.e,e.f))}function Ls(e,t,n,o){function i(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push("translate(",null,t,null,n);$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d||f)&&g.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function a(u,c,d,f){u!==c?f.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push(i(g)+"scale(",null,",",null,")");$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d!==1||f!==1)&&g.push(i(g)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(g){for(var $=-1,y=f.length,m;++$<y;)d[(m=f[$]).i]=m.x(g);return d.join("")}}}var gd=Ls(fd,"px, ","px)","deg)"),pd=Ls(hd,", ",")",")"),vd=1e-12;function vr(e){return((e=Math.exp(e))+1/e)/2}function md(e){return((e=Math.exp(e))-1/e)/2}function yd(e){return((e=Math.exp(2*e))-1)/(e+1)}const wd=function e(t,n,o){function i(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],g=c-a,$=d-l,y=g*g+$*$,m,p;if(y<vd)p=Math.log(f/u)/t,m=function(D){return[a+D*g,l+D*$,u*Math.exp(t*D*p)]};else{var b=Math.sqrt(y),w=(f*f-u*u+o*y)/(2*u*n*b),C=(f*f-u*u-o*y)/(2*f*n*b),P=Math.log(Math.sqrt(w*w+1)-w),z=Math.log(Math.sqrt(C*C+1)-C);p=(z-P)/t,m=function(D){var V=D*p,R=vr(P),O=u/(n*b)*(R*yd(t*V+P)-md(P));return[a+O*g,l+O*$,u*R/vr(t*V+P)]}}return m.duration=p*1e3*t/Math.SQRT2,m}return i.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},i}(Math.SQRT2,2,4);var Wt=0,sn=0,tn=0,Ys=1e3,so,an,ao=0,Ot=0,Eo=0,wn=typeof performance=="object"&&performance.now?performance:Date,Gs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zi(){return Ot||(Gs(_d),Ot=wn.now()+Eo)}function _d(){Ot=0}function lo(){this._call=this._time=this._next=null}lo.prototype=Xs.prototype={constructor:lo,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zi():+n)+(t==null?0:+t),!this._next&&an!==this&&(an?an._next=this:so=this,an=this),this._call=e,this._time=n,li()},stop:function(){this._call&&(this._call=null,this._time=1/0,li())}};function Xs(e,t,n){var o=new lo;return o.restart(e,t,n),o}function bd(){zi(),++Wt;for(var e=so,t;e;)(t=Ot-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wt}function mr(){Ot=(ao=wn.now())+Eo,Wt=sn=0;try{bd()}finally{Wt=0,$d(),Ot=0}}function xd(){var e=wn.now(),t=e-ao;t>Ys&&(Eo-=t,ao=e)}function $d(){for(var e,t=so,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:so=n);an=e,li(o)}function li(e){if(!Wt){sn&&(sn=clearTimeout(sn));var t=e-Ot;t>24?(e<1/0&&(sn=setTimeout(mr,e-wn.now()-Eo)),tn&&(tn=clearInterval(tn))):(tn||(ao=wn.now(),tn=setInterval(xd,Ys)),Wt=1,Gs(mr))}}function yr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var Ed=xo("start","end","cancel","interrupt"),Sd=[],Us=0,wr=1,ui=2,Zn=3,_r=4,ci=5,qn=6;function So(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Nd(e,n,{name:t,index:o,group:i,on:Ed,tween:Sd,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Us})}function Pi(e,t){var n=Ge(e,t);if(n.state>Us)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Zn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nd(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Xs(r,0,n.time);function r(u){n.state=wr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,g;if(n.state!==wr)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===Zn)return yr(s);g.state===_r?(g.state=qn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+c<t&&(g.state=qn,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[c])}if(yr(function(){n.state===Zn&&(n.state=_r,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=ui,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ui){for(n.state=Zn,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(g=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=ci,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===ci&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=qn,n.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function Qn(e,t){var n=e.__transition,o,i,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((o=n[s]).name!==t){r=!1;continue}i=o.state>ui&&o.state<ci,o.state=qn,o.timer.stop(),o.on.call(i?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}r&&delete e.__transition}}function Cd(e){return this.each(function(){Qn(this,e)})}function kd(e,t){var n,o;return function(){var i=Qe(this,e),r=i.tween;if(r!==n){o=n=r;for(var s=0,a=o.length;s<a;++s)if(o[s].name===t){o=o.slice(),o.splice(s,1);break}}i.tween=o}}function Md(e,t,n){var o,i;if(typeof n!="function")throw new Error;return function(){var r=Qe(this,e),s=r.tween;if(s!==o){i=(o=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}r.tween=i}}function Id(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=Ge(this.node(),n).tween,i=0,r=o.length,s;i<r;++i)if((s=o[i]).name===e)return s.value;return null}return this.each((t==null?kd:Md)(n,e,t))}function Di(e,t,n){var o=e._id;return e.each(function(){var i=Qe(this,o);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ge(i,o).value[t]}}function Ks(e,t){var n;return(typeof t=="number"?ht:t instanceof yn?gr:(n=yn(t))?(t=n,gr):dd)(e,t)}function Td(e){return function(){this.removeAttribute(e)}}function Ad(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttribute(e);return s===i?null:s===o?r:r=t(o=s,n)}}function Pd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===o?r:r=t(o=s,n)}}function Dd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Bd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Od(e,t){var n=$o(e),o=n==="transform"?pd:Ks;return this.attrTween(e,typeof t=="function"?(n.local?Bd:Dd)(n,o,Di(this,"attr."+e,t)):t==null?(n.local?Ad:Td)(n):(n.local?Pd:zd)(n,o,t))}function Rd(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Hd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Hd(e,r)),n}return i._value=t,i}function Vd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Rd(e,r)),n}return i._value=t,i}function Ld(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=$o(e);return this.tween(n,(o.local?Fd:Vd)(o,t))}function Yd(e,t){return function(){Pi(this,e).delay=+t.apply(this,arguments)}}function Gd(e,t){return t=+t,function(){Pi(this,e).delay=t}}function Xd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yd:Gd)(t,e)):Ge(this.node(),t).delay}function Ud(e,t){return function(){Qe(this,e).duration=+t.apply(this,arguments)}}function Kd(e,t){return t=+t,function(){Qe(this,e).duration=t}}function Wd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ud:Kd)(t,e)):Ge(this.node(),t).duration}function Zd(e,t){if(typeof t!="function")throw new Error;return function(){Qe(this,e).ease=t}}function qd(e){var t=this._id;return arguments.length?this.each(Zd(t,e)):Ge(this.node(),t).ease}function Qd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qe(this,e).ease=n}}function Jd(e){if(typeof e!="function")throw new Error;return this.each(Qd(this._id,e))}function jd(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new rt(o,this._parents,this._name,this._id)}function ef(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,i=n.length,r=Math.min(o,i),s=new Array(o),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,g=0;g<c;++g)(f=l[g]||u[g])&&(d[g]=f);for(;a<o;++a)s[a]=t[a];return new rt(s,this._parents,this._name,this._id)}function tf(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function nf(e,t,n){var o,i,r=tf(t)?Pi:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function of(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(nf(n,e,t))}function rf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function sf(){return this.on("end.remove",rf(this._id))}function af(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s<i;++s)for(var a=o[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,So(u[f],t,n,f,u,Ge(c,n)));return new rt(r,this._parents,t,n)}function lf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var o=this._groups,i=o.length,r=[],s=[],a=0;a<i;++a)for(var l=o[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),g,$=Ge(c,n),y=0,m=f.length;y<m;++y)(g=f[y])&&So(g,t,n,y,f,$);r.push(f),s.push(c)}return new rt(r,s,t,n)}var uf=Cn.prototype.constructor;function cf(){return new uf(this._groups,this._parents)}function df(e,t){var n,o,i;return function(){var r=Kt(this,e),s=(this.style.removeProperty(e),Kt(this,e));return r===s?null:r===n&&s===o?i:i=t(n=r,o=s)}}function Ws(e){return function(){this.style.removeProperty(e)}}function ff(e,t,n){var o,i=n+"",r;return function(){var s=Kt(this,e);return s===i?null:s===o?r:r=t(o=s,n)}}function hf(e,t,n){var o,i,r;return function(){var s=Kt(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Kt(this,e))),s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a))}}function gf(e,t){var n,o,i,r="style."+t,s="end."+r,a;return function(){var l=Qe(this,e),u=l.on,c=l.value[r]==null?a||(a=Ws(t)):void 0;(u!==n||i!==c)&&(o=(n=u).copy()).on(s,i=c),l.on=o}}function pf(e,t,n){var o=(e+="")=="transform"?gd:Ks;return t==null?this.styleTween(e,df(e,o)).on("end.style."+e,Ws(e)):typeof t=="function"?this.styleTween(e,hf(e,o,Di(this,"style."+e,t))).each(gf(this._id,e)):this.styleTween(e,ff(e,o,t),n).on("end.style."+e,null)}function vf(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function mf(e,t,n){var o,i;function r(){var s=t.apply(this,arguments);return s!==i&&(o=(i=s)&&vf(e,s,n)),o}return r._value=t,r}function yf(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,mf(e,t,n??""))}function wf(e){return function(){this.textContent=e}}function _f(e){return function(){var t=e(this);this.textContent=t??""}}function bf(e){return this.tween("text",typeof e=="function"?_f(Di(this,"text",e)):wf(e==null?"":e+""))}function xf(e){return function(t){this.textContent=e.call(this,t)}}function $f(e){var t,n;function o(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&xf(i)),t}return o._value=e,o}function Ef(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$f(e))}function Sf(){for(var e=this._name,t=this._id,n=Zs(),o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Ge(l,t);So(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new rt(o,this._parents,e,n)}function Nf(){var e,t,n=this,o=n._id,i=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--i===0&&r()}};n.each(function(){var u=Qe(this,o),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&r()})}var Cf=0;function rt(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function Zs(){return++Cf}var je=Cn.prototype;rt.prototype={constructor:rt,select:af,selectAll:lf,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:jd,merge:ef,selection:cf,transition:Sf,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:of,attr:Od,attrTween:Ld,style:pf,styleTween:yf,text:bf,textTween:Ef,remove:sf,tween:Id,delay:Xd,duration:Wd,ease:qd,easeVarying:Jd,end:Nf,[Symbol.iterator]:je[Symbol.iterator]};function kf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mf={time:null,delay:0,duration:250,ease:kf};function If(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Tf(e){var t,n;e instanceof rt?(t=e._id,e=e._name):(t=Zs(),(n=Mf).time=zi(),e=e==null?null:e+"");for(var o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&So(l,e,t,u,s,n||If(l,t));return new rt(o,this._parents,e,t)}Cn.prototype.interrupt=Cd;Cn.prototype.transition=Tf;const On=e=>()=>e;function Af(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function nt(e,t,n){this.k=e,this.x=t,this.y=n}nt.prototype={constructor:nt,scale:function(e){return e===1?this:new nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new nt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new nt(1,0,0);nt.prototype;function Lo(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function zf(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Pf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function br(){return this.__zoom||Zt}function Df(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Bf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Rf(){var e=zf,t=Pf,n=Of,o=Df,i=Bf,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=wd,u=xo("start","zoom","end"),c,d,f,g=500,$=150,y=0,m=10;function p(h){h.property("__zoom",br).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(h,M,v,T){var I=h.selection?h.selection():h;I.property("__zoom",br),h!==I?P(h,M,v,T):I.interrupt().each(function(){z(this,arguments).event(T).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},p.scaleBy=function(h,M,v,T){p.scaleTo(h,function(){var I=this.__zoom.k,B=typeof M=="function"?M.apply(this,arguments):M;return I*B},v,T)},p.scaleTo=function(h,M,v,T){p.transform(h,function(){var I=t.apply(this,arguments),B=this.__zoom,A=v==null?C(I):typeof v=="function"?v.apply(this,arguments):v,L=B.invert(A),K=typeof M=="function"?M.apply(this,arguments):M;return n(w(b(B,K),A,L),I,s)},v,T)},p.translateBy=function(h,M,v,T){p.transform(h,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof v=="function"?v.apply(this,arguments):v),t.apply(this,arguments),s)},null,T)},p.translateTo=function(h,M,v,T,I){p.transform(h,function(){var B=t.apply(this,arguments),A=this.__zoom,L=T==null?C(B):typeof T=="function"?T.apply(this,arguments):T;return n(Zt.translate(L[0],L[1]).scale(A.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof v=="function"?-v.apply(this,arguments):-v),B,s)},T,I)};function b(h,M){return M=Math.max(r[0],Math.min(r[1],M)),M===h.k?h:new nt(M,h.x,h.y)}function w(h,M,v){var T=M[0]-v[0]*h.k,I=M[1]-v[1]*h.k;return T===h.x&&I===h.y?h:new nt(h.k,T,I)}function C(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function P(h,M,v,T){h.on("start.zoom",function(){z(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(T).end()}).tween("zoom",function(){var I=this,B=arguments,A=z(I,B).event(T),L=t.apply(I,B),K=v==null?C(L):typeof v=="function"?v.apply(I,B):v,ee=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),Y=I.__zoom,U=typeof M=="function"?M.apply(I,B):M,Q=l(Y.invert(K).concat(ee/Y.k),U.invert(K).concat(ee/U.k));return function(se){if(se===1)se=U;else{var ue=Q(se),ae=ee/ue[2];se=new nt(ae,K[0]-ue[0]*ae,K[1]-ue[1]*ae)}A.zoom(null,se)}})}function z(h,M,v){return!v&&h.__zooming||new D(h,M)}function D(h,M){this.that=h,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(h,M),this.taps=0}D.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,M){return this.mouse&&h!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var M=Fe(this.that).datum();u.call(h,this.that,new Af(h,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:u}),M)}};function V(h,...M){if(!e.apply(this,arguments))return;var v=z(this,M).event(h),T=this.__zoom,I=Math.max(r[0],Math.min(r[1],T.k*Math.pow(2,o.apply(this,arguments)))),B=We(h);if(v.wheel)(v.mouse[0][0]!==B[0]||v.mouse[0][1]!==B[1])&&(v.mouse[1]=T.invert(v.mouse[0]=B)),clearTimeout(v.wheel);else{if(T.k===I)return;v.mouse=[B,T.invert(B)],Qn(this),v.start()}nn(h),v.wheel=setTimeout(A,$),v.zoom("mouse",n(w(b(T,I),v.mouse[0],v.mouse[1]),v.extent,s));function A(){v.wheel=null,v.end()}}function R(h,...M){if(f||!e.apply(this,arguments))return;var v=h.currentTarget,T=z(this,M,!0).event(h),I=Fe(h.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",ee,!0),B=We(h,v),A=h.clientX,L=h.clientY;Ds(h.view),Lo(h),T.mouse=[B,this.__zoom.invert(B)],Qn(this),T.start();function K(Y){if(nn(Y),!T.moved){var U=Y.clientX-A,Q=Y.clientY-L;T.moved=U*U+Q*Q>y}T.event(Y).zoom("mouse",n(w(T.that.__zoom,T.mouse[0]=We(Y,v),T.mouse[1]),T.extent,s))}function ee(Y){I.on("mousemove.zoom mouseup.zoom",null),Bs(Y.view,T.moved),nn(Y),T.event(Y).end()}}function O(h,...M){if(e.apply(this,arguments)){var v=this.__zoom,T=We(h.changedTouches?h.changedTouches[0]:h,this),I=v.invert(T),B=v.k*(h.shiftKey?.5:2),A=n(w(b(v,B),T,I),t.apply(this,M),s);nn(h),a>0?Fe(this).transition().duration(a).call(P,A,T,h):Fe(this).call(p.transform,A,T,h)}}function F(h,...M){if(e.apply(this,arguments)){var v=h.touches,T=v.length,I=z(this,M,h.changedTouches.length===T).event(h),B,A,L,K;for(Lo(h),A=0;A<T;++A)L=v[A],K=We(L,this),K=[K,this.__zoom.invert(K),L.identifier],I.touch0?!I.touch1&&I.touch0[2]!==K[2]&&(I.touch1=K,I.taps=0):(I.touch0=K,B=!0,I.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(I.taps<2&&(d=K[0],c=setTimeout(function(){c=null},g)),Qn(this),I.start())}}function k(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A,L,K;for(nn(h),B=0;B<I;++B)A=T[B],L=We(A,this),v.touch0&&v.touch0[2]===A.identifier?v.touch0[0]=L:v.touch1&&v.touch1[2]===A.identifier&&(v.touch1[0]=L);if(A=v.that.__zoom,v.touch1){var ee=v.touch0[0],Y=v.touch0[1],U=v.touch1[0],Q=v.touch1[1],se=(se=U[0]-ee[0])*se+(se=U[1]-ee[1])*se,ue=(ue=Q[0]-Y[0])*ue+(ue=Q[1]-Y[1])*ue;A=b(A,Math.sqrt(se/ue)),L=[(ee[0]+U[0])/2,(ee[1]+U[1])/2],K=[(Y[0]+Q[0])/2,(Y[1]+Q[1])/2]}else if(v.touch0)L=v.touch0[0],K=v.touch0[1];else return;v.zoom("touch",n(w(A,L,K),v.extent,s))}}function G(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A;for(Lo(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),B=0;B<I;++B)A=T[B],v.touch0&&v.touch0[2]===A.identifier?delete v.touch0:v.touch1&&v.touch1[2]===A.identifier&&delete v.touch1;if(v.touch1&&!v.touch0&&(v.touch0=v.touch1,delete v.touch1),v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2&&(A=We(A,this),Math.hypot(d[0]-A[0],d[1]-A[1])<m)){var L=Fe(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return p.wheelDelta=function(h){return arguments.length?(o=typeof h=="function"?h:On(+h),p):o},p.filter=function(h){return arguments.length?(e=typeof h=="function"?h:On(!!h),p):e},p.touchable=function(h){return arguments.length?(i=typeof h=="function"?h:On(!!h),p):i},p.extent=function(h){return arguments.length?(t=typeof h=="function"?h:On([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),p):t},p.scaleExtent=function(h){return arguments.length?(r[0]=+h[0],r[1]=+h[1],p):[r[0],r[1]]},p.translateExtent=function(h){return arguments.length?(s[0][0]=+h[0][0],s[1][0]=+h[1][0],s[0][1]=+h[0][1],s[1][1]=+h[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(h){return arguments.length?(n=h,p):n},p.duration=function(h){return arguments.length?(a=+h,p):a},p.interpolate=function(h){return arguments.length?(l=h,p):l},p.on=function(){var h=u.on.apply(u,arguments);return h===u?p:h},p.clickDistance=function(h){return arguments.length?(y=(h=+h)*h,p):Math.sqrt(y)},p.tapDistance=function(h){return arguments.length?(m=+h,p):m},p}var te=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),Ct=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Ct||{}),$t=(e=>(e.Strict="strict",e.Loose="loose",e))($t||{}),di=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(di||{}),fn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(fn||{});const Hf=["INPUT","SELECT","TEXTAREA"];function fi(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return Hf.includes(o==null?void 0:o.nodeName)||i||!!r}function Ff(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function xr(e,t,n,o){const i=t.replace("+",`
1
+ import{r as ge,di as Bo,d as fe,as as us,cX as ja,cW as el,ar as qi,c as W,aj as tl,dj as nl,k as we,o as X,w as re,f as q,D as Te,g as N,bL as Xn,bk as yt,ak as cs,cY as ol,dk as ds,ay as Ye,d0 as Lt,d5 as fs,p as Dt,bM as il,dl as Qi,dm as Ci,dn as rl,dp as sl,dq as al,dr as ll,ds as ul,e as oe,F as Ie,s as wt,q as ki,aZ as Ee,n as Ae,j as cl,aL as dl,m as he,bA as hs,aS as Ft,dt as gs,au as xe,aR as Nn,du as Mi,l as Ne,bx as fl,av as St,aQ as ps,dv as hl,aB as _e,t as Pe,aC as gl,by as Un,dw as pl,z as He,aT as Bt,dx as vs,az as be,aN as me,i as _t,dy as vl,aO as ml,c1 as dn,dz as bt,dA as ei,b3 as yl,b4 as wl,b6 as _l,dB as bl,aK as xl,ab as ms,b2 as gn,A as ze,dC as ys,a0 as Ke,dD as Ji,dE as ji,df as $l,aY as at,a_ as lt,a$ as ut,d9 as er,dF as tr,dG as Kn,bZ as El,dH as Sl,cq as Nl,dI as An,dJ as Oo,aP as Cl,dg as kl,dK as Ml,bo as Il,dL as Tl,dM as Al,dN as zl,dO as Pl,dP as Dl,ac as Bl}from"./D0lW43G8.js";function Ol(e,t){const n=ge(),o=(r,s)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior==="replace")e.value=[r],n.value=r;else{const a=e.value.findIndex(l=>s(l));a!==-1?e.value=e.value.filter((l,u)=>u!==a):e.value=[...e.value,r]}else t.selectionBehavior==="replace"?e.value={...r}:!Array.isArray(e.value)&&s(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,s,a,l){var f;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;const c=(f=a().filter(g=>g.ref.dataset.disabled!=="").find(g=>g.ref===s))==null?void 0:f.value;if(!c)return;let d=null;switch(r){case"prev":case"next":{d=Bo(l,n.value,c);break}case"first":{d=Bo(l,n.value,l==null?void 0:l[0]);break}case"last":{d=Bo(l,n.value,l==null?void 0:l[l.length-1]);break}}e.value=d}return{firstValue:n,onSelectItem:o,handleMultipleReplace:i}}function no(e){return e.reduce((t,n)=>(t.push(n),n.children&&t.push(...no(n.children)),t),[])}const[ws,Rl]=tl("TreeRoot");var Hl=fe({__name:"TreeRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:"toggle"},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},emits:["update:modelValue","update:expanded"],setup(e,{emit:t}){const n=e,o=t,{items:i,multiple:r,disabled:s,propagateSelect:a,dir:l,bubbleSelect:u}=us(n),{handleTypeaheadSearch:c}=ja(),d=el(l),f=ge(),g=ge(!1),$=nl(),y=qi(n,"modelValue",o,{defaultValue:n.defaultValue??(r.value?[]:void 0),passive:!0,deep:!0}),m=qi(n,"expanded",o,{defaultValue:n.defaultExpanded??[],passive:n.expanded===void 0,deep:!0}),{onSelectItem:p,handleMultipleReplace:b}=Ol(y,n),w=W(()=>r.value&&Array.isArray(y.value)?y.value.map(R=>n.getKey(R)):[n.getKey(y.value??{})]);function C(R,O=1,F){return R.reduce((k,G,h)=>{const M=n.getKey(G),v=n.getChildren(G),T=m.value.includes(M),I={_id:M,value:G,index:h,level:O,parentItem:F,hasChildren:!!v,bind:{value:G,level:O,"aria-setsize":R.length,"aria-posinset":h+1}};return k.push(I),v&&T&&k.push(...C(v,O+1,G)),k},[])}const P=W(()=>{const R=n.items;return m.value.map(O=>O),C(R??[])});function z(R){var O;if(g.value)$.trigger(R);else{const F=((O=f.value)==null?void 0:O.getItems())??[];c(R.key,F)}}function D(R){if(g.value)return;const O=ds[R.key];Ye(()=>{var F;b(O,Lt(),(F=f.value)==null?void 0:F.getItems,P.value.map(k=>k.value))})}function V(R){var O;if(R.parentItem!=null&&Array.isArray(y.value)&&n.multiple){const F=P.value.find(k=>R.parentItem!=null&&n.getKey(k.value)===n.getKey(R.parentItem));F!=null&&(((O=n.getChildren(F.value))==null?void 0:O.every(G=>y.value.find(h=>n.getKey(h)===n.getKey(G))))?y.value=[...y.value,F.value]:y.value=y.value.filter(G=>n.getKey(G)!==n.getKey(F.value)),V(F))}}return Rl({modelValue:y,selectedKeys:w,onSelect:R=>{var k;const O=G=>n.getKey(G??{})===n.getKey(R),F=n.multiple&&Array.isArray(y.value)?((k=y.value)==null?void 0:k.findIndex(O))!==-1:void 0;if(p(R,O),n.bubbleSelect&&n.multiple&&Array.isArray(y.value)){const G=P.value.find(h=>n.getKey(h.value)===n.getKey(R));G!=null&&V(G)}if(n.propagateSelect&&n.multiple&&Array.isArray(y.value)){const G=no(n.getChildren(R)??[]);F?y.value=[...y.value].filter(h=>!G.some(M=>n.getKey(h??{})===n.getKey(M))):y.value=[...y.value,...G]}},expanded:m,onToggle(R){if(!(R?n.getChildren(R):void 0))return;const F=n.getKey(R)??R;m.value.includes(F)?m.value=m.value.filter(k=>k!==F):m.value=[...m.value,F]},getKey:n.getKey,getChildren:n.getChildren,items:i,expandedItems:P,disabled:s,multiple:r,dir:d,propagateSelect:a,bubbleSelect:u,isVirtual:g,virtualKeydownHook:$,handleMultipleReplace:b}),(R,O)=>(X(),we(N(ol),{ref_key:"rovingFocusGroupRef",ref:f,"as-child":"",orientation:"vertical",dir:N(d)},{default:re(()=>[q(N(cs),{role:"tree",as:R.as,"as-child":R.asChild,"aria-multiselectable":N(r)?!0:void 0,onKeydown:[z,Xn(yt(D,["shift"]),["up","down"])]},{default:re(()=>[Te(R.$slots,"default",{flattenItems:P.value,modelValue:N(y),expanded:N(m)})]),_:3},8,["as","as-child","aria-multiselectable","onKeydown"])]),_:3},8,["dir"]))}}),Fl=Hl;const Vl="tree.select",Ll="tree.toggle";var Yl=fe({inheritAttrs:!1,__name:"TreeItem",props:{value:{type:null,required:!0},level:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["select","toggle"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=ws(),{getItems:s}=fs(),a=W(()=>!!r.getChildren(o.value)),l=W(()=>{const p=r.getKey(o.value);return r.expanded.value.includes(p)}),u=W(()=>{const p=r.getKey(o.value);return r.selectedKeys.value.includes(p)}),c=W(()=>{if(r.bubbleSelect.value&&a.value&&Array.isArray(r.modelValue.value)){const p=no(r.getChildren(o.value)||[]);return p.some(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))&&!p.every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b)))}else return r.propagateSelect.value&&u.value&&a.value&&Array.isArray(r.modelValue.value)?!no(r.getChildren(o.value)||[]).every(b=>r.modelValue.value.find(w=>r.getKey(w)===r.getKey(b))):void 0});function d(p){if(a.value)if(l.value){const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(C).find(D=>Number(D.getAttribute("data-indent"))===o.level+1);z&&z.focus()}else m(p)}function f(p){if(l.value)m(p);else{const b=s().map(D=>D.ref),w=Lt(),C=b.indexOf(w),z=[...b].slice(0,C).reverse().find(D=>Number(D.getAttribute("data-indent"))===o.level-1);z&&z.focus()}}async function g(p){i("select",p),!(p!=null&&p.defaultPrevented)&&r.onSelect(o.value)}async function $(p){i("toggle",p),!(p!=null&&p.defaultPrevented)&&r.onToggle(o.value)}async function y(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Vl,g,b)}async function m(p){if(!p)return;const b={originalEvent:p,value:o.value,isExpanded:l.value,isSelected:u.value};Qi(Ll,$,b)}return t({isExpanded:l,isSelected:u,isIndeterminate:c,handleToggle:()=>r.onToggle(o.value),handleSelect:()=>r.onSelect(o.value)}),(p,b)=>(X(),we(N(il),{"as-child":"",value:p.value,"allow-shift-key":""},{default:re(()=>[q(N(cs),Dt(p.$attrs,{role:"treeitem",as:p.as,"as-child":p.asChild,"aria-selected":u.value,"aria-expanded":a.value?l.value:void 0,"aria-level":p.level,"data-indent":p.level,"data-selected":u.value?"":void 0,"data-expanded":l.value?"":void 0,onKeydown:[Xn(yt(y,["self","prevent"]),["enter","space"]),b[0]||(b[0]=Xn(yt(w=>N(r).dir.value==="ltr"?d(w):f(w),["prevent"]),["right"])),b[1]||(b[1]=Xn(yt(w=>N(r).dir.value==="ltr"?f(w):d(w),["prevent"]),["left"]))],onClick:b[2]||(b[2]=yt(w=>{y(w),m(w)},["stop"]))}),{default:re(()=>[Te(p.$slots,"default",{isExpanded:l.value,isSelected:u.value,isIndeterminate:c.value,handleSelect:()=>N(r).onSelect(p.value),handleToggle:()=>N(r).onToggle(p.value)})]),_:3},16,["as","as-child","aria-selected","aria-expanded","aria-level","data-indent","data-selected","data-expanded","onKeydown"])]),_:3},8,["value"]))}}),Gl=Yl,Xl=fe({__name:"TreeVirtualizer",props:{overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){const t=e,n=Ci(),o=ws(),i=rl(),{getItems:r}=fs(),s=sl("",1e3),a=W(()=>{const f=g=>t.textContent?t.textContent(g):g.toString().toLowerCase();return o.expandedItems.value.map((g,$)=>({index:$,textContent:f(g.value)}))});o.isVirtual.value=!0;const l=W(()=>{const f=i.value;if(f){const g=window.getComputedStyle(f);return{start:Number.parseFloat(g.paddingBlockStart||g.paddingTop),end:Number.parseFloat(g.paddingBlockEnd||g.paddingBottom)}}else return{start:0,end:0}}),u=al({get scrollPaddingStart(){return l.value.start},get scrollPaddingEnd(){return l.value.end},get count(){return o.expandedItems.value.length??0},get horizontal(){return!1},getItemKey(f){return f+o.getKey(o.expandedItems.value[f].value)},estimateSize(f){return typeof t.estimateSize=="function"?t.estimateSize(f):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=W(()=>u.value.getVirtualItems().map(f=>({item:f,is:ll(n.default({item:o.expandedItems.value[f.index],virtualizer:u.value,virtualItem:f})[0],{"data-index":f.index,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}})})));function d(f){u.value.scrollToIndex(f,{align:"start"}),requestAnimationFrame(()=>{const g=i.value.querySelector(`[data-index="${f}"]`);g instanceof HTMLElement&&g.focus()})}return o.virtualKeydownHook.on(f=>{var m;const g=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!g)return;const y=ds[f.key];if(["first","last"].includes(y)){f.preventDefault();const p=y==="first"?0:o.expandedItems.value.length-1;u.value.scrollToIndex(p),requestAnimationFrame(()=>{const b=r();(y==="first"?b[0]:b[b.length-1]).ref.focus()})}else if(y==="prev"&&f.key!=="ArrowUp"){const p=Lt(),b=Number(p.getAttribute("data-index")),w=Number(p.getAttribute("data-indent")),P=o.expandedItems.value.slice(0,b).map((z,D)=>({...z,index:D})).reverse().find(z=>z.level===w-1);P&&d(P.index)}else if(!y&&!g){s.value+=f.key;const p=Number((m=Lt())==null?void 0:m.getAttribute("data-index")),b=a.value[p].textContent,w=a.value.map(z=>z.textContent),C=ul(w,s.value,b),P=a.value.find(z=>z.textContent===C);P&&d(P.index)}Ye(()=>{f.shiftKey&&y&&o.handleMultipleReplace(y,Lt(),r,o.expandedItems.value.map(p=>p.value))})}),(f,g)=>(X(),oe("div",{"data-reka-virtualizer":"",style:Ee({position:"relative",width:"100%",height:`${N(u).getTotalSize()}px`})},[(X(!0),oe(Ie,null,wt(c.value,({is:$,item:y})=>(X(),we(ki($),{key:y.key}))),128))],4))}}),Ul=Xl;const Kl=fe({__name:"KbdGroup",props:{class:{}},setup(e){const t=e;return(n,o)=>(X(),oe("kbd",{"data-slot":"kbd-group",class:Ae(N(cl)("inline-flex items-center gap-1",t.class))},[Te(n.$slots,"default")],2))}});function bo(e){return hs()?(Un(e),!0):!1}function tt(e){return typeof e=="function"?e():N(e)}const Wl=typeof window<"u"&&typeof document<"u",Zl=e=>typeof e<"u",ql=Object.prototype.toString,Ql=e=>ql.call(e)==="[object Object]",Jl=()=>{};function jl(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const _s=e=>e();function eu(e=_s){const t=ge(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:ml(t),pause:n,resume:o,eventFilter:i}}function nr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function tu(e,t,n={}){const{eventFilter:o=_s,...i}=n;return xe(e,jl(o,t),i)}function Vt(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:a,isActive:l}=eu(o);return{stop:tu(e,t,{...i,eventFilter:r}),pause:s,resume:a,isActive:l}}function nu(e,t={}){if(!_t(e))return us(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=vl(()=>({get(){return e.value[o]},set(i){var r;if((r=tt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:f="sync",deep:g=!1,timeout:$,throwOnTimeout:y}={}){let m=null;const b=[new Promise(w=>{m=xe(e,C=>{d(C)!==t&&(m==null||m(),w(C))},{flush:f,deep:g,immediate:!0})})];return $!=null&&b.push(nr($,y).then(()=>tt(e)).finally(()=>m==null?void 0:m())),Promise.race(b)}function o(d,f){if(!_t(d))return n(C=>C===d,f);const{flush:g="sync",deep:$=!1,timeout:y,throwOnTimeout:m}=f??{};let p=null;const w=[new Promise(C=>{p=xe([e,d],([P,z])=>{t!==(P===z)&&(p==null||p(),C(P))},{flush:g,deep:$,immediate:!0})})];return y!=null&&w.push(nr(y,m).then(()=>tt(e)).finally(()=>(p==null||p(),tt(e)))),Promise.race(w)}function i(d){return n(f=>!!f,d)}function r(d){return o(null,d)}function s(d){return o(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(tt(d))},f)}function u(d){return c(1,d)}function c(d=1,f){let g=-1;return n(()=>(g+=1,g>=d),f)}return Array.isArray(tt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function ou(e){var t;const n=tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bs=Wl?window:void 0;function xs(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=bs):[t,n,o,i]=e,!t)return Jl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,d,f,g)=>(c.addEventListener(d,f,g),()=>c.removeEventListener(d,f,g)),l=xe(()=>[ou(t),tt(i)],([c,d])=>{if(s(),!c)return;const f=Ql(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>a(c,g,$,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return bo(u),u}function iu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function or(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=bs,eventName:r="keydown",passive:s=!1,dedupe:a=!1}=o,l=iu(t);return xs(i,r,c=>{c.repeat&&tt(a)||l(c)&&n(c)},s)}function ru(e){return JSON.parse(JSON.stringify(e))}function Ro(e,t,n,o={}){var i,r,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=o,g=Nn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((s=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(g==null?void 0:g.proxy));let y=u;t||(t="modelValue"),y=y||`update:${t.toString()}`;const m=w=>a?typeof a=="function"?a(w):ru(w):w,p=()=>Zl(e[t])?m(e[t]):d,b=w=>{f?f(w)&&$(y,w):$(y,w)};if(l){const w=p(),C=ge(w);let P=!1;return xe(()=>e[t],z=>{P||(P=!0,C.value=m(z),Ye(()=>P=!1))}),xe(C,z=>{!P&&(z!==e[t]||c)&&b(z)},{deep:c}),C}else return W({get(){return p()},set(w){b(w)}})}var su={value:()=>{}};function xo(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Wn(n)}function Wn(e){this._=e}function au(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",i=n.indexOf(".");if(i>=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=xo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=au(e+"",n),i,r=-1,s=o.length;if(arguments.length<2){for(;++r<s;)if((i=(e=o[r]).type)&&(i=lu(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++r<s;)if(i=(e=o[r]).type)n[i]=ir(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ir(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wn(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),o=0,i,r;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(t,n)}};function lu(e,t){for(var n=0,o=e.length,i;n<o;++n)if((i=e[n]).name===t)return i.value}function ir(e,t,n){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=su,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var oi="http://www.w3.org/1999/xhtml";const rr={svg:"http://www.w3.org/2000/svg",xhtml:oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $o(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rr.hasOwnProperty(t)?{space:rr[t],local:e}:e}function uu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function cu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $s(e){var t=$o(e);return(t.local?cu:uu)(t)}function du(){}function Ii(e){return e==null?du:function(){return this.querySelector(e)}}function fu(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=new Array(s),l,u,c=0;c<s;++c)(l=r[c])&&(u=e.call(l,l.__data__,c,r))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Oe(o,this._parents)}function hu(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gu(){return[]}function Es(e){return e==null?gu:function(){return this.querySelectorAll(e)}}function pu(e){return function(){return hu(e.apply(this,arguments))}}function vu(e){typeof e=="function"?e=pu(e):e=Es(e);for(var t=this._groups,n=t.length,o=[],i=[],r=0;r<n;++r)for(var s=t[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(o.push(e.call(l,l.__data__,u,s)),i.push(l));return new Oe(o,i)}function Ss(e){return function(){return this.matches(e)}}function Ns(e){return function(t){return t.matches(e)}}var mu=Array.prototype.find;function yu(e){return function(){return mu.call(this.children,e)}}function wu(){return this.firstElementChild}function _u(e){return this.select(e==null?wu:yu(typeof e=="function"?e:Ns(e)))}var bu=Array.prototype.filter;function xu(){return Array.from(this.children)}function $u(e){return function(){return bu.call(this.children,e)}}function Eu(e){return this.selectAll(e==null?xu:$u(typeof e=="function"?e:Ns(e)))}function Su(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new Oe(o,this._parents)}function Cs(e){return new Array(e.length)}function Nu(){return new Oe(this._enter||this._groups.map(Cs),this._parents)}function oo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oo.prototype={constructor:oo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Cu(e){return function(){return e}}function ku(e,t,n,o,i,r){for(var s=0,a,l=t.length,u=r.length;s<u;++s)(a=t[s])?(a.__data__=r[s],o[s]=a):n[s]=new oo(e,r[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Mu(e,t,n,o,i,r,s){var a,l,u=new Map,c=t.length,d=r.length,f=new Array(c),g;for(a=0;a<c;++a)(l=t[a])&&(f[a]=g=s.call(l,l.__data__,a,t)+"",u.has(g)?i[a]=l:u.set(g,l));for(a=0;a<d;++a)g=s.call(e,r[a],a,r)+"",(l=u.get(g))?(o[a]=l,l.__data__=r[a],u.delete(g)):n[a]=new oo(e,r[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(i[a]=l)}function Iu(e){return e.__data__}function Tu(e,t){if(!arguments.length)return Array.from(this,Iu);var n=t?Mu:ku,o=this._parents,i=this._groups;typeof e!="function"&&(e=Cu(e));for(var r=i.length,s=new Array(r),a=new Array(r),l=new Array(r),u=0;u<r;++u){var c=o[u],d=i[u],f=d.length,g=Au(e.call(c,c&&c.__data__,u,o)),$=g.length,y=a[u]=new Array($),m=s[u]=new Array($),p=l[u]=new Array(f);n(c,d,y,m,p,g,t);for(var b=0,w=0,C,P;b<$;++b)if(C=y[b]){for(b>=w&&(w=b+1);!(P=m[w])&&++w<$;);C._next=P||null}}return s=new Oe(s,o),s._enter=a,s._exit=l,s}function Au(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zu(){return new Oe(this._exit||this._groups.map(Cs),this._parents)}function Pu(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function Du(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,s=Math.min(i,r),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=o[l],d=u.length,f=a[l]=new Array(d),g,$=0;$<d;++$)(g=u[$]||c[$])&&(f[$]=g);for(;l<i;++l)a[l]=n[l];return new Oe(a,this._parents)}function Bu(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],i=o.length-1,r=o[i],s;--i>=0;)(s=o[i])&&(r&&s.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(s,r),r=s);return this}function Ou(e){e||(e=Ru);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,o=n.length,i=new Array(o),r=0;r<o;++r){for(var s=n[r],a=s.length,l=i[r]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Oe(i,this._parents).order()}function Ru(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Hu(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fu(){return Array.from(this)}function Vu(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length;i<r;++i){var s=o[i];if(s)return s}return null}function Lu(){let e=0;for(const t of this)++e;return e}function Yu(){return!this.node()}function Gu(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var i=t[n],r=0,s=i.length,a;r<s;++r)(a=i[r])&&e.call(a,a.__data__,r,i);return this}function Xu(e){return function(){this.removeAttribute(e)}}function Uu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ku(e,t){return function(){this.setAttribute(e,t)}}function Wu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function qu(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Qu(e,t){var n=$o(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?Uu:Xu:typeof t=="function"?n.local?qu:Zu:n.local?Wu:Ku)(n,t))}function ks(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ju(e){return function(){this.style.removeProperty(e)}}function ju(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ec(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function tc(e,t,n){return arguments.length>1?this.each((t==null?Ju:typeof t=="function"?ec:ju)(e,t,n??"")):Kt(this.node(),e)}function Kt(e,t){return e.style.getPropertyValue(t)||ks(e).getComputedStyle(e,null).getPropertyValue(t)}function nc(e){return function(){delete this[e]}}function oc(e,t){return function(){this[e]=t}}function ic(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rc(e,t){return arguments.length>1?this.each((t==null?nc:typeof t=="function"?ic:oc)(e,t)):this.node()[e]}function Ms(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Is(e)}function Is(e){this._node=e,this._names=Ms(e.getAttribute("class")||"")}Is.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.add(t[o])}function As(e,t){for(var n=Ti(e),o=-1,i=t.length;++o<i;)n.remove(t[o])}function sc(e){return function(){Ts(this,e)}}function ac(e){return function(){As(this,e)}}function lc(e,t){return function(){(t.apply(this,arguments)?Ts:As)(this,e)}}function uc(e,t){var n=Ms(e+"");if(arguments.length<2){for(var o=Ti(this.node()),i=-1,r=n.length;++i<r;)if(!o.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?lc:t?sc:ac)(n,t))}function cc(){this.textContent=""}function dc(e){return function(){this.textContent=e}}function fc(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function hc(e){return arguments.length?this.each(e==null?cc:(typeof e=="function"?fc:dc)(e)):this.node().textContent}function gc(){this.innerHTML=""}function pc(e){return function(){this.innerHTML=e}}function vc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function mc(e){return arguments.length?this.each(e==null?gc:(typeof e=="function"?vc:pc)(e)):this.node().innerHTML}function yc(){this.nextSibling&&this.parentNode.appendChild(this)}function wc(){return this.each(yc)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bc(){return this.each(_c)}function xc(e){var t=typeof e=="function"?e:$s(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $c(){return null}function Ec(e,t){var n=typeof e=="function"?e:$s(e),o=t==null?$c:typeof t=="function"?t:Ii(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Sc(){var e=this.parentNode;e&&e.removeChild(this)}function Nc(){return this.each(Sc)}function Cc(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mc(e){return this.select(e?kc:Cc)}function Ic(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tc(e){return function(t){e.call(this,t,this.__data__)}}function Ac(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function zc(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,r;n<i;++n)r=t[n],(!e.type||r.type===e.type)&&r.name===e.name?this.removeEventListener(r.type,r.listener,r.options):t[++o]=r;++o?t.length=o:delete this.__on}}}function Pc(e,t,n){return function(){var o=this.__on,i,r=Tc(t);if(o){for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),i.value=t;return}}this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Dc(e,t,n){var o=Ac(e+""),i,r=o.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<r;++i)if((s=o[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Pc:zc,i=0;i<r;++i)this.each(a(o[i],t,n));return this}function zs(e,t,n){var o=ks(e),i=o.CustomEvent;typeof i=="function"?i=new i(t,n):(i=o.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Bc(e,t){return function(){return zs(this,e,t)}}function Oc(e,t){return function(){return zs(this,e,t.apply(this,arguments))}}function Rc(e,t){return this.each((typeof t=="function"?Oc:Bc)(e,t))}function*Hc(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],i=0,r=o.length,s;i<r;++i)(s=o[i])&&(yield s)}var Ps=[null];function Oe(e,t){this._groups=e,this._parents=t}function Cn(){return new Oe([[document.documentElement]],Ps)}function Fc(){return this}Oe.prototype=Cn.prototype={constructor:Oe,select:fu,selectAll:vu,selectChild:_u,selectChildren:Eu,filter:Su,data:Tu,enter:Nu,exit:zu,join:Pu,merge:Du,selection:Fc,order:Bu,sort:Ou,call:Hu,nodes:Fu,node:Vu,size:Lu,empty:Yu,each:Gu,attr:Qu,style:tc,property:rc,classed:uc,text:hc,html:mc,raise:wc,lower:bc,append:xc,insert:Ec,remove:Nc,clone:Mc,datum:Ic,on:Dc,dispatch:Rc,[Symbol.iterator]:Hc};function Fe(e){return typeof e=="string"?new Oe([[document.querySelector(e)]],[document.documentElement]):new Oe([[e]],Ps)}function Vc(e){let t;for(;t=e.sourceEvent;)e=t;return e}function We(e,t){if(e=Vc(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Lc={passive:!1},pn={capture:!0,passive:!1};function Ho(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ds(e){var t=e.document.documentElement,n=Fe(e).on("dragstart.drag",Yt,pn);"onselectstart"in t?n.on("selectstart.drag",Yt,pn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Bs(e,t){var n=e.document.documentElement,o=Fe(e).on("dragstart.drag",null);t&&(o.on("click.drag",Yt,pn),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const zn=e=>()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Yc(e){return!e.ctrlKey&&!e.button}function Gc(){return this.parentNode}function Xc(e,t){return t??{x:e.x,y:e.y}}function Uc(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kc(){var e=Yc,t=Gc,n=Xc,o=Uc,i={},r=xo("start","drag","end"),s=0,a,l,u,c,d=0;function f(C){C.on("mousedown.drag",g).filter(o).on("touchstart.drag",m).on("touchmove.drag",p,Lc).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(C,P){if(!(c||!e.call(this,C,P))){var z=w(this,t.call(this,C,P),C,P,"mouse");z&&(Fe(C.view).on("mousemove.drag",$,pn).on("mouseup.drag",y,pn),Ds(C.view),Ho(C),u=!1,a=C.clientX,l=C.clientY,z("start",C))}}function $(C){if(Yt(C),!u){var P=C.clientX-a,z=C.clientY-l;u=P*P+z*z>d}i.mouse("drag",C)}function y(C){Fe(C.view).on("mousemove.drag mouseup.drag",null),Bs(C.view,u),Yt(C),i.mouse("end",C)}function m(C,P){if(e.call(this,C,P)){var z=C.changedTouches,D=t.call(this,C,P),V=z.length,R,O;for(R=0;R<V;++R)(O=w(this,D,C,P,z[R].identifier,z[R]))&&(Ho(C),O("start",C,z[R]))}}function p(C){var P=C.changedTouches,z=P.length,D,V;for(D=0;D<z;++D)(V=i[P[D].identifier])&&(Yt(C),V("drag",C,P[D]))}function b(C){var P=C.changedTouches,z=P.length,D,V;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),D=0;D<z;++D)(V=i[P[D].identifier])&&(Ho(C),V("end",C,P[D]))}function w(C,P,z,D,V,R){var O=r.copy(),F=We(R||z,P),k,G,h;if((h=n.call(C,new ii("beforestart",{sourceEvent:z,target:f,identifier:V,active:s,x:F[0],y:F[1],dx:0,dy:0,dispatch:O}),D))!=null)return k=h.x-F[0]||0,G=h.y-F[1]||0,function M(v,T,I){var B=F,A;switch(v){case"start":i[V]=M,A=s++;break;case"end":delete i[V],--s;case"drag":F=We(I||T,P),A=s;break}O.call(v,C,new ii(v,{sourceEvent:T,subject:h,target:f,identifier:V,active:A,x:F[0]+k,y:F[1]+G,dx:F[0]-B[0],dy:F[1]-B[1],dispatch:O}),D)}}return f.filter=function(C){return arguments.length?(e=typeof C=="function"?C:zn(!!C),f):e},f.container=function(C){return arguments.length?(t=typeof C=="function"?C:zn(C),f):t},f.subject=function(C){return arguments.length?(n=typeof C=="function"?C:zn(C),f):n},f.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:zn(!!C),f):o},f.on=function(){var C=r.on.apply(r,arguments);return C===r?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Ai(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Os(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function kn(){}var vn=.7,io=1/vn,Gt="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wc=/^#([0-9a-f]{3,8})$/,Zc=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),qc=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),Qc=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${mn}\\)$`),Jc=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${mn}\\)$`),jc=new RegExp(`^hsl\\(${mn},${Ze},${Ze}\\)$`),ed=new RegExp(`^hsla\\(${mn},${Ze},${Ze},${mn}\\)$`),sr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ai(kn,yn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:td,formatHsl:nd,formatRgb:lr,toString:lr});function ar(){return this.rgb().formatHex()}function td(){return this.rgb().formatHex8()}function nd(){return Rs(this).formatHsl()}function lr(){return this.rgb().formatRgb()}function yn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Wc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zc.exec(e))?new De(t[1],t[2],t[3],1):(t=qc.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qc.exec(e))?Pn(t[1],t[2],t[3],t[4]):(t=Jc.exec(e))?Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jc.exec(e))?fr(t[1],t[2]/100,t[3]/100,1):(t=ed.exec(e))?fr(t[1],t[2]/100,t[3]/100,t[4]):sr.hasOwnProperty(e)?ur(sr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function ur(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Pn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function od(e){return e instanceof kn||(e=yn(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?od(e):new De(e,t,n,o??1)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(At(this.r),At(this.g),At(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cr,formatHex:cr,formatHex8:id,formatRgb:dr,toString:dr}));function cr(){return`#${It(this.r)}${It(this.g)}${It(this.b)}`}function id(){return`#${It(this.r)}${It(this.g)}${It(this.b)}${It((isNaN(this.opacity)?1:this.opacity)*255)}`}function dr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${At(this.r)}, ${At(this.g)}, ${At(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function At(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function It(e){return e=At(e),(e<16?"0":"")+e.toString(16)}function fr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function Rs(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof kn||(e=yn(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),s=NaN,a=r-i,l=(r+i)/2;return a?(t===r?s=(n-o)/a+(n<o)*6:n===r?s=(o-t)/a+2:s=(t-n)/a+4,a/=l<.5?r+i:2-r-i,s*=60):a=l>0&&l<1?0:s,new Ve(s,a,l,e.opacity)}function rd(e,t,n,o){return arguments.length===1?Rs(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Ve,rd,Os(kn,{brighter(e){return e=e==null?io:Math.pow(io,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Fo(e>=240?e-240:e+120,i,o),Fo(e,i,o),Fo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(hr(this.h),Dn(this.s),Dn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${hr(this.h)}, ${Dn(this.s)*100}%, ${Dn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hr(e){return e=(e||0)%360,e<0?e+360:e}function Dn(e){return Math.max(0,Math.min(1,e||0))}function Fo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Hs=e=>()=>e;function sd(e,t){return function(n){return e+n*t}}function ad(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function ld(e){return(e=+e)==1?Fs:function(t,n){return n-t?ad(t,n,e):Hs(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?sd(e,n):Hs(isNaN(e)?t:e)}const gr=function e(t){var n=ld(t);function o(i,r){var s=n((i=ri(i)).r,(r=ri(r)).r),a=n(i.g,r.g),l=n(i.b,r.b),u=Fs(i.opacity,r.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var si=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vo=new RegExp(si.source,"g");function ud(e){return function(){return e}}function cd(e){return function(t){return e(t)+""}}function dd(e,t){var n=si.lastIndex=Vo.lastIndex=0,o,i,r,s=-1,a=[],l=[];for(e=e+"",t=t+"";(o=si.exec(e))&&(i=Vo.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),a[s]?a[s]+=r:a[++s]=r),(o=o[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ht(o,i)})),n=Vo.lastIndex;return n<t.length&&(r=t.slice(n),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?cd(l[0].x):ud(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}var pr=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vs(e,t,n,o,i,r){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*o)&&(n-=e*l,o-=t*l),(a=Math.sqrt(n*n+o*o))&&(n/=a,o/=a,l/=a),e*o<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:r,rotate:Math.atan2(t,e)*pr,skewX:Math.atan(l)*pr,scaleX:s,scaleY:a}}var Bn;function fd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ai:Vs(t.a,t.b,t.c,t.d,t.e,t.f)}function hd(e){return e==null||(Bn||(Bn=document.createElementNS("http://www.w3.org/2000/svg","g")),Bn.setAttribute("transform",e),!(e=Bn.transform.baseVal.consolidate()))?ai:(e=e.matrix,Vs(e.a,e.b,e.c,e.d,e.e,e.f))}function Ls(e,t,n,o){function i(u){return u.length?u.pop()+" ":""}function r(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push("translate(",null,t,null,n);$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d||f)&&g.push("translate("+d+t+f+n)}function s(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function a(u,c,d,f){u!==c?f.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,f,g,$){if(u!==d||c!==f){var y=g.push(i(g)+"scale(",null,",",null,")");$.push({i:y-4,x:ht(u,d)},{i:y-2,x:ht(c,f)})}else(d!==1||f!==1)&&g.push(i(g)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,f),s(u.rotate,c.rotate,d,f),a(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(g){for(var $=-1,y=f.length,m;++$<y;)d[(m=f[$]).i]=m.x(g);return d.join("")}}}var gd=Ls(fd,"px, ","px)","deg)"),pd=Ls(hd,", ",")",")"),vd=1e-12;function vr(e){return((e=Math.exp(e))+1/e)/2}function md(e){return((e=Math.exp(e))-1/e)/2}function yd(e){return((e=Math.exp(2*e))-1)/(e+1)}const wd=function e(t,n,o){function i(r,s){var a=r[0],l=r[1],u=r[2],c=s[0],d=s[1],f=s[2],g=c-a,$=d-l,y=g*g+$*$,m,p;if(y<vd)p=Math.log(f/u)/t,m=function(D){return[a+D*g,l+D*$,u*Math.exp(t*D*p)]};else{var b=Math.sqrt(y),w=(f*f-u*u+o*y)/(2*u*n*b),C=(f*f-u*u-o*y)/(2*f*n*b),P=Math.log(Math.sqrt(w*w+1)-w),z=Math.log(Math.sqrt(C*C+1)-C);p=(z-P)/t,m=function(D){var V=D*p,R=vr(P),O=u/(n*b)*(R*yd(t*V+P)-md(P));return[a+O*g,l+O*$,u*R/vr(t*V+P)]}}return m.duration=p*1e3*t/Math.SQRT2,m}return i.rho=function(r){var s=Math.max(.001,+r),a=s*s,l=a*a;return e(s,a,l)},i}(Math.SQRT2,2,4);var Wt=0,sn=0,tn=0,Ys=1e3,so,an,ao=0,Ot=0,Eo=0,wn=typeof performance=="object"&&performance.now?performance:Date,Gs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zi(){return Ot||(Gs(_d),Ot=wn.now()+Eo)}function _d(){Ot=0}function lo(){this._call=this._time=this._next=null}lo.prototype=Xs.prototype={constructor:lo,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zi():+n)+(t==null?0:+t),!this._next&&an!==this&&(an?an._next=this:so=this,an=this),this._call=e,this._time=n,li()},stop:function(){this._call&&(this._call=null,this._time=1/0,li())}};function Xs(e,t,n){var o=new lo;return o.restart(e,t,n),o}function bd(){zi(),++Wt;for(var e=so,t;e;)(t=Ot-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wt}function mr(){Ot=(ao=wn.now())+Eo,Wt=sn=0;try{bd()}finally{Wt=0,$d(),Ot=0}}function xd(){var e=wn.now(),t=e-ao;t>Ys&&(Eo-=t,ao=e)}function $d(){for(var e,t=so,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:so=n);an=e,li(o)}function li(e){if(!Wt){sn&&(sn=clearTimeout(sn));var t=e-Ot;t>24?(e<1/0&&(sn=setTimeout(mr,e-wn.now()-Eo)),tn&&(tn=clearInterval(tn))):(tn||(ao=wn.now(),tn=setInterval(xd,Ys)),Wt=1,Gs(mr))}}function yr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var Ed=xo("start","end","cancel","interrupt"),Sd=[],Us=0,wr=1,ui=2,Zn=3,_r=4,ci=5,qn=6;function So(e,t,n,o,i,r){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Nd(e,n,{name:t,index:o,group:i,on:Ed,tween:Sd,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Us})}function Pi(e,t){var n=Ge(e,t);if(n.state>Us)throw new Error("too late; already scheduled");return n}function Qe(e,t){var n=Ge(e,t);if(n.state>Zn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nd(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Xs(r,0,n.time);function r(u){n.state=wr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,f,g;if(n.state!==wr)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===Zn)return yr(s);g.state===_r?(g.state=qn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+c<t&&(g.state=qn,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[c])}if(yr(function(){n.state===Zn&&(n.state=_r,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=ui,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ui){for(n.state=Zn,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(g=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=ci,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===ci&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=qn,n.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function Qn(e,t){var n=e.__transition,o,i,r=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((o=n[s]).name!==t){r=!1;continue}i=o.state>ui&&o.state<ci,o.state=qn,o.timer.stop(),o.on.call(i?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}r&&delete e.__transition}}function Cd(e){return this.each(function(){Qn(this,e)})}function kd(e,t){var n,o;return function(){var i=Qe(this,e),r=i.tween;if(r!==n){o=n=r;for(var s=0,a=o.length;s<a;++s)if(o[s].name===t){o=o.slice(),o.splice(s,1);break}}i.tween=o}}function Md(e,t,n){var o,i;if(typeof n!="function")throw new Error;return function(){var r=Qe(this,e),s=r.tween;if(s!==o){i=(o=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}r.tween=i}}function Id(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=Ge(this.node(),n).tween,i=0,r=o.length,s;i<r;++i)if((s=o[i]).name===e)return s.value;return null}return this.each((t==null?kd:Md)(n,e,t))}function Di(e,t,n){var o=e._id;return e.each(function(){var i=Qe(this,o);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ge(i,o).value[t]}}function Ks(e,t){var n;return(typeof t=="number"?ht:t instanceof yn?gr:(n=yn(t))?(t=n,gr):dd)(e,t)}function Td(e){return function(){this.removeAttribute(e)}}function Ad(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttribute(e);return s===i?null:s===o?r:r=t(o=s,n)}}function Pd(e,t,n){var o,i=n+"",r;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===o?r:r=t(o=s,n)}}function Dd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Bd(e,t,n){var o,i,r;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a)))}}function Od(e,t){var n=$o(e),o=n==="transform"?pd:Ks;return this.attrTween(e,typeof t=="function"?(n.local?Bd:Dd)(n,o,Di(this,"attr."+e,t)):t==null?(n.local?Ad:Td)(n):(n.local?Pd:zd)(n,o,t))}function Rd(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Hd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Hd(e,r)),n}return i._value=t,i}function Vd(e,t){var n,o;function i(){var r=t.apply(this,arguments);return r!==o&&(n=(o=r)&&Rd(e,r)),n}return i._value=t,i}function Ld(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=$o(e);return this.tween(n,(o.local?Fd:Vd)(o,t))}function Yd(e,t){return function(){Pi(this,e).delay=+t.apply(this,arguments)}}function Gd(e,t){return t=+t,function(){Pi(this,e).delay=t}}function Xd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yd:Gd)(t,e)):Ge(this.node(),t).delay}function Ud(e,t){return function(){Qe(this,e).duration=+t.apply(this,arguments)}}function Kd(e,t){return t=+t,function(){Qe(this,e).duration=t}}function Wd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ud:Kd)(t,e)):Ge(this.node(),t).duration}function Zd(e,t){if(typeof t!="function")throw new Error;return function(){Qe(this,e).ease=t}}function qd(e){var t=this._id;return arguments.length?this.each(Zd(t,e)):Ge(this.node(),t).ease}function Qd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qe(this,e).ease=n}}function Jd(e){if(typeof e!="function")throw new Error;return this.each(Qd(this._id,e))}function jd(e){typeof e!="function"&&(e=Ss(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i<n;++i)for(var r=t[i],s=r.length,a=o[i]=[],l,u=0;u<s;++u)(l=r[u])&&e.call(l,l.__data__,u,r)&&a.push(l);return new rt(o,this._parents,this._name,this._id)}function ef(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,i=n.length,r=Math.min(o,i),s=new Array(o),a=0;a<r;++a)for(var l=t[a],u=n[a],c=l.length,d=s[a]=new Array(c),f,g=0;g<c;++g)(f=l[g]||u[g])&&(d[g]=f);for(;a<o;++a)s[a]=t[a];return new rt(s,this._parents,this._name,this._id)}function tf(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function nf(e,t,n){var o,i,r=tf(t)?Pi:Qe;return function(){var s=r(this,e),a=s.on;a!==o&&(i=(o=a).copy()).on(t,n),s.on=i}}function of(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(nf(n,e,t))}function rf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function sf(){return this.on("end.remove",rf(this._id))}function af(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),s=0;s<i;++s)for(var a=o[s],l=a.length,u=r[s]=new Array(l),c,d,f=0;f<l;++f)(c=a[f])&&(d=e.call(c,c.__data__,f,a))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,So(u[f],t,n,f,u,Ge(c,n)));return new rt(r,this._parents,t,n)}function lf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var o=this._groups,i=o.length,r=[],s=[],a=0;a<i;++a)for(var l=o[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),g,$=Ge(c,n),y=0,m=f.length;y<m;++y)(g=f[y])&&So(g,t,n,y,f,$);r.push(f),s.push(c)}return new rt(r,s,t,n)}var uf=Cn.prototype.constructor;function cf(){return new uf(this._groups,this._parents)}function df(e,t){var n,o,i;return function(){var r=Kt(this,e),s=(this.style.removeProperty(e),Kt(this,e));return r===s?null:r===n&&s===o?i:i=t(n=r,o=s)}}function Ws(e){return function(){this.style.removeProperty(e)}}function ff(e,t,n){var o,i=n+"",r;return function(){var s=Kt(this,e);return s===i?null:s===o?r:r=t(o=s,n)}}function hf(e,t,n){var o,i,r;return function(){var s=Kt(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Kt(this,e))),s===l?null:s===o&&l===i?r:(i=l,r=t(o=s,a))}}function gf(e,t){var n,o,i,r="style."+t,s="end."+r,a;return function(){var l=Qe(this,e),u=l.on,c=l.value[r]==null?a||(a=Ws(t)):void 0;(u!==n||i!==c)&&(o=(n=u).copy()).on(s,i=c),l.on=o}}function pf(e,t,n){var o=(e+="")=="transform"?gd:Ks;return t==null?this.styleTween(e,df(e,o)).on("end.style."+e,Ws(e)):typeof t=="function"?this.styleTween(e,hf(e,o,Di(this,"style."+e,t))).each(gf(this._id,e)):this.styleTween(e,ff(e,o,t),n).on("end.style."+e,null)}function vf(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function mf(e,t,n){var o,i;function r(){var s=t.apply(this,arguments);return s!==i&&(o=(i=s)&&vf(e,s,n)),o}return r._value=t,r}function yf(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,mf(e,t,n??""))}function wf(e){return function(){this.textContent=e}}function _f(e){return function(){var t=e(this);this.textContent=t??""}}function bf(e){return this.tween("text",typeof e=="function"?_f(Di(this,"text",e)):wf(e==null?"":e+""))}function xf(e){return function(t){this.textContent=e.call(this,t)}}function $f(e){var t,n;function o(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&xf(i)),t}return o._value=e,o}function Ef(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$f(e))}function Sf(){for(var e=this._name,t=this._id,n=Zs(),o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Ge(l,t);So(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new rt(o,this._parents,e,n)}function Nf(){var e,t,n=this,o=n._id,i=n.size();return new Promise(function(r,s){var a={value:s},l={value:function(){--i===0&&r()}};n.each(function(){var u=Qe(this,o),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&r()})}var Cf=0;function rt(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function Zs(){return++Cf}var je=Cn.prototype;rt.prototype={constructor:rt,select:af,selectAll:lf,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:jd,merge:ef,selection:cf,transition:Sf,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:of,attr:Od,attrTween:Ld,style:pf,styleTween:yf,text:bf,textTween:Ef,remove:sf,tween:Id,delay:Xd,duration:Wd,ease:qd,easeVarying:Jd,end:Nf,[Symbol.iterator]:je[Symbol.iterator]};function kf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mf={time:null,delay:0,duration:250,ease:kf};function If(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Tf(e){var t,n;e instanceof rt?(t=e._id,e=e._name):(t=Zs(),(n=Mf).time=zi(),e=e==null?null:e+"");for(var o=this._groups,i=o.length,r=0;r<i;++r)for(var s=o[r],a=s.length,l,u=0;u<a;++u)(l=s[u])&&So(l,e,t,u,s,n||If(l,t));return new rt(o,this._parents,e,t)}Cn.prototype.interrupt=Cd;Cn.prototype.transition=Tf;const On=e=>()=>e;function Af(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function nt(e,t,n){this.k=e,this.x=t,this.y=n}nt.prototype={constructor:nt,scale:function(e){return e===1?this:new nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new nt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new nt(1,0,0);nt.prototype;function Lo(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function zf(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Pf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function br(){return this.__zoom||Zt}function Df(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Bf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function Rf(){var e=zf,t=Pf,n=Of,o=Df,i=Bf,r=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=wd,u=xo("start","zoom","end"),c,d,f,g=500,$=150,y=0,m=10;function p(h){h.property("__zoom",br).on("wheel.zoom",V,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(h,M,v,T){var I=h.selection?h.selection():h;I.property("__zoom",br),h!==I?P(h,M,v,T):I.interrupt().each(function(){z(this,arguments).event(T).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},p.scaleBy=function(h,M,v,T){p.scaleTo(h,function(){var I=this.__zoom.k,B=typeof M=="function"?M.apply(this,arguments):M;return I*B},v,T)},p.scaleTo=function(h,M,v,T){p.transform(h,function(){var I=t.apply(this,arguments),B=this.__zoom,A=v==null?C(I):typeof v=="function"?v.apply(this,arguments):v,L=B.invert(A),K=typeof M=="function"?M.apply(this,arguments):M;return n(w(b(B,K),A,L),I,s)},v,T)},p.translateBy=function(h,M,v,T){p.transform(h,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof v=="function"?v.apply(this,arguments):v),t.apply(this,arguments),s)},null,T)},p.translateTo=function(h,M,v,T,I){p.transform(h,function(){var B=t.apply(this,arguments),A=this.__zoom,L=T==null?C(B):typeof T=="function"?T.apply(this,arguments):T;return n(Zt.translate(L[0],L[1]).scale(A.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof v=="function"?-v.apply(this,arguments):-v),B,s)},T,I)};function b(h,M){return M=Math.max(r[0],Math.min(r[1],M)),M===h.k?h:new nt(M,h.x,h.y)}function w(h,M,v){var T=M[0]-v[0]*h.k,I=M[1]-v[1]*h.k;return T===h.x&&I===h.y?h:new nt(h.k,T,I)}function C(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function P(h,M,v,T){h.on("start.zoom",function(){z(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(T).end()}).tween("zoom",function(){var I=this,B=arguments,A=z(I,B).event(T),L=t.apply(I,B),K=v==null?C(L):typeof v=="function"?v.apply(I,B):v,ee=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),Y=I.__zoom,U=typeof M=="function"?M.apply(I,B):M,Q=l(Y.invert(K).concat(ee/Y.k),U.invert(K).concat(ee/U.k));return function(se){if(se===1)se=U;else{var ue=Q(se),ae=ee/ue[2];se=new nt(ae,K[0]-ue[0]*ae,K[1]-ue[1]*ae)}A.zoom(null,se)}})}function z(h,M,v){return!v&&h.__zooming||new D(h,M)}function D(h,M){this.that=h,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(h,M),this.taps=0}D.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,M){return this.mouse&&h!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var M=Fe(this.that).datum();u.call(h,this.that,new Af(h,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:u}),M)}};function V(h,...M){if(!e.apply(this,arguments))return;var v=z(this,M).event(h),T=this.__zoom,I=Math.max(r[0],Math.min(r[1],T.k*Math.pow(2,o.apply(this,arguments)))),B=We(h);if(v.wheel)(v.mouse[0][0]!==B[0]||v.mouse[0][1]!==B[1])&&(v.mouse[1]=T.invert(v.mouse[0]=B)),clearTimeout(v.wheel);else{if(T.k===I)return;v.mouse=[B,T.invert(B)],Qn(this),v.start()}nn(h),v.wheel=setTimeout(A,$),v.zoom("mouse",n(w(b(T,I),v.mouse[0],v.mouse[1]),v.extent,s));function A(){v.wheel=null,v.end()}}function R(h,...M){if(f||!e.apply(this,arguments))return;var v=h.currentTarget,T=z(this,M,!0).event(h),I=Fe(h.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",ee,!0),B=We(h,v),A=h.clientX,L=h.clientY;Ds(h.view),Lo(h),T.mouse=[B,this.__zoom.invert(B)],Qn(this),T.start();function K(Y){if(nn(Y),!T.moved){var U=Y.clientX-A,Q=Y.clientY-L;T.moved=U*U+Q*Q>y}T.event(Y).zoom("mouse",n(w(T.that.__zoom,T.mouse[0]=We(Y,v),T.mouse[1]),T.extent,s))}function ee(Y){I.on("mousemove.zoom mouseup.zoom",null),Bs(Y.view,T.moved),nn(Y),T.event(Y).end()}}function O(h,...M){if(e.apply(this,arguments)){var v=this.__zoom,T=We(h.changedTouches?h.changedTouches[0]:h,this),I=v.invert(T),B=v.k*(h.shiftKey?.5:2),A=n(w(b(v,B),T,I),t.apply(this,M),s);nn(h),a>0?Fe(this).transition().duration(a).call(P,A,T,h):Fe(this).call(p.transform,A,T,h)}}function F(h,...M){if(e.apply(this,arguments)){var v=h.touches,T=v.length,I=z(this,M,h.changedTouches.length===T).event(h),B,A,L,K;for(Lo(h),A=0;A<T;++A)L=v[A],K=We(L,this),K=[K,this.__zoom.invert(K),L.identifier],I.touch0?!I.touch1&&I.touch0[2]!==K[2]&&(I.touch1=K,I.taps=0):(I.touch0=K,B=!0,I.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(I.taps<2&&(d=K[0],c=setTimeout(function(){c=null},g)),Qn(this),I.start())}}function k(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A,L,K;for(nn(h),B=0;B<I;++B)A=T[B],L=We(A,this),v.touch0&&v.touch0[2]===A.identifier?v.touch0[0]=L:v.touch1&&v.touch1[2]===A.identifier&&(v.touch1[0]=L);if(A=v.that.__zoom,v.touch1){var ee=v.touch0[0],Y=v.touch0[1],U=v.touch1[0],Q=v.touch1[1],se=(se=U[0]-ee[0])*se+(se=U[1]-ee[1])*se,ue=(ue=Q[0]-Y[0])*ue+(ue=Q[1]-Y[1])*ue;A=b(A,Math.sqrt(se/ue)),L=[(ee[0]+U[0])/2,(ee[1]+U[1])/2],K=[(Y[0]+Q[0])/2,(Y[1]+Q[1])/2]}else if(v.touch0)L=v.touch0[0],K=v.touch0[1];else return;v.zoom("touch",n(w(A,L,K),v.extent,s))}}function G(h,...M){if(this.__zooming){var v=z(this,M).event(h),T=h.changedTouches,I=T.length,B,A;for(Lo(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),B=0;B<I;++B)A=T[B],v.touch0&&v.touch0[2]===A.identifier?delete v.touch0:v.touch1&&v.touch1[2]===A.identifier&&delete v.touch1;if(v.touch1&&!v.touch0&&(v.touch0=v.touch1,delete v.touch1),v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2&&(A=We(A,this),Math.hypot(d[0]-A[0],d[1]-A[1])<m)){var L=Fe(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return p.wheelDelta=function(h){return arguments.length?(o=typeof h=="function"?h:On(+h),p):o},p.filter=function(h){return arguments.length?(e=typeof h=="function"?h:On(!!h),p):e},p.touchable=function(h){return arguments.length?(i=typeof h=="function"?h:On(!!h),p):i},p.extent=function(h){return arguments.length?(t=typeof h=="function"?h:On([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),p):t},p.scaleExtent=function(h){return arguments.length?(r[0]=+h[0],r[1]=+h[1],p):[r[0],r[1]]},p.translateExtent=function(h){return arguments.length?(s[0][0]=+h[0][0],s[1][0]=+h[1][0],s[0][1]=+h[0][1],s[1][1]=+h[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(h){return arguments.length?(n=h,p):n},p.duration=function(h){return arguments.length?(a=+h,p):a},p.interpolate=function(h){return arguments.length?(l=h,p):l},p.on=function(){var h=u.on.apply(u,arguments);return h===u?p:h},p.clickDistance=function(h){return arguments.length?(y=(h=+h)*h,p):Math.sqrt(y)},p.tapDistance=function(h){return arguments.length?(m=+h,p):m},p}var te=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),Ct=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Ct||{}),$t=(e=>(e.Strict="strict",e.Loose="loose",e))($t||{}),di=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(di||{}),fn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(fn||{});const Hf=["INPUT","SELECT","TEXTAREA"];function fi(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return Hf.includes(o==null?void 0:o.nodeName)||i||!!r}function Ff(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function xr(e,t,n,o){const i=t.replace("+",`
2
2
  `).replace(`
3
3
 
4
4
  `,`
@@ -1,4 +1,4 @@
1
- import{g as Ht}from"./Ci5B19-c.js";import{_ as m,o as Mt,l as t1,c as b1,d as O1,p as Xt,r as Qt,u as rt,b as Jt,s as Zt,q as $t,a as te,g as ee,t as se,k as ie,v as re,J as ae,x as ne,y as it,z as ue,A as oe,B as le,C as ce}from"./DHAL8jJG.js";import{c as he}from"./Bq47tjcm.js";import{g as de}from"./kvtnkChG.js";import{s as pe}from"./DGvAu532.js";import{c as fe}from"./BS-LtKx4.js";import"./BcsKoAPU.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return n.domId;return i}addVertex(i,n,a,u,o,f,c={},A){var L,C;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(`
1
+ import{g as Ht}from"./DA4Xn6lm.js";import{_ as m,o as Mt,l as t1,c as b1,d as O1,p as Xt,r as Qt,u as rt,b as Jt,s as Zt,q as $t,a as te,g as ee,t as se,k as ie,v as re,J as ae,x as ne,y as it,z as ue,A as oe,B as le,C as ce}from"./B_ERKujF.js";import{c as he}from"./BG-rJefG.js";import{g as de}from"./9sDqz0uT.js";import{s as pe}from"./DRh-06Hb.js";import{c as fe}from"./bYQCSC5-.js";import"./D0lW43G8.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return n.domId;return i}addVertex(i,n,a,u,o,f,c={},A){var L,C;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(`
2
2
  `)?d=A+`
3
3
  `:d=`{
4
4
  `+A+`
@@ -1 +1 @@
1
- import{c as d}from"./BcsKoAPU.js";const T={string:"hugeicons:text-font",hash:"hugeicons:hashtag",list:"hugeicons:menu-01",set:"hugeicons:layers-01",sortedSet:"hugeicons:3rd-bracket",vector:"hugeicons:brain-circuit",stream:"hugeicons:activity-01",bitmap:"hugeicons:grid-3x3",bitfield:"hugeicons:binary",geo:"hugeicons:pin-location-03",json:"hugeicons:file-json",probabilistic:"lucide:flask-conical",timeSeries:"lucide:line-chart"},O={string:"string",hash:"hash",list:"list",set:"set",sortedSet:"sortedSet",zset:"sortedSet",vector:"vector",stream:"stream",bitmap:"bitmap",bitfield:"bitfield",geo:"geo",json:"json",probabilistic:"probabilistic",timeSeries:"timeSeries"},S={hash:"text-emerald-500",list:"text-sky-500",set:"text-violet-500",sortedSet:"text-amber-500",vector:"text-fuchsia-500",stream:"text-orange-500",bitmap:"text-cyan-500",bitfield:"text-indigo-500",geo:"text-rose-500",json:"text-lime-500",probabilistic:"text-red-500",timeSeries:"text-teal-500"},K="material-icon-theme:folder-database-open",N="material-icon-theme:folder-database";function p(t){return O[t]}function y(t){const o=p(t);return o?T[o]:"hugeicons:database-02"}function C(t){const o=p(t);return o?S[o]??"text-primary":"text-primary"}function z(t){return`redis-group:${t}`}function v(t){return`redis-key:${t}`}function x(t){const o=t.split(":").filter(Boolean);return o.length<=1?t:o[o.length-1]||t}function D(t,o){return[...o].sort((g,m)=>{const a=t[g],f=t[m];return a.type!==f.type?a.type==="folder"?-1:1:a.name.localeCompare(f.name,void 0,{numeric:!0,sensitivity:"base"})})}function H(t,o){const g=d(()=>o.value.trim().toLowerCase()),m=d(()=>g.value?t.value.filter(n=>n.key.toLowerCase().includes(g.value)):t.value),a=d(()=>{const n={},i=[],l=new Map;for(const e of m.value){const c=e.key.split(":").filter(Boolean);if(c.length<=1){const k=v(e.key),u=p(e.type);n[k]={id:k,parentId:null,name:x(e.key),type:"file",depth:0,iconOpen:y(e.type),iconClose:y(e.type),iconClass:C(e.type),data:{kind:"key",redisKey:e.key,keyType:u,ttl:e.ttl,memoryUsage:e.memoryUsage,memoryUsageHuman:e.memoryUsageHuman}};continue}let s=null,h="";for(const[k,u]of c.slice(0,-1).entries()){h=h?`${h}:${u}`:u;const r=z(h);n[r]||(n[r]={id:r,parentId:s,name:u,type:"folder",depth:k,iconOpen:K,iconClose:N,children:[],data:{kind:"group"}},i.push(r),s&&(n[s].children=[...n[s].children??[],r]));const U=l.get(r)??{keyCount:0,memoryUsage:0};l.set(r,{keyCount:U.keyCount+1,memoryUsage:U.memoryUsage===null?e.memoryUsage:U.memoryUsage+(e.memoryUsage??0)}),s=r}const b=v(e.key),I=p(e.type);n[b]={id:b,parentId:s,name:x(e.key),type:"file",depth:c.length-1,iconOpen:y(e.type),iconClose:y(e.type),iconClass:C(e.type),data:{kind:"key",redisKey:e.key,keyType:I,ttl:e.ttl,memoryUsage:e.memoryUsage,memoryUsageHuman:e.memoryUsageHuman}},s&&(n[s].children=[...n[s].children??[],b])}return Object.values(n).forEach(e=>{var c;if(e.type==="folder"){const s=l.get(e.id);s&&(e.data={...e.data??{kind:"group"},keyCount:s.keyCount,memoryUsage:s.memoryUsage})}(c=e.children)!=null&&c.length&&(e.children=D(n,e.children))}),{fileTreeData:n,defaultFolderOpenIds:i}}),f=d(()=>{const n={};for(const i of m.value){const l=v(i.key),e=p(i.type);n[l]={id:l,parentId:null,name:i.key,type:"file",depth:-1,iconOpen:y(i.type),iconClose:y(i.type),iconClass:C(i.type),data:{kind:"key",redisKey:i.key,keyType:e,ttl:i.ttl,memoryUsage:i.memoryUsage,memoryUsageHuman:i.memoryUsageHuman}}}return n});return{visibleKeys:m,fileTreeData:d(()=>a.value.fileTreeData),flatFileTreeData:f,defaultFolderOpenIds:d(()=>a.value.defaultFolderOpenIds)}}export{C as a,y as g,H as u};
1
+ import{c as d}from"./D0lW43G8.js";const T={string:"hugeicons:text-font",hash:"hugeicons:hashtag",list:"hugeicons:menu-01",set:"hugeicons:layers-01",sortedSet:"hugeicons:3rd-bracket",vector:"hugeicons:brain-circuit",stream:"hugeicons:activity-01",bitmap:"hugeicons:grid-3x3",bitfield:"hugeicons:binary",geo:"hugeicons:pin-location-03",json:"hugeicons:file-json",probabilistic:"lucide:flask-conical",timeSeries:"lucide:line-chart"},O={string:"string",hash:"hash",list:"list",set:"set",sortedSet:"sortedSet",zset:"sortedSet",vector:"vector",stream:"stream",bitmap:"bitmap",bitfield:"bitfield",geo:"geo",json:"json",probabilistic:"probabilistic",timeSeries:"timeSeries"},S={hash:"text-emerald-500",list:"text-sky-500",set:"text-violet-500",sortedSet:"text-amber-500",vector:"text-fuchsia-500",stream:"text-orange-500",bitmap:"text-cyan-500",bitfield:"text-indigo-500",geo:"text-rose-500",json:"text-lime-500",probabilistic:"text-red-500",timeSeries:"text-teal-500"},K="material-icon-theme:folder-database-open",N="material-icon-theme:folder-database";function p(t){return O[t]}function y(t){const o=p(t);return o?T[o]:"hugeicons:database-02"}function C(t){const o=p(t);return o?S[o]??"text-primary":"text-primary"}function z(t){return`redis-group:${t}`}function v(t){return`redis-key:${t}`}function x(t){const o=t.split(":").filter(Boolean);return o.length<=1?t:o[o.length-1]||t}function D(t,o){return[...o].sort((g,m)=>{const a=t[g],f=t[m];return a.type!==f.type?a.type==="folder"?-1:1:a.name.localeCompare(f.name,void 0,{numeric:!0,sensitivity:"base"})})}function H(t,o){const g=d(()=>o.value.trim().toLowerCase()),m=d(()=>g.value?t.value.filter(n=>n.key.toLowerCase().includes(g.value)):t.value),a=d(()=>{const n={},i=[],l=new Map;for(const e of m.value){const c=e.key.split(":").filter(Boolean);if(c.length<=1){const k=v(e.key),u=p(e.type);n[k]={id:k,parentId:null,name:x(e.key),type:"file",depth:0,iconOpen:y(e.type),iconClose:y(e.type),iconClass:C(e.type),data:{kind:"key",redisKey:e.key,keyType:u,ttl:e.ttl,memoryUsage:e.memoryUsage,memoryUsageHuman:e.memoryUsageHuman}};continue}let s=null,h="";for(const[k,u]of c.slice(0,-1).entries()){h=h?`${h}:${u}`:u;const r=z(h);n[r]||(n[r]={id:r,parentId:s,name:u,type:"folder",depth:k,iconOpen:K,iconClose:N,children:[],data:{kind:"group"}},i.push(r),s&&(n[s].children=[...n[s].children??[],r]));const U=l.get(r)??{keyCount:0,memoryUsage:0};l.set(r,{keyCount:U.keyCount+1,memoryUsage:U.memoryUsage===null?e.memoryUsage:U.memoryUsage+(e.memoryUsage??0)}),s=r}const b=v(e.key),I=p(e.type);n[b]={id:b,parentId:s,name:x(e.key),type:"file",depth:c.length-1,iconOpen:y(e.type),iconClose:y(e.type),iconClass:C(e.type),data:{kind:"key",redisKey:e.key,keyType:I,ttl:e.ttl,memoryUsage:e.memoryUsage,memoryUsageHuman:e.memoryUsageHuman}},s&&(n[s].children=[...n[s].children??[],b])}return Object.values(n).forEach(e=>{var c;if(e.type==="folder"){const s=l.get(e.id);s&&(e.data={...e.data??{kind:"group"},keyCount:s.keyCount,memoryUsage:s.memoryUsage})}(c=e.children)!=null&&c.length&&(e.children=D(n,e.children))}),{fileTreeData:n,defaultFolderOpenIds:i}}),f=d(()=>{const n={};for(const i of m.value){const l=v(i.key),e=p(i.type);n[l]={id:l,parentId:null,name:i.key,type:"file",depth:-1,iconOpen:y(i.type),iconClose:y(i.type),iconClass:C(i.type),data:{kind:"key",redisKey:i.key,keyType:e,ttl:i.ttl,memoryUsage:i.memoryUsage,memoryUsageHuman:i.memoryUsageHuman}}}return n});return{visibleKeys:m,fileTreeData:d(()=>a.value.fileTreeData),flatFileTreeData:f,defaultFolderOpenIds:d(()=>a.value.defaultFolderOpenIds)}}export{C as a,y as g,H as u};
@@ -1 +1 @@
1
- import{_ as l}from"./DHAL8jJG.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
1
+ import{_ as l}from"./B_ERKujF.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
@@ -1 +1 @@
1
- import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./DHAL8jJG.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./B_ERKujF.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
@@ -1 +1 @@
1
- import{d as v,a3 as h,al as C,am as S,c as o,G as b,e as w,o as I,f as i,g as n,P as g}from"./BcsKoAPU.js";import{b as y,a as F}from"./BVmBXPoG.js";import{u as O}from"./ioXB9E2w.js";import{_ as E}from"./CS9hqyP3.js";import"./dWu56FdP.js";import"./CS5akSNT.js";const K={class:"h-full relative p-1"},V=v({__name:"FunctionOverview",props:{connectionId:{}},setup(m){const u=["name","schema","kind","owner","comment"],t=m,s=h(),l=C(),{schemaId:a}=S(l),d=o(()=>t.connectionId?s.connections.find(e=>e.id===t.connectionId):s.selectedConnection),c=o(()=>({...b(d.value),schema:a.value})),{data:r,status:p}=O("/api/functions/overview",{method:"POST",body:c,watch:[a,c]},"$ezFEyK7joI"),f=o(()=>{const e=r.value||[];return e.length>0?y(e):F(u)});return(e,M)=>{const _=g;return I(),w("div",K,[i(_,{visible:n(p)==="pending"},null,8,["visible"]),i(n(E),{columns:n(f),data:n(r)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])])}}});export{V as default};
1
+ import{d as v,a3 as h,al as C,am as S,c as o,G as b,e as w,o as I,f as i,g as n,P as g}from"./D0lW43G8.js";import{b as y,a as F}from"./BVmBXPoG.js";import{u as O}from"./C0vscAQB.js";import{_ as E}from"./Dtl3qje7.js";import"./Cf460dGA.js";import"./CS5akSNT.js";const K={class:"h-full relative p-1"},V=v({__name:"FunctionOverview",props:{connectionId:{}},setup(m){const u=["name","schema","kind","owner","comment"],t=m,s=h(),l=C(),{schemaId:a}=S(l),d=o(()=>t.connectionId?s.connections.find(e=>e.id===t.connectionId):s.selectedConnection),c=o(()=>({...b(d.value),schema:a.value})),{data:r,status:p}=O("/api/functions/overview",{method:"POST",body:c,watch:[a,c]},"$ezFEyK7joI"),f=o(()=>{const e=r.value||[];return e.length>0?y(e):F(u)});return(e,M)=>{const _=g;return I(),w("div",K,[i(_,{visible:n(p)==="pending"},null,8,["visible"]),i(n(E),{columns:n(f),data:n(r)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])])}}});export{V as default};
@@ -1,4 +1,4 @@
1
- import{g as te}from"./kvtnkChG.js";import{s as ee}from"./DGvAu532.js";import{_ as f,l as b,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,q as le,t as ce,ab as he,k as W,A as ue}from"./DHAL8jJG.js";var vt=function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;r.push(_t);var Qt=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var bt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(U+1)+`:
1
+ import{g as te}from"./9sDqz0uT.js";import{s as ee}from"./DRh-06Hb.js";import{_ as f,l as b,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,q as le,t as ce,ab as he,k as W,A as ue}from"./B_ERKujF.js";var vt=function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;r.push(_t);var Qt=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var bt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(U+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[C]||C)+"'":bt="Parse error on line "+(U+1)+": Unexpected "+(C==tt?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(bt,{text:D.match,token:this.terminals_[C]||C,line:D.yylineno,loc:_t,expected:ft})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+C);switch(w[0]){case 1:n.push(C),E.push(D.yytext),r.push(D.yylloc),n.push(w[1]),C=null,X=D.yyleng,c=D.yytext,U=D.yylineno,_t=D.yylloc;break;case 2:if(Y=this.productions_[w[1]][1],J.$=E[E.length-Y],J._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(J._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),mt=this.performAction.apply(J,[c,X,U,j.yy,w[1],E,r].concat(Tt)),typeof mt<"u")return mt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),r=r.slice(0,-1*Y)),n.push(this.productions_[w[1]][0]),E.push(J.$),r.push(J._$),Ot=Z[n[n.length-2]][n[n.length-1]],n.push(Ot);break;case 3:return!0}}return!0},"parse")},qt=function(){var V={EOF:1,parseError:f(function(h,n){if(this.yy.parser)this.yy.parser.parseError(h,n);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||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]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(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:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./Ci5B19-c.js";import{a as mt,g as lt,h as xt,d as kt}from"./Bq47tjcm.js";import{_ as n,g as _t,s as vt,a as bt,b as wt,t as Tt,q as St,c as R,d as G,e as $t,A as Mt}from"./DHAL8jJG.js";import{d as et}from"./C6dIAdHr.js";import"./BcsKoAPU.js";var U=function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,d,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:d.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],d=[],p=[null],o=[],b=this.table,k="",C=0,K=0,dt=2,Q=1,yt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=d.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./DA4Xn6lm.js";import{a as mt,g as lt,h as xt,d as kt}from"./BG-rJefG.js";import{_ as n,g as _t,s as vt,a as bt,b as wt,t as Tt,q as St,c as R,d as G,e as $t,A as Mt}from"./B_ERKujF.js";import{d as et}from"./DLBsdU7G.js";import"./D0lW43G8.js";var U=function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,d,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:d.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],d=[],p=[null],o=[],b=this.table,k="",C=0,K=0,dt=2,Q=1,yt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=d.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(_.yytext),o.push(_.yylloc),l.push(T[1]),v=null,K=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},ft&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(F,[k,K,C,I.yy,T[1],p,o].concat(yt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),tt=b[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:n(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{_ as a,e as w,l as x}from"./DHAL8jJG.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s};
1
+ import{_ as a,e as w,l as x}from"./B_ERKujF.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s};
@@ -1 +1 @@
1
- import{M as j,d as G,e as F,o as c,n as se,m as d,k as b,l as q,f as a,w as o,g as e,a_ as z,a0 as te,z as v,A as S,a$ as D,aY as R,a3 as oe,ba as ie,am as le,r as f,c as _,G as L,bb as ue,bc as re,bd as de,be as ce,bf as me,bg as fe,bh as ve,bi as pe,bj as ge,i as A,O as _e,Q as Ce,R as be,t as he,S as ye,T as Se,U as we,V as $e,bk as xe,N as ke,P as Pe,bl as Te,F as qe,K as ze}from"./BcsKoAPU.js";import{_ as De}from"./Ca0KO9Xq.js";import{s as Re}from"./DDebxXP-.js";import{g as O,a as K}from"./COAycMg4.js";import{_ as Oe}from"./BPACuoI0.js";import{_ as Fe}from"./AymhMj9v.js";import{u as Ne}from"./ioXB9E2w.js";import{f as Me}from"./DsmBazLf.js";import"./CS5akSNT.js";import"./D4pAW_0T.js";const Be=w=>j.of([{key:"Ctrl-s",mac:"Cmd-s",run:p=>{const m=p.state.doc.toString();return w(m),!0},preventDefault:!0}]),Ee={class:se(["flex items-center justify-between p-1 rounded-md bg-muted"])},Ie={class:"flex items-center gap-1"},Qe={key:0,class:"text-xs text-muted-foreground"},Ue=G({__name:"FunctionControlBar",props:{hasChanges:{type:Boolean},isSaving:{type:Boolean}},emits:["onPreview","onSave","onDiscard"],setup(w,{emit:p}){const m=p;return(r,t)=>{const l=te,C=Fe;return c(),F("div",Ee,[d("div",Ie,[r.hasChanges?(c(),b(e(R),{key:0},{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:r.isSaving,onClick:t[0]||(t[0]=u=>m("onPreview"))},{default:o(()=>[a(e(S),{name:"lucide:file-search",class:"size-4"}),t[3]||(t[3]=v(" Preview changes "))]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>t[4]||(t[4]=[d("p",null,"Preview SQL changes before saving",-1)])),_:1})]),_:1})):q("",!0),a(e(R),null,{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:!r.hasChanges||r.isSaving,onClick:t[1]||(t[1]=u=>m("onSave"))},{default:o(()=>[r.isSaving?(c(),b(e(S),{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(c(),b(e(S),{key:1,name:"lucide:save",class:"size-4"})),t[6]||(t[6]=v(" Save ")),a(C,null,{default:o(()=>t[5]||(t[5]=[v("⌘S")])),_:1})]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>[t[7]||(t[7]=d("p",null,"Save routine changes",-1)),r.hasChanges?q("",!0):(c(),F("p",Qe," No changes to save "))]),_:1})]),_:1}),r.hasChanges?(c(),b(e(R),{key:1},{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:r.isSaving,onClick:t[2]||(t[2]=u=>m("onDiscard"))},{default:o(()=>[a(e(S),{name:"lucide:undo-2",class:"size-4"}),t[8]||(t[8]=v(" discard changes "))]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>t[9]||(t[9]=[d("p",null,"Discard changes",-1)])),_:1})]),_:1})):q("",!0)])])}}}),Ve={class:"flex flex-col h-full p-1"},Le={class:"flex flex-col h-full border rounded-md"},Ae={class:"h-full flex flex-col overflow-y-auto relative"},an=G({__name:"FunctionDetail",props:{functionId:{},connectionId:{}},setup(w){const p=w,m=oe(),r=ie(),{activeSchema:t}=le(r),l=f(""),C=f(""),u=f(!1),N=f(""),M=f("Query error!"),$=f(!1),h=f(!1),y=f(""),H=_(()=>O(l.value)),Y=_(()=>O(C.value)),B=_(()=>H.value!==Y.value),Z=_(()=>{const n=K(y.value);return n?`${n} update preview`:"Routine update preview"}),J=_(()=>{var i,x;const n=(i=t.value)==null?void 0:i.tableDetails,s={};for(const k in n){const g=(x=n[k])==null?void 0:x.columns;s[k]=g.map(T=>({label:T.name,type:"field",info:T.short_type_name||"",boost:-T.ordinal_position}))}return s}),W=new ue,E=_(()=>p.connectionId?m.connections.find(n=>n.id===p.connectionId):m.selectedConnection),I=_(()=>({functionId:p.functionId,...L(E.value)})),{status:X}=Ne("/api/functions/definition",{method:"POST",body:I,onResponse:n=>{if(typeof n.response._data=="string"){const s=n.response._data||"";l.value=s,C.value=s}},watch:[I]},"$cS7qZacQ7d"),P=(n,s)=>{M.value=n,N.value=s,$.value=!0},Q=()=>{if(!B.value){P("No changes to save","The routine definition already matches the loaded version.");return}const n=O(l.value);if(!K(n)){P("Invalid routine definition","Preview requires a valid CREATE OR REPLACE FUNCTION or PROCEDURE statement.");return}return n},U=()=>{if(u.value)return;const n=Q();n&&(y.value=n,h.value=!0)},V=async(n=y.value)=>{var s;if(!(!n||u.value)){u.value=!0;try{const i=await $fetch("/api/functions/update",{method:"POST",body:{...L(E.value),functionDefinition:n}});C.value=l.value,h.value=!1,ze.success("Routine saved",{description:`Updated successfully in ${(i==null?void 0:i.queryTime)??0}ms`})}catch(i){h.value=!1,P("Save failed",((s=i==null?void 0:i.data)==null?void 0:s.message)||(i==null?void 0:i.message)||"Failed to save routine.")}finally{u.value=!1}}},ee=async()=>{if(u.value)return;const n=Q();n&&(y.value=n,await V(n))},ne=()=>{l.value=C.value},ae=[Be(n=>{l.value=n,U()}),Re(n=>Me(n,{language:"postgresql",keywordCase:"upper"})),j.of([{key:"Mod-i",run:ce},{key:"Tab",run:me}]),W.of(fe({dialect:ve.define({...ge.spec,doubleDollarQuotedStrings:!1}),upperCaseKeywords:!0,keywordCompletion:pe,schema:J.value})),...re(),de];return(n,s)=>{const i=S,x=De,k=Pe;return c(),F(qe,null,[a(Oe,{open:e($),"onUpdate:open":s[0]||(s[0]=g=>A($)?$.value=g:null),title:e(M),message:e(N)},null,8,["open","title","message"]),a(e(ke),{open:e(h),"onUpdate:open":s[1]||(s[1]=g=>h.value=g)},{default:o(()=>[a(e(_e),{class:"border w-[55vw]! max-w-[55vw]!"},{default:o(()=>[a(e(Ce),null,{default:o(()=>[a(e(be),{class:"flex items-center text-base font-medium"},{default:o(()=>[a(i,{name:"lucide:file-search",class:"size-4 mr-2"}),v(" "+he(e(Z)),1)]),_:1}),a(e(ye),null,{default:o(()=>s[3]||(s[3]=[v(" Review the exact SQL that will be submitted. The routine is not updated until you confirm this save. ")])),_:1})]),_:1}),a(x,{code:e(y),"show-copy-button":"","max-height":"24rem"},null,8,["code"]),a(e(Se),null,{default:o(()=>[a(e(we),{disabled:e(u)},{default:o(()=>s[4]||(s[4]=[v("Cancel")])),_:1},8,["disabled"]),a(e($e),{class:"gap-2",onClick:xe(V,["prevent"])},{default:o(()=>[e(u)?(c(),b(i,{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(c(),b(i,{key:1,name:"lucide:save",class:"size-4"})),s[5]||(s[5]=v(" Save to database "))]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),d("div",Ve,[d("div",Le,[a(Ue,{"has-changes":e(B),"is-saving":e(u),onOnPreview:U,onOnSave:ee,onOnDiscard:ne},null,8,["has-changes","is-saving"]),d("div",Ae,[a(k,{visible:e(X)==="pending"||e(u)},null,8,["visible"]),a(Te,{modelValue:e(l),"onUpdate:modelValue":s[2]||(s[2]=g=>A(l)?l.value=g:null),extensions:ae,disabled:!1},null,8,["modelValue"])])])])],64)}}});export{an as default};
1
+ import{M as j,d as G,e as F,o as c,n as se,m as d,k as b,l as q,f as a,w as o,g as e,a_ as z,a0 as te,z as v,A as S,a$ as D,aY as R,a3 as oe,ba as ie,am as le,r as f,c as _,G as L,bb as ue,bc as re,bd as de,be as ce,bf as me,bg as fe,bh as ve,bi as pe,bj as ge,i as A,O as _e,Q as Ce,R as be,t as he,S as ye,T as Se,U as we,V as $e,bk as xe,N as ke,P as Pe,bl as Te,F as qe,K as ze}from"./D0lW43G8.js";import{_ as De}from"./BCAMWuzu.js";import{s as Re}from"./D28ykMUi.js";import{g as O,a as K}from"./COAycMg4.js";import{_ as Oe}from"./g9ZMnTLJ.js";import{_ as Fe}from"./C-I81xfB.js";import{u as Ne}from"./C0vscAQB.js";import{f as Me}from"./CGq9Twnj.js";import"./CS5akSNT.js";import"./Czr647QE.js";const Be=w=>j.of([{key:"Ctrl-s",mac:"Cmd-s",run:p=>{const m=p.state.doc.toString();return w(m),!0},preventDefault:!0}]),Ee={class:se(["flex items-center justify-between p-1 rounded-md bg-muted"])},Ie={class:"flex items-center gap-1"},Qe={key:0,class:"text-xs text-muted-foreground"},Ue=G({__name:"FunctionControlBar",props:{hasChanges:{type:Boolean},isSaving:{type:Boolean}},emits:["onPreview","onSave","onDiscard"],setup(w,{emit:p}){const m=p;return(r,t)=>{const l=te,C=Fe;return c(),F("div",Ee,[d("div",Ie,[r.hasChanges?(c(),b(e(R),{key:0},{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:r.isSaving,onClick:t[0]||(t[0]=u=>m("onPreview"))},{default:o(()=>[a(e(S),{name:"lucide:file-search",class:"size-4"}),t[3]||(t[3]=v(" Preview changes "))]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>t[4]||(t[4]=[d("p",null,"Preview SQL changes before saving",-1)])),_:1})]),_:1})):q("",!0),a(e(R),null,{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:!r.hasChanges||r.isSaving,onClick:t[1]||(t[1]=u=>m("onSave"))},{default:o(()=>[r.isSaving?(c(),b(e(S),{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(c(),b(e(S),{key:1,name:"lucide:save",class:"size-4"})),t[6]||(t[6]=v(" Save ")),a(C,null,{default:o(()=>t[5]||(t[5]=[v("⌘S")])),_:1})]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>[t[7]||(t[7]=d("p",null,"Save routine changes",-1)),r.hasChanges?q("",!0):(c(),F("p",Qe," No changes to save "))]),_:1})]),_:1}),r.hasChanges?(c(),b(e(R),{key:1},{default:o(()=>[a(e(z),{"as-child":""},{default:o(()=>[d("div",null,[a(l,{variant:"outline",size:"xxs",disabled:r.isSaving,onClick:t[2]||(t[2]=u=>m("onDiscard"))},{default:o(()=>[a(e(S),{name:"lucide:undo-2",class:"size-4"}),t[8]||(t[8]=v(" discard changes "))]),_:1},8,["disabled"])])]),_:1}),a(e(D),null,{default:o(()=>t[9]||(t[9]=[d("p",null,"Discard changes",-1)])),_:1})]),_:1})):q("",!0)])])}}}),Ve={class:"flex flex-col h-full p-1"},Le={class:"flex flex-col h-full border rounded-md"},Ae={class:"h-full flex flex-col overflow-y-auto relative"},an=G({__name:"FunctionDetail",props:{functionId:{},connectionId:{}},setup(w){const p=w,m=oe(),r=ie(),{activeSchema:t}=le(r),l=f(""),C=f(""),u=f(!1),N=f(""),M=f("Query error!"),$=f(!1),h=f(!1),y=f(""),H=_(()=>O(l.value)),Y=_(()=>O(C.value)),B=_(()=>H.value!==Y.value),Z=_(()=>{const n=K(y.value);return n?`${n} update preview`:"Routine update preview"}),J=_(()=>{var i,x;const n=(i=t.value)==null?void 0:i.tableDetails,s={};for(const k in n){const g=(x=n[k])==null?void 0:x.columns;s[k]=g.map(T=>({label:T.name,type:"field",info:T.short_type_name||"",boost:-T.ordinal_position}))}return s}),W=new ue,E=_(()=>p.connectionId?m.connections.find(n=>n.id===p.connectionId):m.selectedConnection),I=_(()=>({functionId:p.functionId,...L(E.value)})),{status:X}=Ne("/api/functions/definition",{method:"POST",body:I,onResponse:n=>{if(typeof n.response._data=="string"){const s=n.response._data||"";l.value=s,C.value=s}},watch:[I]},"$cS7qZacQ7d"),P=(n,s)=>{M.value=n,N.value=s,$.value=!0},Q=()=>{if(!B.value){P("No changes to save","The routine definition already matches the loaded version.");return}const n=O(l.value);if(!K(n)){P("Invalid routine definition","Preview requires a valid CREATE OR REPLACE FUNCTION or PROCEDURE statement.");return}return n},U=()=>{if(u.value)return;const n=Q();n&&(y.value=n,h.value=!0)},V=async(n=y.value)=>{var s;if(!(!n||u.value)){u.value=!0;try{const i=await $fetch("/api/functions/update",{method:"POST",body:{...L(E.value),functionDefinition:n}});C.value=l.value,h.value=!1,ze.success("Routine saved",{description:`Updated successfully in ${(i==null?void 0:i.queryTime)??0}ms`})}catch(i){h.value=!1,P("Save failed",((s=i==null?void 0:i.data)==null?void 0:s.message)||(i==null?void 0:i.message)||"Failed to save routine.")}finally{u.value=!1}}},ee=async()=>{if(u.value)return;const n=Q();n&&(y.value=n,await V(n))},ne=()=>{l.value=C.value},ae=[Be(n=>{l.value=n,U()}),Re(n=>Me(n,{language:"postgresql",keywordCase:"upper"})),j.of([{key:"Mod-i",run:ce},{key:"Tab",run:me}]),W.of(fe({dialect:ve.define({...ge.spec,doubleDollarQuotedStrings:!1}),upperCaseKeywords:!0,keywordCompletion:pe,schema:J.value})),...re(),de];return(n,s)=>{const i=S,x=De,k=Pe;return c(),F(qe,null,[a(Oe,{open:e($),"onUpdate:open":s[0]||(s[0]=g=>A($)?$.value=g:null),title:e(M),message:e(N)},null,8,["open","title","message"]),a(e(ke),{open:e(h),"onUpdate:open":s[1]||(s[1]=g=>h.value=g)},{default:o(()=>[a(e(_e),{class:"border w-[55vw]! max-w-[55vw]!"},{default:o(()=>[a(e(Ce),null,{default:o(()=>[a(e(be),{class:"flex items-center text-base font-medium"},{default:o(()=>[a(i,{name:"lucide:file-search",class:"size-4 mr-2"}),v(" "+he(e(Z)),1)]),_:1}),a(e(ye),null,{default:o(()=>s[3]||(s[3]=[v(" Review the exact SQL that will be submitted. The routine is not updated until you confirm this save. ")])),_:1})]),_:1}),a(x,{code:e(y),"show-copy-button":"","max-height":"24rem"},null,8,["code"]),a(e(Se),null,{default:o(()=>[a(e(we),{disabled:e(u)},{default:o(()=>s[4]||(s[4]=[v("Cancel")])),_:1},8,["disabled"]),a(e($e),{class:"gap-2",onClick:xe(V,["prevent"])},{default:o(()=>[e(u)?(c(),b(i,{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(c(),b(i,{key:1,name:"lucide:save",class:"size-4"})),s[5]||(s[5]=v(" Save to database "))]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),d("div",Ve,[d("div",Le,[a(Ue,{"has-changes":e(B),"is-saving":e(u),onOnPreview:U,onOnSave:ee,onOnDiscard:ne},null,8,["has-changes","is-saving"]),d("div",Ae,[a(k,{visible:e(X)==="pending"||e(u)},null,8,["visible"]),a(Te,{modelValue:e(l),"onUpdate:modelValue":s[2]||(s[2]=g=>A(l)?l.value=g:null),extensions:ae,disabled:!1},null,8,["modelValue"])])])])],64)}}});export{an as default};