studiograph 1.3.44-next.7 → 1.3.44

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 (123) hide show
  1. package/dist/server/chrome/chrome.css +1 -1
  2. package/dist/server/index.js +3 -0
  3. package/dist/server/index.js.map +1 -1
  4. package/dist/server/routes/meeting-ingest-api.d.ts +15 -0
  5. package/dist/server/routes/meeting-ingest-api.js +313 -0
  6. package/dist/server/routes/meeting-ingest-api.js.map +1 -0
  7. package/dist/services/markdown.js +3 -1
  8. package/dist/services/markdown.js.map +1 -1
  9. package/dist/services/sync/model-factory.d.ts +6 -3
  10. package/dist/services/sync/model-factory.js +19 -5
  11. package/dist/services/sync/model-factory.js.map +1 -1
  12. package/dist/web/_app/immutable/assets/0.DdizXOKi.css +1 -0
  13. package/dist/web/_app/immutable/assets/2.n7-yW_Fs.css +1 -0
  14. package/dist/web/_app/immutable/assets/3.BtaZagnv.css +1 -0
  15. package/dist/web/_app/immutable/assets/4.DSiqtN6T.css +1 -0
  16. package/dist/web/_app/immutable/assets/7.CjbDRbuG.css +1 -0
  17. package/dist/web/_app/immutable/assets/8.S1QdUGNM.css +1 -0
  18. package/dist/web/_app/immutable/assets/ViewToolbar.D-QW2oKe.css +1 -0
  19. package/dist/web/_app/immutable/chunks/37NdyH6G.js +32 -0
  20. package/dist/web/_app/immutable/chunks/{DShiqhaV.js → 4Hhzb6pv.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/5aaTorNF.js +1 -0
  22. package/dist/web/_app/immutable/chunks/72bZS3G9.js +1 -0
  23. package/dist/web/_app/immutable/chunks/{i9c_RUF6.js → 7S2LGqoP.js} +2 -2
  24. package/dist/web/_app/immutable/chunks/{CGmpeyEq.js → B8SiwDlA.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/BS2rFAVq.js +1 -0
  26. package/dist/web/_app/immutable/chunks/BSsDC_p4.js +1 -0
  27. package/dist/web/_app/immutable/chunks/BTX2Jr8_.js +1 -0
  28. package/dist/web/_app/immutable/chunks/BdkXdv-_.js +1 -0
  29. package/dist/web/_app/immutable/chunks/BnvLAYp7.js +2 -0
  30. package/dist/web/_app/immutable/chunks/Bsacq2UX.js +1 -0
  31. package/dist/web/_app/immutable/chunks/{idpnkm-U.js → BsapqaT9.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/ByunV8un.js +1 -0
  33. package/dist/web/_app/immutable/chunks/{Dyc1xpsu.js → CDV5Q7RN.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/CJ8__CWt.js +1 -0
  35. package/dist/web/_app/immutable/chunks/CJUKmosC.js +5 -0
  36. package/dist/web/_app/immutable/chunks/{CLFba8FK.js → CSVbGg_b.js} +5 -5
  37. package/dist/web/_app/immutable/chunks/{D5QAs2Bb.js → CT6oIU-C.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/CXH6iFbA.js +1 -0
  39. package/dist/web/_app/immutable/chunks/CmCtpZ1Y.js +1 -0
  40. package/dist/web/_app/immutable/chunks/Cx4YdFMk.js +1 -0
  41. package/dist/web/_app/immutable/chunks/{vNjyIc_f.js → DGbA7IXh.js} +1 -1
  42. package/dist/web/_app/immutable/chunks/DM-YPK2t.js +1 -0
  43. package/dist/web/_app/immutable/chunks/DRO19fCg.js +2 -0
  44. package/dist/web/_app/immutable/chunks/{aCzYRRC_.js → DbbB6Up5.js} +1 -1
  45. package/dist/web/_app/immutable/chunks/DkgM8092.js +1 -0
  46. package/dist/web/_app/immutable/chunks/DtM5cEDu.js +1 -0
  47. package/dist/web/_app/immutable/chunks/J8AGYe-9.js +1 -0
  48. package/dist/web/_app/immutable/chunks/{C-G8n1LM.js → O9Eb9k00.js} +1 -1
  49. package/dist/web/_app/immutable/chunks/{G1IXQHaq.js → QF8MAmnc.js} +1 -1
  50. package/dist/web/_app/immutable/chunks/UjzxCpxn.js +1 -0
  51. package/dist/web/_app/immutable/chunks/{WI8VL4je.js → Y90OgS-9.js} +1 -1
  52. package/dist/web/_app/immutable/chunks/{CyOk_wEk.js → _xj7x2ng.js} +1 -1
  53. package/dist/web/_app/immutable/chunks/{rmAkpimd.js → cLyZlkXv.js} +1 -1
  54. package/dist/web/_app/immutable/chunks/iDtAARVW.js +2 -0
  55. package/dist/web/_app/immutable/chunks/oC_W7W7p.js +1 -0
  56. package/dist/web/_app/immutable/chunks/rJdWIgh-.js +1 -0
  57. package/dist/web/_app/immutable/chunks/tvOsokaa.js +1 -0
  58. package/dist/web/_app/immutable/chunks/uLEXaPwE.js +1 -0
  59. package/dist/web/_app/immutable/chunks/vSaooFHB.js +1 -0
  60. package/dist/web/_app/immutable/chunks/xbI1ujtV.js +1 -0
  61. package/dist/web/_app/immutable/entry/app.BLWSFL3K.js +2 -0
  62. package/dist/web/_app/immutable/entry/start.2wDxC5gH.js +1 -0
  63. package/dist/web/_app/immutable/nodes/0.CLArGAak.js +2 -0
  64. package/dist/web/_app/immutable/nodes/1.C7VaeFca.js +1 -0
  65. package/dist/web/_app/immutable/nodes/10.Bt7vR0zi.js +1 -0
  66. package/dist/web/_app/immutable/nodes/2.2DxFw_16.js +86 -0
  67. package/dist/web/_app/immutable/nodes/3.BPnkssmU.js +1 -0
  68. package/dist/web/_app/immutable/nodes/4.C8az7M-8.js +12 -0
  69. package/dist/web/_app/immutable/nodes/5.DqeRY7D3.js +4 -0
  70. package/dist/web/_app/immutable/nodes/6.DJt8m9cI.js +2 -0
  71. package/dist/web/_app/immutable/nodes/7.XSqorMNB.js +2 -0
  72. package/dist/web/_app/immutable/nodes/8.D4VY0uHj.js +1 -0
  73. package/dist/web/_app/immutable/nodes/9.TJQpPKfF.js +1 -0
  74. package/dist/web/_app/version.json +1 -1
  75. package/dist/web/index.html +11 -11
  76. package/package.json +1 -1
  77. package/dist/web/_app/immutable/assets/0.n3qM-DRk.css +0 -1
  78. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
  79. package/dist/web/_app/immutable/assets/3.zsEg_MDN.css +0 -1
  80. package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +0 -1
  81. package/dist/web/_app/immutable/assets/7.D55lTQ_F.css +0 -1
  82. package/dist/web/_app/immutable/assets/8.C6NPu9Wt.css +0 -1
  83. package/dist/web/_app/immutable/assets/ViewToolbar.Nsd-Xu-e.css +0 -1
  84. package/dist/web/_app/immutable/chunks/4LyimEQJ.js +0 -1
  85. package/dist/web/_app/immutable/chunks/6McgCjyP.js +0 -1
  86. package/dist/web/_app/immutable/chunks/BABAUxHY.js +0 -1
  87. package/dist/web/_app/immutable/chunks/BQ02KrBc.js +0 -1
  88. package/dist/web/_app/immutable/chunks/B_INF4yc.js +0 -1
  89. package/dist/web/_app/immutable/chunks/C6HYnZ9B.js +0 -1
  90. package/dist/web/_app/immutable/chunks/CBG_gV1M.js +0 -1
  91. package/dist/web/_app/immutable/chunks/CO6l7WgA.js +0 -1
  92. package/dist/web/_app/immutable/chunks/CXLBspz2.js +0 -1
  93. package/dist/web/_app/immutable/chunks/CXhc95B3.js +0 -1
  94. package/dist/web/_app/immutable/chunks/Cz70ZXua.js +0 -1
  95. package/dist/web/_app/immutable/chunks/D1C06aMd.js +0 -1
  96. package/dist/web/_app/immutable/chunks/D5-csRKQ.js +0 -2
  97. package/dist/web/_app/immutable/chunks/DG43S1MM.js +0 -1
  98. package/dist/web/_app/immutable/chunks/DGPyrIUy.js +0 -1
  99. package/dist/web/_app/immutable/chunks/DLdmnoGO.js +0 -2
  100. package/dist/web/_app/immutable/chunks/DT0iaiuH.js +0 -5
  101. package/dist/web/_app/immutable/chunks/DYrlFBgr.js +0 -1
  102. package/dist/web/_app/immutable/chunks/DskBjeV5.js +0 -1
  103. package/dist/web/_app/immutable/chunks/DznM_L__.js +0 -1
  104. package/dist/web/_app/immutable/chunks/L0_LR_aH.js +0 -1
  105. package/dist/web/_app/immutable/chunks/Ytolvt5S.js +0 -1
  106. package/dist/web/_app/immutable/chunks/hRv41LAy.js +0 -1
  107. package/dist/web/_app/immutable/chunks/hszZtVwQ.js +0 -1
  108. package/dist/web/_app/immutable/chunks/moYWbUS9.js +0 -1
  109. package/dist/web/_app/immutable/chunks/wFMNws6Z.js +0 -1
  110. package/dist/web/_app/immutable/entry/app.B85ae0iA.js +0 -2
  111. package/dist/web/_app/immutable/entry/start.m_J9aGEq.js +0 -1
  112. package/dist/web/_app/immutable/nodes/0.CQCVk8th.js +0 -2
  113. package/dist/web/_app/immutable/nodes/1.B85CB1ld.js +0 -1
  114. package/dist/web/_app/immutable/nodes/10.Caj-nwDy.js +0 -1
  115. package/dist/web/_app/immutable/nodes/2.DI-wvV6T.js +0 -84
  116. package/dist/web/_app/immutable/nodes/3.CzYTnYto.js +0 -1
  117. package/dist/web/_app/immutable/nodes/4.07tdQ-7s.js +0 -11
  118. package/dist/web/_app/immutable/nodes/5.C6-nBN5N.js +0 -4
  119. package/dist/web/_app/immutable/nodes/6.CHmJ5_Vj.js +0 -2
  120. package/dist/web/_app/immutable/nodes/7.BushPZwR.js +0 -2
  121. package/dist/web/_app/immutable/nodes/8.vUgzOWxy.js +0 -1
  122. package/dist/web/_app/immutable/nodes/9.DYYxoiNa.js +0 -1
  123. /package/dist/web/_app/immutable/assets/{checkbox.D6tMDJWk.css → index.D6tMDJWk.css} +0 -0
@@ -1 +0,0 @@
1
- import{c as m,a as l,p as _e,b as H,s as me,f as se}from"./DLdmnoGO.js";import{p as h,a0 as v,ae as le,b,g as f,a3 as q,c as w,r as A,a4 as L,t as N,l as te,s as re,d as W,a as pe,n as he,m as oe}from"./D5QAs2Bb.js";import{s as p,a as ie}from"./hRv41LAy.js";import{c as V}from"./Cz70ZXua.js";import{p as s,s as E,r as G,l as ae}from"./rmAkpimd.js";import{D as be,h as ye,i as Ce,j as De}from"./4LyimEQJ.js";import{n as x,b as K,c as Pe,H as Se,I as Oe,J as Fe,K as xe,L as ne,m as Y}from"./DT0iaiuH.js";import{c as R}from"./BABAUxHY.js";import{P as we}from"./CBG_gV1M.js";import{i as J}from"./DG43S1MM.js";import{c as Q,s as U}from"./vNjyIc_f.js";import{i as Ae}from"./WI8VL4je.js";function He(a,e){h(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,x),r=s(e,"onOpenChangeComplete",3,x);be.create({variant:K(()=>"dialog"),open:K(()=>t(),i=>{t(i),n()(i)}),onOpenChangeComplete:K(()=>r())});var c=m(),u=v(c);p(u,()=>e.children??le),l(a,c),b()}var ze=H("<!> <!>",1),Me=H("<!> <div><!></div>",1);function Ie(a,e){const t=_e();h(e,!0);let n=s(e,"id",19,()=>Pe(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),u=s(e,"onCloseAutoFocus",3,x),i=s(e,"onOpenAutoFocus",3,x),d=s(e,"onEscapeKeydown",3,x),y=s(e,"onInteractOutside",3,x),g=s(e,"trapFocus",3,!0),_=s(e,"preventScroll",3,!0),C=s(e,"restoreScrollDelay",3,null),D=G(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=ye.create({id:K(()=>n()),ref:K(()=>r(),S=>r(S))}),P=L(()=>Y(D,o.props));var k=m(),X=v(k);{var Z=S=>{Se(S,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return i()},get onCloseAutoFocus(){return u()},focusScope:(ce,de)=>{let $=()=>de?.().props;Oe(ce,E(()=>f(P),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:j=>{d()(j),!j.defaultPrevented&&o.root.handleClose()},children:(j,Be)=>{Fe(j,E(()=>f(P),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:B=>{y()(B),!B.defaultPrevented&&o.root.handleClose()},children:(B,Je)=>{xe(B,E(()=>f(P),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(ue,Le)=>{var ee=m(),fe=v(ee);{var ve=F=>{var z=ze(),M=v(z);{var I=O=>{ne(O,{get preventScroll(){return _()},get restoreScrollDelay(){return C()}})};J(M,O=>{o.root.opts.open.current&&O(I)})}var T=q(M,2);{let O=L(()=>({props:Y(f(P),$()),...o.snippetProps}));p(T,()=>e.child,()=>f(O))}l(F,z)},ge=F=>{var z=Me(),M=v(z);ne(M,{get preventScroll(){return _()}});var I=q(M,2);ie(I,O=>({...O}),[()=>Y(f(P),$())]);var T=w(I);p(T,()=>e.children??le),A(I),l(F,z)};J(fe,F=>{e.child?F(ve):F(ge,!1)})}l(ue,ee)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};J(X,S=>{(o.shouldRender||c())&&S(Z)})}l(a,k),b()}function rt(a,e){h(e,!0);let t=s(e,"open",15,!1),n=G(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=m(),c=v(r);V(c,()=>He,(u,i)=>{i(u,E({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(d){t(d)},children:(d,y)=>{var g=m(),_=v(g);p(_,()=>e.children),l(d,g)},$$slots:{default:!0}}))}),l(a,r),b()}var Ve=H("<!> <!>",1);function ot(a,e){h(e,!0);let t=s(e,"size",3,"md"),n=G(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=m(),c=v(r);V(c,()=>we,(u,i)=>{i(u,{children:(d,y)=>{var g=Ve(),_=v(g);V(_,()=>Ce,(D,o)=>{o(D,{class:"dialog-overlay"})});var C=q(_,2);{let D=L(()=>R("dialog-content",`dialog-${t()}`,e.class));V(C,()=>Ie,(o,P)=>{P(o,E({get class(){return f(D)}},()=>n,{children:(k,X)=>{var Z=m(),S=v(Z);p(S,()=>e.children),l(k,Z)},$$slots:{default:!0}}))})}l(d,g)},$$slots:{default:!0}})}),l(a,r),b()}var Ee=H("<div><!></div>");function at(a,e){h(e,!0);var t=Ee(),n=w(t);p(n,()=>e.children),A(t),N(r=>U(t,1,r),[()=>Q(R("dialog-header",e.class))]),l(a,t),b()}function nt(a,e){h(e,!0);var t=m(),n=v(t);{let r=L(()=>R("dialog-title",e.class));V(n,()=>De,(c,u)=>{u(c,{get class(){return f(r)},children:(i,d)=>{var y=m(),g=v(y);p(g,()=>e.children),l(i,y)},$$slots:{default:!0}})})}l(a,t),b()}var Ke=H("<div><!></div>");function st(a,e){h(e,!0);var t=Ke(),n=w(t);p(n,()=>e.children),A(t),N(r=>U(t,1,r),[()=>Q(R("dialog-body",e.class))]),l(a,t),b()}var Re=H("<div><!></div>");function lt(a,e){h(e,!0);var t=Re(),n=w(t);p(n,()=>e.children),A(t),N(r=>U(t,1,r),[()=>Q(R("dialog-footer",e.class))]),l(a,t),b()}var ke=se("<title> </title>"),Ze=se('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function it(a,e){const t=ae(e,["children","$$slots","$$events","$$legacy"]),n=ae(t,["size","title"]);h(e,!1);const r=oe(),c=oe();let u=s(e,"size",8,16),i=s(e,"title",8,void 0);te(()=>(W(t),W(i())),()=>{re(r,t["aria-label"]||t["aria-labelledby"]||i())}),te(()=>(f(r),W(t)),()=>{re(c,{"aria-hidden":f(r)?void 0:!0,role:f(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),pe(),Ae();var d=Ze();ie(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...f(c),...n}));var y=w(d);{var g=_=>{var C=ke(),D=w(C,!0);A(C),N(()=>me(D,i())),l(_,C)};J(y,_=>{i()&&_(g)})}he(2),A(d),l(a,d),b()}export{it as C,ot as D,at as a,nt as b,st as c,lt as d,rt as e};
@@ -1 +0,0 @@
1
- import{a as d,s as N,f as B,c as b,m as I,u as U}from"./DLdmnoGO.js";import{i as R}from"./WI8VL4je.js";import{j as V,q as W,aT as D,i as E,p as k,l as p,s as _,d as v,g as f,a as A,c as x,n as O,r as w,b as M,m as y,t as S,a0 as C,ae as j,aU as F,a4 as G}from"./D5QAs2Bb.js";import{B as H,i as T}from"./DG43S1MM.js";import{a as q,s as L}from"./hRv41LAy.js";import{l as P,p as z}from"./rmAkpimd.js";import{C as J,b as Y,w as K,i as Q}from"./DT0iaiuH.js";const X=Symbol("NaN");function Z(a,t,e){V&&W();var o=new H(a),r=!D();E(()=>{var n=t();n!==n&&(n=X),r&&n!==null&&typeof n=="object"&&(n={}),o.ensure(n,e)})}var $=B("<title> </title>"),ee=B('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function be(a,t){const e=P(t,["children","$$slots","$$events","$$legacy"]),o=P(e,["size","title"]);k(t,!1);const r=y(),n=y();let l=z(t,"size",8,16),c=z(t,"title",8,void 0);p(()=>(v(e),v(c())),()=>{_(r,e["aria-label"]||e["aria-labelledby"]||c())}),p(()=>(f(r),v(e)),()=>{_(n,{"aria-hidden":f(r)?void 0:!0,role:f(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),R();var u=ee();q(u,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...f(n),...o}));var g=x(u);{var m=i=>{var s=$(),h=x(s,!0);w(s),S(()=>N(h,c())),d(i,s)};T(g,i=>{c()&&i(m)})}O(),w(u),d(a,u),M()}function te(a,t){var e=b(),o=C(e);Z(o,()=>t.children,r=>{var n=b(),l=C(n);L(l,()=>t.children??j),d(r,n)}),d(a,e)}const re=new J("BitsConfig");function ne(){const a=new ae(null,{});return re.getOr(a).opts}class ae{opts;constructor(t,e){const o=ie(t,e);this.opts={defaultPortalTo:o(r=>r.defaultPortalTo),defaultLocale:o(r=>r.defaultLocale)}}}function ie(a,t){return e=>Y(()=>{const r=e(t)?.current;if(r!==void 0)return r;if(a!==null)return e(a.opts)?.current})}function oe(a,t){return e=>{const o=ne();return Y(()=>{const r=e();if(r!==void 0)return r;const n=a(o).current;return n!==void 0?n:t})}}const se=oe(a=>a.defaultPortalTo,"body");function pe(a,t){k(t,!0);const e=se(()=>t.to),o=F();let r=G(n);function n(){if(!Q||t.disabled)return null;let i=null;return typeof e.current=="string"?i=document.querySelector(e.current):i=e.current,i}let l;function c(){l&&(U(l),l=null)}K([()=>f(r),()=>t.disabled],([i,s])=>{if(!i||s){c();return}return l=I(te,{target:i,props:{children:t.children},context:o}),()=>{c()}});var u=b(),g=C(u);{var m=i=>{var s=b(),h=C(s);L(h,()=>t.children??j),d(i,s)};T(g,i=>{t.disabled&&i(m)})}d(a,u),M()}var le=B("<title> </title>"),ce=B('<svg><!><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"></path></svg>');function _e(a,t){const e=P(t,["children","$$slots","$$events","$$legacy"]),o=P(e,["size","title"]);k(t,!1);const r=y(),n=y();let l=z(t,"size",8,16),c=z(t,"title",8,void 0);p(()=>(v(e),v(c())),()=>{_(r,e["aria-label"]||e["aria-labelledby"]||c())}),p(()=>(f(r),v(e)),()=>{_(n,{"aria-hidden":f(r)?void 0:!0,role:f(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),R();var u=ce();q(u,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...f(n),...o}));var g=x(u);{var m=i=>{var s=le(),h=x(s,!0);w(s),S(()=>N(h,c())),d(i,s)};T(g,i=>{c()&&i(m)})}O(),w(u),d(a,u),M()}export{be as C,pe as P,_e as a,Z as k};
@@ -1 +0,0 @@
1
- import{o as Pt,p as Ut,c as K,a as v,b as $,s as Vt,f as lt,d as re,e as B,g as se}from"./DLdmnoGO.js";import{e as O,s as c,g as n,a4 as Y,p as ht,a0 as z,b as dt,c as g,ae as zt,r as b,l as st,d as S,a as Dt,n as j,m as it,t as mt,a1 as ie,a2 as ae,f as le,a3 as E}from"./D5QAs2Bb.js";import{s as rt,a as U,r as he,c as de}from"./hRv41LAy.js";import{i as T,b as ue}from"./DG43S1MM.js";import{e as ce}from"./Dyc1xpsu.js";import{c as It}from"./Cz70ZXua.js";import{s as Ft}from"./vNjyIc_f.js";import{b as pe,B as fe}from"./BABAUxHY.js";import{p,s as Zt,r as $t,l as at}from"./rmAkpimd.js";import{g as Lt}from"./CyOk_wEk.js";import{i as Tt}from"./WI8VL4je.js";import{D as ve,A as me}from"./CXLBspz2.js";import{w as Nt,q as ge,r as vt,C as be,s as Rt,t as ye,u as kt,E as _e,v as we,x as te,y as Ce,z as xe,A as Xt,b as k,B as He,c as ee,n as Ct,P as Pe,f as Me,m as Ot,j as jt,l as Ve,F as Ae,G as Oe,T as ze}from"./DT0iaiuH.js";import{n as Et}from"./DShiqhaV.js";import{v as Mt}from"./CGmpeyEq.js";function qt(f,t){const[e,i]=f;let r=!1;const o=t.length;for(let l=0,s=o-1;l<o;s=l++){const[h,m]=t[l]??[0,0],[_,d]=t[s]??[0,0];m>=i!=d>=i&&e<=(_-h)*(i-m)/(d-m)+h&&(r=!r)}return r}function Gt(f,t){return f[0]>=t.left&&f[0]<=t.right&&f[1]>=t.top&&f[1]<=t.bottom}function ke(f,t){const e=f.left+f.width/2,i=f.top+f.height/2,r=t.left+t.width/2,o=t.top+t.height/2,l=r-e,s=o-i;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":s>0?"bottom":"top"}class De{#t;#r;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#n(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#r=t.buffer??1,Nt([t.triggerNode,t.contentNode,t.enabled],([e,i,r])=>{if(!e||!i||!r){this.#n();return}const o=ge(e),l=d=>{this.#i([d.clientX,d.clientY],e,i)},s=d=>{const a=d.relatedTarget;if(vt(a)&&i.contains(a))return;const H=this.#t.ignoredTargets?.()??[];if(!(vt(a)&&H.some(x=>x===a||x.contains(a)))){if(vt(a)&&!e.contains(a)&&!i.contains(a)&&!a.contains(i)){this.#n(),this.#t.onPointerExit();return}this.#o=[d.clientX,d.clientY],this.#e="content",this.#h()}},h=()=>{this.#n()},m=()=>{this.#n()},_=d=>{const a=d.relatedTarget;vt(a)&&e.contains(a)||(this.#o=[d.clientX,d.clientY],this.#e="trigger",this.#h())};return[Pt(o,"pointermove",l),Pt(e,"pointerleave",s),Pt(e,"pointerenter",h),Pt(i,"pointerenter",m),Pt(i,"pointerleave",_)].reduce((d,a)=>()=>{d(),a()},()=>{})})}#i(t,e,i){if(!this.#o||!this.#e)return;this.#a();const r=e.getBoundingClientRect(),o=i.getBoundingClientRect();if(this.#e==="content"&&Gt(t,o)){this.#n();return}if(this.#e==="trigger"&&Gt(t,r)){this.#n();return}const l=ke(r,o),s=this.#l(r,o,l);if(s&&qt(t,s))return;const h=this.#e==="content"?o:r,m=this.#d(this.#o,h,l,this.#e);qt(t,m)||(this.#n(),this.#t.onPointerExit())}#n(){this.#o=null,this.#e=null,this.#a()}#l(t,e,i){const r=this.#r;switch(i){case"top":return[[Math.min(t.left,e.left)-r,t.top],[Math.min(t.left,e.left)-r,e.bottom],[Math.max(t.right,e.right)+r,e.bottom],[Math.max(t.right,e.right)+r,t.top]];case"bottom":return[[Math.min(t.left,e.left)-r,t.bottom],[Math.min(t.left,e.left)-r,e.top],[Math.max(t.right,e.right)+r,e.top],[Math.max(t.right,e.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-r],[e.right,Math.min(t.top,e.top)-r],[e.right,Math.max(t.bottom,e.bottom)+r],[t.left,Math.max(t.bottom,e.bottom)+r]];case"right":return[[t.right,Math.min(t.top,e.top)-r],[e.left,Math.min(t.top,e.top)-r],[e.left,Math.max(t.bottom,e.bottom)+r],[t.right,Math.max(t.bottom,e.bottom)+r]]}}#d(t,e,i,r){const o=this.#r*4,[l,s]=t;switch(r==="trigger"?this.#u(i):i){case"top":return[[l-o,s+o],[l+o,s+o],[e.right+o,e.bottom],[e.right+o,e.top],[e.left-o,e.top],[e.left-o,e.bottom]];case"bottom":return[[l-o,s-o],[l+o,s-o],[e.right+o,e.top],[e.right+o,e.bottom],[e.left-o,e.bottom],[e.left-o,e.top]];case"left":return[[l+o,s-o],[l+o,s+o],[e.right,e.bottom+o],[e.left,e.bottom+o],[e.left,e.top-o],[e.right,e.top-o]];case"right":return[[l-o,s-o],[l-o,s+o],[e.left,e.bottom+o],[e.right,e.bottom+o],[e.right,e.top-o],[e.left,e.top-o]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const St=He({component:"popover",parts:["root","trigger","content","close","overlay"]}),Wt=new be("Popover.Root");class Bt{static create(t){return Wt.set(new Bt(t))}opts;#t=O(null);get contentNode(){return n(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#r=O(null);get triggerNode(){return n(this.#r)}set triggerNode(t){c(this.#r,t,!0)}#o=O(null);get overlayNode(){return n(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=O(!1);get openedViaHover(){return n(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=O(!1);get hasInteractedWithContent(){return n(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=O(!1);get hoverCooldown(){return n(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=O(0);get closeDelay(){return n(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#n=null;constructor(t){this.opts=t,this.contentPresence=new Xt({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Xt({ref:k(()=>this.overlayNode),open:this.opts.open}),Nt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#n=t}#l(){this.#i!==null&&this.#n&&(this.#n.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#n&&(this.#i=this.#n.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Yt{static create(t){return new Yt(t,Wt.get())}opts;root;attachment;domContext;#t=null;#r=null;#o=O(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=Rt(this.opts.ref,i=>this.root.triggerNode=i),this.domContext=new ye(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Nt(()=>this.opts.closeDelay.current,i=>{this.root.closeDelay=i})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#r!==null&&(this.domContext.clearTimeout(this.#r),this.#r=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||kt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(kt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),n(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}n(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===_e||t.key===we)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=Y(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Ce(this.root.opts.open.current),"data-state":te(this.root.opts.open.current),"aria-controls":this.#h(),[St.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return n(this.#i)}set props(t){c(this.#i,t)}}class Kt{static create(t){return new Kt(t,Wt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=Rt(this.opts.ref,i=>this.root.contentNode=i),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new De({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;vt(e)&&xe(e)&&this.root.markInteraction()}onpointerenter(t){kt(t)||this.root.cancelDelayedClose()}onpointerleave(t){kt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!vt(t.target))return;const e=t.target.closest(St.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(vt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const i=document.querySelector(this.opts.customAnchor.current);if(i&&i.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=Y(()=>({open:this.root.opts.open.current}));get snippetProps(){return n(this.#t)}set snippetProps(t){c(this.#t,t)}#r=Y(()=>({id:this.opts.id.current,tabindex:-1,"data-state":te(this.root.opts.open.current),[St.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return n(this.#r)}set props(t){c(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Te=$("<div><div><!></div></div>"),Ie=$("<div><div><!></div></div>");function Fe(f,t){const e=Ut();ht(t,!0);let i=p(t,"ref",15,null),r=p(t,"id",19,()=>ee(e)),o=p(t,"forceMount",3,!1),l=p(t,"onOpenAutoFocus",3,Ct),s=p(t,"onCloseAutoFocus",3,Ct),h=p(t,"onEscapeKeydown",3,Ct),m=p(t,"onInteractOutside",3,Ct),_=p(t,"trapFocus",3,!0),d=p(t,"preventScroll",3,!1),a=p(t,"customAnchor",3,null),H=$t(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const x=Kt.create({id:k(()=>r()),ref:k(()=>i(),M=>i(M)),onInteractOutside:k(()=>m()),onEscapeKeydown:k(()=>h()),customAnchor:k(()=>a())}),Z=Y(()=>Ot(H,x.props)),R=Y(()=>_()&&x.shouldTrapFocus);function ut(M){x.shouldTrapFocus||M.preventDefault(),l()(M)}var tt=K(),L=z(tt);{var F=M=>{Pe(M,Zt(()=>n(Z),()=>x.popperProps,{get ref(){return x.opts.ref},get enabled(){return x.root.opts.open.current},get id(){return r()},get trapFocus(){return n(R)},get preventScroll(){return d()},loop:!0,forceMount:!0,get customAnchor(){return a()},onOpenAutoFocus:ut,get onCloseAutoFocus(){return s()},get shouldRender(){return x.shouldRender},popper:(gt,pt)=>{let G=()=>pt?.().props,et=()=>pt?.().wrapperProps;const ft=Y(()=>Ot(G(),{style:jt("popover")},{style:t.style}));var ot=K(),xt=z(ot);{var bt=V=>{var P=K(),I=z(P);{let J=Y(()=>({props:n(ft),wrapperProps:et(),...x.snippetProps}));rt(I,()=>t.child,()=>n(J))}v(V,P)},yt=V=>{var P=Te();U(P,()=>({...et()}));var I=g(P);U(I,()=>({...n(ft)}));var J=g(I);rt(J,()=>t.children??zt),b(I),b(P),v(V,P)};T(xt,V=>{t.child?V(bt):V(yt,!1)})}v(gt,ot)},$$slots:{popper:!0}}))},q=M=>{Me(M,Zt(()=>n(Z),()=>x.popperProps,{get ref(){return x.opts.ref},get open(){return x.root.opts.open.current},get id(){return r()},get trapFocus(){return n(R)},get preventScroll(){return d()},loop:!0,forceMount:!1,get customAnchor(){return a()},onOpenAutoFocus:ut,get onCloseAutoFocus(){return s()},get shouldRender(){return x.shouldRender},popper:(gt,pt)=>{let G=()=>pt?.().props,et=()=>pt?.().wrapperProps;const ft=Y(()=>Ot(G(),{style:jt("popover")},{style:t.style}));var ot=K(),xt=z(ot);{var bt=V=>{var P=K(),I=z(P);{let J=Y(()=>({props:n(ft),wrapperProps:et(),...x.snippetProps}));rt(I,()=>t.child,()=>n(J))}v(V,P)},yt=V=>{var P=Ie();U(P,()=>({...et()}));var I=g(P);U(I,()=>({...n(ft)}));var J=g(I);rt(J,()=>t.children??zt),b(I),b(P),v(V,P)};T(xt,V=>{t.child?V(bt):V(yt,!1)})}v(gt,ot)},$$slots:{popper:!0}}))};T(L,M=>{o()?M(F):o()||M(q,1)})}v(f,tt),dt()}var Ee=$("<button><!></button>");function Se(f,t){const e=Ut();ht(t,!0);let i=p(t,"id",19,()=>ee(e)),r=p(t,"ref",15,null),o=p(t,"type",3,"button"),l=p(t,"disabled",3,!1),s=p(t,"openOnHover",3,!1),h=p(t,"openDelay",3,700),m=p(t,"closeDelay",3,300),_=$t(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const d=Yt.create({id:k(()=>i()),ref:k(()=>r(),H=>r(H)),disabled:k(()=>!!l()),openOnHover:k(()=>s()),openDelay:k(()=>h()),closeDelay:k(()=>m())}),a=Y(()=>Ot(_,d.props,{type:o()}));Ve(f,{get id(){return i()},get ref(){return d.opts.ref},children:(H,x)=>{var Z=K(),R=z(Z);{var ut=L=>{var F=K(),q=z(F);rt(q,()=>t.child,()=>({props:n(a)})),v(L,F)},tt=L=>{var F=Ee();U(F,()=>({...n(a)}));var q=g(F);rt(q,()=>t.children??zt),b(F),v(L,F)};T(R,L=>{t.child?L(ut):L(tt,!1)})}v(H,Z)},$$slots:{default:!0}}),dt()}function Ne(f,t){ht(t,!0);let e=p(t,"open",15,!1),i=p(t,"onOpenChange",3,Ct),r=p(t,"onOpenChangeComplete",3,Ct);Bt.create({open:k(()=>e(),o=>{e(o),i()(o)}),onOpenChangeComplete:k(()=>r())}),Ae(f,{children:(o,l)=>{var s=K(),h=z(s);rt(h,()=>t.children??zt),v(o,s)},$$slots:{default:!0}}),dt()}var We=lt("<title> </title>"),Be=lt('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function Ye(f,t){const e=at(t,["children","$$slots","$$events","$$legacy"]),i=at(e,["size","title"]);ht(t,!1);const r=it(),o=it();let l=p(t,"size",8,16),s=p(t,"title",8,void 0);st(()=>(S(e),S(s())),()=>{c(r,e["aria-label"]||e["aria-labelledby"]||s())}),st(()=>(n(r),S(e)),()=>{c(o,{"aria-hidden":n(r)?void 0:!0,role:n(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Dt(),Tt();var h=Be();U(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...n(o),...i}));var m=g(h);{var _=d=>{var a=We(),H=g(a,!0);b(a),mt(()=>Vt(H,s())),v(d,a)};T(m,d=>{s()&&d(_)})}j(3),b(h),v(f,h),dt()}var Ke=lt("<title> </title>"),Ze=lt('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function Jt(f,t){const e=at(t,["children","$$slots","$$events","$$legacy"]),i=at(e,["size","title"]);ht(t,!1);const r=it(),o=it();let l=p(t,"size",8,16),s=p(t,"title",8,void 0);st(()=>(S(e),S(s())),()=>{c(r,e["aria-label"]||e["aria-labelledby"]||s())}),st(()=>(n(r),S(e)),()=>{c(o,{"aria-hidden":n(r)?void 0:!0,role:n(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Dt(),Tt();var h=Ze();U(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...n(o),...i}));var m=g(h);{var _=d=>{var a=Ke(),H=g(a,!0);b(a),mt(()=>Vt(H,s())),v(d,a)};T(m,d=>{s()&&d(_)})}j(6),b(h),v(f,h),dt()}var Le=lt("<title> </title>"),Xe=lt('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function Qt(f,t){const e=at(t,["children","$$slots","$$events","$$legacy"]),i=at(e,["size","title"]);ht(t,!1);const r=it(),o=it();let l=p(t,"size",8,16),s=p(t,"title",8,void 0);st(()=>(S(e),S(s())),()=>{c(r,e["aria-label"]||e["aria-labelledby"]||s())}),st(()=>(n(r),S(e)),()=>{c(o,{"aria-hidden":n(r)?void 0:!0,role:n(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Dt(),Tt();var h=Xe();U(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...n(o),...i}));var m=g(h);{var _=d=>{var a=Le(),H=g(a,!0);b(a),mt(()=>Vt(H,s())),v(d,a)};T(m,d=>{s()&&d(_)})}j(),b(h),v(f,h),dt()}var je=lt("<title> </title>"),qe=lt('<svg><!><path d="M30,30H22V22h8Zm-6-2h4V24H24Z"></path><path d="M20,27H8A6,6,0,0,1,8,15h2v2H8a4,4,0,0,0,0,8H20Z"></path><path d="M20,20H12V12h8Zm-6-2h4V14H14Z"></path><path d="M24,17H22V15h2a4,4,0,0,0,0-8H12V5H24a6,6,0,0,1,0,12Z"></path><path d="M10,10H2V2h8ZM4,8H8V4H4Z"></path></svg>');function Ge(f,t){const e=at(t,["children","$$slots","$$events","$$legacy"]),i=at(e,["size","title"]);ht(t,!1);const r=it(),o=it();let l=p(t,"size",8,16),s=p(t,"title",8,void 0);st(()=>(S(e),S(s())),()=>{c(r,e["aria-label"]||e["aria-labelledby"]||s())}),st(()=>(n(r),S(e)),()=>{c(o,{"aria-hidden":n(r)?void 0:!0,role:n(r)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Dt(),Tt();var h=qe();U(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...n(o),...i}));var m=g(h);{var _=d=>{var a=je(),H=g(a,!0);b(a),mt(()=>Vt(H,s())),v(d,a)};T(m,d=>{s()&&d(_)})}j(5),b(h),v(f,h),dt()}const Je=Ne,Qe=Se,Ue=Fe;var $e=$('<input class="view-rename-input svelte-r6dy5f"/>'),Re=$('<button><!> <span class="toggle-label"> </span></button>'),to=$('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),eo=$("<!> <!>",1),oo=$('<div class="context-backdrop svelte-r6dy5f"></div> <div class="view-context-menu svelte-r6dy5f"><div class="view-menu-item svelte-r6dy5f"><!> Rename</div> <div class="view-menu-item view-menu-item-danger svelte-r6dy5f"><!> Delete</div></div>',1),no=$('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><button><!> <span class="toggle-label">Details</span></button> <button><!> <span class="toggle-label">Graph</span></button> <!> <!></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function _o(f,t){ht(t,!0);let e=p(t,"activeView",3,"entity");const i=ie("chat");function r(u){Lt(u,{noScroll:!0})}let o=O(!1);async function l(u){c(o,!1);const y=u==="calendar"?"New Calendar":"New View",D=await Mt.create(y,u);Lt(`/views/${D.id}`)}let s=O(null),h=O(""),m=O(null),_=O(!1);function d(u){c(_,!1),c(s,u.id,!0),c(h,u.name,!0)}ae(()=>{n(s)&&n(m)&&(n(m).focus(),n(m).select(),setTimeout(()=>{c(_,!0)},50))});function a(){n(_)&&(n(s)&&n(h).trim()&&Mt.update(n(s),{name:n(h).trim()}),c(s,null),c(_,!1))}function H(){c(s,null),c(_,!1)}function x(u){u.key==="Enter"&&(u.preventDefault(),c(_,!0),a()),u.key==="Escape"&&(u.preventDefault(),H())}let Z=O(null),R=O(le({x:0,y:0}));function ut(u,y){u.preventDefault(),c(Z,y.id,!0),c(R,{x:u.clientX,y:u.clientY},!0)}function tt(){c(Z,null)}async function L(u){tt(),confirm(`Delete view "${u.name}"?`)&&await Mt.remove(u.id)}var F=no(),q=z(F),M=E(g(q),2),ct=g(M);let gt;var pt=g(ct);ve(pt,{size:12}),j(2),b(ct);var G=E(ct,2);let et;var ft=g(G);Ge(ft,{size:12}),j(2),b(G);var ot=E(G,2);ce(ot,17,()=>Mt.views,u=>u.id,(u,y)=>{var D=K(),At=z(D);{var _t=N=>{var w=$e();he(w),ue(w,A=>c(m,A),()=>n(m)),B("keydown",w,x),se("blur",w,a),pe(w,()=>n(h),A=>c(h,A)),v(N,w)},X=N=>{var w=Re();let A;var Q=g(w);{var nt=C=>{Qt(C,{size:12})},wt=C=>{Jt(C,{size:12})};T(Q,C=>{n(y).viewType==="calendar"?C(nt):C(wt,!1)})}var W=E(Q,2),Ht=g(W,!0);b(W),b(w),mt(()=>{A=Ft(w,1,"toggle-btn svelte-r6dy5f",null,A,{active:e()==="view"&&Et.activeViewId===n(y).id}),Vt(Ht,n(y).name)}),B("click",w,C=>{e()==="view"&&Et.activeViewId===n(y).id?ut(C,n(y)):r(`/views/${n(y).id}`)}),B("contextmenu",w,C=>ut(C,n(y))),v(N,w)};T(At,N=>{n(s)===n(y).id?N(_t):N(X,!1)})}v(u,D)});var xt=E(ot,2);It(xt,()=>Je,(u,y)=>{y(u,{get open(){return n(o)},set open(D){c(o,D,!0)},children:(D,At)=>{var _t=eo(),X=z(_t);It(X,()=>Qe,(w,A)=>{A(w,{class:"toggle-btn add-view-btn",title:"New view",children:(Q,nt)=>{me(Q,{size:14})},$$slots:{default:!0}})});var N=E(X,2);It(N,()=>Ue,(w,A)=>{A(w,{class:"add-view-menu",sideOffset:4,align:"start",children:(Q,nt)=>{var wt=to(),W=z(wt),Ht=g(W);Jt(Ht,{size:14}),j(),b(W);var C=E(W,2),ne=g(C);Qt(ne,{size:14}),j(),b(C),B("click",W,()=>l("list")),B("click",C,()=>l("calendar")),v(Q,wt)},$$slots:{default:!0}})}),v(D,_t)},$$slots:{default:!0}})}),b(M);var bt=E(M,2),yt=g(bt);{var V=u=>{var y=K(),D=z(y);rt(D,()=>t.right),v(u,y)};T(yt,u=>{t.right&&u(V)})}var P=E(yt,2);{var I=u=>{fe(u,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return i.toggle},children:(y,D)=>{Ye(y,{size:14})},$$slots:{default:!0}})};T(P,u=>{i.open||u(I)})}b(bt),b(q);var J=E(q,2);{var oe=u=>{const y=Y(()=>Mt.views.find(X=>X.id===n(Z)));var D=K(),At=z(D);{var _t=X=>{var N=oo(),w=z(N),A=E(w,2);let Q;var nt=g(A),wt=g(nt);Oe(wt,{size:12}),j(),b(nt);var W=E(nt,2),Ht=g(W);ze(Ht,{size:12}),j(),b(W),b(A),mt(()=>Q=de(A,"",Q,{left:`${n(R).x??""}px`,top:`${n(R).y??""}px`})),B("click",w,tt),B("click",A,C=>C.stopPropagation()),B("click",nt,()=>{const C=n(y);tt(),d(C)}),B("click",W,()=>{const C=n(y);L(C)}),v(X,N)};T(At,X=>{n(y)&&X(_t)})}v(u,D)};T(J,u=>{n(Z)&&u(oe)})}mt(()=>{gt=Ft(ct,1,"toggle-btn svelte-r6dy5f",null,gt,{active:e()==="entity"}),et=Ft(G,1,"toggle-btn svelte-r6dy5f",null,et,{active:e()==="graph"})}),B("click",ct,()=>e()!=="entity"&&r(Et.entityPath??"/")),B("click",G,()=>e()!=="graph"&&r("/graph")),v(f,F),dt()}re(["click","keydown","contextmenu"]);export{Ue as C,Je as R,Qe as T,_o as V,Qt as a};
@@ -1 +0,0 @@
1
- import{a as f,s as y,f as b}from"./DLdmnoGO.js";import{i as H}from"./WI8VL4je.js";import{p as V,l as v,s as p,d,g as s,a as C,c as u,n as A,r as h,b as B,m,t as D}from"./D5QAs2Bb.js";import{i as N}from"./DG43S1MM.js";import{a as P}from"./hRv41LAy.js";import{l as g,p as _}from"./rmAkpimd.js";var R=b("<title> </title>"),Y=b('<svg><!><path d="M17 15 17 5 15 5 15 15 5 15 5 17 15 17 15 27 17 27 17 17 27 17 27 15 17 15z"></path></svg>');function J(z,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),x=g(e,["size","title"]);V(t,!1);const a=m(),n=m();let c=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(d(e),d(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),d(e)),()=>{p(n,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),H();var r=Y();P(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...s(n),...x}));var w=u(r);{var M=l=>{var o=R(),$=u(o,!0);h(o),D(()=>y($,i())),f(l,o)};N(w,l=>{i()&&l(M)})}A(),h(r),f(z,r),B()}var k=b("<title> </title>"),L=b('<svg><!><path d="M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"></path><path d="M10 22H22V24H10z"></path><path d="M10 16H22V18H10z"></path></svg>');function K(z,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),x=g(e,["size","title"]);V(t,!1);const a=m(),n=m();let c=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(d(e),d(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(s(a),d(e)),()=>{p(n,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),H();var r=L();P(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...s(n),...x}));var w=u(r);{var M=l=>{var o=k(),$=u(o,!0);h(o),D(()=>y($,i())),f(l,o)};N(w,l=>{i()&&l(M)})}A(3),h(r),f(z,r),B()}export{J as A,K as D};
@@ -1 +0,0 @@
1
- import{s as A}from"./CyOk_wEk.js";import{a as f,s as M,f as x}from"./DLdmnoGO.js";import{i as k}from"./WI8VL4je.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./D5QAs2Bb.js";import{i as S}from"./DG43S1MM.js";import{a as Y}from"./hRv41LAy.js";import{l as v,p as h}from"./rmAkpimd.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
@@ -1 +0,0 @@
1
- import{i as v,j as o,q as y,Y as f,u as l,v as m,k as p,w as i,Z as T,x as A}from"./D5QAs2Bb.js";import{B as R}from"./DG43S1MM.js";function x(d,_,e){var s;o&&(s=A,y());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=l(s),u=h===T,c=a!==null;if(u!==c){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{x as c};
@@ -1 +0,0 @@
1
- import{a as c,s as A,f as b}from"./DLdmnoGO.js";import{i as M}from"./WI8VL4je.js";import{p as y,l as v,s as p,d as n,g as r,a as Z,c as u,n as R,r as m,b as B,m as g,t as C}from"./D5QAs2Bb.js";import{i as H}from"./DG43S1MM.js";import{a as N}from"./hRv41LAy.js";import{l as h,p as _}from"./rmAkpimd.js";var P=b("<title> </title>"),S=b('<svg><!><path d="M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"></path></svg>');function I(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=S();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=P(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(),m(s),c(w,s),B()}var Y=b("<title> </title>"),k=b('<svg><!><path d="M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"></path><path d="M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"></path></svg>');function J(w,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),x=h(e,["size","title"]);y(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{p(a,e["aria-label"]||e["aria-labelledby"]||i())}),v(()=>(r(a),n(e)),()=>{p(d,{"aria-hidden":r(a)?void 0:!0,role:r(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Z(),M();var s=k();N(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...r(d),...x}));var L=u(s);{var $=l=>{var o=Y(),z=u(o,!0);m(o),C(()=>A(z,i())),c(l,o)};H(L,l=>{i()&&l($)})}R(2),m(s),c(w,s),B()}export{I as A,J as S};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./6McgCjyP.js","./D5QAs2Bb.js","./hszZtVwQ.js","./vNjyIc_f.js"])))=>i.map(i=>d[i]);
2
- import{_ as Y}from"./PPVm8Dsz.js";import{aY as G,a1 as C,aX as X,e as S,f as P,g,s as c,a7 as D,a4 as q}from"./D5QAs2Bb.js";import{i as z}from"./CyOk_wEk.js";import{i as H,w as h}from"./hszZtVwQ.js";import{a as K}from"./aCzYRRC_.js";import{n as $}from"./DShiqhaV.js";import{l as Q,o as N}from"./DLdmnoGO.js";function Ct(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=Q(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return G(this.#t)}get(){const e=C(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=C(this.#t);return s===void 0?e:s}set(e){return X(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=q(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function L(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function V(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:L,reset:V}}const lt=ut();let a=null,B=null,R=null,F=[],I=null,_=1e3,k=S(!1),W=S(null);const T=new Map,x={},A={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=K.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(A[t.repo]=`Syncing ${n[1].trim()}…`);const r=A[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):z();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(W,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){Y(()=>import("./6McgCjyP.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of F)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete A[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){F.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(W)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,Ct as c,lt as e,Ht as r,it as s,u as t,Dt as u};
@@ -1 +0,0 @@
1
- import{P as T,W as u,Q as k,h as _,D as v,A as g,j as l,x as A,az as m,G as S,i as w,q as E,Y as R,u as D,Z as M,H as x,v as B,k as F,w as b,aA as N,aB as Y,a7 as H,S as I,au as O}from"./D5QAs2Bb.js";class q{anchor;#e=new Map;#t=new Map;#s=new Map;#a=new Set;#i=!0;constructor(s,t=!0){this.anchor=s,this.#i=t}#r=s=>{if(this.#e.has(s)){var t=this.#e.get(s),a=this.#t.get(t);if(a)T(a),this.#a.delete(t);else{var i=this.#s.get(t);i&&(this.#t.set(t,i.effect),this.#s.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),a=i.effect)}for(const[e,f]of this.#e){if(this.#e.delete(e),e===s)break;const r=this.#s.get(f);r&&(u(r.effect),this.#s.delete(f))}for(const[e,f]of this.#t){if(e===t||this.#a.has(e))continue;const r=()=>{if(Array.from(this.#e.values()).includes(e)){var c=document.createDocumentFragment();m(f,c),c.append(_()),this.#s.set(e,{effect:f,fragment:c})}else u(f);this.#a.delete(e),this.#t.delete(e)};this.#i||!a?(this.#a.add(e),k(f,r,!1)):r()}}};#f=s=>{this.#e.delete(s);const t=Array.from(this.#e.values());for(const[a,i]of this.#s)t.includes(a)||(u(i.effect),this.#s.delete(a))};ensure(s,t){var a=g,i=S();if(t&&!this.#t.has(s)&&!this.#s.has(s))if(i){var e=document.createDocumentFragment(),f=_();e.append(f),this.#s.set(s,{effect:v(()=>t(f)),fragment:e})}else this.#t.set(s,v(()=>t(this.anchor)));if(this.#e.set(a,s),i){for(const[r,h]of this.#t)r===s?a.unskip_effect(h):a.skip_effect(h);for(const[r,h]of this.#s)r===s?a.unskip_effect(h.effect):a.skip_effect(h.effect);a.oncommit(this.#r),a.ondiscard(this.#f)}else l&&(this.anchor=A),this.#r(a)}}function L(n,s,t=!1){var a;l&&(a=A,E());var i=new q(n),e=t?R:0;function f(r,h){if(l){var c=D(a),o;if(c===M?o=0:c===x?o=!1:o=parseInt(c.substring(1)),r!==o){var d=B();F(d),i.anchor=d,b(!1),i.ensure(r,h),b(!0);return}}i.ensure(r,h)}w(()=>{var r=!1;s((h,c=0)=>{r=!0,f(c,h)}),r||f(!1,null)},e)}function p(n,s){return n===s||n?.[O]===s}function P(n={},s,t,a){return N(()=>{var i,e;return Y(()=>{i=e,e=[],H(()=>{n!==t(...e)&&(s(n,...e),i&&p(t(...i),n)&&s(null,...i))})}),()=>{I(()=>{e&&p(t(...e),n)&&s(null,...e)})}}),n}export{q as B,P as b,L as i};
@@ -1 +0,0 @@
1
- import{c as K,a as u,p as oe,b as q,s as ue,f as Ae,t as ve}from"./DLdmnoGO.js";import{p as $,a0 as w,ae as X,b as ee,g as l,c as k,r as T,a4 as E,e as Re,f as De,s as be,l as Oe,d as ye,a as ke,n as ce,m as Ce,t as fe,a3 as Pe}from"./D5QAs2Bb.js";import{s as I,a as N}from"./hRv41LAy.js";import{i as Y}from"./DG43S1MM.js";import{p as r,r as ae,s as pe,l as Se}from"./rmAkpimd.js";import{n as D,M as Te,b as h,F as Ke,c as se,a as Le,m as Q,d as Ue,e as Ee,P as Ie,f as xe,g as He,h as Ne,S as je,j as ge,k as ze,l as Be,o as Ve,p as Ze,D as We}from"./DT0iaiuH.js";import{P as Ye}from"./CBG_gV1M.js";import{r as Me}from"./D5-csRKQ.js";import{i as qe}from"./WI8VL4je.js";import{c as re}from"./Cz70ZXua.js";import{A as Ge,a as Je,b as Qe,c as Xe,d as $e,e as et,f as tt,g as rt}from"./4LyimEQJ.js";import{a as Fe}from"./BABAUxHY.js";function nt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"onOpenChange",3,D),m=r(e,"onOpenChangeComplete",3,D);Te.create({open:h(()=>c(),f=>{c(f),y()?.(f)}),onOpenChangeComplete:h(()=>m())}),Ke(v,{children:(f,F)=>{var P=K(),g=w(P);I(g,()=>e.children??X),u(f,P)},$$slots:{default:!0}}),ee()}var ot=q("<div><!></div>");function at(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=r(e,"disabled",3,!1),F=r(e,"onSelect",3,D),P=r(e,"closeOnSelect",3,!0),g=ae(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const C=Le.create({id:h(()=>m()),disabled:h(()=>f()),onSelect:h(()=>F()),ref:h(()=>y(),n=>y(n)),closeOnSelect:h(()=>P())}),p=E(()=>Q(g,C.props));var A=K(),i=w(A);{var t=n=>{var d=K(),o=w(d);I(o,()=>e.child,()=>({props:l(p)})),u(n,d)},a=n=>{var d=ot();N(d,()=>({...l(p)}));var o=k(d);I(o,()=>e.children??X),T(d),u(n,d)};Y(i,n=>{e.child?n(t):n(a,!1)})}u(v,A),ee()}var st=q("<div><!></div>");function lt(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=ae(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const F=Ue.create({id:h(()=>m()),ref:h(()=>y(),i=>y(i))}),P=E(()=>Q(f,F.props));var g=K(),C=w(g);{var p=i=>{var t=K(),a=w(t);I(a,()=>e.child,()=>({props:l(P)})),u(i,t)},A=i=>{var t=st();N(t,()=>({...l(P)}));var a=k(t);I(a,()=>e.children??X),T(t),u(i,t)};Y(C,i=>{e.child?i(p):i(A,!1)})}u(v,g),ee()}var it=q("<div><div><!></div></div>"),dt=q("<div><div><!></div></div>");function ut(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,D),P=r(e,"forceMount",3,!1),g=r(e,"onEscapeKeydown",3,D),C=r(e,"interactOutsideBehavior",3,"defer-otherwise-close"),p=r(e,"escapeKeydownBehavior",3,"defer-otherwise-close"),A=r(e,"onOpenAutoFocus",3,D),i=r(e,"onCloseAutoFocus",3,D),t=r(e,"onFocusOutside",3,D),a=r(e,"side",3,"right"),n=r(e,"trapFocus",3,!1),d=ae(e,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus","style"]);const o=Ee.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),s=>m(s)),isSub:!0,onCloseAutoFocus:h(()=>J)});function M(s){const S=s.currentTarget.contains(s.target),_=je[o.parentMenu.root.opts.dir.current].includes(s.key);S&&_&&(o.parentMenu.onClose(),o.parentMenu.triggerNode?.focus(),s.preventDefault())}const j=E(()=>o.parentMenu.root.getBitsAttr("sub-content")),b=E(()=>Q(d,o.props,{side:a(),onkeydown:M,[l(j)]:""}));function G(s){A()(s),!s.defaultPrevented&&(s.preventDefault(),o.parentMenu.root.isUsingKeyboard&&o.parentMenu.contentNode&&Ne.dispatch(o.parentMenu.contentNode))}function J(s){i()(s),!s.defaultPrevented&&s.preventDefault()}function z(s){F()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function te(s){g()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function B(s){t()(s),!s.defaultPrevented&&He(s.target)&&s.target.id!==o.parentMenu.triggerNode?.id&&o.parentMenu.onClose()}var R=K(),V=w(R);{var L=s=>{Ie(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onOpenAutoFocus:G,get enabled(){return o.parentMenu.opts.open.current},onInteractOutside:z,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,O)=>{let Z=()=>O?.().props,le=()=>O?.().wrapperProps;const ie=E(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=w(de);{var he=H=>{var x=K(),W=w(x);{let ne=E(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));I(W,()=>e.child,()=>l(ne))}u(H,x)},me=H=>{var x=it();N(x,()=>({...le()}));var W=k(x);N(W,()=>({...l(ie)}));var ne=k(W);I(ne,()=>e.children??X),T(W),T(x),u(H,x)};Y(_e,H=>{e.child?H(he):H(me,!1)})}u(_,de)},$$slots:{popper:!0}}))},U=s=>{xe(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onCloseAutoFocus:J,onOpenAutoFocus:G,get open(){return o.parentMenu.opts.open.current},onInteractOutside:z,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,O)=>{let Z=()=>O?.().props,le=()=>O?.().wrapperProps;const ie=E(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=w(de);{var he=H=>{var x=K(),W=w(x);{let ne=E(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));I(W,()=>e.child,()=>l(ne))}u(H,x)},me=H=>{var x=dt();N(x,()=>({...le()}));var W=k(x);N(W,()=>({...l(ie)}));var ne=k(W);I(ne,()=>e.children??X),T(W),T(x),u(H,x)};Y(_e,H=>{e.child?H(he):H(me,!1)})}u(_,de)},$$slots:{popper:!0}}))};Y(V,s=>{P()?s(L):P()||s(U,1)})}u(v,R),ee()}var ct=q("<div><!></div>");function ft(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"disabled",3,!1),f=r(e,"ref",15,null),F=r(e,"onSelect",3,D),P=r(e,"openDelay",3,100),g=ae(e,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const C=ze.create({disabled:h(()=>m()),onSelect:h(()=>F()),id:h(()=>y()),ref:h(()=>f(),A=>f(A)),openDelay:h(()=>P())}),p=E(()=>Q(g,C.props));Be(v,{get id(){return y()},get ref(){return C.opts.ref},children:(A,i)=>{var t=K(),a=w(t);{var n=o=>{var M=K(),j=w(M);I(j,()=>e.child,()=>({props:l(p)})),u(o,M)},d=o=>{var M=ct();N(M,()=>({...l(p)}));var j=k(M);I(j,()=>e.children??X),T(M),u(o,M)};Y(a,o=>{e.child?o(n):o(d,!1)})}u(A,t)},$$slots:{default:!0}}),ee()}function vt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"dir",3,"ltr"),m=r(e,"onOpenChange",3,D),f=r(e,"onOpenChangeComplete",3,D),F=r(e,"_internal_variant",3,"dropdown-menu");const P=Ve.create({variant:h(()=>F()),dir:h(()=>y()),onClose:()=>{c(!1),m()(!1)}});Ze.create({open:h(()=>c(),g=>{c(g),m()(g)}),onOpenChangeComplete:h(()=>f())},P),Ke(v,{children:(g,C)=>{var p=K(),A=w(p);I(A,()=>e.children??X),u(g,p)},$$slots:{default:!0}}),ee()}var pt=q("<div><div><!></div></div>"),gt=q("<div><div><!></div></div>");function _t(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,D),P=r(e,"onEscapeKeydown",3,D),g=r(e,"onCloseAutoFocus",3,D),C=r(e,"forceMount",3,!1),p=r(e,"trapFocus",3,!1),A=ae(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const i=Ee.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),b=>m(b)),onCloseAutoFocus:h(()=>g())}),t=E(()=>Q(A,i.props));function a(b){if(i.handleInteractOutside(b),!b.defaultPrevented&&(F()(b),!b.defaultPrevented)){if(b.target&&b.target instanceof Element){const G=`[${i.parentMenu.root.getBitsAttr("sub-content")}]`;if(b.target.closest(G))return}i.parentMenu.onClose()}}function n(b){P()(b),!b.defaultPrevented&&i.parentMenu.onClose()}var d=K(),o=w(d);{var M=b=>{Ie(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get enabled(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!0,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,z)=>{let te=()=>z?.().props,B=()=>z?.().wrapperProps;const R=E(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),L=w(V);{var U=S=>{var _=K(),O=w(_);{let Z=E(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));I(O,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=pt();N(_,()=>({...B()}));var O=k(_);N(O,()=>({...l(R)}));var Z=k(O);I(Z,()=>e.children??X),T(O),T(_),u(S,_)};Y(L,S=>{e.child?S(U):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))},j=b=>{xe(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get open(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!1,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,z)=>{let te=()=>z?.().props,B=()=>z?.().wrapperProps;const R=E(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),L=w(V);{var U=S=>{var _=K(),O=w(_);{let Z=E(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));I(O,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=gt();N(_,()=>({...B()}));var O=k(_);N(O,()=>({...l(R)}));var Z=k(O);I(Z,()=>e.children??X),T(O),T(_),u(S,_)};Y(L,S=>{e.child?S(U):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))};Y(o,b=>{C()?b(M):C()||b(j,1)})}u(v,d),ee()}var ht=q("<button><!></button>");function mt(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"disabled",3,!1),F=r(e,"type",3,"button"),P=ae(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const g=We.create({id:h(()=>y()),disabled:h(()=>f()??!1),ref:h(()=>m(),p=>m(p))}),C=E(()=>Q(P,g.props,{type:F()}));Be(v,{get id(){return y()},get ref(){return g.opts.ref},children:(p,A)=>{var i=K(),t=w(i);{var a=d=>{var o=K(),M=w(o);I(M,()=>e.child,()=>({props:l(C)})),u(d,o)},n=d=>{var o=ht();N(o,()=>({...l(C)}));var M=k(o);I(M,()=>e.children??X),T(o),u(d,o)};Y(t,d=>{e.child?d(a):d(n,!1)})}u(p,i)},$$slots:{default:!0}}),ee()}const Tt=vt,Lt=mt,Ut=Ye,Ht=_t,Nt=at,jt=lt,zt=nt,Vt=ft,Zt=ut;function yt(){let v=Re(De({})),e=null,c=null;function y(t,a,n){c&&(clearInterval(c),c=null),e=`${t}/${a}/${n}`,f("enter",t,a,n),c=setInterval(()=>{e&&f("heartbeat",t,a,n)},3e4)}function m(){if(c&&(clearInterval(c),c=null),e){const[t,a,n]=e.split("/");t&&a&&n&&f("leave",t,a,n),e=null}}function f(t,a,n,d){Me.send({type:"presence",action:t,repo:a,entityType:n,entityId:d})}function F(t){const a=`${t.repo}/${t.entityType}/${t.entityId}`,n=l(v)[a]??[];if(t.action==="leave")l(v)[a]=n.filter(d=>d.id!==t.user.id);else{const d=n.findIndex(o=>o.id===t.user.id);d>=0?(n[d]=t.user,l(v)[a]=[...n]):l(v)[a]=[...n,t.user]}}function P(){if(be(v,{},!0),!e)return;const[t,a,n]=e.split("/");t&&a&&n&&f("enter",t,a,n)}function g(t,a,n,d){const o=`${t}/${a}/${n}`,M=l(v)[o]??[];return d?M.filter(j=>j.id!==d):M}function C(t,a){const n=new Map;for(const[d,o]of Object.entries(l(v)))if(d.startsWith(t))for(const M of o)(!a||M.id!==a)&&n.set(M.id,M);return[...n.values()]}function p(t,a){return C(`${t}/`,a)}function A(t){const a=new Map;for(const n of Object.values(l(v)))for(const d of n)(!t||d.id!==t)&&a.set(d.id,d);return[...a.values()]}const i=E(()=>{const t=new Map;for(const a of Object.values(l(v)))for(const n of a)t.set(n.id,n);return[...t.values()]});return{enter:y,leave:m,handlePresenceEvent:F,resetAndResend:P,getPresence:g,getPresenceByPrefix:C,getRepoPresence:p,getAllUsers:A,get allUsers(){return l(i)}}}const we=yt();Me.setPresenceHandler(v=>we.handlePresenceEvent(v));Me.addConnectHandler(()=>we.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>we.leave());var Pt=Ae("<title> </title>"),bt=Ae('<svg><!><path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"></path><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"></path></svg>');function Wt(v,e){const c=Se(e,["children","$$slots","$$events","$$legacy"]),y=Se(c,["size","title"]);$(e,!1);const m=Ce(),f=Ce();let F=r(e,"size",8,16),P=r(e,"title",8,void 0);Oe(()=>(ye(c),ye(P())),()=>{be(m,c["aria-label"]||c["aria-labelledby"]||P())}),Oe(()=>(l(m),ye(c)),()=>{be(f,{"aria-hidden":l(m)?void 0:!0,role:l(m)?"img":void 0,focusable:Number(c.tabindex)===0?!0:void 0})}),ke(),qe();var g=bt();N(g,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:F(),height:F(),...l(f),...y}));var C=k(g);{var p=A=>{var i=Pt(),t=k(i,!0);T(i),fe(()=>ue(t,P())),u(A,i)};Y(C,A=>{P()&&A(p)})}ce(2),T(g),u(v,g),ee()}var Mt=q("<!> <!>",1),wt=q("<!> <!>",1),Ot=q("<!> <!>",1);function Yt(v,e){$(e,!0);let c=r(e,"open",15),y=r(e,"confirmLabel",3,"Confirm"),m=r(e,"cancelLabel",3,"Cancel"),f=r(e,"destructive",3,!1);var F=K(),P=w(F);re(P,()=>rt,(g,C)=>{C(g,{onOpenChange:p=>{p||e.oncancel()},get open(){return c()},set open(p){c(p)},children:(p,A)=>{var i=K(),t=w(i);re(t,()=>Ge,(a,n)=>{n(a,{children:(d,o)=>{var M=Ot(),j=w(M);re(j,()=>Je,(G,J)=>{J(G,{children:(z,te)=>{var B=Mt(),R=w(B);re(R,()=>Qe,(L,U)=>{U(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.title)),u(s,_)},$$slots:{default:!0}})});var V=Pe(R,2);re(V,()=>Xe,(L,U)=>{U(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.message)),u(s,_)},$$slots:{default:!0}})}),u(z,B)},$$slots:{default:!0}})});var b=Pe(j,2);re(b,()=>$e,(G,J)=>{J(G,{children:(z,te)=>{var B=wt(),R=w(B);{let L=E(()=>Fe({variant:"ghost"}));re(R,()=>et,(U,s)=>{s(U,{get class(){return l(L)},get onclick(){return e.oncancel},children:(S,_)=>{ce();var O=ve();fe(()=>ue(O,m())),u(S,O)},$$slots:{default:!0}})})}var V=Pe(R,2);{let L=E(()=>Fe({variant:f()?"destructive":"accent"}));re(V,()=>tt,(U,s)=>{s(U,{get class(){return l(L)},get onclick(){return e.onconfirm},children:(S,_)=>{ce();var O=ve();fe(()=>ue(O,y())),u(S,O)},$$slots:{default:!0}})})}u(z,B)},$$slots:{default:!0}})}),u(d,M)},$$slots:{default:!0}})}),u(p,i)},$$slots:{default:!0}})}),u(v,F),ee()}export{Ht as C,Nt as I,Ut as P,Tt as R,jt as S,Lt as T,Wt as a,Yt as b,zt as c,Vt as d,Zt as e,we as p};
@@ -1,2 +0,0 @@
1
- import{aZ as ae,g as K,aB as oe,a7 as le,a_ as q,S as N,N as Q,x as l,j as _,an as b,a$ as z,i as ue,q as Y,H as fe,b0 as U,D as m,h as R,b1 as I,Q as C,az as ce,b2 as X,b3 as de,b4 as G,b5 as he,b6 as _e,ax as L,b7 as M,b8 as Z,b9 as pe,ba as ee,a5 as te,z as ve,W as F,k as S,n as ge,v as be,bb as D,Y as me,$ as ye,bc as Ee,bd as Te,ah as we,be as Ne,ai as Re,bf as Se,o as A,bg as Ae,bh as De,bi as ke,bj as xe,bk as Le,bl as Me,C as B,bm as P,Z as Oe,X as Ie,bn as V,w as k,bo as Ce,V as Fe,bp as Pe,K as Ve,p as We,y as $e,bq as He,b as Ye}from"./D5QAs2Bb.js";function Be(t){let e=0,r=Q(0),s;return()=>{ae()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>q(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,q(r))})})))}}var je=me|ye;function qe(t,e,r,s){new ze(t,e,r,s)}class ze{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#i=null;#r=null;#n=null;#a=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#m=Be(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,i){this.#t=e,this.#s=r,this.#u=n=>{var a=b;a.b=this,a.f|=z,s(n)},this.parent=b.b,this.transform_error=i??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;Y();const a=n.data===fe;if(n.data.startsWith(U)){const o=JSON.parse(n.data.slice(U.length));this.#E(o)}else a?this.#T():this.#y()}else this.#g()},je),_&&(this.#t=l)}#y(){try{this.#i=m(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=m(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=m(()=>e(this.#t)),N(()=>{var r=this.#a=document.createDocumentFragment(),s=R();r.append(s),this.#i=this.#p(()=>(I.ensure(),m(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#a=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#i=m(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#a=document.createDocumentFragment();ce(this.#i,e);const r=this.#s.pending;this.#r=m(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)X(e,de),G(e);for(const e of this.#h)X(e,he),G(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=b,s=ee,i=te;L(this.#e),M(this.#e),Z(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{L(r),M(s),Z(i)}}#b(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#b(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#m(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#i&&(F(this.#i),this.#i=null),this.#r&&(F(this.#r),this.#r=null),this.#n&&(F(this.#n),this.#n=null),_&&(S(this.#v),ge(),S(be()));var i=!1,n=!1;const a=()=>{if(i){Te();return}i=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{I.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,a),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{I.ensure();try{return m(()=>{var u=b;u.b=this,u.f|=z,s(this.#t,()=>o,()=>a)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ue=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function it(t){return Ue.includes(t)}const Xe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function at(t){return t=t.toLowerCase(),Xe[t]??t}const Ge=["touchstart","touchmove"];function Ze(t){return Ge.includes(t)}const Je=["textarea","script","style","title"];function ot(t){return Je.includes(t)}const w=Symbol("events"),re=new Set,W=new Set;function ne(t,e,r,s={}){function i(n){if(s.capture||$.call(e,n),!n.cancelBubble)return Ne(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function lt(t,e,r,s={}){var i=ne(e,t,r,s);return()=>{t.removeEventListener(e,i,s)}}function ut(t,e,r,s,i){var n={capture:s,passive:i},a=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&we(()=>{e.removeEventListener(t,a,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of W)r(t)}let J=null;function $(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;J=t;var a=0,f=J===t&&t[w];if(f){var o=i.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=i.indexOf(e);if(u===-1)return;o<=u&&(a=o)}if(n=i[a]||t.target,n!==e){Re(t,"currentTarget",{configurable:!0,get(){return n||r}});var y=ee,T=b;M(null),L(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,M(y),L(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Se("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=b;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&ke)!==0,i,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;i===void 0&&(i=se(n?t:"<!>"+t),r||(i=A(i)));var a=s||Ae?document.importNode(i,!0):i.cloneNode(!0);if(r){var f=A(a),o=a.lastChild;v(f,o)}else v(a,a);return a}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),i=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var a=se(i),f=A(a);n=A(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=R(t+"");return v(e,e),e}var r=l;return r.nodeType!==xe?(r.before(r=R()),S(r)):Le(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=b;((r.f&Me)===0||r.nodes.end===null)&&(r.nodes.end=l),Y();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===B&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return Y(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function bt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ie(t,e)}function mt(t,e){P(),e.intro=e.intro??!1;const r=e.target,s=_,i=l;try{for(var n=A(r);n&&(n.nodeType!==B||n.data!==Oe);)n=Ie(n);if(!n)throw V;k(!0),S(n);const a=ie(t,{...e,anchor:n});return k(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==V&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ce(),P(),Fe(r),k(!1),tt(t,e)}finally{k(s),S(i)}}const x=new Map;function ie(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0,transformError:f}){P();var o=void 0,u=Pe(()=>{var y=r??e.appendChild(R());qe(y,{pending:()=>{}},d=>{We({});var c=te;if(n&&(c.c=n),i&&(s.$$events=i),_&&v(d,null),o=t(d,s)||{},_&&(b.nodes.end=l,l===null||l.nodeType!==B||l.data!==$e))throw He(),V;Ye()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Ze(h);for(const O of[e,document]){var E=x.get(O);E===void 0&&(E=new Map,x.set(O,E));var j=E.get(h);j===void 0?(O.addEventListener(h,$,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ve(re)),W.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=x.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,$),c.delete(d),c.size===0&&x.delete(p)):c.set(d,h)}W.delete(g),y!==r&&y.parentNode?.removeChild(y)}});return H.set(o,u),o}let H=new WeakMap;function yt(t,e){const r=H.get(t);return r?(H.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ct as d,ft as e,ht as f,ut as g,mt as h,st as i,ne as j,it as k,Be as l,tt as m,at as n,lt as o,gt as p,v as q,ot as r,bt as s,_t as t,yt as u};
@@ -1,5 +0,0 @@
1
- import{a as D,s as Dn,f as pe,l as Nn,o as R,c as J,b as Vr}from"./DLdmnoGO.js";import{i as Ln}from"./WI8VL4je.js";import{aM as zr,e as P,bz as cn,N as Hr,g as d,s as b,a_ as It,p as Y,l as Jt,d as St,a as Bn,c as Qt,n as Wn,r as $t,b as G,m as te,t as _n,a4 as E,f as At,aY as Kr,a1 as un,aX as Ur,a6 as jr,a2 as L,a7 as Pe,aE as Yr,bA as Vn,a0 as j,ae as ct,aD as Gr,a3 as Xr}from"./D5QAs2Bb.js";import{i as Vt}from"./DG43S1MM.js";import{a as zn,s as ut}from"./hRv41LAy.js";import{l as ee,p as v,s as Be,r as me}from"./rmAkpimd.js";import{b as Ee}from"./vNjyIc_f.js";function qr(){return Symbol(zr)}class Zr extends Map{#t=new Map;#e=P(0);#n=P(0);#r=cn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#i(t){return cn===this.#r?P(t):Hr(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#i(0),n.set(t,r);else return d(this.#e),!1;return d(r),!0}forEach(t,n){this.#o(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#i(0),n.set(t,r);else{d(this.#e);return}return d(r),super.get(t)}set(t,n){var r=this.#t,i=r.get(t),s=super.get(t),o=super.set(t,n),a=this.#e;if(i===void 0)i=this.#i(0),r.set(t,i),b(this.#n,super.size),It(a);else if(s!==n){It(i);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!i.reactions?.every(f=>c.has(f));u&&It(a)}return o}delete(t){var n=this.#t,r=n.get(t),i=super.delete(t);return r!==void 0&&(n.delete(t),b(r,-1)),i&&(b(this.#n,super.size),It(this.#e)),i}clear(){if(super.size!==0){super.clear();var t=this.#t;b(this.#n,0);for(var n of t.values())b(n,-1);It(this.#e),t.clear()}}#o(){d(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#i(0);t.set(n,r)}}for([,r]of this.#t)d(r)}keys(){return d(this.#e),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(this.#n),super.size}}var Jr=pe("<title> </title>"),Qr=pe('<svg><!><path d="M12 12H14V24H12z"></path><path d="M18 12H20V24H18z"></path><path d="M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z"></path><path d="M12 2H20V4H12z"></path></svg>');function Sa(e,t){const n=ee(t,["children","$$slots","$$events","$$legacy"]),r=ee(n,["size","title"]);Y(t,!1);const i=te(),s=te();let o=v(t,"size",8,16),a=v(t,"title",8,void 0);Jt(()=>(St(n),St(a())),()=>{b(i,n["aria-label"]||n["aria-labelledby"]||a())}),Jt(()=>(d(i),St(n)),()=>{b(s,{"aria-hidden":d(i)?void 0:!0,role:d(i)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Bn(),Ln();var c=Qr();zn(c,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:o(),height:o(),...d(s),...r}));var u=Qt(c);{var f=l=>{var m=Jr(),h=Qt(m,!0);$t(m),_n(()=>Dn(h,a())),D(l,m)};Vt(u,l=>{a()&&l(f)})}Wn(4),$t(c),D(e,c),G()}var $r=pe("<title> </title>"),ti=pe('<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>');function Aa(e,t){const n=ee(t,["children","$$slots","$$events","$$legacy"]),r=ee(n,["size","title"]);Y(t,!1);const i=te(),s=te();let o=v(t,"size",8,16),a=v(t,"title",8,void 0);Jt(()=>(St(n),St(a())),()=>{b(i,n["aria-label"]||n["aria-labelledby"]||a())}),Jt(()=>(d(i),St(n)),()=>{b(s,{"aria-hidden":d(i)?void 0:!0,role:d(i)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Bn(),Ln();var c=ti();zn(c,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:o(),height:o(),...d(s),...r}));var u=Qt(c);{var f=l=>{var m=$r(),h=Qt(m,!0);$t(m),_n(()=>Dn(h,a())),D(l,m)};Vt(u,l=>{a()&&l(f)})}Wn(2),$t(c),D(e,c),G()}function ei(e){return typeof e=="function"}function zt(e){return e!==null&&typeof e=="object"}const ni=["string","number","bigint","boolean"];function Me(e){return e==null||ni.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Me(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Ot=Symbol("box"),be=Symbol("is-writable");function S(e,t){const n=E(e);return t?{[Ot]:!0,[be]:!0,get current(){return d(n)},set current(r){t(r)}}:{[Ot]:!0,get current(){return e()}}}function Ht(e){return zt(e)&&Ot in e}function We(e){return Ht(e)&&be in e}function Hn(e){return Ht(e)?e:ei(e)?S(e):$(e)}function ri(e){return Object.entries(e).reduce((t,[n,r])=>Ht(r)?(We(r)?Object.defineProperty(t,n,{get(){return r.current},set(i){r.current=i}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function ii(e){return We(e)?{[Ot]:!0,get current(){return e.current}}:e}function $(e){let t=P(At(e));return{[Ot]:!0,[be]:!0,get current(){return d(t)},set current(n){b(t,n,!0)}}}function xt(e){let t=P(At(e));return{[Ot]:!0,[be]:!0,get current(){return d(t)},set current(n){b(t,n,!0)}}}xt.from=Hn;xt.with=S;xt.flatten=ri;xt.readonly=ii;xt.isBox=Ht;xt.isWritableBox=We;function Kn(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var ln=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oi=/\n/g,si=/^\s*/,ai=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ci=/^:\s*/,ui=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,li=/^[;\s]*/,fi=/^\s+|\s+$/g,di=`
2
- `,fn="/",dn="*",bt="",hi="comment",gi="declaration";function pi(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var g=p.match(oi);g&&(n+=g.length);var y=p.lastIndexOf(di);r=~y?p.length-y:r+p.length}function s(){var p={line:n,column:r};return function(g){return g.position=new o(p),u(),g}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function c(p){var g=p.exec(e);if(g){var y=g[0];return i(y),e=e.slice(y.length),g}}function u(){c(si)}function f(p){var g;for(p=p||[];g=l();)g!==!1&&p.push(g);return p}function l(){var p=s();if(!(fn!=e.charAt(0)||dn!=e.charAt(1))){for(var g=2;bt!=e.charAt(g)&&(dn!=e.charAt(g)||fn!=e.charAt(g+1));)++g;if(g+=2,bt===e.charAt(g-1))return a("End of comment missing");var y=e.slice(2,g-2);return r+=2,i(y),e=e.slice(g),r+=2,p({type:hi,comment:y})}}function m(){var p=s(),g=c(ai);if(g){if(l(),!c(ci))return a("property missing ':'");var y=c(ui),w=p({type:gi,property:hn(g[0].replace(ln,bt)),value:y?hn(y[0].replace(ln,bt)):bt});return c(li),w}}function h(){var p=[];f(p);for(var g;g=m();)g!==!1&&(p.push(g),f(p));return p}return u(),h()}function hn(e){return e?e.replace(fi,bt):bt}function mi(e,t){let n=null;if(!e||typeof e!="string")return n;const r=pi(e),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:o,value:a}=s;i?t(o,a,s):a&&(n=n||{},n[o]=a)}),n}const bi=/\d/,yi=["-","_","/","."];function vi(e=""){if(!bi.test(e))return e!==e.toLowerCase()}function wi(e){const t=[];let n="",r,i;for(const s of e){const o=yi.includes(s);if(o===!0){t.push(n),n="",r=void 0;continue}const a=vi(s);if(i===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,i=o}return t.push(n),t}function Un(e){return e?wi(e).map(t=>Si(t)).join(""):""}function xi(e){return Ai(Un(e||""))}function Si(e){return e?e[0].toUpperCase()+e.slice(1):""}function Ai(e){return e?e[0].toLowerCase()+e.slice(1):""}function Lt(e){if(!e)return{};const t={};function n(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[Un(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[xi(r)]=i}return mi(e,n),t}function yt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function Ei(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Oi=Ei(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Ti(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Oi(t)}: ${e[t]};`).join(`
3
- `)}function jn(e={}){return Ti(e).replace(`
4
- `," ")}const Ci=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Pi=new Set(Ci);function Mi(e){return Pi.has(e)}function ye(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const i of Object.keys(r)){const s=t[i],o=r[i],a=typeof s=="function",c=typeof o=="function";if(a&&Mi(i)){const u=s,f=o;t[i]=Kn(u,f)}else if(a&&c)t[i]=yt(s,o);else if(i==="class"){const u=Me(s),f=Me(o);u&&f?t[i]=Ee(s,o):u?t[i]=Ee(s):f&&(t[i]=Ee(o))}else if(i==="style"){const u=typeof s=="object",f=typeof o=="object",l=typeof s=="string",m=typeof o=="string";if(u&&f)t[i]={...s,...o};else if(u&&m){const h=Lt(o);t[i]={...s,...h}}else if(l&&f){const h=Lt(s);t[i]={...h,...o}}else if(l&&m){const h=Lt(s),p=Lt(o);t[i]={...h,...p}}else u?t[i]=s:f?t[i]=o:l?t[i]=s:m&&(t[i]=o)}else t[i]=o!==void 0?o:s}for(const i of Object.getOwnPropertySymbols(r)){const s=t[i],o=r[i];t[i]=o!==void 0?o:s}}}return typeof t.style=="object"&&(t.style=jn(t.style).replaceAll(`
5
- `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const Yn=typeof window<"u"?window:void 0;function Fi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Ri{#t;#e;constructor(t={}){const{window:n=Yn,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Nn(i=>{const s=R(n,"focusin",i),o=R(n,"focusout",i);return()=>{s(),o()}}))}get current(){return this.#e?.(),this.#t?Fi(this.#t):null}}new Ri;function Ii(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return Kr(this.#e)}get(){const t=un(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=un(this.#e);return n===void 0?t:n}set(t){return Ur(this.#e,t)}}function ki(e,t){switch(e){case"post":L(t);break;case"pre":jr(t);break}}function Gn(e,t,n,r={}){const{lazy:i=!1}=r;let s=!i,o=Array.isArray(e)?[]:void 0;ki(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,o=a;return}const c=Pe(()=>n(a,o));return o=a,c})}function K(e,t,n){Gn(e,"post",t,n)}function Di(e,t,n){Gn(e,"pre",t,n)}K.pre=Di;function gn(e){return Ii(e)?e():e}class Ni{#t={width:0,height:0};#e=!1;#n;#r;#i;#o=E(()=>(d(this.#s)?.(),this.getSize().width));#a=E(()=>(d(this.#s)?.(),this.getSize().height));#s=E(()=>{const t=gn(this.#r);if(t)return Nn(n=>{if(!this.#i)return;const r=new this.#i.ResizeObserver(i=>{this.#e=!0;for(const s of i){const o=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(o)?o:[o];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#i=n.window??Yn,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=gn(this.#r);if(!t||!this.#i)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const i=this.#i.getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),c=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=n-s-a,f=r-o-c;return{width:u,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return d(this.#s)?.(),this.getSize()}get width(){return d(this.#o)}get height(){return d(this.#a)}}function Mt(e){L(()=>()=>{e()})}function Li(e,t){return setTimeout(t,e)}function tt(e){Yr().then(e)}const Bi=1,Wi=9,_i=11;function Fe(e){return zt(e)&&e.nodeType===Bi&&typeof e.nodeName=="string"}function Xn(e){return zt(e)&&e.nodeType===Wi}function Vi(e){return zt(e)&&e.constructor?.name==="VisualViewport"}function zi(e){return zt(e)&&e.nodeType!==void 0}function qn(e){return zi(e)&&e.nodeType===_i&&"host"in e}function Hi(e,t){if(!e||!t||!Fe(e)||!Fe(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&qn(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Kt(e){return Xn(e)?e:Vi(e)?e.document:e?.ownerDocument??document}function _e(e){return qn(e)?_e(e.host):Xn(e)?e.defaultView??window:Fe(e)?e.ownerDocument?.defaultView??window:window}function Ki(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Ve{element;#t=E(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return d(this.#t)}set root(t){b(this.#t,t)}constructor(t){typeof t=="function"?this.element=S(t):this.element=t}getDocument=()=>Kt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ki(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function ht(e,t){return{[qr()]:n=>Ht(e)?(e.current=n,Pe(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Pe(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function ze(e){return e?"true":"false"}function Zn(e){return e?"":void 0}function Ea(e){return e?!0:void 0}function He(e){return e?"open":"closed"}function Oa(e,t){return t?"mixed":e?"true":"false"}class Ui{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function ji(e){const t=new Ui(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Wt="ArrowDown",Ut="ArrowLeft",jt="ArrowRight",ne="ArrowUp",Jn="End",Qn="Enter",Yi="Escape",$n="Home",Gi="PageDown",Xi="PageUp",ve=" ",qi="Tab";function Zi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function Ji(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Ut:jt,vertical:Wt}[t]}function Qi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?jt:Ut,vertical:ne}[t]}function $i(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Ji(e,t),prevKey:Qi(e,t)}}const to=typeof document<"u",pn=eo();function eo(){return to&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function rt(e){return e instanceof HTMLElement}function Re(e){return e instanceof Element}function tr(e){return e instanceof Element||e instanceof SVGElement}function Ta(e){return e.pointerType==="touch"}function no(e){return e!==null}function ro(e){return e instanceof HTMLInputElement&&"select"in e}class io{#t;#e=xt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const i=this.#t.rootNode.current;if(!i||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const o=s.indexOf(t),a=Zi(i),{nextKey:c,prevKey:u}=$i(a,this.#t.orientation.current),f=this.#t.loop.current,l={[c]:o+1,[u]:o-1,[$n]:0,[Jn]:s.length-1};if(r){const p=c===Wt?jt:Wt,g=u===ne?Ut:ne;l[p]=o+1,l[g]=o-1}let m=l[n.key];if(m===void 0)return;n.preventDefault(),m<0&&f?m=s.length-1:m===s.length&&f&&(m=0);const h=s[m];if(h)return h.focus(),this.#e.current=h.id,this.#t.onCandidateFocus?.(h),h}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!rt(n)||n.focus()}}class oo{#t;#e=null;constructor(t){this.#t=t,Mt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?tt(n):n()}}class so{#t;#e;#n;#r=P(!1);constructor(t){this.#t=t,b(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new oo({ref:this.#t.ref,afterTick:this.#t.open}),K(()=>this.#t.open.current,n=>{n&&b(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||b(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return d(this.#r)}}function B(){}function Ca(e,t){return`bits-${e}`}class ao{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const i=s=>{n(s)};return R(t,this.eventName,i,r)}}function mn(e,t=500){let n=null;const r=(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function er(e,t){return e===t||e.contains(t)}function nr(e){return e?.ownerDocument??document}function co(e,t){const{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}const Ie=[Qn,ve],uo=[Wt,Xi,$n],rr=[ne,Gi,Jn],lo=[...uo,...rr],fo={ltr:[...Ie,jt],rtl:[...Ie,Ut]},Pa={ltr:[Ut],rtl:[jt]};function re(e){return e.pointerType==="mouse"}function ho(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=Kt(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&ro(e)&&t&&e.select()}function go(e,{select:t=!1}={},n){const r=n();for(const i of e)if(ho(i,{select:t}),n()!==r)return!0}let kt=P(!1);class dt{static _refs=0;static _cleanup;constructor(){L(()=>(dt._refs===0&&(dt._cleanup=Vn(()=>{const t=[],n=i=>{b(kt,!1)},r=i=>{b(kt,!0)};return t.push(R(document,"pointerdown",n,{capture:!0}),R(document,"pointermove",n,{capture:!0}),R(document,"keydown",r,{capture:!0})),yt(...t)})),dt._refs++,()=>{dt._refs--,dt._refs===0&&(b(kt,!1),dt._cleanup?.())}))}get current(){return d(kt)}set current(t){b(kt,t,!0)}}var ir=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ie=ir.join(","),or=typeof Element>"u",vt=or?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,oe=!or&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},se=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",o=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):se(t.parentNode));return o},po=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},sr=function(t,n,r){if(se(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(ie));return n&&vt.call(t,ie)&&i.unshift(t),i=i.filter(r),i},ae=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var o=s.shift();if(!se(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),c=a.length?a:o.children,u=ae(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var f=vt.call(o,ie);f&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var l=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),m=!se(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(l&&m){var h=ae(l===!0?o.children:l.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else s.unshift.apply(s,o.children)}}return i},ar=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},cr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||po(t))&&!ar(t)?0:t.tabIndex},mo=function(t,n){var r=cr(t);return r<0&&n&&!ar(t)?0:r},bo=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},ur=function(t){return t.tagName==="INPUT"},yo=function(t){return ur(t)&&t.type==="hidden"},vo=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wo=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},xo=function(t){if(!t.name)return!0;var n=t.form||oe(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=wo(i,t.form);return!s||s===t},So=function(t){return ur(t)&&t.type==="radio"},Ao=function(t){return So(t)&&!xo(t)},Eo=function(t){var n,r=t&&oe(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var o,a,c;for(s=!!((o=i)!==null&&o!==void 0&&(a=o.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&i;){var u,f,l;r=oe(i),i=(u=r)===null||u===void 0?void 0:u.host,s=!!((f=i)!==null&&f!==void 0&&(l=f.ownerDocument)!==null&&l!==void 0&&l.contains(i))}}return s},bn=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Oo=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var o=vt.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(vt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,f=oe(t);if(u&&!u.shadowRoot&&i(u)===!0)return bn(t);t.assignedSlot?t=t.assignedSlot:!u&&f!==t.ownerDocument?t=f.host:t=u}t=c}if(Eo(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return bn(t);return!1},To=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return vt.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},ce=function(t,n){return!(n.disabled||yo(n)||Oo(n,t)||vo(n)||To(n))},ke=function(t,n){return!(Ao(n)||cr(n)<0||!ce(t,n))},Co=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},lr=function(t){var n=[],r=[];return t.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,c=mo(a,o),u=o?lr(i.candidates):a;c===0?o?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:i,isScope:o,content:u})}),r.sort(bo).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},fr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ae([t],n.includeContainer,{filter:ke.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Co}):r=sr(t,n.includeContainer,ke.bind(null,n)),lr(r)},dr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ae([t],n.includeContainer,{filter:ce.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=sr(t,n.includeContainer,ce.bind(null,n)),r},Ke=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return vt.call(t,ie)===!1?!1:ke(n,t)},Po=ir.concat("iframe:not([inert]):not([inert] *)").join(","),hr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return vt.call(t,Po)===!1?!1:ce(n,t)};function Bt(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Mo(e,t){if(!Ke(e,Bt()))return Fo(e,t);const n=Kt(e),r=fr(n.body,Bt());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1)[0]}function Fo(e,t){const n=Kt(e);if(!hr(e,Bt()))return n.body;const r=dr(n.body,Bt());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1).find(o=>Ke(o,Bt()))??n.body}function Ro(e,t){return e.length!==t.length?!1:e.every((n,r)=>gr(n,t[r]))}function gr(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?Ro(e,t):typeof e=="object"&&typeof t=="object"?Io(e,t):Object.is(e,t)}function Io(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!gr(e[i],t[i]))return!1;return!0}function Ma(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Fa(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Ra(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function Ia(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function pr(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const l=r.slice(0,-1);if(e.filter(g=>g.toLowerCase().startsWith(l)).length<=1)return pr(e,l,n);const h=n?.toLowerCase();if(h&&h.startsWith(l)&&h.charAt(l.length)===" "&&t.trim()===l)return n;const p=e.filter(g=>g.toLowerCase().startsWith(r));if(p.length>0){const g=n?e.indexOf(n):-1;return yn(p,Math.max(g,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=yn(e,Math.max(a,0));s.length===1&&(c=c.filter(l=>l!==n));const f=c.find(l=>l?.toLowerCase().startsWith(o));return f!==n?f:void 0}function yn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const ko={afterMs:1e4,onChange:B};function mr(e,t){const{afterMs:n,onChange:r,getWindow:i}={...ko,...t};let s=null,o=P(At(e));function a(){return i().setTimeout(()=>{b(o,e,!0),r?.(e)},n)}return L(()=>()=>{s&&i().clearTimeout(s)}),S(()=>d(o),c=>{b(o,c,!0),r?.(c),s&&i().clearTimeout(s),s=a()})}class Do{#t;#e;#n=E(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=E(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=mr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=d(this.#r)(),i=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),o=pr(s,this.#e.current,i),a=n.find(c=>c.textContent?.trim()===o);return a&&d(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class No{#t;#e;#n;#r=P(null);constructor(t){this.#t=t,this.#e=E(()=>this.#t.enabled()),this.#n=mr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{d(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>_e(this.#t.triggerNode())}),K([t.triggerNode,t.contentNode,t.enabled],([n,r,i])=>{if(!n||!r||!i)return;const s=a=>{this.#o(a,r)},o=a=>{this.#o(a,n)};return yt(R(n,"pointerleave",s),R(r,"pointerleave",o))}),K(()=>d(this.#r),()=>{const n=i=>{if(!d(this.#r))return;const s=i.target;if(!Re(s))return;const o={x:i.clientX,y:i.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!_o(o,d(this.#r));a?this.#i():c&&(this.#i(),t.onPointerExit())},r=Kt(t.triggerNode()??t.contentNode());if(r)return R(r,"pointermove",n)})}#i(){b(this.#r,null),this.#n.current=!1}#o(t,n){const r=t.currentTarget;if(!rt(r))return;const i={x:t.clientX,y:t.clientY},s=Lo(i,r.getBoundingClientRect()),o=Bo(i,s),a=Wo(n.getBoundingClientRect()),c=Vo([...o,...a]);b(this.#r,c,!0),this.#n.current=!0}}function Lo(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bo(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function Wo(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function _o(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,c=t[s].y,u=t[o].x,f=t[o].y;c>r!=f>r&&n<(u-a)*(r-c)/(f-c)+a&&(i=!i)}return i}function Vo(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),zo(t)}function zo(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Ho="data-context-menu-trigger",Ko="data-context-menu-content",br=new Pt("Menu.Root"),Tt=new Pt("Menu.Root | Menu.Sub"),Ue=new Pt("Menu.Content"),yr=new ao("bitsmenuopen",{bubbles:!1,cancelable:!0}),Uo=ji({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class vr{static create(t){const n=new vr(t);return br.set(n)}opts;isUsingKeyboard=new dt;#t=P(!1);get ignoreCloseAutoFocus(){return d(this.#t)}set ignoreCloseAutoFocus(t){b(this.#t,t,!0)}#e=P(!1);get isPointerInTransit(){return d(this.#e)}set isPointerInTransit(t){b(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Uo.getAttr(t,this.opts.variant.current)}class je{static create(t,n){return Tt.set(new je(t,n,null))}opts;root;parentMenu;contentId=S(()=>"");#t=P(null);get contentNode(){return d(this.#t)}set contentNode(t){b(this.#t,t,!0)}contentPresence;#e=P(null);get triggerNode(){return d(this.#e)}set triggerNode(t){b(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new so({ref:S(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&K(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class wr{static create(t){return Ue.set(new wr(t,Tt.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=P("");get search(){return d(this.#t)}set search(t){b(this.#t,t,!0)}#e=0;#n;#r=P(!1);get mounted(){return d(this.#r)}set mounted(t){b(this.#r,t,!0)}#i;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new Ve(t.ref),this.attachment=ht(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#i=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new No({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new Do({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new io({rootNode:S(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:S(()=>"vertical")}),K(()=>this.parentMenu.contentNode,r=>{if(!r)return;const i=()=>{tt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return yr.listen(r,i)}),L(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#o(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#i)&&this.parentMenu.triggerNode&&Ke(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=Mo(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),tt(()=>{r.focus(),tt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===qi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!rt(n)||!rt(r))return;const i=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#o();i&&!s&&o&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&lo.includes(t.key)&&(t.preventDefault(),rr.includes(t.key)&&c.reverse(),go(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){Re(t.currentTarget)&&Re(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&tt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!tr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=E(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return d(this.#s)}set snippetProps(t){b(this.#s,t)}#c=E(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":He(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return d(this.#c)}set props(t){b(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class xr{opts;content;attachment;#t=P(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=ht(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&re(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!rt(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||re(t)&&this.content.onItemLeave(t)}onfocus(t){tt(()=>{t.defaultPrevented||this.opts.disabled.current||b(this.#t,!0)})}onblur(t){tt(()=>{t.defaultPrevented||b(this.#t,!1)})}#e=E(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":ze(this.opts.disabled.current),"data-disabled":Zn(this.opts.disabled.current),"data-highlighted":d(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return d(this.#e)}set props(t){b(this.#e,t)}}class Sr{static create(t){const n=new xr(t,Ue.get());return new Sr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ve)&&Ie.includes(t.key)){if(!rt(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!rt(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=E(()=>ye(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return d(this.#n)}set props(t){b(this.#n,t)}}class Ar{static create(t){const n=Ue.get(),r=new xr(t,n),i=Tt.get();return new Ar(t,r,n,i)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,i){this.opts=t,this.item=n,this.content=r,this.submenu=i,this.attachment=ht(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Mt(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){re(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){re(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===ve||fo[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!rt(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),tt(()=>{const r=this.submenu.contentNode;r&&yr.dispatch(r)}))}#n=E(()=>ye({"aria-haspopup":"menu","aria-expanded":ze(this.submenu.opts.open.current),"data-state":He(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return d(this.#n)}set props(t){b(this.#n,t)}}class Er{static create(t){return new Er(t,br.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=ht(this.opts.ref)}#t=E(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return d(this.#t)}set props(t){b(this.#t,t)}}class Or{static create(t){return new Or(t,Tt.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=ht(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ve||t.key===Qn){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===Wt&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=E(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=E(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":ze(this.parentMenu.opts.open.current),"aria-controls":d(this.#t),"data-disabled":Zn(this.opts.disabled.current),"data-state":He(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return d(this.#e)}set props(t){b(this.#e,t)}}class ka{static create(t){const n=Tt.get();return Tt.set(new je(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class Ye{static create(t){return new Ye(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#i=!1;#o=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,L(()=>{this.#o=nr(this.opts.ref.current)});let n=B;const r=()=>{this.#d(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),n()};K([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Li(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#f())}),r}),Mt(()=>{this.#d.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&tt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#i&&this.#a.current?.(t)})};#f(){return yt(R(this.#o,"pointerdown",yt(this.#h,this.#p),{capture:!0}),R(this.#o,"pointerdown",yt(this.#g,this.#u)),R(this.#o,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=vn(t)),this.#t.current(t)};#u=mn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Go(t,this.opts.ref.current);if(!this.#r||this.#b()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=vn(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=R(this.#o,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Yo(this.opts.ref.current))};#m=t=>this.opts.ref.current?er(this.opts.ref.current,t):!1;#d=mn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#b(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#i=!0};#v=()=>{this.#i=!1};props={onfocuscapture:this.#y,onblurcapture:this.#v}}function jo(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Yo(e){const t=[...globalThis.bitsDismissableLayers],n=jo(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Go(e,t){const n=e.target;if(!tr(n))return!1;const r=!!n.closest(`[${Ho}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const i=!!t.closest(`[${Ko}]`);return r&&i?!1:nr(n).documentElement.contains(n)&&!er(t,n)&&co(e,t)}function vn(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let i=!1;return new Proxy(r,{get:(o,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:a==="defaultPrevented"?i:a in o?o[a]:e[a]})}function Xo(e,t){Y(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),i=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const o=Ye.create({id:S(()=>t.id),interactOutsideBehavior:S(()=>n()),onInteractOutside:S(()=>r()),enabled:S(()=>t.enabled),onFocusOutside:S(()=>i()),isValidEvent:S(()=>s()),ref:t.ref});var a=J(),c=j(a);ut(c,()=>t.children??ct,()=>({props:o.props})),D(e,a),G()}globalThis.bitsEscapeLayers??=new Map;class Ge{static create(t){return new Ge(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Ve(this.opts.ref);let n=B;K(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>R(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==Yi||!qo(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function qo(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Zo(e,t){Y(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);Ge.create({escapeKeydownBehavior:S(()=>n()),onEscapeKeydown:S(()=>r()),enabled:S(()=>t.enabled),ref:t.ref});var i=J(),s=j(i);ut(s,()=>t.children??ct),D(e,i),G()}class Xe{static instance;#t=$([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new Xe),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(i=>i!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class qe{#t=!1;#e=null;#n=Xe.getInstance();#r=[];#i;constructor(t){this.#i=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#o(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#o(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#i.trap.current)return;const t=this.#e,n=t.ownerDocument,r=o=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=o.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&hr(u))o.preventDefault(),u.focus();else{const f=this.#l(),l=this.#u()[0];(f||l||t).focus()}}},i=o=>{if(!this.#i.loop||this.#t||o.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#f();if(a.length===0)return;const c=a[0],u=a[a.length-1];!o.shiftKey&&n.activeElement===u?(o.preventDefault(),c.focus()):o.shiftKey&&n.activeElement===c&&(o.preventDefault(),u.focus())};this.#r.push(R(n,"focusin",r,{capture:!0}),R(t,"keydown",i));const s=new MutationObserver(()=>{const o=this.#n.getFocusMemory(this);if(o&&!t.contains(o)){const a=this.#l(),c=this.#u()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#f(){return this.#e?fr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#f()[0]||null}#u(){return this.#e?dr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return K([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||(n=new qe(t)),n.mount(r)):n&&(n.unmount(),n=null)}),Mt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function Jo(e,t){Y(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),i=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,B),o=v(t,"onOpenAutoFocus",3,B);const a=qe.use({enabled:S(()=>n()),trap:S(()=>r()),loop:i(),onCloseAutoFocus:S(()=>s()),onOpenAutoFocus:S(()=>o()),ref:t.ref});var c=J(),u=j(c);ut(u,()=>t.focusScope??ct,()=>({props:a.props})),D(e,c),G()}globalThis.bitsTextSelectionLayers??=new Map;class Ze{static create(t){return new Ze(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new Ve(t.ref);let n=B;K(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return yt(R(this.domContext.getDocument(),"pointerdown",this.#n),R(this.domContext.getDocument(),"pointerup",Kn(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!rt(n)||!rt(r)||!this.opts.enabled.current||!$o(this)||!Hi(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Qo(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const wn=e=>e.style.userSelect||e.style.webkitUserSelect;function Qo(e,t){const n=wn(t),r=wn(e);return Gt(t,"none"),Gt(e,"text"),()=>{Gt(t,n),Gt(e,r)}}function Gt(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function $o(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function ts(e,t){Y(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),i=v(t,"onPointerUp",3,B);Ze.create({id:S(()=>t.id),onPointerDown:S(()=>r()),onPointerUp:S(()=>i()),enabled:S(()=>t.enabled&&n()),ref:t.ref});var s=J(),o=j(s);ut(o,()=>t.children??ct),D(e,s),G()}globalThis.bitsIdCounter??={current:0};function Je(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class es{#t;#e=0;#n=P();#r;constructor(t){this.#t=t}#i(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,d(this.#n)===void 0&&(this.#r=Vn(()=>{b(this.#n,this.#t(...t),!0)})),L(()=>()=>{this.#i()}),d(this.#n)}}const Zt=new Zr;let Xt=P(null),Oe=null,Dt=null,Nt=!1;const xn=S(()=>{for(const e of Zt.values())if(e)return!0;return!1});let Te=null;const ns=new es(()=>{function e(){document.body.setAttribute("style",d(Xt)??""),document.body.style.removeProperty("--scrollbar-width"),pn&&Oe?.(),b(Xt,null)}function t(){Dt!==null&&(window.clearTimeout(Dt),Dt=null)}function n(i,s){t(),Nt=!0,Te=Date.now();const o=Te,a=()=>{Dt=null,Te===o&&(Tr(Zt)?Nt=!1:(Nt=!1,s()))},c=i===null?24:i;Dt=window.setTimeout(a,c)}function r(){d(Xt)===null&&Zt.size===0&&!Nt&&b(Xt,document.body.getAttribute("style"),!0)}return K(()=>xn.current,()=>{if(!xn.current)return;r(),Nt=!1;const i=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),o=i.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!o&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",pn&&(Oe=R(document,"touchmove",f=>{f.target===document.documentElement&&(f.touches.length>1||f.preventDefault())},{passive:!1})),tt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Mt(()=>()=>{Oe?.()}),{get lockMap(){return Zt},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class rs{#t=Je();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=ns.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=S(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),Mt(()=>{if(this.#r.lockMap.delete(this.#t),Tr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Tr(e){for(const[t,n]of e)if(n)return!0;return!1}function Sn(e,t){Y(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new rs(n(),()=>r()),G()}const is=["top","right","bottom","left"],gt=Math.min,z=Math.max,ue=Math.round,qt=Math.floor,nt=e=>({x:e,y:e}),os={left:"right",right:"left",bottom:"top",top:"bottom"},ss={start:"end",end:"start"};function De(e,t,n){return z(e,gt(t,n))}function st(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function Qe(e){return e==="x"?"y":"x"}function $e(e){return e==="y"?"height":"width"}const as=new Set(["top","bottom"]);function et(e){return as.has(at(e))?"y":"x"}function tn(e){return Qe(et(e))}function cs(e,t,n){n===void 0&&(n=!1);const r=Ft(e),i=tn(e),s=$e(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=le(o)),[o,le(o)]}function us(e){const t=le(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.replace(/start|end/g,t=>ss[t])}const An=["left","right"],En=["right","left"],ls=["top","bottom"],fs=["bottom","top"];function ds(e,t,n){switch(e){case"top":case"bottom":return n?t?En:An:t?An:En;case"left":case"right":return t?ls:fs;default:return[]}}function hs(e,t,n,r){const i=Ft(e);let s=ds(at(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Ne)))),s}function le(e){return e.replace(/left|right|bottom|top/g,t=>os[t])}function gs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cr(e){return typeof e!="number"?gs(e):{top:e,right:e,bottom:e,left:e}}function fe(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function On(e,t,n){let{reference:r,floating:i}=e;const s=et(t),o=tn(t),a=$e(o),c=at(t),u=s==="y",f=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,m=r[a]/2-i[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-i.width,y:l};break;default:h={x:r.x,y:r.y}}switch(Ft(t)){case"start":h[o]-=m*(n&&u?-1:1);break;case"end":h[o]+=m*(n&&u?-1:1);break}return h}async function ps(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:m=!1,padding:h=0}=st(t,e),p=Cr(h),y=a[m?l==="floating"?"reference":"floating":l],w=fe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),O=l==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},T=fe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:A,strategy:c}):O);return{top:(w.top-T.top+p.top)/x.y,bottom:(T.bottom-w.bottom+p.bottom)/x.y,left:(w.left-T.left+p.left)/x.x,right:(T.right-w.right+p.right)/x.x}}const ms=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:l}=On(u,r,c),m=r,h={},p=0;for(let y=0;y<a.length;y++){var g;const{name:w,fn:O}=a[y],{x:A,y:x,data:T,reset:C}=await O({x:f,y:l,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:u,platform:{...o,detectOverflow:(g=o.detectOverflow)!=null?g:ps},elements:{reference:e,floating:t}});f=A??f,l=x??l,h={...h,[w]:{...h[w],...T}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:f,y:l}=On(u,m,c)),y=-1)}return{x:f,y:l,placement:m,strategy:i,middlewareData:h}},bs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=st(e,t)||{};if(u==null)return{};const l=Cr(f),m={x:n,y:r},h=tn(i),p=$e(h),g=await o.getDimensions(u),y=h==="y",w=y?"top":"left",O=y?"bottom":"right",A=y?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[h]-m[h]-s.floating[p],T=m[h]-s.reference[h],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let M=C?C[A]:0;(!M||!await(o.isElement==null?void 0:o.isElement(C)))&&(M=a.floating[A]||s.floating[p]);const W=x/2-T/2,F=M/2-g[p]/2-1,I=gt(l[w],F),X=gt(l[O],F),N=I,Q=M-g[p]-X,k=M/2-g[p]/2+W,lt=De(N,k,Q),U=!c.arrow&&Ft(i)!=null&&k!==lt&&s.reference[p]/2-(k<N?I:X)-g[p]/2<0,_=U?k<N?k-N:k-Q:0;return{[h]:m[h]+_,data:{[h]:lt,centerOffset:k-lt-_,...U&&{alignmentOffset:_}},reset:U}}}),ys=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=st(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=at(i),O=et(a),A=at(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=m||(A||!g?[le(a)]:us(a)),C=p!=="none";!m&&C&&T.push(...hs(a,g,p,x));const M=[a,...T],W=await c.detectOverflow(t,y),F=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&F.push(W[w]),l){const k=cs(i,o,x);F.push(W[k[0]],W[k[1]])}if(I=[...I,{placement:i,overflows:F}],!F.every(k=>k<=0)){var X,N;const k=(((X=s.flip)==null?void 0:X.index)||0)+1,lt=M[k];if(lt&&(!(l==="alignment"?O!==et(lt):!1)||I.every(V=>et(V.placement)===O?V.overflows[0]>0:!0)))return{data:{index:k,overflows:I},reset:{placement:lt}};let U=(N=I.filter(_=>_.overflows[0]<=0).sort((_,V)=>_.overflows[1]-V.overflows[1])[0])==null?void 0:N.placement;if(!U)switch(h){case"bestFit":{var Q;const _=(Q=I.filter(V=>{if(C){const ft=et(V.placement);return ft===O||ft==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ft=>ft>0).reduce((ft,_r)=>ft+_r,0)]).sort((V,ft)=>V[1]-ft[1])[0])==null?void 0:Q[0];_&&(U=_);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};function Tn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cn(e){return is.some(t=>e[t]>=0)}const vs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=st(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Tn(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Cn(a)}}}case"escaped":{const o=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Tn(o,n.floating);return{data:{escapedOffsets:a,escaped:Cn(a)}}}default:return{}}}}},Pr=new Set(["left","top"]);async function ws(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=at(n),a=Ft(n),c=et(n)==="y",u=Pr.has(o)?-1:1,f=s&&c?-1:1,l=st(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),c?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const xs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,c=await ws(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},Ss=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:w=>{let{x:O,y:A}=w;return{x:O,y:A}}},...u}=st(e,t),f={x:n,y:r},l=await s.detectOverflow(t,u),m=et(at(i)),h=Qe(m);let p=f[h],g=f[m];if(o){const w=h==="y"?"top":"left",O=h==="y"?"bottom":"right",A=p+l[w],x=p-l[O];p=De(A,p,x)}if(a){const w=m==="y"?"top":"left",O=m==="y"?"bottom":"right",A=g+l[w],x=g-l[O];g=De(A,g,x)}const y=c.fn({...t,[h]:p,[m]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:o,[m]:a}}}}}},As=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=st(e,t),f={x:n,y:r},l=et(i),m=Qe(l);let h=f[m],p=f[l];const g=st(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const A=m==="y"?"height":"width",x=s.reference[m]-s.floating[A]+y.mainAxis,T=s.reference[m]+s.reference[A]-y.mainAxis;h<x?h=x:h>T&&(h=T)}if(u){var w,O;const A=m==="y"?"width":"height",x=Pr.has(at(i)),T=s.reference[l]-s.floating[A]+(x&&((w=o.offset)==null?void 0:w[l])||0)+(x?0:y.crossAxis),C=s.reference[l]+s.reference[A]+(x?0:((O=o.offset)==null?void 0:O[l])||0)-(x?y.crossAxis:0);p<T?p=T:p>C&&(p=C)}return{[m]:h,[l]:p}}}},Es=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:c=()=>{},...u}=st(e,t),f=await o.detectOverflow(t,u),l=at(i),m=Ft(i),h=et(i)==="y",{width:p,height:g}=s.floating;let y,w;l==="top"||l==="bottom"?(y=l,w=m===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(w=l,y=m==="end"?"top":"bottom");const O=g-f.top-f.bottom,A=p-f.left-f.right,x=gt(g-f[y],O),T=gt(p-f[w],A),C=!t.middlewareData.shift;let M=x,W=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=O),C&&!m){const I=z(f.left,0),X=z(f.right,0),N=z(f.top,0),Q=z(f.bottom,0);h?W=p-2*(I!==0||X!==0?I+X:z(f.left,f.right)):M=g-2*(N!==0||Q!==0?N+Q:z(f.top,f.bottom))}await c({...t,availableWidth:W,availableHeight:M});const F=await o.getDimensions(a.floating);return p!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function we(){return typeof window<"u"}function Rt(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mr(e){return we()?e instanceof Node||e instanceof H(e).Node:!1}function q(e){return we()?e instanceof Element||e instanceof H(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Pn(e){return!we()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const Os=new Set(["inline","contents"]);function Yt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Os.has(i)}const Ts=new Set(["table","td","th"]);function Cs(e){return Ts.has(Rt(e))}const Ps=[":popover-open",":modal"];function xe(e){return Ps.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ms=["transform","translate","scale","rotate","perspective"],Fs=["transform","translate","scale","rotate","perspective","filter"],Rs=["paint","layout","strict","content"];function en(e){const t=nn(),n=q(e)?Z(e):e;return Ms.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Fs.some(r=>(n.willChange||"").includes(r))||Rs.some(r=>(n.contain||"").includes(r))}function Is(e){let t=pt(e);for(;it(t)&&!Ct(t);){if(en(t))return t;if(xe(t))return null;t=pt(t)}return null}function nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ks=new Set(["html","body","#document"]);function Ct(e){return ks.has(Rt(e))}function Z(e){return H(e).getComputedStyle(e)}function Se(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pn(e)&&e.host||ot(e);return Pn(t)?t.host:t}function Fr(e){const t=pt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&Yt(t)?t:Fr(t)}function _t(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Fr(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=H(i);if(s){const a=Le(o);return t.concat(o,o.visualViewport||[],Yt(i)?i:[],a&&n?_t(a):[])}return t.concat(i,_t(i,[],n))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rr(e){const t=Z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=it(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=ue(n)!==s||ue(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function rn(e){return q(e)?e:e.contextElement}function Et(e){const t=rn(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Rr(t);let o=(s?ue(n.width):n.width)/r,a=(s?ue(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Ds=nt(0);function Ir(e){const t=H(e);return!nn()||!t.visualViewport?Ds:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ns(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function wt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=rn(e);let o=nt(1);t&&(r?q(r)&&(o=Et(r)):o=Et(e));const a=Ns(s,n,r)?Ir(s):nt(0);let c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,f=i.width/o.x,l=i.height/o.y;if(s){const m=H(s),h=r&&q(r)?H(r):r;let p=m,g=Le(p);for(;g&&r&&h!==p;){const y=Et(g),w=g.getBoundingClientRect(),O=Z(g),A=w.left+(g.clientLeft+parseFloat(O.paddingLeft))*y.x,x=w.top+(g.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,l*=y.y,c+=A,u+=x,p=H(g),g=Le(p)}}return fe({width:f,height:l,x:c,y:u})}function Ae(e,t){const n=Se(e).scrollLeft;return t?t.left+n:wt(ot(e)).left+n}function kr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ae(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ls(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=ot(r),a=t?xe(t.floating):!1;if(r===o||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=nt(1);const f=nt(0),l=it(r);if((l||!l&&!s)&&((Rt(r)!=="body"||Yt(o))&&(c=Se(r)),it(r))){const h=wt(r);u=Et(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=o&&!l&&!s?kr(o,c):nt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-c.scrollTop*u.y+f.y+m.y}}function Bs(e){return Array.from(e.getClientRects())}function Ws(e){const t=ot(e),n=Se(e),r=e.ownerDocument.body,i=z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ae(e);const a=-n.scrollTop;return Z(r).direction==="rtl"&&(o+=z(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const Mn=25;function _s(e,t){const n=H(e),r=ot(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;const f=nn();(!f||f&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=Ae(r);if(u<=0){const f=r.ownerDocument,l=f.body,m=getComputedStyle(l),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(r.clientWidth-l.clientWidth-h);p<=Mn&&(s-=p)}else u<=Mn&&(s+=u);return{width:s,height:o,x:a,y:c}}const Vs=new Set(["absolute","fixed"]);function zs(e,t){const n=wt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=it(e)?Et(e):nt(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:a,x:c,y:u}}function Fn(e,t,n){let r;if(t==="viewport")r=_s(e,n);else if(t==="document")r=Ws(ot(e));else if(q(t))r=zs(t,n);else{const i=Ir(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fe(r)}function Dr(e,t){const n=pt(e);return n===t||!q(n)||Ct(n)?!1:Z(n).position==="fixed"||Dr(n,t)}function Hs(e,t){const n=t.get(e);if(n)return n;let r=_t(e,[],!1).filter(a=>q(a)&&Rt(a)!=="body"),i=null;const s=Z(e).position==="fixed";let o=s?pt(e):e;for(;q(o)&&!Ct(o);){const a=Z(o),c=en(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&Vs.has(i.position)||Yt(o)&&!c&&Dr(e,o))?r=r.filter(f=>f!==o):i=a,o=pt(o)}return t.set(e,r),r}function Ks(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?xe(t)?[]:Hs(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((u,f)=>{const l=Fn(t,f,i);return u.top=z(l.top,u.top),u.right=gt(l.right,u.right),u.bottom=gt(l.bottom,u.bottom),u.left=z(l.left,u.left),u},Fn(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Us(e){const{width:t,height:n}=Rr(e);return{width:t,height:n}}function js(e,t,n){const r=it(t),i=ot(t),s=n==="fixed",o=wt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=nt(0);function u(){c.x=Ae(i)}if(r||!r&&!s)if((Rt(t)!=="body"||Yt(i))&&(a=Se(t)),r){const h=wt(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const f=i&&!r&&!s?kr(i,a):nt(0),l=o.left+a.scrollLeft-c.x-f.x,m=o.top+a.scrollTop-c.y-f.y;return{x:l,y:m,width:o.width,height:o.height}}function Ce(e){return Z(e).position==="static"}function Rn(e,t){if(!it(e)||Z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function Nr(e,t){const n=H(e);if(xe(e))return n;if(!it(e)){let i=pt(e);for(;i&&!Ct(i);){if(q(i)&&!Ce(i))return i;i=pt(i)}return n}let r=Rn(e,t);for(;r&&Cs(r)&&Ce(r);)r=Rn(r,t);return r&&Ct(r)&&Ce(r)&&!en(r)?n:r||Is(e)||n}const Ys=async function(e){const t=this.getOffsetParent||Nr,n=this.getDimensions,r=await n(e.floating);return{reference:js(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gs(e){return Z(e).direction==="rtl"}const Xs={convertOffsetParentRelativeRectToViewportRelativeRect:Ls,getDocumentElement:ot,getClippingRect:Ks,getOffsetParent:Nr,getElementRects:Ys,getClientRects:Bs,getDimensions:Us,getScale:Et,isElement:q,isRTL:Gs};function Lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qs(e,t){let n=null,r;const i=ot(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:l,width:m,height:h}=u;if(a||t(),!m||!h)return;const p=qt(l),g=qt(i.clientWidth-(f+m)),y=qt(i.clientHeight-(l+h)),w=qt(f),A={rootMargin:-p+"px "+-g+"px "+-y+"px "+-w+"px",threshold:z(0,gt(1,c))||1};let x=!0;function T(C){const M=C[0].intersectionRatio;if(M!==c){if(!x)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}M===1&&!Lr(u,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(T,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,A)}n.observe(e)}return o(!0),s}function Zs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=rn(e),f=i||s?[...u?_t(u):[],..._t(t)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const l=u&&a?qs(u,n):null;let m=-1,h=null;o&&(h=new ResizeObserver(w=>{let[O]=w;O&&O.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var A;(A=h)==null||A.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let p,g=c?wt(e):null;c&&y();function y(){const w=wt(e);g&&!Lr(g,w)&&n(),g=w,p=requestAnimationFrame(y)}return n(),()=>{var w;f.forEach(O=>{i&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),l?.(),(w=h)==null||w.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const Js=xs,Qs=Ss,$s=ys,ta=Es,ea=vs,na=bs,ra=As,ia=(e,t,n)=>{const r=new Map,i={platform:Xs,...n},s={...i.platform,_c:r};return ms(e,t,{...i,platform:s})};function mt(e){return typeof e=="function"?e():e}function Br(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function In(e,t){const n=Br(e);return Math.round(t*n)/n}function Da(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function oa(e){const t=e.whileElementsMounted,n=E(()=>mt(e.open)??!0),r=E(()=>mt(e.middleware)),i=E(()=>mt(e.transform)??!0),s=E(()=>mt(e.placement)??"bottom"),o=E(()=>mt(e.strategy)??"absolute"),a=E(()=>mt(e.sideOffset)??0),c=E(()=>mt(e.alignOffset)??0),u=e.reference;let f=P(0),l=P(0);const m=$(null);let h=P(At(d(o))),p=P(At(d(s))),g=P(At({})),y=P(!1),w=!1;const O=E(()=>{const F=m.current?In(m.current,d(f)):d(f),I=m.current?In(m.current,d(l)):d(l);return d(i)?{position:d(h),left:"0",top:"0",transform:`translate(${F}px, ${I}px)`,...m.current&&Br(m.current)>=1.5&&{willChange:"transform"}}:{position:d(h),left:`${F}px`,top:`${I}px`}});let A;function x(){u.current===null||m.current===null||ia(u.current,m.current,{middleware:d(r),placement:d(s),strategy:d(o)}).then(F=>{const I=u.current;if(sa(I)){b(g,{...d(g),hide:{...d(g).hide,referenceHidden:!0}},!0);return}if(!d(n)&&d(f)!==0&&d(l)!==0){const N=Math.max(Math.abs(d(a)),Math.abs(d(c)),15);if(F.x<=N&&F.y<=N)return}b(f,F.x,!0),b(l,F.y,!0),b(h,F.strategy,!0),b(p,F.placement,!0),b(g,F.middlewareData,!0),b(y,!0)})}function T(){typeof A=="function"&&(A(),A=void 0)}function C(){if(T(),t===void 0){x();return}d(n)&&(u.current===null||m.current===null||(A=t(u.current,m.current,x)))}function M(){d(n)||b(y,!1)}function W(){return[d(r),d(s),d(o),d(a),d(c),d(n)]}return L(()=>{t===void 0&&d(n)&&x()}),L(C),L(()=>{if(t!==void 0){if(W(),!d(n)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}x()}}),L(M),L(()=>T),{floating:m,reference:u,get strategy(){return d(h)},get placement(){return d(p)},get middlewareData(){return d(g)},get isPositioned(){return d(y)},get floatingStyles(){return d(O)},get update(){return x}}}function sa(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const aa={top:"bottom",right:"left",bottom:"top",left:"right"},on=new Pt("Floating.Root"),kn=new Pt("Floating.Content"),sn=new Pt("Floating.Root");class de{static create(t=!1){return t?sn.set(new de):on.set(new de)}anchorNode=$(null);customAnchorNode=$(null);triggerNode=$(null);constructor(){L(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class he{static create(t,n=!1){return n?kn.set(new he(t,sn.get())):kn.set(new he(t,on.get()))}opts;root;contentRef=$(null);wrapperRef=$(null);arrowRef=$(null);contentAttachment=ht(this.contentRef);wrapperAttachment=ht(this.wrapperRef);arrowAttachment=ht(this.arrowRef);arrowId=$(Je());#t=E(()=>{if(typeof this.opts.style=="string")return Lt(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new Ni(()=>this.arrowRef.current??void 0);#r=E(()=>this.#n?.width??0);#i=E(()=>this.#n?.height??0);#o=E(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=E(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=E(()=>d(this.#a).length>0);get hasExplicitBoundaries(){return d(this.#s)}set hasExplicitBoundaries(t){b(this.#s,t)}#c=E(()=>({padding:this.opts.collisionPadding.current,boundary:d(this.#a).filter(no),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return d(this.#c)}set detectOverflowOptions(t){b(this.#c,t)}#f=P(void 0);#l=P(void 0);#u=P(void 0);#h=P(void 0);#g=E(()=>[Js({mainAxis:this.opts.sideOffset.current+d(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qs({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?ra():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&$s({...this.detectOverflowOptions}),ta({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;b(this.#f,n,!0),b(this.#l,r,!0),b(this.#u,i,!0),b(this.#h,s,!0)}}),this.arrowRef.current&&na({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ca({arrowWidth:d(this.#r),arrowHeight:d(this.#i)}),this.opts.hideWhenDetached.current&&ea({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return d(this.#g)}set middleware(t){b(this.#g,t)}floating;#p=E(()=>ua(this.floating.placement));get placedSide(){return d(this.#p)}set placedSide(t){b(this.#p,t)}#m=E(()=>la(this.floating.placement));get placedAlign(){return d(this.#m)}set placedAlign(t){b(this.#m,t)}#d=E(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return d(this.#d)}set arrowX(t){b(this.#d,t)}#b=E(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return d(this.#b)}set arrowY(t){b(this.#b,t)}#y=E(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return d(this.#y)}set cannotCenterArrow(t){b(this.#y,t)}#v=P();get contentZIndex(){return d(this.#v)}set contentZIndex(t){b(this.#v,t,!0)}#w=E(()=>aa[this.placedSide]);get arrowBaseSide(){return d(this.#w)}set arrowBaseSide(t){b(this.#w,t)}#x=E(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${d(this.#f)}px`,"--bits-floating-available-height":`${d(this.#l)}px`,"--bits-floating-anchor-width":`${d(this.#u)}px`,"--bits-floating-anchor-height":`${d(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...d(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return d(this.#x)}set wrapperProps(t){b(this.#x,t)}#S=E(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:jn({...d(this.#t)}),...this.contentAttachment}));get props(){return d(this.#S)}set props(t){b(this.#S,t)}#A=E(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return d(this.#A)}set arrowStyle(t){b(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),K(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=oa({strategy:()=>this.opts.strategy.current,placement:()=>d(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Zs(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),L(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),K(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=_e(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const o=i.getComputedStyle(r).zIndex;o!==this.contentZIndex&&(this.contentZIndex=o)});return()=>{i.cancelAnimationFrame(s)}}),L(()=>{this.floating.floating.current=this.wrapperRef.current})}}class ge{static create(t,n=!1){return n?new ge(t,sn.get()):new ge(t,on.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Hn(t.virtualEl.current):n.triggerNode=t.ref}}function ca(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,f]=an(n),l={start:"0%",center:"50%",end:"100%"}[f],m=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+c/2;let p="",g="";return u==="bottom"?(p=o?l:`${m}px`,g=`${-c}px`):u==="top"?(p=o?l:`${m}px`,g=`${r.floating.height+c}px`):u==="right"?(p=`${-c}px`,g=o?l:`${h}px`):u==="left"&&(p=`${r.floating.width+c}px`,g=o?l:`${h}px`),{data:{x:p,y:g}}}}}function an(e){const[t,n="center"]=e.split("-");return[t,n]}function ua(e){return an(e)[0]}function la(e){return an(e)[1]}function Na(e,t){Y(t,!0);let n=v(t,"tooltip",3,!1);de.create(n());var r=J(),i=j(r);ut(i,()=>t.children??ct),D(e,r),G()}function La(e,t){Y(t,!0);let n=v(t,"tooltip",3,!1);ge.create({id:S(()=>t.id),virtualEl:S(()=>t.virtualEl),ref:t.ref},n());var r=J(),i=j(r);ut(i,()=>t.children??ct),D(e,r),G()}function fa(e,t){Y(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),i=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),o=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),u=v(t,"collisionPadding",3,0),f=v(t,"hideWhenDetached",3,!1),l=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),h=v(t,"updatePositionStrategy",3,"optimized"),p=v(t,"strategy",3,"fixed"),g=v(t,"dir",3,"ltr"),y=v(t,"style",19,()=>({})),w=v(t,"wrapperId",19,Je),O=v(t,"customAnchor",3,null),A=v(t,"tooltip",3,!1);const x=he.create({side:S(()=>n()),sideOffset:S(()=>r()),align:S(()=>i()),alignOffset:S(()=>s()),id:S(()=>t.id),arrowPadding:S(()=>o()),avoidCollisions:S(()=>a()),collisionBoundary:S(()=>c()),collisionPadding:S(()=>u()),hideWhenDetached:S(()=>f()),onPlaced:S(()=>l()),sticky:S(()=>m()),updatePositionStrategy:S(()=>h()),strategy:S(()=>p()),dir:S(()=>g()),style:S(()=>y()),enabled:S(()=>t.enabled),wrapperId:S(()=>w()),customAnchor:S(()=>O())},A()),T=E(()=>ye(x.wrapperProps,{style:{pointerEvents:"auto"}}));var C=J(),M=j(C);ut(M,()=>t.content??ct,()=>({props:x.props,wrapperProps:d(T)})),D(e,C),G()}function da(e,t){Y(t,!0),Gr(()=>{t.onPlaced?.()});var n=J(),r=j(n);ut(r,()=>t.content??ct,()=>({props:{},wrapperProps:{}})),D(e,n),G()}function ha(e,t){let n=v(t,"isStatic",3,!1),r=me(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=J(),s=j(i);{var o=c=>{da(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{fa(c,Be({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};Vt(s,c=>{n()?c(o):c(a,!1)})}D(e,i)}var ga=Vr("<!> <!>",1);function Wr(e,t){Y(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),i=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),o=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),u=me(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);ha(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(l,m)=>{let h=()=>m?.().props,p=()=>m?.().wrapperProps;var g=ga(),y=j(g);{var w=x=>{Sn(x,{get preventScroll(){return t.preventScroll}})},O=x=>{Sn(x,{get preventScroll(){return t.preventScroll}})};Vt(y,x=>{t.forceMount&&t.enabled?x(w):t.forceMount||x(O,1)})}var A=Xr(y,2);Jo(A,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,C)=>{let M=()=>C?.().props;Zo(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(W,F)=>{Xo(W,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(X,N)=>{let Q=()=>N?.().props;ts(X,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(k,lt)=>{var U=J(),_=j(U);{let V=E(()=>({props:ye(u,h(),Q(),M(),{style:{pointerEvents:c()}}),wrapperProps:p()}));ut(_,()=>t.popper??ct,()=>d(V))}D(k,U)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(l,g)},$$slots:{content:!0}}),G()}function Ba(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),i=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),o=v(t,"isStatic",3,!1),a=me(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=J(),u=j(c);{var f=l=>{Wr(l,Be({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};Vt(u,l=>{t.shouldRender&&l(f)})}D(e,c)}function Wa(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),i=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),o=v(t,"isStatic",3,!1),a=me(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Wr(e,Be({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}export{ne as $,so as A,ji as B,Pt as C,Or as D,Qn as E,Na as F,Aa as G,Jo as H,Zo as I,Xo as J,ts as K,Sn as L,ka as M,Zn as N,Mt as O,Wa as P,Li as Q,tt as R,Pa as S,Sa as T,io as U,Ro as V,jn as W,Oa as X,mr as Y,pr as Z,Do as _,Sr as a,Wt as a0,qi as a1,Xi as a2,$n as a3,Gi as a4,Jn as a5,Ma as a6,Fa as a7,Ra as a8,Ia as a9,pn as aa,Ea as ab,Zr as ac,S as b,Ca as c,Er as d,wr as e,Ba as f,rt as g,yr as h,to as i,Da as j,Ar as k,La as l,ye as m,B as n,vr as o,je as p,Kt as q,Re as r,ht as s,Ve as t,Ta as u,ve as v,K as w,He as x,ze as y,Ke as z};
@@ -1 +0,0 @@
1
- import{a,b as G,o as ye,e as Ct,g as Me,c as b,d as Ee,t as he,s as Yt,f as Ft}from"./DLdmnoGO.js";import{p as fe,c as J,r as Y,t as K,b as ve,e as A,f as we,a2 as ht,s as r,g as e,a7 as Xt,aD as xe,a3 as Lt,a4 as l,ae as lt,a0 as h}from"./D5QAs2Bb.js";import{i as B,b as Ie}from"./DG43S1MM.js";import{e as ue}from"./Dyc1xpsu.js";import{b as y,c as le,s as p,a as Pe,S as Ae}from"./hRv41LAy.js";import{p as T,s as ce,r as Ce}from"./rmAkpimd.js";import{a as O,c as it,s as Le,S as He}from"./D5-csRKQ.js";import{c as Tt}from"./Cz70ZXua.js";import{c as st,s as rt}from"./vNjyIc_f.js";import"./WI8VL4je.js";const Oe=Array(12).fill(0);var ke=G('<div class="sonner-loading-bar"></div>'),Ne=G('<div><div class="sonner-spinner"></div></div>');function Re(_,t){fe(t,!0);var C=Ne(),k=J(C);ue(k,23,()=>Oe,($,tt)=>`spinner-bar-${tt}`,($,tt)=>{var ct=ke();a($,ct)}),Y(k),Y(C),K($=>{rt(C,1,$),y(C,"data-visible",t.visible)},[()=>st(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),a(_,C),ve()}function Zt(_){return _.label!==void 0}function Fe(){let _=A(we(typeof document<"u"?document.hidden:!1));return ht(()=>ye(document,"visibilitychange",()=>{r(_,document.hidden,!0)})),{get current(){return e(_)}}}const be=4e3,ze=14,We=45,Ue=200,Ve=.05,je={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Ke(_){const[t,C]=_.split("-"),k=[];return t&&k.push(t),C&&k.push(C),k}function _e(_){return 1/(1.5+Math.abs(_)/20)}var Ye=G("<div><!></div>"),Ze=G('<button data-close-button=""><!></button>'),Ge=G('<div data-icon=""><!> <!></div>'),Xe=G('<div data-description=""><!></div>'),Qe=G('<button data-button="" data-cancel=""> </button>'),qe=G('<button data-button=""> </button>'),Je=G('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),pe=G('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function $e(_,t){fe(t,!0);const C=s=>{var c=b(),v=h(c);{var w=g=>{var L=Ye(),It=J(L);p(It,()=>t.loadingIcon),Y(L),K(Rt=>{rt(L,1,Rt),y(L,"data-visible",e(D)==="loading")},[()=>st(it(e(j)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),a(g,L)},x=g=>{{let L=l(()=>it(e(j)?.loader,t.toast.classes?.loader)),It=l(()=>e(D)==="loading");Re(g,{get class(){return e(L)},get visible(){return e(It)}})}};B(v,g=>{t.loadingIcon?g(w):g(x,!1)})}a(s,c)};let k=T(t,"cancelButtonStyle",3,""),$=T(t,"actionButtonStyle",3,""),tt=T(t,"descriptionClass",3,""),ct=T(t,"unstyled",3,!1),Bt=T(t,"defaultRichColors",3,!1);const Dt={...je};let V=A(!1),N=A(!1),St=A(!1),Ht=A(!1),Ot=A(!1),W=A(0),dt=A(0),Mt=t.toast.duration||t.duration||be,Z=A(void 0),et=A(null),kt=A(null);const Qt=l(()=>t.index===0),qt=l(()=>t.index+1<=t.visibleToasts),D=l(()=>t.toast.type),U=l(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),Et=l(()=>t.toast.class||""),yt=l(()=>t.toast.descriptionClass||""),ut=l(()=>O.heights.findIndex(s=>s.toastId===t.toast.id)||0),ft=l(()=>t.toast.closeButton??t.closeButton),wt=l(()=>t.toast.duration??t.duration??be);let bt=null;const zt=l(()=>t.position.split("-")),Jt=l(()=>O.heights.reduce((s,c,v)=>v>=e(ut)?s:s+c.height,0)),pt=Fe(),$t=l(()=>t.toast.invert||t.invert),Nt=l(()=>e(D)==="loading"),j=l(()=>({...Dt,...t.classes})),te=l(()=>t.toast.title),ee=l(()=>t.toast.description);let vt=A(0),Wt=A(0);const Pt=l(()=>Math.round(e(ut)*ze+e(Jt)));ht(()=>{e(te),e(ee);let s;t.expanded||t.expandByDefault?s=1:s=1-t.index*Ve;const c=Xt(()=>e(Z));if(c===void 0)return;c.style.setProperty("height","auto");const v=c.offsetHeight,w=c.getBoundingClientRect().height,x=Math.round(w/s+Number.EPSILON&100)/100;c.style.removeProperty("height");let g;Math.abs(x-v)<1?g=x:g=v,r(dt,g,!0),O.setHeight({toastId:t.toast.id,height:g})});function n(){r(N,!0),r(W,e(Pt),!0),O.removeHeight(t.toast.id),setTimeout(()=>{O.remove(t.toast.id)},Ue)}let M;const nt=l(()=>t.toast.promise&&e(D)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function at(){r(vt,new Date().getTime(),!0),M=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),n()},Mt)}function xt(){if(e(Wt)<e(vt)){const s=new Date().getTime()-e(vt);Mt=Mt-s}r(Wt,new Date().getTime(),!0)}ht(()=>{t.toast.updated&&(clearTimeout(M),Mt=e(wt),at())}),ht(()=>(e(nt)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&pt.current?xt():at()),()=>clearTimeout(M))),xe(()=>{r(V,!0);const s=e(Z)?.getBoundingClientRect().height;return r(dt,s,!0),O.setHeight({toastId:t.toast.id,height:s}),()=>{O.removeHeight(t.toast.id)}}),ht(()=>{t.toast.delete&&Xt(()=>{n(),t.toast.onDismiss?.(t.toast)})});const ne=s=>{if(e(Nt))return;r(W,e(Pt),!0);const c=s.target;c.setPointerCapture(s.pointerId),c.tagName!=="BUTTON"&&(r(St,!0),bt={x:s.clientX,y:s.clientY})},me=()=>{if(e(Ht)||!e(U))return;bt=null;const s=Number(e(Z)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),c=Number(e(Z)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),v=new Date().getTime()-0,w=e(et)==="x"?s:c,x=Math.abs(w)/v;if(Math.abs(w)>=We||x>.11){r(W,e(Pt),!0),t.toast.onDismiss?.(t.toast),e(et)==="x"?r(kt,s>0?"right":"left",!0):r(kt,c>0?"down":"up",!0),n(),r(Ht,!0);return}else e(Z)?.style.setProperty("--swipe-amount-x","0px"),e(Z)?.style.setProperty("--swipe-amount-y","0px");r(Ot,!1),r(St,!1),r(et,null)},Ut=s=>{if(!bt||!e(U)||(window.getSelection()?.toString().length??-1)>0)return;const v=s.clientY-bt.y,w=s.clientX-bt.x,x=t.swipeDirections??Ke(t.position);!e(et)&&(Math.abs(w)>1||Math.abs(v)>1)&&r(et,Math.abs(w)>Math.abs(v)?"x":"y",!0);let g={x:0,y:0};if(e(et)==="y"){if(x.includes("top")||x.includes("bottom"))if(x.includes("top")&&v<0||x.includes("bottom")&&v>0)g.y=v;else{const L=v*_e(v);g.y=Math.abs(L)<Math.abs(v)?L:v}}else if(e(et)==="x"&&(x.includes("left")||x.includes("right")))if(x.includes("left")&&w<0||x.includes("right")&&w>0)g.x=w;else{const L=w*_e(w);g.x=Math.abs(L)<Math.abs(w)?L:w}(Math.abs(g.x)>0||Math.abs(g.y)>0)&&r(Ot,!0),e(Z)?.style.setProperty("--swipe-amount-x",`${g.x}px`),e(Z)?.style.setProperty("--swipe-amount-y",`${g.y}px`)},ot=()=>{r(St,!1),r(et,null),bt=null},mt=l(()=>t.toast.icon?t.toast.icon:e(D)==="success"?t.successIcon:e(D)==="error"?t.errorIcon:e(D)==="warning"?t.warningIcon:e(D)==="info"?t.infoIcon:e(D)==="loading"?t.loadingIcon:null);var i=pe();y(i,"tabindex",0);let At;var Vt=J(i);{var ge=s=>{var c=Ze(),v=J(c);p(v,()=>t.closeIcon??lt),Y(c),K(w=>{y(c,"aria-label",t.closeButtonAriaLabel),y(c,"data-disabled",e(Nt)),rt(c,1,w)},[()=>st(it(e(j)?.closeButton,t.toast?.classes?.closeButton))]),Ct("click",c,()=>{e(Nt)||!e(U)||(n(),t.toast.onDismiss?.(t.toast))}),a(s,c)};B(Vt,s=>{e(ft)&&!t.toast.component&&e(D)!=="loading"&&t.closeIcon!==null&&s(ge)})}var ae=Lt(Vt,2);{var oe=s=>{const c=l(()=>t.toast.component);var v=b(),w=h(v);Tt(w,()=>e(c),(x,g)=>{g(x,ce(()=>t.toast.componentProps,{closeToast:n}))}),a(s,v)},ie=s=>{var c=Je(),v=h(c);{var w=u=>{var m=Ge(),o=J(m);{var I=d=>{var f=b(),z=h(f);{var E=_t=>{var Kt=b(),re=h(Kt);Tt(re,()=>t.toast.icon,(H,F)=>{F(H,{})}),a(_t,Kt)},q=_t=>{C(_t)};B(z,_t=>{t.toast.icon?_t(E):_t(q,!1)})}a(d,f)};B(o,d=>{(t.toast.promise||e(D)==="loading")&&d(I)})}var P=Lt(o,2);{var S=d=>{var f=b(),z=h(f);{var E=H=>{var F=b(),gt=h(F);Tt(gt,()=>t.toast.icon,(De,Se)=>{Se(De,{})}),a(H,F)},q=H=>{var F=b(),gt=h(F);p(gt,()=>t.successIcon??lt),a(H,F)},_t=H=>{var F=b(),gt=h(F);p(gt,()=>t.errorIcon??lt),a(H,F)},Kt=H=>{var F=b(),gt=h(F);p(gt,()=>t.warningIcon??lt),a(H,F)},re=H=>{var F=b(),gt=h(F);p(gt,()=>t.infoIcon??lt),a(H,F)};B(z,H=>{t.toast.icon?H(E):e(D)==="success"?H(q,1):e(D)==="error"?H(_t,2):e(D)==="warning"?H(Kt,3):e(D)==="info"&&H(re,4)})}a(d,f)};B(P,d=>{t.toast.type!=="loading"&&d(S)})}Y(m),K(d=>rt(m,1,d),[()=>st(it(e(j)?.icon,t.toast?.classes?.icon))]),a(u,m)};B(v,u=>{(e(D)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(e(mt)!==null||t.toast.icon)&&u(w)})}var x=Lt(v,2),g=J(x),L=J(g);{var It=u=>{var m=b(),o=h(m);{var I=S=>{const d=l(()=>t.toast.title);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,ce(()=>t.toast.componentProps))}),a(S,f)},P=S=>{var d=he();K(()=>Yt(d,t.toast.title)),a(S,d)};B(o,S=>{typeof t.toast.title!="string"?S(I):S(P,!1)})}a(u,m)};B(L,u=>{t.toast.title&&u(It)})}Y(g);var Rt=Lt(g,2);{var se=u=>{var m=Xe(),o=J(m);{var I=S=>{const d=l(()=>t.toast.description);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,ce(()=>t.toast.componentProps))}),a(S,f)},P=S=>{var d=he();K(()=>Yt(d,t.toast.description)),a(S,d)};B(o,S=>{typeof t.toast.description!="string"?S(I):S(P,!1)})}Y(m),K(S=>rt(m,1,S),[()=>st(it(tt(),e(yt),e(j)?.description,t.toast.classes?.description))]),a(u,m)};B(Rt,u=>{t.toast.description&&u(se)})}Y(x);var jt=Lt(x,2);{var X=u=>{var m=b(),o=h(m);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.cancel,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=Qe(),z=J(f,!0);Y(f),K(E=>{le(f,t.toast.cancelButtonStyle??k()),rt(f,1,E),Yt(z,t.toast.cancel.label)},[()=>st(it(e(j)?.cancelButton,t.toast?.classes?.cancelButton))]),Ct("click",f,E=>{Zt(t.toast.cancel)&&e(U)&&(t.toast.cancel?.onClick?.(E),n())}),a(d,f)},S=l(()=>Zt(t.toast.cancel));B(o,d=>{typeof t.toast.cancel=="function"?d(I):e(S)&&d(P,1)})}a(u,m)};B(jt,u=>{t.toast.cancel&&u(X)})}var R=Lt(jt,2);{var Q=u=>{var m=b(),o=h(m);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.action,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=qe(),z=J(f,!0);Y(f),K(E=>{le(f,t.toast.actionButtonStyle??$()),rt(f,1,E),Yt(z,t.toast.action.label)},[()=>st(it(e(j)?.actionButton,t.toast?.classes?.actionButton))]),Ct("click",f,E=>{Zt(t.toast.action)&&(t.toast.action?.onClick(E),!E.defaultPrevented&&n())}),a(d,f)},S=l(()=>Zt(t.toast.action));B(o,d=>{typeof t.toast.action=="function"?d(I):e(S)&&d(P,1)})}a(u,m)};B(R,u=>{t.toast.action&&u(Q)})}K((u,m)=>{rt(x,1,u),rt(g,1,m)},[()=>st(it(e(j)?.content,t.toast?.classes?.content)),()=>st(it(e(j)?.title,t.toast?.classes?.title))]),a(s,c)};B(ae,s=>{t.toast.component?s(oe):s(ie,!1)})}Y(i),Ie(i,s=>r(Z,s),()=>e(Z)),K((s,c,v)=>{rt(i,1,s),y(i,"aria-live",t.toast.important?"assertive":"polite"),y(i,"data-rich-colors",t.toast.richColors??Bt()),y(i,"data-styled",!(t.toast.component||t.toast.unstyled||ct())),y(i,"data-mounted",e(V)),y(i,"data-promise",c),y(i,"data-swiped",e(Ot)),y(i,"data-removed",e(N)),y(i,"data-visible",e(qt)),y(i,"data-y-position",e(zt)[0]),y(i,"data-x-position",e(zt)[1]),y(i,"data-index",t.index),y(i,"data-front",e(Qt)),y(i,"data-swiping",e(St)),y(i,"data-dismissible",e(U)),y(i,"data-type",e(D)),y(i,"data-invert",e($t)),y(i,"data-swipe-out",e(Ht)),y(i,"data-swipe-direction",e(kt)),y(i,"data-expanded",v),At=le(i,`${t.style} ${t.toast.style}`,At,{"--index":t.index,"--toasts-before":t.index,"--z-index":O.toasts.length-t.index,"--offset":`${e(N)?e(W):e(Pt)}px`,"--initial-height":t.expandByDefault?"auto":`${e(dt)}px`})},[()=>st(it(t.class,e(Et),e(j)?.toast,t.toast?.classes?.toast,e(j)?.[e(D)],t.toast?.classes?.[e(D)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&e(V))]),Ct("pointermove",i,Ut),Ct("pointerup",i,me),Ct("pointerdown",i,ne),Me("dragend",i,ot),a(_,i),ve()}Ee(["pointermove","pointerup","pointerdown","click"]);var tn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function en(_){var t=tn();a(_,t)}var nn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function an(_){var t=nn();a(_,t)}var on=Ft('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function sn(_){var t=on();a(_,t)}var rn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ln(_){var t=rn();a(_,t)}var cn=Ft('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function dn(_){var t=cn();a(_,t)}const un=3,Te="24px",Be="16px",fn=4e3,vn=356,mn=14,de="dark",Gt="light";function gn(_,t){const C={};return[_,t].forEach((k,$)=>{const tt=$===1,ct=tt?"--mobile-offset":"--offset",Bt=tt?Be:Te;function Dt(V){["top","right","bottom","left"].forEach(N=>{C[`${ct}-${N}`]=typeof V=="number"?`${V}px`:V})}typeof k=="number"||typeof k=="string"?Dt(k):typeof k=="object"?["top","right","bottom","left"].forEach(V=>{const N=k[V];N===void 0?C[`${ct}-${V}`]=Bt:C[`${ct}-${V}`]=typeof N=="number"?`${N}px`:N}):Dt(Bt)}),C}var hn=G("<ol></ol>"),bn=G('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function En(_,t){fe(t,!0);function C(n){return n!=="system"?n:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?de:Gt}let k=T(t,"invert",3,!1),$=T(t,"position",3,"bottom-right"),tt=T(t,"hotkey",19,()=>["altKey","KeyT"]),ct=T(t,"expand",3,!1),Bt=T(t,"closeButton",3,!1),Dt=T(t,"offset",3,Te),V=T(t,"mobileOffset",3,Be),N=T(t,"theme",3,"light"),St=T(t,"richColors",3,!1),Ht=T(t,"duration",3,fn),Ot=T(t,"visibleToasts",3,un),W=T(t,"toastOptions",19,()=>({})),dt=T(t,"dir",7,"auto"),Mt=T(t,"gap",3,mn),Z=T(t,"pauseWhenPageIsHidden",3,!1),et=T(t,"containerAriaLabel",3,"Notifications"),kt=T(t,"closeButtonAriaLabel",3,"Close toast"),Qt=Ce(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","pauseWhenPageIsHidden","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function qt(){if(dt()!=="auto")return dt();if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?(Xt(()=>dt(window.getComputedStyle(document.documentElement).direction??"ltr")),dt()):(Xt(()=>dt(n)),n)}const D=l(()=>Array.from(new Set([$(),...O.toasts.filter(n=>n.position).map(n=>n.position)].filter(Boolean))));let U=A(!1),Et=A(!1),yt=A(we(C(N()))),ut=A(void 0),ft=A(null),wt=A(!1);const bt=l(()=>tt().join("+").replace(/Key/g,"").replace(/Digit/g,""));ht(()=>{O.toasts.length<=1&&r(U,!1)}),ht(()=>{const n=O.toasts.filter(M=>M.dismiss&&!M.delete);if(n.length>0){const M=O.toasts.map(nt=>n.find(xt=>xt.id===nt.id)?{...nt,delete:!0}:nt);O.toasts=M}}),ht(()=>()=>{e(ut)&&e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null),r(wt,!1))}),xe(()=>(O.reset(),ye(document,"keydown",M=>{tt().every(at=>M[at]||M.code===at)&&(r(U,!0),e(ut)?.focus()),M.code==="Escape"&&(document.activeElement===e(ut)||e(ut)?.contains(document.activeElement))&&r(U,!1)}))),ht(()=>{if(N()!=="system"&&r(yt,N()),typeof window<"u"){N()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r(yt,de):r(yt,Gt));const n=window.matchMedia("(prefers-color-scheme: dark)"),M=({matches:nt})=>{N()==="system"&&r(yt,nt?de:Gt,!0)};"addEventListener"in n?n.addEventListener("change",M):n.addListener(M)}});const zt=n=>{t.onblur?.(n),e(wt)&&!n.currentTarget.contains(n.relatedTarget)&&(r(wt,!1),e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null)))},Jt=n=>{t.onfocus?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&(e(wt)||(r(wt,!0),r(ft,n.relatedTarget,!0)))},pt=n=>{t.onpointerdown?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&r(Et,!0)},$t=n=>{t.onmouseenter?.(n),r(U,!0)},Nt=n=>{t.onmouseleave?.(n),e(Et)||r(U,!1)},j=n=>{t.onmousemove?.(n),r(U,!0)},te=n=>{t.ondragend?.(n),r(U,!1)},ee=n=>{t.onpointerup?.(n),r(Et,!1)};Le.set(new He);var vt=bn();y(vt,"tabindex",-1);var Wt=J(vt);{var Pt=n=>{var M=b(),nt=h(M);ue(nt,18,()=>e(D),at=>at,(at,xt,ne,me)=>{const Ut=l(()=>{const[i,At]=xt.split("-");return{y:i,x:At}}),ot=l(()=>gn(Dt(),V()));var mt=hn();Pe(mt,i=>({tabindex:-1,dir:i,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":e(yt),"data-y-position":e(Ut).y,"data-x-position":e(Ut).x,style:t.style,onblur:zt,onfocus:Jt,onmouseenter:$t,onmousemove:j,onmouseleave:Nt,ondragend:te,onpointerdown:pt,onpointerup:ee,...Qt,[Ae]:{"--front-toast-height":`${O.heights[0]?.height}px`,"--width":`${vn}px`,"--gap":`${Mt()}px`,"--offset-top":e(ot)["--offset-top"],"--offset-right":e(ot)["--offset-right"],"--offset-bottom":e(ot)["--offset-bottom"],"--offset-left":e(ot)["--offset-left"],"--mobile-offset-top":e(ot)["--mobile-offset-top"],"--mobile-offset-right":e(ot)["--mobile-offset-right"],"--mobile-offset-bottom":e(ot)["--mobile-offset-bottom"],"--mobile-offset-left":e(ot)["--mobile-offset-left"]}}),[qt],void 0,void 0,"svelte-nbs0zk"),ue(mt,23,()=>O.toasts.filter(i=>!i.position&&e(ne)===0||i.position===xt),i=>i.id,(i,At,Vt,ge)=>{{const ae=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.successIcon??lt),a(o,I)},m=o=>{en(o)};B(Q,o=>{t.successIcon?o(u):t.successIcon!==null&&o(m,1)})}a(X,R)},oe=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.errorIcon??lt),a(o,I)},m=o=>{an(o)};B(Q,o=>{t.errorIcon?o(u):t.errorIcon!==null&&o(m,1)})}a(X,R)},ie=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.warningIcon??lt),a(o,I)},m=o=>{sn(o)};B(Q,o=>{t.warningIcon?o(u):t.warningIcon!==null&&o(m,1)})}a(X,R)},s=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.infoIcon??lt),a(o,I)},m=o=>{ln(o)};B(Q,o=>{t.infoIcon?o(u):t.infoIcon!==null&&o(m,1)})}a(X,R)},c=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.closeIcon??lt),a(o,I)},m=o=>{dn(o)};B(Q,o=>{t.closeIcon?o(u):t.closeIcon!==null&&o(m,1)})}a(X,R)};let v=l(()=>W()?.duration??Ht()),w=l(()=>W()?.class??""),x=l(()=>W()?.descriptionClass||""),g=l(()=>W()?.style??""),L=l(()=>W().classes||{}),It=l(()=>W().unstyled??!1),Rt=l(()=>W()?.cancelButtonStyle??""),se=l(()=>W()?.actionButtonStyle??""),jt=l(()=>W()?.closeButtonAriaLabel??kt());$e(i,{get index(){return e(Vt)},get toast(){return e(At)},get defaultRichColors(){return St()},get duration(){return e(v)},get class(){return e(w)},get descriptionClass(){return e(x)},get invert(){return k()},get visibleToasts(){return Ot()},get closeButton(){return Bt()},get interacting(){return e(Et)},get position(){return xt},get style(){return e(g)},get classes(){return e(L)},get unstyled(){return e(It)},get cancelButtonStyle(){return e(Rt)},get actionButtonStyle(){return e(se)},get closeButtonAriaLabel(){return e(jt)},get expandByDefault(){return ct()},get expanded(){return e(U)},get pauseWhenPageIsHidden(){return Z()},get loadingIcon(){return t.loadingIcon},successIcon:ae,errorIcon:oe,warningIcon:ie,infoIcon:s,closeIcon:c,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),Y(mt),Ie(mt,i=>r(ut,i),()=>e(ut)),K(()=>mt.dir=mt.dir),a(at,mt)}),a(n,M)};B(Wt,n=>{O.toasts.length>0&&n(Pt)})}Y(vt),K(()=>y(vt,"aria-label",`${et()??""} ${e(bt)??""}`)),a(_,vt),ve()}export{Re as L,En as T};
@@ -1 +0,0 @@
1
- import{c as m,a,f as l}from"./DLdmnoGO.js";import{a0 as w}from"./D5QAs2Bb.js";import{i as n}from"./DG43S1MM.js";import{p as d}from"./rmAkpimd.js";import{L as b,T as k}from"./DYrlFBgr.js";import{t as y}from"./D5-csRKQ.js";import{u as S}from"./D5-csRKQ.js";var u=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),x=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),_=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),z=l('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function H(s,v){const t=d(v,"type",3,"success");var e=m(),c=w(e);{var i=o=>{var r=u();a(o,r)},p=o=>{var r=x();a(o,r)},h=o=>{var r=_();a(o,r)},g=o=>{var r=z();a(o,r)},f=o=>{};n(c,o=>{t()==="success"?o(i):t()==="error"?o(p,1):t()==="info"?o(h,2):t()==="warning"?o(g,3):o(f,!1)})}a(s,e)}export{H as Icon,b as Loader,k as Toaster,y as toast,S as useSonner};
@@ -1 +0,0 @@
1
- import{a as c,s as M,f as h}from"./DLdmnoGO.js";import{i as A}from"./WI8VL4je.js";import{p as B,l as v,s as u,d as n,g as s,a as C,c as p,n as N,r as m,b as P,m as g,t as R}from"./D5QAs2Bb.js";import{i as Y}from"./DG43S1MM.js";import{a as k}from"./hRv41LAy.js";import{l as _,p as b}from"./rmAkpimd.js";var D=h("<title> </title>"),U=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function K(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=U();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=D(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}var j=h("<title> </title>"),q=h('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function L(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=q();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=j(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}export{K as A,L as a};
@@ -1 +0,0 @@
1
- import{h as y,i as _,_ as o,$ as u,j as t,C as g,X as i,w as l,k as d,x as p,o as m}from"./D5QAs2Bb.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{_(()=>r(a),o|u)}finally{E&&(l(!0),d(s))}}export{C as h};
@@ -1 +0,0 @@
1
- import{a as p,s as C,f as h}from"./DLdmnoGO.js";import{i as M}from"./WI8VL4je.js";import{p as k,l as c,s as m,d as f,g as i,a as A,c as _,n as B,r as u,b as N,m as v,t as P}from"./D5QAs2Bb.js";import{i as R}from"./DG43S1MM.js";import{a as Y}from"./hRv41LAy.js";import{l as g,p as b}from"./rmAkpimd.js";var j=h("<title> </title>"),q=h('<svg><!><path d="M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"></path></svg>');function J(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);k(t,!1);const a=v(),n=v();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(f(e),f(s())),()=>{m(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),f(e)),()=>{m(n,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),M();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(n),...w}));var y=_(r);{var z=o=>{var l=j(),$=_(l,!0);u(l),P(()=>C($,s())),p(o,l)};R(y,o=>{s()&&o(z)})}B(),u(r),p(x,r),N()}export{J as C};