studiograph 1.3.44-next.21 → 1.3.44-next.23

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 (62) hide show
  1. package/dist/web/_app/immutable/assets/4.DfrppcF_.css +1 -0
  2. package/dist/web/_app/immutable/assets/{8.DKYjn_lM.css → 8.BrXOeHJA.css} +1 -1
  3. package/dist/web/_app/immutable/chunks/{C1S8fyYX.js → -2EMa1ML.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{B1c_qzmY.js → B0qTqRR8.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{DO03XMS-.js → B17cx9Sm.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DIBaaeCL.js → BSBiehHY.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{CwnWYvfz.js → BasUgd5N.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{CCA2E2CK.js → BenpwI6m.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/{BgRr0V7g.js → BjAmYrTY.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{csGnu8Rb.js → BvwzgaXa.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{BN6gr1HX.js → BzfUn14C.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{BVhp5b7F.js → CDFdgZ9U.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{Dgs7g6Xf.js → CLw5zKi0.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{usxM-xOh.js → COik51fd.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{DkuxRPZv.js → CStpN6HQ.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/CX_fJaNF.js +1 -0
  17. package/dist/web/_app/immutable/chunks/{NuvuAeCX.js → CbwDFpOn.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{BKHfe9E-.js → CieeblIr.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{BzjUB_Ym.js → CoAsXxNb.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/CvAezToa.js +1 -0
  21. package/dist/web/_app/immutable/chunks/{pQmxOXKv.js → CyzLSh3b.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{D8mTIH9Y.js → DAD7hf2c.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{CwUXqlAx.js → DC1nGnOD.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{Ca2kuiZq.js → DLe_R6S0.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{DD3_vCgV.js → DN_2uSjw.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/DQmnydAv.js +1 -0
  27. package/dist/web/_app/immutable/chunks/DkilSMcP.js +5 -0
  28. package/dist/web/_app/immutable/chunks/{D-H9HeD_.js → DkoZfYJt.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{DYLAPjKD.js → DkyV2KO_.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/{DeyUjeaz.js → Dt6bIUGm.js} +1 -1
  31. package/dist/web/_app/immutable/chunks/{BZ2Q53D5.js → DtsqpIgr.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{yUs562n0.js → Dvv4bkXH.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{C74mA5aC.js → DwG0Us6L.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/{y7AXCX7T.js → FQq1g0yX.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{BdNoKWAr.js → fgXuQcv7.js} +2 -2
  36. package/dist/web/_app/immutable/chunks/{BpdrS9kL.js → h2NtTN7K.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{DLZAjAct.js → owhS8Kw_.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/{DHholpIc.js → wWaI7EIw.js} +1 -1
  39. package/dist/web/_app/immutable/entry/{app.Ci1ytk_v.js → app.CfPTwl0D.js} +2 -2
  40. package/dist/web/_app/immutable/entry/start.CzvcbWLa.js +1 -0
  41. package/dist/web/_app/immutable/nodes/{0.D4NmzO9T.js → 0.4O4jT99H.js} +2 -2
  42. package/dist/web/_app/immutable/nodes/{1.B49NrV3g.js → 1.YWRiTXrL.js} +1 -1
  43. package/dist/web/_app/immutable/nodes/{10.OXZpT8w9.js → 10.D-El_Hsa.js} +1 -1
  44. package/dist/web/_app/immutable/nodes/{2.DaqdIYKU.js → 2.ViGoUIc6.js} +4 -4
  45. package/dist/web/_app/immutable/nodes/{3.Q_RC4D9P.js → 3.BbexcpeM.js} +1 -1
  46. package/dist/web/_app/immutable/nodes/4.C2H0fLm7.js +11 -0
  47. package/dist/web/_app/immutable/nodes/{5.U-zEu0Mw.js → 5.BQEbSnbz.js} +1 -1
  48. package/dist/web/_app/immutable/nodes/{6.SYsyu9GD.js → 6.ChylSlHg.js} +1 -1
  49. package/dist/web/_app/immutable/nodes/{7.BLgQGI-C.js → 7.DxQsYoNz.js} +1 -1
  50. package/dist/web/_app/immutable/nodes/8.C6L2M9te.js +1 -0
  51. package/dist/web/_app/immutable/nodes/{9.D0aRCiZD.js → 9.BzQNdaYi.js} +1 -1
  52. package/dist/web/_app/version.json +1 -1
  53. package/dist/web/index.html +11 -11
  54. package/package.json +1 -1
  55. package/dist/web/_app/immutable/assets/4.B3dbj90y.css +0 -1
  56. package/dist/web/_app/immutable/chunks/1BE_eYuA.js +0 -1
  57. package/dist/web/_app/immutable/chunks/Mtmwulo1.js +0 -1
  58. package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +0 -5
  59. package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +0 -1
  60. package/dist/web/_app/immutable/entry/start.DNk71wbw.js +0 -1
  61. package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +0 -11
  62. package/dist/web/_app/immutable/nodes/8.67Laxdj-.js +0 -1
@@ -1 +1 @@
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"./usxM-xOh.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"./CCA2E2CK.js";import{i as B,b as Ie}from"./yUs562n0.js";import{e as ue}from"./BpdrS9kL.js";import{b as y,c as le,s as p,a as Pe,S as Ae}from"./DkuxRPZv.js";import{p as T,s as ce,r as Ce}from"./DHholpIc.js";import{a as O,c as it,s as Le,S as He}from"./BdNoKWAr.js";import{c as Tt}from"./NuvuAeCX.js";import{c as st,s as rt}from"./BKHfe9E-.js";import"./DIBaaeCL.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
+ 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"./COik51fd.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"./BenpwI6m.js";import{i as B,b as Ie}from"./Dvv4bkXH.js";import{e as ue}from"./h2NtTN7K.js";import{b as y,c as le,s as p,a as Pe,S as Ae}from"./CStpN6HQ.js";import{p as T,s as ce,r as Ce}from"./wWaI7EIw.js";import{a as O,c as it,s as Le,S as He}from"./fgXuQcv7.js";import{c as Tt}from"./CbwDFpOn.js";import{c as st,s as rt}from"./CieeblIr.js";import"./BSBiehHY.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 +1 @@
1
- import{c as A,a as y,p as me,b as M,s as Q,f as X}from"./usxM-xOh.js";import{J as be,aL as ge,aT as ve,a4 as p,g as o,s as b,e as ke,p as P,a0 as S,b as z,a3 as Z,c as q,ae as ye,r as D,t as $,l as L,d as O,a as _e,n as Ce,m as U}from"./CCA2E2CK.js";import{i as N}from"./yUs562n0.js";import{c as ee}from"./NuvuAeCX.js";import{s as V,p as d,r as j,l as W}from"./DHholpIc.js";import{c as te}from"./D8mTIH9Y.js";import{C as re}from"./BZ2Q53D5.js";import{H as xe,S as we}from"./DO03XMS-.js";import{i as se}from"./DIBaaeCL.js";import{s as Y,a as ne}from"./DkuxRPZv.js";import{C as ie,a as ae,w as H,E as Re,S as Se,b as B,c as F,g as qe,i as De,d as Pe,e as K,f as ze,h as k,m as Ne}from"./e8QVPHqJ.js";const Ee=[];function oe(t,e=!1,r=!1){return I(t,new Map,"",Ee,null,r)}function I(t,e,r,s,n=null,l=!1){if(typeof t=="object"&&t!==null){var c=e.get(t);if(c!==void 0)return c;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(be(t)){var a=Array(t.length);e.set(t,a),n!==null&&e.set(n,a);for(var i=0;i<t.length;i+=1){var g=t[i];i in t&&(a[i]=I(g,e,r,s,null,l))}return a}if(ge(t)===ve){a={},e.set(t,a),n!==null&&e.set(n,a);for(var m of Object.keys(t))a[m]=I(t[m],e,r,s,null,l);return a}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!l)return I(t.toJSON(),e,r,s,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}const ue=Pe({component:"checkbox",parts:["root","group","group-label","input"]}),ce=new ie("Checkbox.Group");class de{static create(e){return ce.set(new de(e))}opts;attachment;#e=ke(void 0);get labelId(){return o(this.#e)}set labelId(e){b(this.#e,e,!0)}constructor(e){this.opts=e,this.attachment=ae(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){const r=[...oe(this.opts.value.current),e];if(this.opts.value.current=r,K(this.opts.value.current,r))return;this.opts.onValueChange.current(r)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;const s=this.opts.value.current.filter(n=>n!==e);this.opts.value.current=s,!K(this.opts.value.current,s)&&this.opts.onValueChange.current(s)}#t=p(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":B(this.opts.disabled.current),[ue.group]:"",...this.attachment}));get props(){return o(this.#t)}set props(e){b(this.#t,e)}}const le=new ie("Checkbox.Root");class J{static create(e,r=null){return le.set(new J(e,r))}opts;group;#e=p(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return o(this.#e)}set trueName(e){b(this.#e,e)}#t=p(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return o(this.#t)}set trueRequired(e){b(this.#t,e)}#r=p(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return o(this.#r)}set trueDisabled(e){b(this.#r,e)}#n=p(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return o(this.#n)}set trueReadonly(e){b(this.#n,e)}attachment;constructor(e,r){this.opts=e,this.group=r,this.attachment=ae(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),H.pre([()=>oe(this.group?.opts.value.current),()=>this.opts.value.current],([s,n])=>{!s||!n||(this.opts.checked.current=s.includes(n))}),H.pre(()=>this.opts.checked.current,s=>{this.group&&(s?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===Re){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===Se&&(e.preventDefault(),this.#s())}}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}e.preventDefault(),this.#s()}}#i=p(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return o(this.#i)}set snippetProps(e){b(this.#i,e)}#a=p(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":qe(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":F(this.trueRequired),"aria-readonly":F(this.trueReadonly),"data-disabled":B(this.trueDisabled),"data-readonly":B(this.trueReadonly),"data-state":Ie(this.opts.checked.current,this.opts.indeterminate.current),[ue.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#a)}set props(e){b(this.#a,e)}}class G{static create(){return new G(le.get())}root;#e=p(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return o(this.#e)}set trueChecked(e){b(this.#e,e)}#t=p(()=>!!this.root.trueName);get shouldRender(){return o(this.#t)}set shouldRender(e){b(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){De(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=p(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return o(this.#r)}set props(e){b(this.#r,e)}}function Ie(t,e){return e?"indeterminate":t?"checked":"unchecked"}function Ae(t,e){P(e,!1);const r=G.create();se();var s=A(),n=S(s);{var l=c=>{xe(c,V(()=>r.props))};N(n,c=>{r.shouldRender&&c(l)})}y(t,s),z()}var Me=M("<button><!></button>"),Te=M("<!> <!>",1);function Oe(t,e){const r=me();P(e,!0);let s=d(e,"checked",15,!1),n=d(e,"ref",15,null),l=d(e,"disabled",3,!1),c=d(e,"required",3,!1),a=d(e,"name",3,void 0),i=d(e,"value",3,"on"),g=d(e,"id",19,()=>ze(r)),m=d(e,"indeterminate",15,!1),h=d(e,"type",3,"button"),u=j(e,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const v=ce.getOr(null);v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1)),H.pre(()=>i(),()=>{v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1))});const _=J.create({checked:k(()=>s(),f=>{s(f),e.onCheckedChange?.(f)}),disabled:k(()=>l()??!1),required:k(()=>c()),name:k(()=>a()),value:k(()=>i()),id:k(()=>g()),ref:k(()=>n(),f=>n(f)),indeterminate:k(()=>m(),f=>{m(f),e.onIndeterminateChange?.(f)}),type:k(()=>h()),readonly:k(()=>!!e.readonly)},v),R=p(()=>Ne({...u},_.props));var C=Te(),E=S(C);{var x=f=>{var w=A(),T=S(w);{let pe=p(()=>({props:o(R),..._.snippetProps}));Y(T,()=>e.child,()=>o(pe))}y(f,w)},he=f=>{var w=Me();ne(w,()=>({...o(R)}));var T=q(w);Y(T,()=>e.children??ye,()=>_.snippetProps),D(w),y(f,w)};N(E,f=>{e.child?f(x):f(he,!1)})}var fe=Z(E,2);Ae(fe,{}),y(t,C),z()}var He=M('<span class="select-item-text"> </span> <!>',1);function et(t,e){P(e,!0);let r=d(e,"disabled",3,!1),s=j(e,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var n=A(),l=S(n);{const c=(i,g)=>{let m=()=>g?.().selected;var h=He(),u=S(h),v=q(u,!0);D(u);var _=Z(u,2);{var R=C=>{re(C,{size:12,class:"select-item-check"})};N(_,C=>{m()&&C(R)})}$(()=>Q(v,e.label??e.value)),y(i,h)};let a=p(()=>te("select-item",e.class));ee(l,()=>we,(i,g)=>{g(i,V({get value(){return e.value},get label(){return e.label},get disabled(){return r()},get class(){return o(a)}},()=>s,{children:c,$$slots:{default:!0}}))})}y(t,n),z()}var Be=X("<title> </title>"),Ve=X('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function je(t,e){const r=W(e,["children","$$slots","$$events","$$legacy"]),s=W(r,["size","title"]);P(e,!1);const n=U(),l=U();let c=d(e,"size",8,16),a=d(e,"title",8,void 0);L(()=>(O(r),O(a())),()=>{b(n,r["aria-label"]||r["aria-labelledby"]||a())}),L(()=>(o(n),O(r)),()=>{b(l,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),_e(),se();var i=Ve();ne(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...o(l),...s}));var g=q(i);{var m=h=>{var u=Be(),v=q(u,!0);D(u),$(()=>Q(v,a())),y(h,u)};N(g,h=>{a()&&h(m)})}Ce(),D(i),y(t,i),z()}var Je=M('<span class="flex items-center justify-center text-current"><!></span>');function tt(t,e){P(e,!0);let r=d(e,"checked",15,!1),s=d(e,"indeterminate",15,!1),n=d(e,"ref",15,null),l=j(e,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var c=A(),a=S(c);{const i=(m,h)=>{let u=()=>h?.().checked,v=()=>h?.().indeterminate;var _=Je(),R=q(_);{var C=x=>{je(x,{class:"size-3"})},E=x=>{re(x,{class:"size-3"})};N(R,x=>{v()?x(C):u()&&x(E,1)})}D(_),y(m,_)};let g=p(()=>te("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",e.class));ee(a,()=>Oe,(m,h)=>{h(m,V({get class(){return o(g)}},()=>l,{get checked(){return r()},set checked(u){r(u)},get indeterminate(){return s()},set indeterminate(u){s(u)},get ref(){return n()},set ref(u){n(u)},children:i,$$slots:{default:!0}}))})}y(t,c),z()}export{tt as C,et as S,de as a,oe as s};
1
+ import{c as A,a as y,p as me,b as M,s as Q,f as X}from"./COik51fd.js";import{J as be,aL as ge,aT as ve,a4 as p,g as o,s as b,e as ke,p as P,a0 as S,b as z,a3 as Z,c as q,ae as ye,r as D,t as $,l as L,d as O,a as _e,n as Ce,m as U}from"./BenpwI6m.js";import{i as N}from"./Dvv4bkXH.js";import{c as ee}from"./CbwDFpOn.js";import{s as V,p as d,r as j,l as W}from"./wWaI7EIw.js";import{c as te}from"./DAD7hf2c.js";import{C as re}from"./DtsqpIgr.js";import{H as xe,S as we}from"./B17cx9Sm.js";import{i as se}from"./BSBiehHY.js";import{s as Y,a as ne}from"./CStpN6HQ.js";import{C as ie,a as ae,w as H,E as Re,S as Se,b as B,c as F,g as qe,i as De,d as Pe,e as K,f as ze,h as k,m as Ne}from"./DkilSMcP.js";const Ee=[];function oe(t,e=!1,r=!1){return I(t,new Map,"",Ee,null,r)}function I(t,e,r,s,n=null,l=!1){if(typeof t=="object"&&t!==null){var c=e.get(t);if(c!==void 0)return c;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(be(t)){var a=Array(t.length);e.set(t,a),n!==null&&e.set(n,a);for(var i=0;i<t.length;i+=1){var g=t[i];i in t&&(a[i]=I(g,e,r,s,null,l))}return a}if(ge(t)===ve){a={},e.set(t,a),n!==null&&e.set(n,a);for(var m of Object.keys(t))a[m]=I(t[m],e,r,s,null,l);return a}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!l)return I(t.toJSON(),e,r,s,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}const ue=Pe({component:"checkbox",parts:["root","group","group-label","input"]}),ce=new ie("Checkbox.Group");class de{static create(e){return ce.set(new de(e))}opts;attachment;#e=ke(void 0);get labelId(){return o(this.#e)}set labelId(e){b(this.#e,e,!0)}constructor(e){this.opts=e,this.attachment=ae(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){const r=[...oe(this.opts.value.current),e];if(this.opts.value.current=r,K(this.opts.value.current,r))return;this.opts.onValueChange.current(r)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;const s=this.opts.value.current.filter(n=>n!==e);this.opts.value.current=s,!K(this.opts.value.current,s)&&this.opts.onValueChange.current(s)}#t=p(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":B(this.opts.disabled.current),[ue.group]:"",...this.attachment}));get props(){return o(this.#t)}set props(e){b(this.#t,e)}}const le=new ie("Checkbox.Root");class J{static create(e,r=null){return le.set(new J(e,r))}opts;group;#e=p(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return o(this.#e)}set trueName(e){b(this.#e,e)}#t=p(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return o(this.#t)}set trueRequired(e){b(this.#t,e)}#r=p(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return o(this.#r)}set trueDisabled(e){b(this.#r,e)}#n=p(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return o(this.#n)}set trueReadonly(e){b(this.#n,e)}attachment;constructor(e,r){this.opts=e,this.group=r,this.attachment=ae(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),H.pre([()=>oe(this.group?.opts.value.current),()=>this.opts.value.current],([s,n])=>{!s||!n||(this.opts.checked.current=s.includes(n))}),H.pre(()=>this.opts.checked.current,s=>{this.group&&(s?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===Re){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===Se&&(e.preventDefault(),this.#s())}}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}e.preventDefault(),this.#s()}}#i=p(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return o(this.#i)}set snippetProps(e){b(this.#i,e)}#a=p(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":qe(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":F(this.trueRequired),"aria-readonly":F(this.trueReadonly),"data-disabled":B(this.trueDisabled),"data-readonly":B(this.trueReadonly),"data-state":Ie(this.opts.checked.current,this.opts.indeterminate.current),[ue.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#a)}set props(e){b(this.#a,e)}}class G{static create(){return new G(le.get())}root;#e=p(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return o(this.#e)}set trueChecked(e){b(this.#e,e)}#t=p(()=>!!this.root.trueName);get shouldRender(){return o(this.#t)}set shouldRender(e){b(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){De(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=p(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return o(this.#r)}set props(e){b(this.#r,e)}}function Ie(t,e){return e?"indeterminate":t?"checked":"unchecked"}function Ae(t,e){P(e,!1);const r=G.create();se();var s=A(),n=S(s);{var l=c=>{xe(c,V(()=>r.props))};N(n,c=>{r.shouldRender&&c(l)})}y(t,s),z()}var Me=M("<button><!></button>"),Te=M("<!> <!>",1);function Oe(t,e){const r=me();P(e,!0);let s=d(e,"checked",15,!1),n=d(e,"ref",15,null),l=d(e,"disabled",3,!1),c=d(e,"required",3,!1),a=d(e,"name",3,void 0),i=d(e,"value",3,"on"),g=d(e,"id",19,()=>ze(r)),m=d(e,"indeterminate",15,!1),h=d(e,"type",3,"button"),u=j(e,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const v=ce.getOr(null);v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1)),H.pre(()=>i(),()=>{v&&i()&&(v.opts.value.current.includes(i())?s(!0):s(!1))});const _=J.create({checked:k(()=>s(),f=>{s(f),e.onCheckedChange?.(f)}),disabled:k(()=>l()??!1),required:k(()=>c()),name:k(()=>a()),value:k(()=>i()),id:k(()=>g()),ref:k(()=>n(),f=>n(f)),indeterminate:k(()=>m(),f=>{m(f),e.onIndeterminateChange?.(f)}),type:k(()=>h()),readonly:k(()=>!!e.readonly)},v),R=p(()=>Ne({...u},_.props));var C=Te(),E=S(C);{var x=f=>{var w=A(),T=S(w);{let pe=p(()=>({props:o(R),..._.snippetProps}));Y(T,()=>e.child,()=>o(pe))}y(f,w)},he=f=>{var w=Me();ne(w,()=>({...o(R)}));var T=q(w);Y(T,()=>e.children??ye,()=>_.snippetProps),D(w),y(f,w)};N(E,f=>{e.child?f(x):f(he,!1)})}var fe=Z(E,2);Ae(fe,{}),y(t,C),z()}var He=M('<span class="select-item-text"> </span> <!>',1);function et(t,e){P(e,!0);let r=d(e,"disabled",3,!1),s=j(e,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var n=A(),l=S(n);{const c=(i,g)=>{let m=()=>g?.().selected;var h=He(),u=S(h),v=q(u,!0);D(u);var _=Z(u,2);{var R=C=>{re(C,{size:12,class:"select-item-check"})};N(_,C=>{m()&&C(R)})}$(()=>Q(v,e.label??e.value)),y(i,h)};let a=p(()=>te("select-item",e.class));ee(l,()=>we,(i,g)=>{g(i,V({get value(){return e.value},get label(){return e.label},get disabled(){return r()},get class(){return o(a)}},()=>s,{children:c,$$slots:{default:!0}}))})}y(t,n),z()}var Be=X("<title> </title>"),Ve=X('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function je(t,e){const r=W(e,["children","$$slots","$$events","$$legacy"]),s=W(r,["size","title"]);P(e,!1);const n=U(),l=U();let c=d(e,"size",8,16),a=d(e,"title",8,void 0);L(()=>(O(r),O(a())),()=>{b(n,r["aria-label"]||r["aria-labelledby"]||a())}),L(()=>(o(n),O(r)),()=>{b(l,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),_e(),se();var i=Ve();ne(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...o(l),...s}));var g=q(i);{var m=h=>{var u=Be(),v=q(u,!0);D(u),$(()=>Q(v,a())),y(h,u)};N(g,h=>{a()&&h(m)})}Ce(),D(i),y(t,i),z()}var Je=M('<span class="flex items-center justify-center text-current"><!></span>');function tt(t,e){P(e,!0);let r=d(e,"checked",15,!1),s=d(e,"indeterminate",15,!1),n=d(e,"ref",15,null),l=j(e,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var c=A(),a=S(c);{const i=(m,h)=>{let u=()=>h?.().checked,v=()=>h?.().indeterminate;var _=Je(),R=q(_);{var C=x=>{je(x,{class:"size-3"})},E=x=>{re(x,{class:"size-3"})};N(R,x=>{v()?x(C):u()&&x(E,1)})}D(_),y(m,_)};let g=p(()=>te("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",e.class));ee(a,()=>Oe,(m,h)=>{h(m,V({get class(){return o(g)}},()=>l,{get checked(){return r()},set checked(u){r(u)},get indeterminate(){return s()},set indeterminate(u){s(u)},get ref(){return n()},set ref(u){n(u)},children:i,$$slots:{default:!0}}))})}y(t,c),z()}export{tt as C,et as S,de as a,oe as s};
@@ -1 +1 @@
1
- import{c as K,a as u,p as oe,b as q,s as ue,f as Ae,t as ve}from"./usxM-xOh.js";import{p as $,a0 as O,ae as X,b as ee,g as l,c as T,r as k,a4 as I,e as Re,f as De,s as be,l as we,d as ye,a as Te,n as ce,m as Ce,t as fe,a3 as Pe}from"./CCA2E2CK.js";import{s as x,a as U}from"./DkuxRPZv.js";import{i as Y}from"./yUs562n0.js";import{p as r,r as ae,s as pe,l as Se}from"./DHholpIc.js";import{p as D,M as ke,h,t as Ke,f as se,H as Le,m as Q,I as He,J as Ie,q as xe,r as Ee,i as Ne,K as Ue,L as ze,s as ge,N as Ve,F as Be,O as Ze,Q as je,R as We,T as Ye,A as qe,u as Ge,v as Je,x as Qe,y as Xe,z as $e,B as et,G as tt}from"./e8QVPHqJ.js";import{r as Me}from"./BdNoKWAr.js";import{i as rt}from"./DIBaaeCL.js";import{c as re}from"./NuvuAeCX.js";import{a as Fe}from"./D8mTIH9Y.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);ke.create({open:h(()=>c(),f=>{c(f),y()?.(f)}),onOpenChangeComplete:h(()=>m())}),Ke(v,{children:(f,F)=>{var P=K(),g=O(P);x(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=I(()=>Q(g,C.props));var A=K(),i=O(A);{var t=n=>{var d=K(),o=O(d);x(o,()=>e.child,()=>({props:l(p)})),u(n,d)},a=n=>{var d=ot();U(d,()=>({...l(p)}));var o=T(d);x(o,()=>e.children??X),k(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=He.create({id:h(()=>m()),ref:h(()=>y(),i=>y(i))}),P=I(()=>Q(f,F.props));var g=K(),C=O(g);{var p=i=>{var t=K(),a=O(t);x(a,()=>e.child,()=>({props:l(P)})),u(i,t)},A=i=>{var t=st();U(t,()=>({...l(P)}));var a=T(t);x(a,()=>e.children??X),k(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=Ie.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),_=ze[o.parentMenu.root.opts.dir.current].includes(s.key);S&&_&&(o.parentMenu.onClose(),o.parentMenu.triggerNode?.focus(),s.preventDefault())}const z=I(()=>o.parentMenu.root.getBitsAttr("sub-content")),b=I(()=>Q(d,o.props,{side:a(),onkeydown:M,[l(z)]:""}));function G(s){A()(s),!s.defaultPrevented&&(s.preventDefault(),o.parentMenu.root.isUsingKeyboard&&o.parentMenu.contentNode&&Ue.dispatch(o.parentMenu.contentNode))}function J(s){i()(s),!s.defaultPrevented&&s.preventDefault()}function V(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&&Ne(s.target)&&s.target.id!==o.parentMenu.triggerNode?.id&&o.parentMenu.onClose()}var R=K(),Z=O(R);{var L=s=>{xe(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:V,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let j=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(j(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=it();U(E,()=>({...le()}));var W=T(E);U(W,()=>({...l(ie)}));var ne=T(W);x(ne,()=>e.children??X),k(W),k(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))},H=s=>{Ee(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:V,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let j=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(j(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=dt();U(E,()=>({...le()}));var W=T(E);U(W,()=>({...l(ie)}));var ne=T(W);x(ne,()=>e.children??X),k(W),k(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))};Y(Z,s=>{P()?s(L):P()||s(H,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=Ve.create({disabled:h(()=>m()),onSelect:h(()=>F()),id:h(()=>y()),ref:h(()=>f(),A=>f(A)),openDelay:h(()=>P())}),p=I(()=>Q(g,C.props));Be(v,{get id(){return y()},get ref(){return C.opts.ref},children:(A,i)=>{var t=K(),a=O(t);{var n=o=>{var M=K(),z=O(M);x(z,()=>e.child,()=>({props:l(p)})),u(o,M)},d=o=>{var M=ct();U(M,()=>({...l(p)}));var z=T(M);x(z,()=>e.children??X),k(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=Ze.create({variant:h(()=>F()),dir:h(()=>y()),onClose:()=>{c(!1),m()(!1)}});je.create({open:h(()=>c(),g=>{c(g),m()(g)}),onOpenChangeComplete:h(()=>f())},P),Ke(v,{children:(g,C)=>{var p=K(),A=O(p);x(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=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),b=>m(b)),onCloseAutoFocus:h(()=>g())}),t=I(()=>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=O(d);{var M=b=>{xe(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,V)=>{let te=()=>V?.().props,B=()=>V?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var Z=K(),L=O(Z);{var H=S=>{var _=K(),w=O(_);{let j=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(j))}u(S,_)},s=S=>{var _=pt();U(_,()=>({...B()}));var w=T(_);U(w,()=>({...l(R)}));var j=T(w);x(j,()=>e.children??X),k(w),k(_),u(S,_)};Y(L,S=>{e.child?S(H):S(s,!1)})}u(J,Z)},$$slots:{popper:!0}}))},z=b=>{Ee(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,V)=>{let te=()=>V?.().props,B=()=>V?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var Z=K(),L=O(Z);{var H=S=>{var _=K(),w=O(_);{let j=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(j))}u(S,_)},s=S=>{var _=gt();U(_,()=>({...B()}));var w=T(_);U(w,()=>({...l(R)}));var j=T(w);x(j,()=>e.children??X),k(w),k(_),u(S,_)};Y(L,S=>{e.child?S(H):S(s,!1)})}u(J,Z)},$$slots:{popper:!0}}))};Y(o,b=>{C()?b(M):C()||b(z,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=I(()=>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=O(i);{var a=d=>{var o=K(),M=O(o);x(M,()=>e.child,()=>({props:l(C)})),u(d,o)},n=d=>{var o=ht();U(o,()=>({...l(C)}));var M=T(o);x(M,()=>e.children??X),k(o),u(d,o)};Y(t,d=>{e.child?d(a):d(n,!1)})}u(p,i)},$$slots:{default:!0}}),ee()}const Dt=vt,Tt=mt,kt=Ye,Lt=_t,Ht=at,Nt=lt,Ut=nt,zt=ft,Vt=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(z=>z.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=I(()=>{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 Oe=yt();Me.setPresenceHandler(v=>Oe.handlePresenceEvent(v));Me.addConnectHandler(()=>Oe.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>Oe.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 Zt(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);we(()=>(ye(c),ye(P())),()=>{be(m,c["aria-label"]||c["aria-labelledby"]||P())}),we(()=>(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})}),Te(),rt();var g=bt();U(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=T(g);{var p=A=>{var i=Pt(),t=T(i,!0);k(i),fe(()=>ue(t,P())),u(A,i)};Y(C,A=>{P()&&A(p)})}ce(2),k(g),u(v,g),ee()}var Mt=q("<!> <!>",1),Ot=q("<!> <!>",1),wt=q("<!> <!>",1);function jt(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=O(F);re(P,()=>tt,(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=O(i);re(t,()=>qe,(a,n)=>{n(a,{children:(d,o)=>{var M=wt(),z=O(M);re(z,()=>Ge,(G,J)=>{J(G,{children:(V,te)=>{var B=Mt(),R=O(B);re(R,()=>Je,(L,H)=>{H(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.title)),u(s,_)},$$slots:{default:!0}})});var Z=Pe(R,2);re(Z,()=>Qe,(L,H)=>{H(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.message)),u(s,_)},$$slots:{default:!0}})}),u(V,B)},$$slots:{default:!0}})});var b=Pe(z,2);re(b,()=>Xe,(G,J)=>{J(G,{children:(V,te)=>{var B=Ot(),R=O(B);{let L=I(()=>Fe({variant:"ghost"}));re(R,()=>$e,(H,s)=>{s(H,{get class(){return l(L)},get onclick(){return e.oncancel},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,m())),u(S,w)},$$slots:{default:!0}})})}var Z=Pe(R,2);{let L=I(()=>Fe({variant:f()?"destructive":"accent"}));re(Z,()=>et,(H,s)=>{s(H,{get class(){return l(L)},get onclick(){return e.onconfirm},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,y())),u(S,w)},$$slots:{default:!0}})})}u(V,B)},$$slots:{default:!0}})}),u(d,M)},$$slots:{default:!0}})}),u(p,i)},$$slots:{default:!0}})}),u(v,F),ee()}export{jt as C,Ht as I,kt as P,Dt as R,Nt as S,Zt as T,Tt as a,Lt as b,Ut as c,zt as d,Vt as e,Oe as p};
1
+ import{c as K,a as u,p as oe,b as q,s as ue,f as Ae,t as ve}from"./COik51fd.js";import{p as $,a0 as O,ae as X,b as ee,g as l,c as T,r as k,a4 as I,e as Re,f as De,s as be,l as we,d as ye,a as Te,n as ce,m as Ce,t as fe,a3 as Pe}from"./BenpwI6m.js";import{s as x,a as U}from"./CStpN6HQ.js";import{i as Y}from"./Dvv4bkXH.js";import{p as r,r as ae,s as pe,l as Se}from"./wWaI7EIw.js";import{p as D,M as ke,h,t as Ke,f as se,H as Le,m as Q,I as He,J as Ie,q as xe,r as Ee,i as Ne,K as Ue,L as ze,s as ge,N as Ve,F as Be,O as Ze,Q as je,R as We,T as Ye,A as qe,u as Ge,v as Je,x as Qe,y as Xe,z as $e,B as et,G as tt}from"./DkilSMcP.js";import{r as Me}from"./fgXuQcv7.js";import{i as rt}from"./BSBiehHY.js";import{c as re}from"./CbwDFpOn.js";import{a as Fe}from"./DAD7hf2c.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);ke.create({open:h(()=>c(),f=>{c(f),y()?.(f)}),onOpenChangeComplete:h(()=>m())}),Ke(v,{children:(f,F)=>{var P=K(),g=O(P);x(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=I(()=>Q(g,C.props));var A=K(),i=O(A);{var t=n=>{var d=K(),o=O(d);x(o,()=>e.child,()=>({props:l(p)})),u(n,d)},a=n=>{var d=ot();U(d,()=>({...l(p)}));var o=T(d);x(o,()=>e.children??X),k(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=He.create({id:h(()=>m()),ref:h(()=>y(),i=>y(i))}),P=I(()=>Q(f,F.props));var g=K(),C=O(g);{var p=i=>{var t=K(),a=O(t);x(a,()=>e.child,()=>({props:l(P)})),u(i,t)},A=i=>{var t=st();U(t,()=>({...l(P)}));var a=T(t);x(a,()=>e.children??X),k(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=Ie.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),_=ze[o.parentMenu.root.opts.dir.current].includes(s.key);S&&_&&(o.parentMenu.onClose(),o.parentMenu.triggerNode?.focus(),s.preventDefault())}const z=I(()=>o.parentMenu.root.getBitsAttr("sub-content")),b=I(()=>Q(d,o.props,{side:a(),onkeydown:M,[l(z)]:""}));function G(s){A()(s),!s.defaultPrevented&&(s.preventDefault(),o.parentMenu.root.isUsingKeyboard&&o.parentMenu.contentNode&&Ue.dispatch(o.parentMenu.contentNode))}function J(s){i()(s),!s.defaultPrevented&&s.preventDefault()}function V(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&&Ne(s.target)&&s.target.id!==o.parentMenu.triggerNode?.id&&o.parentMenu.onClose()}var R=K(),Z=O(R);{var L=s=>{xe(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:V,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let j=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(j(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=it();U(E,()=>({...le()}));var W=T(E);U(W,()=>({...l(ie)}));var ne=T(W);x(ne,()=>e.children??X),k(W),k(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))},H=s=>{Ee(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:V,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let j=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(j(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=dt();U(E,()=>({...le()}));var W=T(E);U(W,()=>({...l(ie)}));var ne=T(W);x(ne,()=>e.children??X),k(W),k(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))};Y(Z,s=>{P()?s(L):P()||s(H,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=Ve.create({disabled:h(()=>m()),onSelect:h(()=>F()),id:h(()=>y()),ref:h(()=>f(),A=>f(A)),openDelay:h(()=>P())}),p=I(()=>Q(g,C.props));Be(v,{get id(){return y()},get ref(){return C.opts.ref},children:(A,i)=>{var t=K(),a=O(t);{var n=o=>{var M=K(),z=O(M);x(z,()=>e.child,()=>({props:l(p)})),u(o,M)},d=o=>{var M=ct();U(M,()=>({...l(p)}));var z=T(M);x(z,()=>e.children??X),k(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=Ze.create({variant:h(()=>F()),dir:h(()=>y()),onClose:()=>{c(!1),m()(!1)}});je.create({open:h(()=>c(),g=>{c(g),m()(g)}),onOpenChangeComplete:h(()=>f())},P),Ke(v,{children:(g,C)=>{var p=K(),A=O(p);x(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=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),b=>m(b)),onCloseAutoFocus:h(()=>g())}),t=I(()=>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=O(d);{var M=b=>{xe(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,V)=>{let te=()=>V?.().props,B=()=>V?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var Z=K(),L=O(Z);{var H=S=>{var _=K(),w=O(_);{let j=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(j))}u(S,_)},s=S=>{var _=pt();U(_,()=>({...B()}));var w=T(_);U(w,()=>({...l(R)}));var j=T(w);x(j,()=>e.children??X),k(w),k(_),u(S,_)};Y(L,S=>{e.child?S(H):S(s,!1)})}u(J,Z)},$$slots:{popper:!0}}))},z=b=>{Ee(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,V)=>{let te=()=>V?.().props,B=()=>V?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var Z=K(),L=O(Z);{var H=S=>{var _=K(),w=O(_);{let j=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(j))}u(S,_)},s=S=>{var _=gt();U(_,()=>({...B()}));var w=T(_);U(w,()=>({...l(R)}));var j=T(w);x(j,()=>e.children??X),k(w),k(_),u(S,_)};Y(L,S=>{e.child?S(H):S(s,!1)})}u(J,Z)},$$slots:{popper:!0}}))};Y(o,b=>{C()?b(M):C()||b(z,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=I(()=>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=O(i);{var a=d=>{var o=K(),M=O(o);x(M,()=>e.child,()=>({props:l(C)})),u(d,o)},n=d=>{var o=ht();U(o,()=>({...l(C)}));var M=T(o);x(M,()=>e.children??X),k(o),u(d,o)};Y(t,d=>{e.child?d(a):d(n,!1)})}u(p,i)},$$slots:{default:!0}}),ee()}const Dt=vt,Tt=mt,kt=Ye,Lt=_t,Ht=at,Nt=lt,Ut=nt,zt=ft,Vt=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(z=>z.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=I(()=>{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 Oe=yt();Me.setPresenceHandler(v=>Oe.handlePresenceEvent(v));Me.addConnectHandler(()=>Oe.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>Oe.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 Zt(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);we(()=>(ye(c),ye(P())),()=>{be(m,c["aria-label"]||c["aria-labelledby"]||P())}),we(()=>(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})}),Te(),rt();var g=bt();U(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=T(g);{var p=A=>{var i=Pt(),t=T(i,!0);k(i),fe(()=>ue(t,P())),u(A,i)};Y(C,A=>{P()&&A(p)})}ce(2),k(g),u(v,g),ee()}var Mt=q("<!> <!>",1),Ot=q("<!> <!>",1),wt=q("<!> <!>",1);function jt(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=O(F);re(P,()=>tt,(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=O(i);re(t,()=>qe,(a,n)=>{n(a,{children:(d,o)=>{var M=wt(),z=O(M);re(z,()=>Ge,(G,J)=>{J(G,{children:(V,te)=>{var B=Mt(),R=O(B);re(R,()=>Je,(L,H)=>{H(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.title)),u(s,_)},$$slots:{default:!0}})});var Z=Pe(R,2);re(Z,()=>Qe,(L,H)=>{H(L,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.message)),u(s,_)},$$slots:{default:!0}})}),u(V,B)},$$slots:{default:!0}})});var b=Pe(z,2);re(b,()=>Xe,(G,J)=>{J(G,{children:(V,te)=>{var B=Ot(),R=O(B);{let L=I(()=>Fe({variant:"ghost"}));re(R,()=>$e,(H,s)=>{s(H,{get class(){return l(L)},get onclick(){return e.oncancel},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,m())),u(S,w)},$$slots:{default:!0}})})}var Z=Pe(R,2);{let L=I(()=>Fe({variant:f()?"destructive":"accent"}));re(Z,()=>et,(H,s)=>{s(H,{get class(){return l(L)},get onclick(){return e.onconfirm},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,y())),u(S,w)},$$slots:{default:!0}})})}u(V,B)},$$slots:{default:!0}})}),u(d,M)},$$slots:{default:!0}})}),u(p,i)},$$slots:{default:!0}})}),u(v,F),ee()}export{Lt as C,Ht as I,kt as P,Dt as R,Nt as S,Tt as T,Zt as a,jt as b,Ut as c,zt as d,Vt as e,Oe as p};
@@ -1 +1 @@
1
- import{a as c,s as M,f as b}from"./usxM-xOh.js";import{i as C}from"./DIBaaeCL.js";import{p as k,l as v,s as u,d as n,g as s,a as R,c as p,n as A,r as m,b as B,m as g,t as N}from"./CCA2E2CK.js";import{i as P}from"./yUs562n0.js";import{a as Y}from"./DkuxRPZv.js";import{l as h,p as _}from"./DHholpIc.js";var j=b("<title> </title>"),q=b('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function L(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),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})}),R(),C();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=j(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}var D=b("<title> </title>"),E=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 O(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),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})}),R(),C();var r=E();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=D(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}export{O as C,L as a};
1
+ import{a as c,s as M,f as b}from"./COik51fd.js";import{i as C}from"./BSBiehHY.js";import{p as k,l as v,s as u,d as n,g as s,a as R,c as p,n as A,r as m,b as B,m as g,t as N}from"./BenpwI6m.js";import{i as P}from"./Dvv4bkXH.js";import{a as Y}from"./CStpN6HQ.js";import{l as h,p as _}from"./wWaI7EIw.js";var j=b("<title> </title>"),q=b('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function L(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),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})}),R(),C();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=j(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}var D=b("<title> </title>"),E=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 O(x,t){const e=h(t,["children","$$slots","$$events","$$legacy"]),w=h(e,["size","title"]);k(t,!1);const a=g(),d=g();let f=_(t,"size",8,16),i=_(t,"title",8,void 0);v(()=>(n(e),n(i())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||i())}),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})}),R(),C();var r=E();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...w}));var z=p(r);{var $=l=>{var o=D(),y=p(o,!0);m(o),N(()=>M(y,i())),c(l,o)};P(z,l=>{i()&&l($)})}A(),m(r),c(x,r),B()}export{O as C,L as a};
@@ -1 +1 @@
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"./CCA2E2CK.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
+ 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"./BenpwI6m.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 +1 @@
1
- import{a as c,s as A,f as b}from"./usxM-xOh.js";import{i as M}from"./DIBaaeCL.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"./CCA2E2CK.js";import{i as H}from"./yUs562n0.js";import{a as N}from"./DkuxRPZv.js";import{l as h,p as _}from"./DHholpIc.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
+ import{a as c,s as A,f as b}from"./COik51fd.js";import{i as M}from"./BSBiehHY.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"./BenpwI6m.js";import{i as H}from"./Dvv4bkXH.js";import{a as N}from"./CStpN6HQ.js";import{l as h,p as _}from"./wWaI7EIw.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 +1 @@
1
- import{e as i,f as y,g as r,s as n}from"./CCA2E2CK.js";import{g as l}from"./csGnu8Rb.js";import{d as v,u as V,c as F,f as h}from"./BgRr0V7g.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
1
+ import{e as i,f as y,g as r,s as n}from"./BenpwI6m.js";import{g as l}from"./BvwzgaXa.js";import{d as v,u as V,c as F,f as h}from"./BjAmYrTY.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CwUXqlAx.js","./CCA2E2CK.js","./BgRr0V7g.js","./BKHfe9E-.js"])))=>i.map(i=>d[i]);
2
- import{_ as G}from"./PPVm8Dsz.js";import{aX as X,a1 as C,aW as Y,e as S,f as P,g,s as c,a7 as D,a4 as q}from"./CCA2E2CK.js";import{i as z}from"./csGnu8Rb.js";import{i as H,w as h}from"./BgRr0V7g.js";import{a as K}from"./B1c_qzmY.js";import{n as $}from"./BVhp5b7F.js";import{l as Q,o as N}from"./usxM-xOh.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 X(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 Y(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,W=[],I=null,_=1e3,k=S(!1),F=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(F,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"){G(()=>import("./CwUXqlAx.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 W)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){W.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(F)},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
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DC1nGnOD.js","./BenpwI6m.js","./BjAmYrTY.js","./CieeblIr.js"])))=>i.map(i=>d[i]);
2
+ import{_ as G}from"./PPVm8Dsz.js";import{aX as X,a1 as C,aW as Y,e as S,f as P,g,s as c,a7 as D,a4 as q}from"./BenpwI6m.js";import{i as z}from"./BvwzgaXa.js";import{i as H,w as h}from"./BjAmYrTY.js";import{a as K}from"./B0qTqRR8.js";import{n as $}from"./CDFdgZ9U.js";import{l as Q,o as N}from"./COik51fd.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 X(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 Y(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,W=[],I=null,_=1e3,k=S(!1),F=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(F,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"){G(()=>import("./DC1nGnOD.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 W)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){W.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(F)},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 +1 @@
1
- import{h as O,i as y,E as J,j as H,k as b,o as Z,q as $,g as V,u as j,H as ee,v as U,w as F,x as D,C as re,y as ne,z as X,A as fe,B as m,D as L,F as ae,G as ie,I as le,J as ue,K as B,L as se,M as oe,m as te,N as Y,O as ve,P as K,Q as P,R as z,S as de,T as ce,U as pe,V as _e,W as he,X as ge}from"./CCA2E2CK.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];P(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;_e(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)he(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&J)!==0;if(a){var t=e;u=H?b(Z(t)):t.appendChild(O())}H&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?K(n):(n.f^=m,k(n,null,u)):P(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(H){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){H&&D.nodeType===re&&D.data===ne&&(u=D,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),H&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,H&&(u=D)}function M(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&pe)!==0,u=i.length,p=e.items,a=M(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)k(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),k(r,N,l),n=r,o=[],c=[],a=M(n.next);continue}if((r.f&z)!==0&&(K(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)k(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),k(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=M(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=M(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=M(a.next);var w=_.length;if(w>0){var R=(d&J)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&de(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function k(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=ge(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
1
+ import{h as O,i as y,E as J,j as H,k as b,o as Z,q as $,g as V,u as j,H as ee,v as U,w as F,x as D,C as re,y as ne,z as X,A as fe,B as m,D as L,F as ae,G as ie,I as le,J as ue,K as B,L as se,M as oe,m as te,N as Y,O as ve,P as K,Q as P,R as z,S as de,T as ce,U as pe,V as _e,W as he,X as ge}from"./BenpwI6m.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];P(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;_e(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)he(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&J)!==0;if(a){var t=e;u=H?b(Z(t)):t.appendChild(O())}H&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?K(n):(n.f^=m,k(n,null,u)):P(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(H){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){H&&D.nodeType===re&&D.data===ne&&(u=D,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),H&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,H&&(u=D)}function M(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&pe)!==0,u=i.length,p=e.items,a=M(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)k(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),k(r,N,l),n=r,o=[],c=[],a=M(n.next);continue}if((r.f&z)!==0&&(K(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)k(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),k(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=M(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=M(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=M(a.next);var w=_.length;if(w>0){var R=(d&J)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&de(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function k(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=ge(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
@@ -1 +1 @@
1
- import{a as p,s as H,f as b}from"./usxM-xOh.js";import{i as M}from"./DIBaaeCL.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./CCA2E2CK.js";import{i as B}from"./yUs562n0.js";import{a as C}from"./DkuxRPZv.js";import{l as v,p as g}from"./DHholpIc.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
1
+ import{a as p,s as H,f as b}from"./COik51fd.js";import{i as M}from"./BSBiehHY.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./BenpwI6m.js";import{i as B}from"./Dvv4bkXH.js";import{a as C}from"./CStpN6HQ.js";import{l as v,p as g}from"./wWaI7EIw.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
@@ -1 +1 @@
1
- import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./CCA2E2CK.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
1
+ import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./BenpwI6m.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.D4NmzO9T.js","../chunks/PPVm8Dsz.js","../chunks/usxM-xOh.js","../chunks/CCA2E2CK.js","../chunks/yUs562n0.js","../chunks/DkuxRPZv.js","../chunks/BKHfe9E-.js","../chunks/DD3_vCgV.js","../chunks/csGnu8Rb.js","../chunks/BgRr0V7g.js","../chunks/BVhp5b7F.js","../chunks/B1c_qzmY.js","../chunks/BdNoKWAr.js","../chunks/y7AXCX7T.js","../chunks/CwUXqlAx.js","../chunks/DHholpIc.js","../chunks/D-H9HeD_.js","../chunks/BpdrS9kL.js","../chunks/NuvuAeCX.js","../chunks/DIBaaeCL.js","../assets/Toaster.rN8r_Hzv.css","../chunks/DLZAjAct.js","../assets/0.n3qM-DRk.css","../nodes/1.B49NrV3g.js","../nodes/2.DaqdIYKU.js","../chunks/Dgs7g6Xf.js","../chunks/BZ2Q53D5.js","../chunks/CdeYcEuU.js","../chunks/C74mA5aC.js","../chunks/1BE_eYuA.js","../chunks/oz3vOf3Y.js","../chunks/e8QVPHqJ.js","../chunks/D8mTIH9Y.js","../assets/Copy.FS8bdfxr.css","../chunks/DeyUjeaz.js","../chunks/CwnWYvfz.js","../chunks/pQmxOXKv.js","../chunks/C1S8fyYX.js","../assets/2.usgqms6b.css","../nodes/3.Q_RC4D9P.js","../chunks/Mtmwulo1.js","../assets/ViewToolbar.CnlOM0gQ.css","../assets/3.zsEg_MDN.css","../nodes/4.CIDSQYhF.js","../chunks/Ca2kuiZq.js","../chunks/DO03XMS-.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.B3dbj90y.css","../nodes/5.U-zEu0Mw.js","../assets/5.DFeGxLYf.css","../nodes/6.SYsyu9GD.js","../assets/6.CquhUpOu.css","../nodes/7.BLgQGI-C.js","../chunks/DYLAPjKD.js","../assets/7.D55lTQ_F.css","../nodes/8.67Laxdj-.js","../assets/8.DKYjn_lM.css","../nodes/9.D0aRCiZD.js","../assets/9.CT4xL4K3.css","../nodes/10.OXZpT8w9.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/CCA2E2CK.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/usxM-xOh.js";import{i as D,b as R}from"../chunks/yUs562n0.js";import{c as A}from"../chunks/NuvuAeCX.js";import{p as L}from"../chunks/DHholpIc.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.D4NmzO9T.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>i(()=>import("../nodes/1.B49NrV3g.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.DaqdIYKU.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,9,10,11,27,28,29,21,30,31,32,33,34,12,35,36,37,38]),import.meta.url),()=>i(()=>import("../nodes/3.Q_RC4D9P.js"),__vite__mapDeps([39,2,3,4,17,5,6,32,15,8,40,18,19,25,10,9,13,31,41,14,21,28,42]),import.meta.url),()=>i(()=>import("../nodes/4.CIDSQYhF.js"),__vite__mapDeps([43,9,3,6,1,2,4,17,18,15,8,44,19,5,40,32,25,10,13,31,41,27,45,46,34,12,11,29,26,47,37,48]),import.meta.url),()=>i(()=>import("../nodes/5.U-zEu0Mw.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.SYsyu9GD.js"),__vite__mapDeps([51,2,3,40,5,4,6,17,18,32,15,8,19,25,10,9,13,31,41,1,27,37,52]),import.meta.url),()=>i(()=>import("../nodes/7.BLgQGI-C.js"),__vite__mapDeps([53,2,3,15,44,8,19,4,5,6,31,18,32,17,45,46,30,33,35,14,9,29,26,54,1,11,21,10,55]),import.meta.url),()=>i(()=>import("../nodes/8.67Laxdj-.js"),__vite__mapDeps([56,2,3,4,40,5,6,17,18,32,15,8,19,25,10,9,13,31,41,27,36,26,45,46,54,35,57]),import.meta.url),()=>i(()=>import("../nodes/9.D0aRCiZD.js"),__vite__mapDeps([58,2,3,4,7,8,11,6,32,5,15,35,59]),import.meta.url),()=>i(()=>import("../nodes/10.OXZpT8w9.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,9,32,5,15,35,61]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.4O4jT99H.js","../chunks/PPVm8Dsz.js","../chunks/COik51fd.js","../chunks/BenpwI6m.js","../chunks/Dvv4bkXH.js","../chunks/CStpN6HQ.js","../chunks/CieeblIr.js","../chunks/DN_2uSjw.js","../chunks/BvwzgaXa.js","../chunks/BjAmYrTY.js","../chunks/CDFdgZ9U.js","../chunks/B0qTqRR8.js","../chunks/fgXuQcv7.js","../chunks/FQq1g0yX.js","../chunks/DC1nGnOD.js","../chunks/wWaI7EIw.js","../chunks/DkoZfYJt.js","../chunks/h2NtTN7K.js","../chunks/CbwDFpOn.js","../chunks/BSBiehHY.js","../assets/Toaster.rN8r_Hzv.css","../chunks/owhS8Kw_.js","../assets/0.n3qM-DRk.css","../nodes/1.YWRiTXrL.js","../nodes/2.ViGoUIc6.js","../chunks/CLw5zKi0.js","../chunks/DtsqpIgr.js","../chunks/CdeYcEuU.js","../chunks/DwG0Us6L.js","../chunks/CX_fJaNF.js","../chunks/Dt6bIUGm.js","../chunks/DkilSMcP.js","../chunks/DAD7hf2c.js","../chunks/BasUgd5N.js","../chunks/DQmnydAv.js","../assets/Copy.FS8bdfxr.css","../chunks/CyzLSh3b.js","../chunks/-2EMa1ML.js","../assets/2.usgqms6b.css","../nodes/3.BbexcpeM.js","../chunks/CvAezToa.js","../assets/ViewToolbar.CnlOM0gQ.css","../assets/3.zsEg_MDN.css","../nodes/4.C2H0fLm7.js","../chunks/DLe_R6S0.js","../chunks/B17cx9Sm.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.DfrppcF_.css","../nodes/5.BQEbSnbz.js","../assets/5.DFeGxLYf.css","../nodes/6.ChylSlHg.js","../assets/6.CquhUpOu.css","../nodes/7.DxQsYoNz.js","../chunks/DkyV2KO_.js","../assets/7.D55lTQ_F.css","../nodes/8.C6L2M9te.js","../assets/8.BrXOeHJA.css","../nodes/9.BzQNdaYi.js","../assets/9.CT4xL4K3.css","../nodes/10.D-El_Hsa.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/BenpwI6m.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/COik51fd.js";import{i as D,b as R}from"../chunks/Dvv4bkXH.js";import{c as A}from"../chunks/CbwDFpOn.js";import{p as L}from"../chunks/wWaI7EIw.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.4O4jT99H.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>i(()=>import("../nodes/1.YWRiTXrL.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.ViGoUIc6.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,9,10,11,27,28,29,21,30,31,32,12,33,34,35,36,37,38]),import.meta.url),()=>i(()=>import("../nodes/3.BbexcpeM.js"),__vite__mapDeps([39,2,3,4,17,5,6,32,15,8,40,18,19,25,10,9,13,31,41,14,21,28,42]),import.meta.url),()=>i(()=>import("../nodes/4.C2H0fLm7.js"),__vite__mapDeps([43,9,3,6,1,2,4,17,18,15,8,44,19,5,40,32,25,10,13,31,41,27,45,46,30,12,11,29,26,47,37,48]),import.meta.url),()=>i(()=>import("../nodes/5.BQEbSnbz.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.ChylSlHg.js"),__vite__mapDeps([51,2,3,40,5,4,6,17,18,32,15,8,19,25,10,9,13,31,41,1,27,37,52]),import.meta.url),()=>i(()=>import("../nodes/7.DxQsYoNz.js"),__vite__mapDeps([53,2,3,15,44,8,19,4,5,6,31,18,32,17,45,46,34,35,33,14,9,29,26,54,1,11,21,10,55]),import.meta.url),()=>i(()=>import("../nodes/8.C6L2M9te.js"),__vite__mapDeps([56,2,3,4,40,5,6,17,18,32,15,8,19,25,10,9,13,31,41,27,36,26,45,46,54,33,57]),import.meta.url),()=>i(()=>import("../nodes/9.BzQNdaYi.js"),__vite__mapDeps([58,2,3,4,7,8,11,6,32,5,15,33,59]),import.meta.url),()=>i(()=>import("../nodes/10.D-El_Hsa.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,9,32,5,15,33,61]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BvwzgaXa.js";export{o as load_css,r as start};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/C1S8fyYX.js","../chunks/CCA2E2CK.js","../chunks/csGnu8Rb.js","../chunks/BVhp5b7F.js","../chunks/BgRr0V7g.js","../chunks/BKHfe9E-.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
- import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/usxM-xOh.js";import{p as E,l as $,a as V,g as t,c as w,n as k,r as M,b as P,m as x,s,d as f,t as C,a1 as re,e as O,f as B,aW as G,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/CCA2E2CK.js";import{i as R}from"../chunks/yUs562n0.js";import{a as D,b as de,s as ce}from"../chunks/DkuxRPZv.js";import{h as ue}from"../chunks/DD3_vCgV.js";import{g as Y}from"../chunks/csGnu8Rb.js";import{w as U}from"../chunks/BgRr0V7g.js";import{n as me}from"../chunks/BVhp5b7F.js";import{a as L}from"../chunks/B1c_qzmY.js";import{r as J}from"../chunks/BdNoKWAr.js";import{v as he}from"../chunks/y7AXCX7T.js";import{insightsStore as W}from"../chunks/CwUXqlAx.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/DHholpIc.js";import{T as ve}from"../chunks/D-H9HeD_.js";import{R as ge}from"../chunks/DLZAjAct.js";import{i as F}from"../chunks/DIBaaeCL.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function Ge(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));G("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}G("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/C1S8fyYX.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{W.briefLoaded&&U.applyUserAccentColor(W.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),W.load(),J.connect()),!u&&t(h)&&(s(h,null),J.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:j,authEnabled:X,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(X&&!j&&!b){Y("/login");return}if(j&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var q=w(H);{var K=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(q,u=>{L.loading||u(K)})}var Q=ie(q,2);Se(Q,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{Ge as component};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/-2EMa1ML.js","../chunks/BenpwI6m.js","../chunks/BvwzgaXa.js","../chunks/CDFdgZ9U.js","../chunks/BjAmYrTY.js","../chunks/CieeblIr.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
+ import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/COik51fd.js";import{p as E,l as $,a as V,g as t,c as w,n as k,r as M,b as P,m as x,s,d as f,t as C,a1 as re,e as O,f as B,aW as G,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/BenpwI6m.js";import{i as R}from"../chunks/Dvv4bkXH.js";import{a as D,b as de,s as ce}from"../chunks/CStpN6HQ.js";import{h as ue}from"../chunks/DN_2uSjw.js";import{g as Y}from"../chunks/BvwzgaXa.js";import{w as U}from"../chunks/BjAmYrTY.js";import{n as me}from"../chunks/CDFdgZ9U.js";import{a as L}from"../chunks/B0qTqRR8.js";import{r as J}from"../chunks/fgXuQcv7.js";import{v as he}from"../chunks/FQq1g0yX.js";import{insightsStore as W}from"../chunks/DC1nGnOD.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/wWaI7EIw.js";import{T as ve}from"../chunks/DkoZfYJt.js";import{R as ge}from"../chunks/owhS8Kw_.js";import{i as F}from"../chunks/BSBiehHY.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function Ge(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));G("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}G("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/-2EMa1ML.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{W.briefLoaded&&U.applyUserAccentColor(W.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),W.load(),J.connect()),!u&&t(h)&&(s(h,null),J.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:j,authEnabled:X,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(X&&!j&&!b){Y("/login");return}if(j&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var q=w(H);{var K=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(q,u=>{L.loading||u(K)})}var Q=ie(q,2);Se(Q,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{Ge as component};
@@ -1 +1 @@
1
- import{a as u,b as h,s}from"../chunks/usxM-xOh.js";import{i as g}from"../chunks/DIBaaeCL.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/CCA2E2CK.js";import{s as b,p}from"../chunks/csGnu8Rb.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};
1
+ import{a as u,b as h,s}from"../chunks/COik51fd.js";import{i as g}from"../chunks/BSBiehHY.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/BenpwI6m.js";import{s as b,p}from"../chunks/BvwzgaXa.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};
@@ -1 +1 @@
1
- import{g as H,a as w,t as J,s as $,b as I}from"../chunks/usxM-xOh.js";import{p as K,t as q,b as M,ac as O,s as r,g as a,e as o,a3 as l,c as t,a4 as Q,ad as R,r as s,n as A}from"../chunks/CCA2E2CK.js";import{i as T}from"../chunks/yUs562n0.js";import{h as V}from"../chunks/DD3_vCgV.js";import{g as W}from"../chunks/csGnu8Rb.js";import{a as B}from"../chunks/B1c_qzmY.js";import{w as X}from"../chunks/BgRr0V7g.js";import{B as Z}from"../chunks/D8mTIH9Y.js";import{I as S}from"../chunks/CwnWYvfz.js";var ee=I('<p class="error-msg svelte-g40i6i"> </p>'),ae=I('<div class="setup-page svelte-g40i6i"><div class="setup-card svelte-g40i6i"><div class="logo svelte-g40i6i"><div class="logo-icon svelte-g40i6i"> </div> <span class="logo-text svelte-g40i6i"> </span></div> <p class="subtitle svelte-g40i6i">Create your admin account to get started.</p> <form class="svelte-g40i6i"><label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Name</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Email</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Password</span> <!> <span class="field-hint svelte-g40i6i">At least 8 characters</span></label> <!> <!></form></div></div>');function ve(P,D){K(D,!0);const n=Q(()=>B.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function E(e){e.preventDefault(),r(p,""),r(c,!0);try{await B.setup(a(u),a(v),a(d)||void 0),X.load(),W("/")}catch(i){r(p,i.message||"Setup failed",!0)}finally{r(c,!1)}}var m=ae();V("g40i6i",e=>{O(()=>{R.title=`Setup — ${a(n)??""}`})});var k=t(m),f=t(k),g=t(f),L=t(g,!0);s(g);var C=l(g,2),U=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),Y=l(t(_),2);S(Y,{type:"text",placeholder:"Your name",autocomplete:"name",autofocus:!0,class:"field-input",get value(){return a(d)},set value(e){r(d,e,!0)}}),s(_);var h=l(_,2),j=l(t(h),2);S(j,{type:"email",required:!0,autocomplete:"email",class:"field-input",get value(){return a(u)},set value(e){r(u,e,!0)}}),s(h);var x=l(h,2),z=l(t(x),2);S(z,{type:"password",required:!0,minlength:8,autocomplete:"new-password",class:"field-input",get value(){return a(v)},set value(e){r(v,e,!0)}}),A(2),s(x);var N=l(x,2);{var F=e=>{var i=ee(),y=t(i,!0);s(i),q(()=>$(y,a(p))),w(e,i)};T(N,e=>{a(p)&&e(F)})}var G=l(N,2);Z(G,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return a(c)},children:(e,i)=>{A();var y=J("Create account");w(e,y)},$$slots:{default:!0}}),s(b),s(k),s(m),q(e=>{$(L,e),$(U,a(n))},[()=>a(n).charAt(0).toUpperCase()]),H("submit",b,E),w(P,m),M()}export{ve as component};
1
+ import{g as H,a as w,t as J,s as $,b as I}from"../chunks/COik51fd.js";import{p as K,t as q,b as M,ac as O,s as r,g as a,e as o,a3 as l,c as t,a4 as Q,ad as R,r as s,n as A}from"../chunks/BenpwI6m.js";import{i as T}from"../chunks/Dvv4bkXH.js";import{h as V}from"../chunks/DN_2uSjw.js";import{g as W}from"../chunks/BvwzgaXa.js";import{a as B}from"../chunks/B0qTqRR8.js";import{w as X}from"../chunks/BjAmYrTY.js";import{B as Z}from"../chunks/DAD7hf2c.js";import{I as S}from"../chunks/BasUgd5N.js";var ee=I('<p class="error-msg svelte-g40i6i"> </p>'),ae=I('<div class="setup-page svelte-g40i6i"><div class="setup-card svelte-g40i6i"><div class="logo svelte-g40i6i"><div class="logo-icon svelte-g40i6i"> </div> <span class="logo-text svelte-g40i6i"> </span></div> <p class="subtitle svelte-g40i6i">Create your admin account to get started.</p> <form class="svelte-g40i6i"><label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Name</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Email</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Password</span> <!> <span class="field-hint svelte-g40i6i">At least 8 characters</span></label> <!> <!></form></div></div>');function ve(P,D){K(D,!0);const n=Q(()=>B.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function E(e){e.preventDefault(),r(p,""),r(c,!0);try{await B.setup(a(u),a(v),a(d)||void 0),X.load(),W("/")}catch(i){r(p,i.message||"Setup failed",!0)}finally{r(c,!1)}}var m=ae();V("g40i6i",e=>{O(()=>{R.title=`Setup — ${a(n)??""}`})});var k=t(m),f=t(k),g=t(f),L=t(g,!0);s(g);var C=l(g,2),U=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),Y=l(t(_),2);S(Y,{type:"text",placeholder:"Your name",autocomplete:"name",autofocus:!0,class:"field-input",get value(){return a(d)},set value(e){r(d,e,!0)}}),s(_);var h=l(_,2),j=l(t(h),2);S(j,{type:"email",required:!0,autocomplete:"email",class:"field-input",get value(){return a(u)},set value(e){r(u,e,!0)}}),s(h);var x=l(h,2),z=l(t(x),2);S(z,{type:"password",required:!0,minlength:8,autocomplete:"new-password",class:"field-input",get value(){return a(v)},set value(e){r(v,e,!0)}}),A(2),s(x);var N=l(x,2);{var F=e=>{var i=ee(),y=t(i,!0);s(i),q(()=>$(y,a(p))),w(e,i)};T(N,e=>{a(p)&&e(F)})}var G=l(N,2);Z(G,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return a(c)},children:(e,i)=>{A();var y=J("Create account");w(e,y)},$$slots:{default:!0}}),s(b),s(k),s(m),q(e=>{$(L,e),$(U,a(n))},[()=>a(n).charAt(0).toUpperCase()]),H("submit",b,E),w(P,m),M()}export{ve as component};