studiograph 1.3.40 → 1.3.41

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 (50) hide show
  1. package/dist/server/chrome/chrome.css +12 -2
  2. package/dist/server/chrome/chrome.js +2 -0
  3. package/dist/web/_app/immutable/chunks/{BrXfVLPD.js → 1vztr6_A.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{D6sUaay0.js → BKAD6OjK.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{BEqlCcV9.js → BUMhcVI4.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{BQZywpPo.js → BYurK5it.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{BIQIQ29u.js → BfQJK68W.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/BnPh5q8z.js +1 -0
  9. package/dist/web/_app/immutable/chunks/{GSiD5rb-.js → BnRUlL-K.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{BYSOAjj8.js → Brxs8A3C.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{CB0BGFXW.js → C10yLH79.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/CVtC7pYD.js +1 -0
  13. package/dist/web/_app/immutable/chunks/{C1RoOxRU.js → CYMV9O2_.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{C-ARUxRt.js → CgcfyvoD.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{BmKipDWm.js → D9BdHkd3.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/{DUJDFyU7.js → DSZYl5ah.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{CT4WYSCT.js → DVyuW48M.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/DcsyoxdJ.js +1 -0
  19. package/dist/web/_app/immutable/chunks/{BYgtSFKq.js → DfwW1gF2.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/{C-CLyBoI.js → DlkslpnI.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/{UjXrxZYE.js → DmLcKvmV.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/Dr5ZUnae.js +1 -0
  23. package/dist/web/_app/immutable/chunks/{B-KjI0ur.js → HzJbEnio.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{CP-3tjjf.js → KCOVknl_.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{DZiqytsh.js → SAMwKg4j.js} +2 -2
  26. package/dist/web/_app/immutable/chunks/{1oOHgkus.js → Y2eppfkg.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{BIOFTB1X.js → i19_CI-0.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/{CGZ5Stl2.js → l5w7mUkV.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{BYbm6UVc.js → yMbbhP0p.js} +1 -1
  30. package/dist/web/_app/immutable/entry/{app.DY3B0BAv.js → app.XU_YgnWA.js} +2 -2
  31. package/dist/web/_app/immutable/entry/start.CAaz5qLR.js +1 -0
  32. package/dist/web/_app/immutable/nodes/0.DItl_NOc.js +2 -0
  33. package/dist/web/_app/immutable/nodes/{1.BrCZrmQ_.js → 1.BpQpM5J2.js} +1 -1
  34. package/dist/web/_app/immutable/nodes/{2.BHi4MIKz.js → 2.XV7hn-Zl.js} +2 -2
  35. package/dist/web/_app/immutable/nodes/{3.CWZEHsQg.js → 3.SIkz45Vn.js} +1 -1
  36. package/dist/web/_app/immutable/nodes/{4.GWKae3Kp.js → 4.DLRJR_Kl.js} +3 -3
  37. package/dist/web/_app/immutable/nodes/{5.GDPvTx0H.js → 5.CNEXpiAO.js} +1 -1
  38. package/dist/web/_app/immutable/nodes/{6.DgNSELQB.js → 6.C_gXUJ0N.js} +1 -1
  39. package/dist/web/_app/immutable/nodes/{7.Dxt5eqKQ.js → 7.BQB8GkM4.js} +1 -1
  40. package/dist/web/_app/immutable/nodes/{8.BkJJwJre.js → 8.CnahDc8g.js} +1 -1
  41. package/dist/web/_app/immutable/nodes/{9._6hM-oc4.js → 9.CkQeSbeu.js} +1 -1
  42. package/dist/web/_app/version.json +1 -1
  43. package/dist/web/index.html +12 -12
  44. package/package.json +1 -1
  45. package/dist/web/_app/immutable/chunks/1WeD8Dgt.js +0 -1
  46. package/dist/web/_app/immutable/chunks/7VaB-I1z.js +0 -1
  47. package/dist/web/_app/immutable/chunks/RTf8Vhkc.js +0 -1
  48. package/dist/web/_app/immutable/chunks/qLcHE2VO.js +0 -1
  49. package/dist/web/_app/immutable/entry/start.DaacnCUG.js +0 -1
  50. package/dist/web/_app/immutable/nodes/0.BH7-kGf1.js +0 -10
@@ -1 +1 @@
1
- import{e as F,a as _,t as G,s as b,b as P}from"../chunks/BYgtSFKq.js";import{p as H,t as S,b as J,af as K,g as s,Y as v,a5 as l,ag as L,c as a,s as o,ah as M,r as t,n as O}from"../chunks/BYbm6UVc.js";import{i as Q}from"../chunks/DUJDFyU7.js";import{h as R}from"../chunks/C1RoOxRU.js";import{g as V}from"../chunks/7VaB-I1z.js";import{a as q}from"../chunks/C-CLyBoI.js";import{B as W}from"../chunks/BYSOAjj8.js";import{I}from"../chunks/B-KjI0ur.js";var X=P('<p class="error-msg svelte-1x05zx6"> </p>'),Z=P('<div class="login-page svelte-1x05zx6"><div class="login-card svelte-1x05zx6"><div class="logo svelte-1x05zx6"><div class="logo-icon svelte-1x05zx6"> </div> <span class="logo-text svelte-1x05zx6"> </span></div> <form class="svelte-1x05zx6"><label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Email</span> <!></label> <label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Password</span> <!></label> <!> <!></form></div></div>');function ne(k,B){H(B,!0);const p=L(()=>q.workspaceName||"Studiograph");let h=v(""),z=v(""),n=v(""),u=v(!1);async function E(e){e.preventDefault();const r=e.currentTarget,i=r.querySelector('input[type="email"]').value,Y=r.querySelector('input[type="password"]').value;o(n,""),o(u,!0);try{await q.login(i,Y),V("/")}catch(j){o(n,j.message||"Invalid credentials",!0)}finally{o(u,!1)}}var d=Z();R("1x05zx6",e=>{K(()=>{M.title=`Sign in — ${s(p)??""}`})});var y=a(d),c=a(y),m=a(c),N=a(m,!0);t(m);var $=l(m,2),A=a($,!0);t($),t(c);var f=l(c,2),x=a(f),C=l(a(x),2);I(C,{type:"email",required:!0,autocomplete:"email",autofocus:!0,class:"field-input",get value(){return s(h)},set value(e){o(h,e,!0)}}),t(x);var g=l(x,2),D=l(a(g),2);I(D,{type:"password",required:!0,autocomplete:"current-password",class:"field-input",get value(){return s(z)},set value(e){o(z,e,!0)}}),t(g);var w=l(g,2);{var T=e=>{var r=X(),i=a(r,!0);t(r),S(()=>b(i,s(n))),_(e,r)};Q(w,e=>{s(n)&&e(T)})}var U=l(w,2);W(U,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return s(u)},children:(e,r)=>{O();var i=G("Sign in");_(e,i)},$$slots:{default:!0}}),t(f),t(y),t(d),S(e=>{b(N,e),b(A,s(p))},[()=>s(p).charAt(0).toUpperCase()]),F("submit",f,E),_(k,d),J()}export{ne as component};
1
+ import{e as F,a as _,t as G,s as b,b as P}from"../chunks/DfwW1gF2.js";import{p as H,t as S,b as J,af as K,g as s,Y as v,a5 as l,ag as L,c as a,ah as M,r as t,s as o,n as O}from"../chunks/yMbbhP0p.js";import{i as Q}from"../chunks/DSZYl5ah.js";import{h as R}from"../chunks/CYMV9O2_.js";import{g as V}from"../chunks/DcsyoxdJ.js";import{a as q}from"../chunks/DlkslpnI.js";import{B as W}from"../chunks/Brxs8A3C.js";import{I}from"../chunks/HzJbEnio.js";var X=P('<p class="error-msg svelte-1x05zx6"> </p>'),Z=P('<div class="login-page svelte-1x05zx6"><div class="login-card svelte-1x05zx6"><div class="logo svelte-1x05zx6"><div class="logo-icon svelte-1x05zx6"> </div> <span class="logo-text svelte-1x05zx6"> </span></div> <form class="svelte-1x05zx6"><label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Email</span> <!></label> <label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Password</span> <!></label> <!> <!></form></div></div>');function ne(k,B){H(B,!0);const p=L(()=>q.workspaceName||"Studiograph");let h=v(""),z=v(""),n=v(""),u=v(!1);async function E(e){e.preventDefault();const r=e.currentTarget,i=r.querySelector('input[type="email"]').value,Y=r.querySelector('input[type="password"]').value;o(n,""),o(u,!0);try{await q.login(i,Y),V("/")}catch(j){o(n,j.message||"Invalid credentials",!0)}finally{o(u,!1)}}var d=Z();R("1x05zx6",e=>{K(()=>{M.title=`Sign in — ${s(p)??""}`})});var y=a(d),c=a(y),m=a(c),N=a(m,!0);t(m);var $=l(m,2),A=a($,!0);t($),t(c);var f=l(c,2),x=a(f),C=l(a(x),2);I(C,{type:"email",required:!0,autocomplete:"email",autofocus:!0,class:"field-input",get value(){return s(h)},set value(e){o(h,e,!0)}}),t(x);var g=l(x,2),D=l(a(g),2);I(D,{type:"password",required:!0,autocomplete:"current-password",class:"field-input",get value(){return s(z)},set value(e){o(z,e,!0)}}),t(g);var w=l(g,2);{var T=e=>{var r=X(),i=a(r,!0);t(r),S(()=>b(i,s(n))),_(e,r)};Q(w,e=>{s(n)&&e(T)})}var U=l(w,2);W(U,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return s(u)},children:(e,r)=>{O();var i=G("Sign in");_(e,i)},$$slots:{default:!0}}),t(f),t(y),t(d),S(e=>{b(N,e),b(A,s(p))},[()=>s(p).charAt(0).toUpperCase()]),F("submit",f,E),_(k,d),J()}export{ne as component};
@@ -1 +1 @@
1
- import{e as H,a as w,t as J,s as $,b as I}from"../chunks/BYgtSFKq.js";import{p as K,t as q,b as M,af as O,s as r,g as a,Y as o,a5 as l,c as t,ag as Q,ah as R,r as s,n as A}from"../chunks/BYbm6UVc.js";import{i as T}from"../chunks/DUJDFyU7.js";import{h as V}from"../chunks/C1RoOxRU.js";import{g as W}from"../chunks/7VaB-I1z.js";import{a as B}from"../chunks/C-CLyBoI.js";import{w as X}from"../chunks/C-ARUxRt.js";import{B as Z}from"../chunks/BYSOAjj8.js";import{I as S}from"../chunks/B-KjI0ur.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,Y){K(Y,!0);const n=Q(()=>B.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function D(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),E=t(g,!0);s(g);var C=l(g,2),L=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),U=l(t(_),2);S(U,{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=>{$(E,e),$(L,a(n))},[()=>a(n).charAt(0).toUpperCase()]),H("submit",b,D),w(P,m),M()}export{ve as component};
1
+ import{e as H,a as w,t as J,s as $,b as I}from"../chunks/DfwW1gF2.js";import{p as K,t as q,b as M,af as O,s as r,g as a,Y as o,a5 as l,c as t,ag as Q,ah as R,r as s,n as A}from"../chunks/yMbbhP0p.js";import{i as T}from"../chunks/DSZYl5ah.js";import{h as V}from"../chunks/CYMV9O2_.js";import{g as W}from"../chunks/DcsyoxdJ.js";import{a as B}from"../chunks/DlkslpnI.js";import{w as X}from"../chunks/CgcfyvoD.js";import{B as Z}from"../chunks/Brxs8A3C.js";import{I as S}from"../chunks/HzJbEnio.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,Y){K(Y,!0);const n=Q(()=>B.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function D(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),E=t(g,!0);s(g);var C=l(g,2),L=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),U=l(t(_),2);S(U,{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=>{$(E,e),$(L,a(n))},[()=>a(n).charAt(0).toUpperCase()]),H("submit",b,D),w(P,m),M()}export{ve as component};
@@ -1 +1 @@
1
- {"version":"1774652036181"}
1
+ {"version":"1774652592367"}
@@ -7,31 +7,31 @@
7
7
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
8
8
  <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
9
9
  <link rel="stylesheet" href="/api/chrome/chrome.css">
10
- <link href="/_app/immutable/entry/start.DaacnCUG.js" rel="modulepreload">
11
- <link href="/_app/immutable/chunks/7VaB-I1z.js" rel="modulepreload">
12
- <link href="/_app/immutable/chunks/BYbm6UVc.js" rel="modulepreload">
13
- <link href="/_app/immutable/chunks/RTf8Vhkc.js" rel="modulepreload">
14
- <link href="/_app/immutable/entry/app.DY3B0BAv.js" rel="modulepreload">
10
+ <link href="/_app/immutable/entry/start.CAaz5qLR.js" rel="modulepreload">
11
+ <link href="/_app/immutable/chunks/DcsyoxdJ.js" rel="modulepreload">
12
+ <link href="/_app/immutable/chunks/yMbbhP0p.js" rel="modulepreload">
13
+ <link href="/_app/immutable/chunks/CVtC7pYD.js" rel="modulepreload">
14
+ <link href="/_app/immutable/entry/app.XU_YgnWA.js" rel="modulepreload">
15
15
  <link href="/_app/immutable/chunks/PPVm8Dsz.js" rel="modulepreload">
16
- <link href="/_app/immutable/chunks/BYgtSFKq.js" rel="modulepreload">
17
- <link href="/_app/immutable/chunks/DUJDFyU7.js" rel="modulepreload">
18
- <link href="/_app/immutable/chunks/CP-3tjjf.js" rel="modulepreload">
19
- <link href="/_app/immutable/chunks/CT4WYSCT.js" rel="modulepreload">
16
+ <link href="/_app/immutable/chunks/DfwW1gF2.js" rel="modulepreload">
17
+ <link href="/_app/immutable/chunks/DSZYl5ah.js" rel="modulepreload">
18
+ <link href="/_app/immutable/chunks/KCOVknl_.js" rel="modulepreload">
19
+ <link href="/_app/immutable/chunks/DVyuW48M.js" rel="modulepreload">
20
20
 
21
21
  </head>
22
22
  <body data-sveltekit-preload-data="hover" data-sg-workspace="true">
23
23
  <div style="display: contents">
24
24
  <script>
25
25
  {
26
- __sveltekit_i33t5o = {
26
+ __sveltekit_10vodtp = {
27
27
  base: ""
28
28
  };
29
29
 
30
30
  const element = document.currentScript.parentElement;
31
31
 
32
32
  Promise.all([
33
- import("/_app/immutable/entry/start.DaacnCUG.js"),
34
- import("/_app/immutable/entry/app.DY3B0BAv.js")
33
+ import("/_app/immutable/entry/start.CAaz5qLR.js"),
34
+ import("/_app/immutable/entry/app.XU_YgnWA.js")
35
35
  ]).then(([kit, app]) => {
36
36
  kit.start(app, element);
37
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiograph",
3
- "version": "1.3.40",
3
+ "version": "1.3.41",
4
4
  "description": "Team-based AI agent platform with Git-backed knowledge graphs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1 +0,0 @@
1
- import{$ as _,z as v,a0 as b,a1 as i,a2 as m,a3 as h,h as y}from"./BYbm6UVc.js";function E(a,l,u=l){var f=new WeakSet;_(a,"input",async r=>{var e=r?a.defaultValue:a.value;if(e=t(a)?o(e):e,u(e),v!==null&&f.add(v),await b(),e!==(e=l())){var d=a.selectionStart,s=a.selectionEnd,n=a.value.length;if(a.value=e??"",s!==null){var c=a.value.length;d===s&&s===n&&c>n?(a.selectionStart=c,a.selectionEnd=c):(a.selectionStart=d,a.selectionEnd=Math.min(s,c))}}}),(y&&a.defaultValue!==a.value||i(l)==null&&a.value)&&(u(t(a)?o(a.value):a.value),v!==null&&f.add(v)),m(()=>{var r=l();if(a===document.activeElement){var e=h??v;if(f.has(e))return}t(a)&&r===o(a.value)||a.type==="date"&&!r&&!a.value||r!==a.value&&(a.value=r??"")})}function t(a){var l=a.type;return l==="number"||l==="range"}function o(a){return a===""?null:+a}export{E as b};
@@ -1 +0,0 @@
1
- import{a0 as J,bA as ot}from"./BYbm6UVc.js";import{c as st,p as S,u as Ke,i as we,b as x,d as it,r as ye,a as lt,m as ct,n as ft,o as Fe,s as C,e as de,f as ut,S as He,N as F,H as $,g as dt,h as Be,j as he,k as X,l as le,P as ht,q as D,t as Me,v as Ve,w as pt,x as je}from"./RTf8Vhkc.js";class be{constructor(t,a){this.status=t,typeof a=="string"?this.body={message:a}:a?this.body=a:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class ke{constructor(t,a){this.status=t,this.location=a}}class Ee extends Error{constructor(t,a,n){super(n),this.status=t,this.text=a}}const _t=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function mt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${vt(e).map(n=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const i=n.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ce(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ce(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=_t.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ce(l)}).join("")}).join("")}/?$`),params:t}}function gt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(gt)}function wt(e,t,a){const n={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<t.length;s+=1){const l=t[s];let c=r[s-i];if(l.chained&&l.rest&&i&&(c=r.slice(s-i,s+1).filter(d=>d).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||a[l.matcher](c)){n[l.name]=c;const d=t[s+1],p=r[s+1];d&&!d.rest&&d.optional&&p&&l.chained&&(i=0),!d&&!p&&Object.keys(n).length===o.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return n}function ce(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function yt({nodes:e,server_loads:t,dictionary:a,matchers:n}){const r=new Set(t);return Object.entries(a).map(([s,[l,c,d]])=>{const{pattern:p,params:u}=mt(s),f={id:s,exec:h=>{const v=p.exec(h);if(v)return wt(v,u,n)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(i),leaf:o(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function Ye(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function $e(e,t,a=JSON.stringify){const n=a(t);try{sessionStorage[e]=n}catch{}}function bt(e){return e.filter(t=>t!=null)}function Se(e){return e instanceof be||e instanceof Ee?e.status:500}function kt(e){return e instanceof Ee?e.text:"Internal Error"}const Ne={spanContext(){return Et},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Et={traceId:"",spanId:"",traceFlags:0},St=new Set(["icon","shortcut icon","apple-touch-icon"]),O=Ye(Me)??{},H=Ye(Ve)??{},T={url:je({}),page:je({}),navigating:pt(null),updated:st()};function Re(e){O[e]=C()}function Rt(e,t){let a=e+1;for(;O[a];)delete O[a],a+=1;for(a=t+1;H[a];)delete H[a],a+=1}function B(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function pe(){}let xe,_e,Q,P,me,w;const Z=[],ee=[];let L=null;function te(){L?.fork?.then(e=>e?.discard()),L=null}const W=new Map,Ge=new Set,xt=new Set,K=new Set;let g={branch:[],error:null,url:null},We=!1,ae=!1,De=!0,M=!1,q=!1,Je=!1,Y=!1,Le,y,R,A;const ne=new Set;let fe;const re=new Map;async function Mt(e,t,a){globalThis.__sveltekit_i33t5o?.data&&globalThis.__sveltekit_i33t5o.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),xe=yt(e),P=document.documentElement,me=t,_e=e.nodes[0],Q=e.nodes[1],_e(),Q(),y=history.state?.[$],R=history.state?.[F],y||(y=R=Date.now(),history.replaceState({...history.state,[$]:y,[F]:R},""));const n=O[y];function r(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}a?(r(),await Dt(me,a)):(await N({type:"enter",url:ye(w.hash?Ft(new URL(location.href)):location.href),replace_state:!0}),r()),Nt()}async function Lt(e=!0,t=!0){if(await(fe||=Promise.resolve()),!fe)return;fe=null;const a=A={},n=await z(g.url,!0);if(te(),Y&&re.forEach(({resource:r})=>{r.refresh?.()}),e){const r=S.state,o=n&&await Ie(n);if(!o||a!==A)return;if(o.type==="redirect")return Pe(new URL(o.location,g.url).href,{replaceState:!0},1,a);t||(o.props.page.state=r),Ke(o.props.page),g=o.state,ge(),Le.$set(o.props)}else ge();await Promise.all([...re.values()].map(({resource:r})=>r)).catch(pe)}function ge(){Z.length=0,Y=!1}function Xe(e){ee.some(t=>t?.snapshot)&&(H[e]=ee.map(t=>t?.snapshot?.capture()))}function Qe(e){H[e]?.forEach((t,a)=>{ee[a]?.snapshot?.restore(t)})}function qe(){Re(y),$e(Me,O),Xe(R),$e(Ve,H)}async function Pe(e,t,a,n){let r;t.invalidateAll&&te(),await N({type:"goto",url:ye(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:a,nav_token:n,accept:()=>{t.invalidateAll&&(Y=!0,r=[...re.keys()]),t.invalidate&&t.invalidate.forEach($t)}}),t.invalidateAll&&J().then(J).then(()=>{re.forEach(({resource:o},i)=>{r?.includes(i)&&o.refresh?.()})})}async function Pt(e){if(e.id!==L?.id){te();const t={};ne.add(t),L={id:e.id,token:t,promise:Ie({...e,preload:t}).then(a=>(ne.delete(t),a.type==="loaded"&&a.state.error&&te(),a)),fork:null}}return L.promise}async function ue(e){const t=(await z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(a=>a[1]()))}async function Ze(e,t,a){g=e.state;const n=document.querySelector("style[data-sveltekit]");if(n&&n.remove(),Object.assign(S,e.props.page),Le=new w.root({target:t,props:{...e.props,stores:T,components:ee},hydrate:a,sync:!1}),await Promise.resolve(),Qe(R),a){const r={from:null,to:{params:g.params,route:{id:g.route?.id??null},url:new URL(location.href),scroll:O[y]??C()},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(o=>o(r))}ae=!0}function oe({url:e,params:t,branch:a,status:n,error:r,route:o,form:i}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const f of a)f?.slash!==void 0&&(s=f.slash);e.pathname=ft(e.pathname,s),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:a,error:r,route:o},props:{constructors:bt(a).map(f=>f.node.component),page:Ce(S)}};i!==void 0&&(l.props.form=i);let c={},d=!S,p=0;for(let f=0;f<Math.max(a.length,g.branch.length);f+=1){const h=a[f],v=g.branch[f];h?.data!==v?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==r||i!==void 0&&i!==S.form||d)&&(l.props.page={error:r,params:t,route:{id:o?.id??null},state:{},status:n,url:new URL(e),form:i??null,data:d?c:S.data}),l}async function Ae({loader:e,parent:t,url:a,params:n,route:r,server_data_node:o}){let i=null,s=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,a);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ne,current:Ne},route:new Proxy(r,{get:(u,f)=>(s&&(l.route=!0),u[f])}),params:new Proxy(n,{get:(u,f)=>(s&&l.params.add(f),u[f])}),data:o?.data??null,url:ct(a,()=>{s&&(l.url=!0)},u=>{s&&l.search_params.add(u)},w.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:v}=et(u,f,a);return s&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return s&&(l.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:o,universal:c.universal?.load?{type:"data",data:i,uses:l}:null,data:i??o?.data??null,slash:c.universal?.trailingSlash??o?.slash}}function et(e,t,a){let n=e instanceof Request?e.url:e;const r=new URL(n,a);r.origin===a.origin&&(n=r.href.slice(a.origin.length));const o=ae?dt(n,r.href,t):ut(n,t);return{resolved:r,promise:o}}function At(e,t,a,n,r,o){if(Y)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&a)return!0;for(const i of r.search_params)if(n.has(i))return!0;for(const i of r.params)if(o[i]!==g.params[i])return!0;for(const i of r.dependencies)if(Z.some(s=>s(new URL(i))))return!0;return!1}function Ue(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ut(e,t){if(!e)return new Set(t.searchParams.keys());const a=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of a){const r=e.searchParams.getAll(n),o=t.searchParams.getAll(n);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&a.delete(n)}return a}function It({error:e,url:t,route:a,params:n}){return{type:"loaded",state:{error:e,url:t,route:a,params:n,branch:[]},props:{page:Ce(S),constructors:[]}}}async function Ie({id:e,invalidating:t,url:a,params:n,route:r,preload:o}){if(L?.id===e)return ne.delete(L.token),L.promise;const{errors:i,layouts:s,leaf:l}=r,c=[...s,l];i.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=g.url?e!==se(g.url):!1,p=g.route?r.id!==g.route.id:!1,u=Ut(g.url,a);let f=!1;const h=c.map(async(m,_)=>{if(!m)return;const k=g.branch[_];return m[1]===k?.loader&&!At(f,p,d,u,k.universal?.uses,n)?k:(f=!0,Ae({loader:m[1],url:a,params:n,route:r,parent:async()=>{const U={};for(let I=0;I<_;I+=1)Object.assign(U,(await h[I])?.data);return U},server_data_node:Ue(m[0]?{type:"skip"}:null,m[0]?k?.server:void 0)}))});for(const m of h)m.catch(()=>{});const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(_){if(_ instanceof ke)return{type:"redirect",location:_.location};if(ne.has(o))return It({error:await V(_,{params:n,url:a,route:{id:r.id}}),url:a,params:n,route:r});let k=Se(_),E;if(_ instanceof be)E=_.body;else{if(await T.updated.check())return await ze(),await B(a);E=await V(_,{params:n,url:a,route:{id:r.id}})}const U=await Tt(m,v,i);return U?oe({url:a,params:n,branch:v.slice(0,U.idx).concat(U.node),status:k,error:E,route:r}):await at(a,{id:r.id},E,k)}else v.push(void 0);return oe({url:a,params:n,branch:v,status:200,error:null,route:r,form:t?void 0:null})}async function Tt(e,t,a){for(;e--;)if(a[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await a[e](),loader:a[e],data:{},server:null,universal:null}}}catch{continue}}}async function Te({status:e,error:t,url:a,route:n}){const r={};let o=null;try{const i=await Ae({loader:_e,url:a,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Ue(o)}),s={node:await Q(),loader:Q,universal:null,server:null,data:null};return oe({url:a,params:r,branch:[i,s],status:e,error:t,route:null})}catch(i){if(i instanceof ke)return Pe(new URL(i.location,location.href),{},0);throw i}}async function Ot(e){const t=e.href;if(W.has(t))return W.get(t);let a;try{const n=(async()=>{let r=await w.hooks.reroute({url:new URL(e),fetch:async(o,i)=>et(o,i,e).promise})??e;if(typeof r=="string"){const o=new URL(e);w.hash?o.hash=r:o.pathname=r,r=o}return r})();W.set(t,n),a=await n}catch{W.delete(t);return}return a}async function z(e,t){if(e&&!we(e,x,w.hash)){const a=await Ot(e);if(!a)return;const n=Ct(a);for(const r of xe){const o=r.exec(n);if(o)return{id:se(e),invalidating:t,route:r,params:it(o),url:e}}}}function Ct(e){return lt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function se(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function tt({url:e,type:t,intent:a,delta:n,event:r,scroll:o}){let i=!1;const s=Oe(g,a,e,t,o??null);n!==void 0&&(s.navigation.delta=n),r!==void 0&&(s.navigation.event=r);const l={...s.navigation,cancel:()=>{i=!0,s.reject(new Error("navigation cancelled"))}};return M||Ge.forEach(c=>c(l)),i?null:s}async function N({type:e,url:t,popped:a,keepfocus:n,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:l={},accept:c=pe,block:d=pe,event:p}){const u=A;A=l;const f=await z(t,!1),h=e==="enter"?Oe(g,f,t,e):tt({url:t,type:e,delta:a?.delta,intent:f,scroll:a?.scroll,event:p});if(!h){d(),A===l&&(A=u);return}const v=y,m=R;c(),M=!0,ae&&h.navigation.type!=="enter"&&T.navigating.set(de.current=h.navigation);let _=f&&await Ie(f);if(!_){if(we(t,x,w.hash))return await B(t,o);_=await at(t,{id:null},await V(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=f?.url||t,A!==l)return h.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(s<20){await N({type:e,url:new URL(_.location,t),popped:a,keepfocus:n,noscroll:r,replace_state:o,state:i,redirect_count:s+1,nav_token:l}),h.fulfil(void 0);return}_=await Te({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await T.updated.check()&&(await ze(),await B(t,o));if(ge(),Re(v),Xe(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=a?a.state:i,!a){const b=o?0:1,G={[$]:y+=b,[F]:R+=b,[He]:i};(o?history.replaceState:history.pushState).call(history,G,"",t),o||Rt(y,R)}const k=f&&L?.id===f.id?L.fork:null;L=null,_.props.page.state=i;let E;if(ae){const b=(await Promise.all(Array.from(xt,j=>j(h.navigation)))).filter(j=>typeof j=="function");if(b.length>0){let j=function(){b.forEach(ie=>{K.delete(ie)})};b.push(j),b.forEach(ie=>{K.add(ie)})}g=_.state,_.props.page&&(_.props.page.url=t);const G=k&&await k;G?E=G.commit():(Le.$set(_.props),Ke(_.props.page),E=ot?.()),Je=!0}else await Ze(_,me,!1);const{activeElement:U}=document;await E,await J(),await J();let I=null;if(De){const b=a?a.scroll:r?C():null;b?scrollTo(b.x,b.y):(I=t.hash&&document.getElementById(nt(t)))?I.scrollIntoView():scrollTo(0,0)}const rt=document.activeElement!==U&&document.activeElement!==document.body;!n&&!rt&&Kt(t,!I),De=!0,_.props.page&&Object.assign(S,_.props.page),M=!1,e==="popstate"&&Qe(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=C()),K.forEach(b=>b(h.navigation)),T.navigating.set(de.current=null)}async function at(e,t,a,n,r){return e.origin===Fe&&e.pathname===location.pathname&&!We?await Te({status:n,error:a,url:e,route:t}):await B(e,r)}function jt(){let e,t={element:void 0,href:void 0},a;P.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{o(l,D.hover)},20)});function n(s){s.defaultPrevented||o(s.composedPath()[0],D.tap)}P.addEventListener("mousedown",n),P.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(ue(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function o(s,l){const c=Be(s,P),d=c===t.element&&c?.href===t.href&&l>=a;if(!c||d)return;const{url:p,external:u,download:f}=he(c,x,w.hash);if(u||f)return;const h=X(c),v=p&&se(g.url)===se(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},a=D.tap;const m=await z(p,!1);if(!m)return;Pt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},a=l,ue(p))}function i(){r.disconnect();for(const s of P.querySelectorAll("a")){const{url:l,external:c,download:d}=he(s,x,w.hash);if(c||d)continue;const p=X(s);p.reload||(p.preload_code===D.viewport&&r.observe(s),p.preload_code===D.eager&&ue(l))}}K.add(i),i()}function V(e,t){if(e instanceof be)return e.body;const a=Se(e),n=kt(e);return w.hooks.handleError({error:e,event:t,status:a,message:n})??{message:n}}function Vt(e,t={}){return e=new URL(ye(e)),e.origin!==Fe?Promise.reject(new Error("goto: invalid URL")):Pe(e,t,0)}function $t(e){if(typeof e=="function")Z.push(e);else{const{href:t}=new URL(e,location.href);Z.push(a=>a.href===t)}}function Yt(){return Y=!0,Lt()}function Nt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(qe(),!M){const n=Oe(g,void 0,null,"leave"),r={...n.navigation,cancel:()=>{a=!0,n.reject(new Error("navigation cancelled"))}};Ge.forEach(o=>o(r))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&qe()}),navigator.connection?.saveData||jt(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Be(t.composedPath()[0],P);if(!a)return;const{url:n,external:r,target:o,download:i}=he(a,x,w.hash);if(!n)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=X(a);if(!(a instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||i)return;const[c,d]=(w.hash?n.hash.replace(/^#/,""):n.href).split("#"),p=c===le(location);if(r||s.reload&&(!p||!d)){tt({url:n,type:"link",event:t})?M=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=g.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=a.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(q=!0,Re(y),e(n),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await N({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||a.target)==="_blank"||(n?.formMethod||a.method)!=="get")return;const i=new URL(n?.hasAttribute("formaction")&&n?.formAction||a.action);if(we(i,x,!1))return;const s=t.target,l=X(s);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(s,n);i.search=new URLSearchParams(c).toString(),N({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ve){if(t.state?.[$]){const a=t.state[$];if(A={},a===y)return;const n=O[a],r=t.state[He]??{},o=new URL(t.state[ht]??location.href),i=t.state[F],s=g.url?le(location)===le(g.url):!1;if(i===R&&(Je||s)){r!==S.state&&(S.state=r),e(o),O[y]=C(),n&&scrollTo(n.x,n.y),y=a;return}const c=a-y;await N({type:"popstate",url:o,popped:{state:r,scroll:n,delta:c},accept:()=>{y=a,R=i},block:()=>{history.go(-c)},nav_token:A,event:t})}else if(!q){const a=new URL(location.href);e(a),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[$]:++y,[F]:R},"",location.href))});for(const t of document.querySelectorAll("link"))St.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&T.navigating.set(de.current=null)});function e(t){g.url=S.url=t,T.page.set(Ce(S)),T.page.notify()}}async function Dt(e,{status:t=200,error:a,node_ids:n,params:r,route:o,server_route:i,data:s,form:l}){We=!0;const c=new URL(location.href);let d;({params:r={},route:o={id:null}}=await z(c,!1)||{}),d=xe.find(({id:f})=>f===o.id);let p,u=!0;try{const f=n.map(async(v,m)=>{const _=s[m];return _?.uses&&(_.uses=qt(_.uses)),Ae({loader:w.nodes[v],url:c,params:r,route:o,parent:async()=>{const k={};for(let E=0;E<m;E+=1)Object.assign(k,(await f[E]).data);return k},server_data_node:Ue(_)})}),h=await Promise.all(f);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=oe({url:c,params:r,branch:h,status:t,error:a,form:l,route:d??null})}catch(f){if(f instanceof ke){await B(new URL(f.location,location.href));return}p=await Te({status:Se(f),error:await V(f,{url:c,params:r,route:o}),url:c,route:o}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await Ze(p,e,u)}function qt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ve=!1;function Kt(e,t=!0){const a=document.querySelector("[autofocus]");if(a)a.focus();else{const n=nt(e);if(n&&document.getElementById(n)){const{x:o,y:i}=C();setTimeout(()=>{const s=history.state;ve=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(o,i),ve=!1})}else{const o=document.body,i=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),i!==null?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const o=[];for(let i=0;i<r.rangeCount;i+=1)o.push(r.getRangeAt(i));setTimeout(()=>{if(r.rangeCount===o.length){for(let i=0;i<r.rangeCount;i+=1){const s=o[i],l=r.getRangeAt(i);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Oe(e,t,a,n,r=null){let o,i;const s=new Promise((c,d)=>{o=c,i=d});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:C()},to:a&&{params:t?.params??null,route:{id:t?.route?.id??null},url:a,scroll:r},willUnload:!t,type:n,complete:s},fulfil:o,reject:i}}function Ce(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Ft(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function nt(e){let t;if(w.hash){const[,,a]=e.hash.split("#",3);t=a??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Mt as a,Vt as g,Yt as i,T as s};
@@ -1 +0,0 @@
1
- import{aS as b,bl as O,aC as y,Y as u,g as f,s as d}from"./BYbm6UVc.js";const h=[];function A(e,t=b){let n=null;const r=new Set;function s(o){if(O(e,o)&&(e=o,n)){const l=!h.length;for(const c of r)c[1](),h.push(c,e);if(l){for(let c=0;c<h.length;c+=2)h[c][0](h[c+1]);h.length=0}}}function i(o){s(o(e))}function a(o,l=b){const c=[o,l];return r.add(c),r.size===1&&(n=t(s,i)||b),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}new URL("sveltekit-internal://");function G(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function z(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function H({href:e}){return e.split("#")[0]}function K(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(c,...x)=>(n(c),a[o](c,...x));t();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function N(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function I(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const L=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&p.delete(m(e)),L(e,t));const p=new Map;function B(e,t){const n=m(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);const a=r.getAttribute("data-ttl");return a&&p.set(n,{body:s,init:i,ttl:1e3*Number(a)}),r.getAttribute("data-b64")!==null&&(s=I(s)),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function J(e,t,n){if(p.size>0){const r=m(e,n),s=p.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);p.delete(r)}}return window.fetch(t,n)}function m(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${N(...s)}"]`}return r}const P=globalThis.__sveltekit_i33t5o?.base??"",$=globalThis.__sveltekit_i33t5o?.assets??P??"",q="1774652036181",W="sveltekit:snapshot",X="sveltekit:scroll",M="sveltekit:states",F="sveltekit:pageurl",Q="sveltekit:history",Z="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},k=location.origin;function ee(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function te(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ne(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||C(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===k&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function se(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(a)}}function oe(e){const t=A(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const E={v:()=>{}};function ae(){const{set:e,subscribe:t}=A(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${$}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==q;return a&&(e(!0),E.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function C(e,t,n){return e.origin!==k||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ie(e){}const U=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...U];const V=new Set([...U]);[...V];let w,R,_;const Y=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString());Y?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},R={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL("https://example.com"));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},E.v=()=>_.current=!0);function fe(e){Object.assign(w,e)}export{Q as H,Z as N,F as P,M as S,z as a,P as b,ae as c,D as d,R as e,B as f,J as g,ne as h,C as i,re as j,se as k,H as l,K as m,G as n,k as o,w as p,v as q,ee as r,te as s,X as t,fe as u,W as v,A as w,oe as x,ie as y};
@@ -1 +0,0 @@
1
- import{a8 as d,a9 as g,aa as l,ab as i,a1 as b,ac as m,g as p,d as v,ad as h,ae as k}from"./BYbm6UVc.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let c=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],c=!0);return c&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),l(e.b)}),i(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&i(()=>{u(a,f),l(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};
@@ -1 +0,0 @@
1
- import{a as r}from"../chunks/7VaB-I1z.js";import{y as t}from"../chunks/RTf8Vhkc.js";export{t as load_css,r as start};
@@ -1,10 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../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 Yt}from"../chunks/PPVm8Dsz.js";import{a as s,b as it,l as te,o as xt,c as qt,e as fn,g as A,d as mn,t as We,s as zt,f as at}from"../chunks/BYgtSFKq.js";import{p as Bt,c as j,r as p,t as q,b as Pt,bo as hn,ax as Ze,bp as Le,Y as k,a6 as Wt,ab as lt,s as r,g as e,a1 as Jt,aC as He,a5 as Vt,ag as g,aS as yt,a4 as E,a9 as tn,bq as Re,l as Dt,a as fe,n as me,m as Lt,d as ct,af as gn,ah as vn}from"../chunks/BYbm6UVc.js";import{i as C,b as en}from"../chunks/DUJDFyU7.js";import{d as P,c as Pe,s as st,a as ee,S as wn}from"../chunks/CGZ5Stl2.js";import{h as bn}from"../chunks/C1RoOxRU.js";import{g as Ce}from"../chunks/7VaB-I1z.js";import{w as je}from"../chunks/C-ARUxRt.js";import{n as _n}from"../chunks/BEqlCcV9.js";import{a as Gt}from"../chunks/C-CLyBoI.js";import{t as G,c as wt,S as yn,r as Ue}from"../chunks/GSiD5rb-.js";import{p as S,s as de,r as nn,l as Ot}from"../chunks/CT4WYSCT.js";import{e as Oe}from"../chunks/BmKipDWm.js";import{c as Nt}from"../chunks/CP-3tjjf.js";import{c as bt,s as _t}from"../chunks/BrXfVLPD.js";import{i as he}from"../chunks/qLcHE2VO.js";import{I as xn}from"../chunks/UjXrxZYE.js";const In=Array(12).fill(0);var Tn=it('<div class="sonner-loading-bar"></div>'),En=it('<div><div class="sonner-spinner"></div></div>');function Sn(o,t){Bt(t,!0);var n=En(),i=j(n);Oe(i,23,()=>In,(a,l)=>`spinner-bar-${l}`,(a,l)=>{var u=Tn();s(a,u)}),p(i),p(n),q(a=>{_t(n,1,a),P(n,"data-visible",t.visible)},[()=>bt(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),s(o,n),Pt()}const Mn=typeof window<"u"?window:void 0;function An(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Bn{#e;#t;constructor(t,n){this.#e=t,this.#t=te(n)}get current(){return this.#t(),this.#e()}}const Pn=/\(.+\)/,Cn=new Set(["all","print","screen","and","or","not","only"]);class kn extends Bn{constructor(t,n){let i=Pn.test(t)||t.split(/[\s,]+/).some(l=>Cn.has(l.trim()))?t:`(${t})`;const a=window.matchMedia(i);super(()=>a.matches,l=>xt(a,"change",l))}}let zn=class{#e;#t;constructor(t={}){const{window:n=Mn,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=te(a=>{const l=xt(n,"focusin",a),u=xt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?An(this.#e):null}};new zn;class Dn{#e;#t;constructor(t){this.#e=t,this.#t=Symbol(t)}get key(){return this.#t}exists(){return hn(this.#t)}get(){const t=Ze(this.#t);if(t===void 0)throw new Error(`Context "${this.#e}" not found`);return t}getOr(t){const n=Ze(this.#t);return n===void 0?t:n}set(t){return Le(this.#t,t)}}const Ln=new Dn("<Toaster/>");function le(o){return o.label!==void 0}function On(){let o=k(Wt(typeof document<"u"?document.hidden:!1));return lt(()=>xt(document,"visibilitychange",()=>{r(o,document.hidden,!0)})),{get current(){return e(o)}}}const Ye=4e3,Hn=14,Rn=45,pn=200,Fn=.05,Nn={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Vn(o){const[t,n]=o.split("-"),i=[];return t&&i.push(t),n&&i.push(n),i}function qe(o){return 1/(1.5+Math.abs(o)/20)}var Wn=it("<div><!></div>"),Zn=it('<button data-close-button=""><!></button>'),jn=it('<div data-icon=""><!> <!></div>'),Un=it('<div data-description=""><!></div>'),Yn=it('<button data-button="" data-cancel=""> </button>'),qn=it('<button data-button=""> </button>'),Kn=it('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),Xn=it('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function Gn(o,t){Bt(t,!0);const n=h=>{var w=A(),I=E(w);{var L=M=>{var K=Wn(),Ft=j(K);st(Ft,()=>t.loadingIcon),p(K),q(Xt=>{_t(K,1,Xt),P(K,"data-visible",e(N)==="loading")},[()=>bt(wt(e(ot)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),s(M,K)},O=M=>{{let K=g(()=>wt(e(ot)?.loader,t.toast.classes?.loader)),Ft=g(()=>e(N)==="loading");Sn(M,{get class(){return e(K)},get visible(){return e(Ft)}})}};C(I,M=>{t.loadingIcon?M(L):M(O,!1)})}s(h,w)};let i=S(t,"cancelButtonStyle",3,""),a=S(t,"actionButtonStyle",3,""),l=S(t,"descriptionClass",3,""),u=S(t,"unstyled",3,!1),v=S(t,"defaultRichColors",3,!1);const d={...Nn};let _=k(!1),B=k(!1),D=k(!1),R=k(!1),z=k(!1),F=k(0),$=k(0),It=t.toast.duration||t.duration||Ye,et=k(void 0),rt=k(null),ut=k(null);const ve=g(()=>t.index===0),we=g(()=>t.index+1<=t.visibleToasts),N=g(()=>t.toast.type),nt=g(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),Zt=g(()=>t.toast.class||""),Ht=g(()=>t.toast.descriptionClass||""),Tt=g(()=>G.heights.findIndex(h=>h.toastId===t.toast.id)||0),Et=g(()=>t.toast.closeButton??t.closeButton),Rt=g(()=>t.toast.duration??t.duration??Ye);let Ct=null;const ne=g(()=>t.position.split("-")),be=g(()=>G.heights.reduce((h,w,I)=>I>=e(Tt)?h:h+w.height,0)),_e=On(),ye=g(()=>t.toast.invert||t.invert),Kt=g(()=>e(N)==="loading"),ot=g(()=>({...d,...t.classes})),xe=g(()=>t.toast.title),Ie=g(()=>t.toast.description);let St=k(0),oe=k(0);const jt=g(()=>Math.round(e(Tt)*Hn+e(be)));lt(()=>{e(xe),e(Ie);let h;t.expanded||t.expandByDefault?h=1:h=1-t.index*Fn;const w=Jt(()=>e(et));if(w===void 0)return;w.style.setProperty("height","auto");const I=w.offsetHeight,L=w.getBoundingClientRect().height,O=Math.round(L/h+Number.EPSILON&100)/100;w.style.removeProperty("height");let M;Math.abs(O-I)<1?M=O:M=I,r($,M,!0),G.setHeight({toastId:t.toast.id,height:M})});function c(){r(B,!0),r(F,e(jt),!0),G.removeHeight(t.toast.id),setTimeout(()=>{G.remove(t.toast.id)},pn)}let W;const ht=g(()=>t.toast.promise&&e(N)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function gt(){r(St,new Date().getTime(),!0),W=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),c()},It)}function pt(){if(e(oe)<e(St)){const h=new Date().getTime()-e(St);It=It-h}r(oe,new Date().getTime(),!0)}lt(()=>{t.toast.updated&&(clearTimeout(W),It=e(Rt),gt())}),lt(()=>(e(ht)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&_e.current?pt():gt()),()=>clearTimeout(W))),He(()=>{r(_,!0);const h=e(et)?.getBoundingClientRect().height;return r($,h,!0),G.setHeight({toastId:t.toast.id,height:h}),()=>{G.removeHeight(t.toast.id)}}),lt(()=>{t.toast.delete&&Jt(()=>{c(),t.toast.onDismiss?.(t.toast)})});const Te=h=>{if(e(Kt))return;r(F,e(jt),!0);const w=h.target;w.setPointerCapture(h.pointerId),w.tagName!=="BUTTON"&&(r(D,!0),Ct={x:h.clientX,y:h.clientY})},Ne=()=>{if(e(R)||!e(nt))return;Ct=null;const h=Number(e(et)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),w=Number(e(et)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),I=new Date().getTime()-0,L=e(rt)==="x"?h:w,O=Math.abs(L)/I;if(Math.abs(L)>=Rn||O>.11){r(F,e(jt),!0),t.toast.onDismiss?.(t.toast),e(rt)==="x"?r(ut,h>0?"right":"left",!0):r(ut,w>0?"down":"up",!0),c(),r(R,!0);return}else e(et)?.style.setProperty("--swipe-amount-x","0px"),e(et)?.style.setProperty("--swipe-amount-y","0px");r(z,!1),r(D,!1),r(rt,null)},ie=h=>{if(!Ct||!e(nt)||(window.getSelection()?.toString().length??-1)>0)return;const I=h.clientY-Ct.y,L=h.clientX-Ct.x,O=t.swipeDirections??Vn(t.position);!e(rt)&&(Math.abs(L)>1||Math.abs(I)>1)&&r(rt,Math.abs(L)>Math.abs(I)?"x":"y",!0);let M={x:0,y:0};if(e(rt)==="y"){if(O.includes("top")||O.includes("bottom"))if(O.includes("top")&&I<0||O.includes("bottom")&&I>0)M.y=I;else{const K=I*qe(I);M.y=Math.abs(K)<Math.abs(I)?K:I}}else if(e(rt)==="x"&&(O.includes("left")||O.includes("right")))if(O.includes("left")&&L<0||O.includes("right")&&L>0)M.x=L;else{const K=L*qe(L);M.x=Math.abs(K)<Math.abs(L)?K:L}(Math.abs(M.x)>0||Math.abs(M.y)>0)&&r(z,!0),e(et)?.style.setProperty("--swipe-amount-x",`${M.x}px`),e(et)?.style.setProperty("--swipe-amount-y",`${M.y}px`)},vt=()=>{r(D,!1),r(rt,null),Ct=null},Mt=g(()=>t.toast.icon?t.toast.icon:e(N)==="success"?t.successIcon:e(N)==="error"?t.errorIcon:e(N)==="warning"?t.warningIcon:e(N)==="info"?t.infoIcon:e(N)==="loading"?t.loadingIcon:null);var m=Xn();P(m,"tabindex",0);let Ut;var ae=j(m);{var Ve=h=>{var w=Zn(),I=j(w);st(I,()=>t.closeIcon??yt),p(w),q(L=>{P(w,"aria-label",t.closeButtonAriaLabel),P(w,"data-disabled",e(Kt)),_t(w,1,L)},[()=>bt(wt(e(ot)?.closeButton,t.toast?.classes?.closeButton))]),qt("click",w,()=>{e(Kt)||!e(nt)||(c(),t.toast.onDismiss?.(t.toast))}),s(h,w)};C(ae,h=>{e(Et)&&!t.toast.component&&e(N)!=="loading"&&t.closeIcon!==null&&h(Ve)})}var Ee=Vt(ae,2);{var Se=h=>{const w=g(()=>t.toast.component);var I=A(),L=E(I);Nt(L,()=>e(w),(O,M)=>{M(O,de(()=>t.toast.componentProps,{closeToast:c}))}),s(h,I)},Me=h=>{var w=Kn(),I=E(w);{var L=y=>{var T=jn(),f=j(T);{var H=b=>{var x=A(),tt=E(x);{var Z=kt=>{var se=A(),Be=E(se);Nt(Be,()=>t.toast.icon,(X,J)=>{J(X,{})}),s(kt,se)},mt=kt=>{n(kt)};C(tt,kt=>{t.toast.icon?kt(Z):kt(mt,!1)})}s(b,x)};C(f,b=>{(t.toast.promise||e(N)==="loading")&&b(H)})}var Y=Vt(f,2);{var V=b=>{var x=A(),tt=E(x);{var Z=X=>{var J=A(),At=E(J);Nt(At,()=>t.toast.icon,(un,dn)=>{dn(un,{})}),s(X,J)},mt=X=>{var J=A(),At=E(J);st(At,()=>t.successIcon??yt),s(X,J)},kt=X=>{var J=A(),At=E(J);st(At,()=>t.errorIcon??yt),s(X,J)},se=X=>{var J=A(),At=E(J);st(At,()=>t.warningIcon??yt),s(X,J)},Be=X=>{var J=A(),At=E(J);st(At,()=>t.infoIcon??yt),s(X,J)};C(tt,X=>{t.toast.icon?X(Z):e(N)==="success"?X(mt,1):e(N)==="error"?X(kt,2):e(N)==="warning"?X(se,3):e(N)==="info"&&X(Be,4)})}s(b,x)};C(Y,b=>{t.toast.type!=="loading"&&b(V)})}p(T),q(b=>_t(T,1,b),[()=>bt(wt(e(ot)?.icon,t.toast?.classes?.icon))]),s(y,T)};C(I,y=>{(e(N)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(e(Mt)!==null||t.toast.icon)&&y(L)})}var O=Vt(I,2),M=j(O),K=j(M);{var Ft=y=>{var T=A(),f=E(T);{var H=V=>{const b=g(()=>t.toast.title);var x=A(),tt=E(x);Nt(tt,()=>e(b),(Z,mt)=>{mt(Z,de(()=>t.toast.componentProps))}),s(V,x)},Y=V=>{var b=We();q(()=>zt(b,t.toast.title)),s(V,b)};C(f,V=>{typeof t.toast.title!="string"?V(H):V(Y,!1)})}s(y,T)};C(K,y=>{t.toast.title&&y(Ft)})}p(M);var Xt=Vt(M,2);{var Ae=y=>{var T=Un(),f=j(T);{var H=V=>{const b=g(()=>t.toast.description);var x=A(),tt=E(x);Nt(tt,()=>e(b),(Z,mt)=>{mt(Z,de(()=>t.toast.componentProps))}),s(V,x)},Y=V=>{var b=We();q(()=>zt(b,t.toast.description)),s(V,b)};C(f,V=>{typeof t.toast.description!="string"?V(H):V(Y,!1)})}p(T),q(V=>_t(T,1,V),[()=>bt(wt(l(),e(Ht),e(ot)?.description,t.toast.classes?.description))]),s(y,T)};C(Xt,y=>{t.toast.description&&y(Ae)})}p(O);var re=Vt(O,2);{var dt=y=>{var T=A(),f=E(T);{var H=b=>{var x=A(),tt=E(x);Nt(tt,()=>t.toast.cancel,(Z,mt)=>{mt(Z,{})}),s(b,x)},Y=b=>{var x=Yn(),tt=j(x,!0);p(x),q(Z=>{Pe(x,t.toast.cancelButtonStyle??i()),_t(x,1,Z),zt(tt,t.toast.cancel.label)},[()=>bt(wt(e(ot)?.cancelButton,t.toast?.classes?.cancelButton))]),qt("click",x,Z=>{le(t.toast.cancel)&&e(nt)&&(t.toast.cancel?.onClick?.(Z),c())}),s(b,x)},V=g(()=>le(t.toast.cancel));C(f,b=>{typeof t.toast.cancel=="function"?b(H):e(V)&&b(Y,1)})}s(y,T)};C(re,y=>{t.toast.cancel&&y(dt)})}var Q=Vt(re,2);{var ft=y=>{var T=A(),f=E(T);{var H=b=>{var x=A(),tt=E(x);Nt(tt,()=>t.toast.action,(Z,mt)=>{mt(Z,{})}),s(b,x)},Y=b=>{var x=qn(),tt=j(x,!0);p(x),q(Z=>{Pe(x,t.toast.actionButtonStyle??a()),_t(x,1,Z),zt(tt,t.toast.action.label)},[()=>bt(wt(e(ot)?.actionButton,t.toast?.classes?.actionButton))]),qt("click",x,Z=>{le(t.toast.action)&&(t.toast.action?.onClick(Z),!Z.defaultPrevented&&c())}),s(b,x)},V=g(()=>le(t.toast.action));C(f,b=>{typeof t.toast.action=="function"?b(H):e(V)&&b(Y,1)})}s(y,T)};C(Q,y=>{t.toast.action&&y(ft)})}q((y,T)=>{_t(O,1,y),_t(M,1,T)},[()=>bt(wt(e(ot)?.content,t.toast?.classes?.content)),()=>bt(wt(e(ot)?.title,t.toast?.classes?.title))]),s(h,w)};C(Ee,h=>{t.toast.component?h(Se):h(Me,!1)})}p(m),en(m,h=>r(et,h),()=>e(et)),q((h,w,I)=>{_t(m,1,h),P(m,"aria-live",t.toast.important?"assertive":"polite"),P(m,"data-rich-colors",t.toast.richColors??v()),P(m,"data-styled",!(t.toast.component||t.toast.unstyled||u())),P(m,"data-mounted",e(_)),P(m,"data-promise",w),P(m,"data-swiped",e(z)),P(m,"data-removed",e(B)),P(m,"data-visible",e(we)),P(m,"data-y-position",e(ne)[0]),P(m,"data-x-position",e(ne)[1]),P(m,"data-index",t.index),P(m,"data-front",e(ve)),P(m,"data-swiping",e(D)),P(m,"data-dismissible",e(nt)),P(m,"data-type",e(N)),P(m,"data-invert",e(ye)),P(m,"data-swipe-out",e(R)),P(m,"data-swipe-direction",e(ut)),P(m,"data-expanded",I),Ut=Pe(m,`${t.style} ${t.toast.style}`,Ut,{"--index":t.index,"--toasts-before":t.index,"--z-index":G.toasts.length-t.index,"--offset":`${e(B)?e(F):e(jt)}px`,"--initial-height":t.expandByDefault?"auto":`${e($)}px`})},[()=>bt(wt(t.class,e(Zt),e(ot)?.toast,t.toast?.classes?.toast,e(ot)?.[e(N)],t.toast?.classes?.[e(N)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&e(_))]),qt("pointermove",m,ie),qt("pointerup",m,Ne),qt("pointerdown",m,Te),fn("dragend",m,vt),s(o,m),Pt()}mn(["pointermove","pointerup","pointerdown","click"]);var Qn=at('<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 Jn(o){var t=Qn();s(o,t)}var $n=at('<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 to(o){var t=$n();s(o,t)}var eo=at('<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 no(o){var t=eo();s(o,t)}var oo=at('<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 io(o){var t=oo();s(o,t)}var ao=at('<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 ro(o){var t=ao();s(o,t)}const so=3,on="24px",an="16px",lo=4e3,co=356,uo=14,ke="dark",ce="light";function fo(o,t){const n={};return[o,t].forEach((i,a)=>{const l=a===1,u=l?"--mobile-offset":"--offset",v=l?an:on;function d(_){["top","right","bottom","left"].forEach(B=>{n[`${u}-${B}`]=typeof _=="number"?`${_}px`:_})}typeof i=="number"||typeof i=="string"?d(i):typeof i=="object"?["top","right","bottom","left"].forEach(_=>{const B=i[_];B===void 0?n[`${u}-${_}`]=v:n[`${u}-${_}`]=typeof B=="number"?`${B}px`:B}):d(v)}),n}var mo=it("<ol></ol>"),ho=it('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function go(o,t){Bt(t,!0);function n(c){return c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ke:ce}let i=S(t,"invert",3,!1),a=S(t,"position",3,"bottom-right"),l=S(t,"hotkey",19,()=>["altKey","KeyT"]),u=S(t,"expand",3,!1),v=S(t,"closeButton",3,!1),d=S(t,"offset",3,on),_=S(t,"mobileOffset",3,an),B=S(t,"theme",3,"light"),D=S(t,"richColors",3,!1),R=S(t,"duration",3,lo),z=S(t,"visibleToasts",3,so),F=S(t,"toastOptions",19,()=>({})),$=S(t,"dir",7,"auto"),It=S(t,"gap",3,uo),et=S(t,"pauseWhenPageIsHidden",3,!1),rt=S(t,"containerAriaLabel",3,"Notifications"),ut=S(t,"closeButtonAriaLabel",3,"Close toast"),ve=nn(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 we(){if($()!=="auto")return $();if(typeof window>"u"||typeof document>"u")return"ltr";const c=document.documentElement.getAttribute("dir");return c==="auto"||!c?(Jt(()=>$(window.getComputedStyle(document.documentElement).direction??"ltr")),$()):(Jt(()=>$(c)),c)}const N=g(()=>Array.from(new Set([a(),...G.toasts.filter(c=>c.position).map(c=>c.position)].filter(Boolean))));let nt=k(!1),Zt=k(!1),Ht=k(Wt(n(B()))),Tt=k(void 0),Et=k(null),Rt=k(!1);const Ct=g(()=>l().join("+").replace(/Key/g,"").replace(/Digit/g,""));lt(()=>{G.toasts.length<=1&&r(nt,!1)}),lt(()=>{const c=G.toasts.filter(W=>W.dismiss&&!W.delete);if(c.length>0){const W=G.toasts.map(ht=>c.find(pt=>pt.id===ht.id)?{...ht,delete:!0}:ht);G.toasts=W}}),lt(()=>()=>{e(Tt)&&e(Et)&&(e(Et).focus({preventScroll:!0}),r(Et,null),r(Rt,!1))}),He(()=>(G.reset(),xt(document,"keydown",W=>{l().every(gt=>W[gt]||W.code===gt)&&(r(nt,!0),e(Tt)?.focus()),W.code==="Escape"&&(document.activeElement===e(Tt)||e(Tt)?.contains(document.activeElement))&&r(nt,!1)}))),lt(()=>{if(B()!=="system"&&r(Ht,B()),typeof window<"u"){B()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r(Ht,ke):r(Ht,ce));const c=window.matchMedia("(prefers-color-scheme: dark)"),W=({matches:ht})=>{B()==="system"&&r(Ht,ht?ke:ce,!0)};"addEventListener"in c?c.addEventListener("change",W):c.addListener(W)}});const ne=c=>{t.onblur?.(c),e(Rt)&&!c.currentTarget.contains(c.relatedTarget)&&(r(Rt,!1),e(Et)&&(e(Et).focus({preventScroll:!0}),r(Et,null)))},be=c=>{t.onfocus?.(c),!(c.target instanceof HTMLElement&&c.target.dataset.dismissible==="false")&&(e(Rt)||(r(Rt,!0),r(Et,c.relatedTarget,!0)))},_e=c=>{t.onpointerdown?.(c),!(c.target instanceof HTMLElement&&c.target.dataset.dismissible==="false")&&r(Zt,!0)},ye=c=>{t.onmouseenter?.(c),r(nt,!0)},Kt=c=>{t.onmouseleave?.(c),e(Zt)||r(nt,!1)},ot=c=>{t.onmousemove?.(c),r(nt,!0)},xe=c=>{t.ondragend?.(c),r(nt,!1)},Ie=c=>{t.onpointerup?.(c),r(Zt,!1)};Ln.set(new yn);var St=ho();P(St,"tabindex",-1);var oe=j(St);{var jt=c=>{var W=A(),ht=E(W);Oe(ht,18,()=>e(N),gt=>gt,(gt,pt,Te,Ne)=>{const ie=g(()=>{const[m,Ut]=pt.split("-");return{y:m,x:Ut}}),vt=g(()=>fo(d(),_()));var Mt=mo();ee(Mt,m=>({tabindex:-1,dir:m,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":e(Ht),"data-y-position":e(ie).y,"data-x-position":e(ie).x,style:t.style,onblur:ne,onfocus:be,onmouseenter:ye,onmousemove:ot,onmouseleave:Kt,ondragend:xe,onpointerdown:_e,onpointerup:Ie,...ve,[wn]:{"--front-toast-height":`${G.heights[0]?.height}px`,"--width":`${co}px`,"--gap":`${It()}px`,"--offset-top":e(vt)["--offset-top"],"--offset-right":e(vt)["--offset-right"],"--offset-bottom":e(vt)["--offset-bottom"],"--offset-left":e(vt)["--offset-left"],"--mobile-offset-top":e(vt)["--mobile-offset-top"],"--mobile-offset-right":e(vt)["--mobile-offset-right"],"--mobile-offset-bottom":e(vt)["--mobile-offset-bottom"],"--mobile-offset-left":e(vt)["--mobile-offset-left"]}}),[we],void 0,void 0,"svelte-nbs0zk"),Oe(Mt,23,()=>G.toasts.filter(m=>!m.position&&e(Te)===0||m.position===pt),m=>m.id,(m,Ut,ae,Ve)=>{{const Ee=dt=>{var Q=A(),ft=E(Q);{var y=f=>{var H=A(),Y=E(H);st(Y,()=>t.successIcon??yt),s(f,H)},T=f=>{Jn(f)};C(ft,f=>{t.successIcon?f(y):t.successIcon!==null&&f(T,1)})}s(dt,Q)},Se=dt=>{var Q=A(),ft=E(Q);{var y=f=>{var H=A(),Y=E(H);st(Y,()=>t.errorIcon??yt),s(f,H)},T=f=>{to(f)};C(ft,f=>{t.errorIcon?f(y):t.errorIcon!==null&&f(T,1)})}s(dt,Q)},Me=dt=>{var Q=A(),ft=E(Q);{var y=f=>{var H=A(),Y=E(H);st(Y,()=>t.warningIcon??yt),s(f,H)},T=f=>{no(f)};C(ft,f=>{t.warningIcon?f(y):t.warningIcon!==null&&f(T,1)})}s(dt,Q)},h=dt=>{var Q=A(),ft=E(Q);{var y=f=>{var H=A(),Y=E(H);st(Y,()=>t.infoIcon??yt),s(f,H)},T=f=>{io(f)};C(ft,f=>{t.infoIcon?f(y):t.infoIcon!==null&&f(T,1)})}s(dt,Q)},w=dt=>{var Q=A(),ft=E(Q);{var y=f=>{var H=A(),Y=E(H);st(Y,()=>t.closeIcon??yt),s(f,H)},T=f=>{ro(f)};C(ft,f=>{t.closeIcon?f(y):t.closeIcon!==null&&f(T,1)})}s(dt,Q)};let I=g(()=>F()?.duration??R()),L=g(()=>F()?.class??""),O=g(()=>F()?.descriptionClass||""),M=g(()=>F()?.style??""),K=g(()=>F().classes||{}),Ft=g(()=>F().unstyled??!1),Xt=g(()=>F()?.cancelButtonStyle??""),Ae=g(()=>F()?.actionButtonStyle??""),re=g(()=>F()?.closeButtonAriaLabel??ut());Gn(m,{get index(){return e(ae)},get toast(){return e(Ut)},get defaultRichColors(){return D()},get duration(){return e(I)},get class(){return e(L)},get descriptionClass(){return e(O)},get invert(){return i()},get visibleToasts(){return z()},get closeButton(){return v()},get interacting(){return e(Zt)},get position(){return pt},get style(){return e(M)},get classes(){return e(K)},get unstyled(){return e(Ft)},get cancelButtonStyle(){return e(Xt)},get actionButtonStyle(){return e(Ae)},get closeButtonAriaLabel(){return e(re)},get expandByDefault(){return u()},get expanded(){return e(nt)},get pauseWhenPageIsHidden(){return et()},get loadingIcon(){return t.loadingIcon},successIcon:Ee,errorIcon:Se,warningIcon:Me,infoIcon:h,closeIcon:w,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),p(Mt),en(Mt,m=>r(Tt,m),()=>e(Tt)),q(()=>Mt.dir=Mt.dir),s(gt,Mt)}),s(c,W)};C(oe,c=>{G.toasts.length>0&&c(jt)})}p(St),q(()=>P(St,"aria-label",`${rt()??""} ${e(Ct)??""}`)),s(o,St),Pt()}const rn=typeof window<"u"?window:void 0;function vo(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}let wo=class{#e;#t;constructor(t={}){const{window:n=rn,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=te(a=>{const l=xt(n,"focusin",a),u=xt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?vo(this.#e):null}};new wo;function bo(o,t){switch(o){case"post":lt(t);break;case"pre":tn(t);break}}function sn(o,t,n,i={}){const{lazy:a=!1}=i;let l=!a,u=Array.isArray(o)?[]:void 0;bo(t,()=>{const v=Array.isArray(o)?o.map(_=>_()):o();if(!l){l=!0,u=v;return}const d=Jt(()=>n(v,u));return u=v,d})}function pe(o,t,n){sn(o,"post",t,n)}function _o(o,t,n){sn(o,"pre",t,n)}pe.pre=_o;function yo(o,t){switch(o){case"local":return t.localStorage;case"session":return t.sessionStorage}}class ln{#e;#t;#o;#n;#a;#i=k(0);constructor(t,n,i={}){const{storage:a="local",serializer:l={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:u=!0,window:v=rn}=i;if(this.#e=n,this.#t=t,this.#o=l,v===void 0)return;const d=yo(a,v);this.#n=d;const _=d.getItem(t);_!==null?this.#e=this.#r(_):this.#s(n),u&&a==="local"&&(this.#a=te(()=>xt(v,"storage",this.#l)))}get current(){this.#a?.(),e(this.#i);const t=this.#r(this.#n?.getItem(this.#t))??this.#e,n=new WeakMap,i=a=>{if(a===null||a?.constructor.name==="Date"||typeof a!="object")return a;let l=n.get(a);return l||(l=new Proxy(a,{get:(u,v)=>(e(this.#i),i(Reflect.get(u,v))),set:(u,v,d)=>(r(this.#i,e(this.#i)+1),Reflect.set(u,v,d),this.#s(t),!0)}),n.set(a,l)),l};return i(t)}set current(t){this.#s(t),r(this.#i,e(this.#i)+1)}#l=t=>{t.key!==this.#t||t.newValue===null||(this.#e=this.#r(t.newValue),r(this.#i,e(this.#i)+1))};#r(t){try{return this.#o.deserialize(t)}catch(n){console.error(`Error when parsing "${t}" from persisted store "${this.#t}"`,n);return}}#s(t){try{t!=null&&this.#n?.setItem(this.#t,this.#o.serialize(t))}catch(n){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#n}`,n)}}}function Ke(o){return o.filter(t=>t.length>0)}const cn={getItem:o=>null,setItem:(o,t)=>{}},ge=typeof document<"u";function xo(o){return typeof o=="function"}function Io(o){return o!==null&&typeof o=="object"}const $t=Symbol("box"),Fe=Symbol("is-writable");function To(o){return Io(o)&&$t in o}function Eo(o){return U.isBox(o)&&Fe in o}function U(o){let t=k(Wt(o));return{[$t]:!0,[Fe]:!0,get current(){return e(t)},set current(n){r(t,n,!0)}}}function So(o,t){const n=g(o);return t?{[$t]:!0,[Fe]:!0,get current(){return e(n)},set current(i){t(i)}}:{[$t]:!0,get current(){return o()}}}function Mo(o){return U.isBox(o)?o:xo(o)?U.with(o):U(o)}function Ao(o){return Object.entries(o).reduce((t,[n,i])=>U.isBox(i)?(U.isWritableBox(i)?Object.defineProperty(t,n,{get(){return i.current},set(a){i.current=a}}):Object.defineProperty(t,n,{get(){return i.current}}),t):Object.assign(t,{[n]:i}),{})}function Bo(o){return U.isWritableBox(o)?{[$t]:!0,get current(){return o.current}}:o}U.from=Mo;U.with=So;U.flatten=Ao;U.readonly=Bo;U.isBox=To;U.isWritableBox=Eo;function Po(o,t){const n=RegExp(o,"g");return i=>{if(typeof i!="string")throw new TypeError(`expected an argument of type string, but got ${typeof i}`);return i.match(n)?i.replace(n,t):i}}const Co=Po(/[A-Z]/,o=>`-${o.toLowerCase()}`);function ko(o){if(!o||typeof o!="object"||Array.isArray(o))throw new TypeError(`expected an argument of type object, but got ${typeof o}`);return Object.keys(o).map(t=>`${Co(t)}: ${o[t]};`).join(`
3
- `)}function zo(o={}){return ko(o).replace(`
4
- `," ")}const Do={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};zo(Do);const Lo=typeof window<"u"?window:void 0;function Oo(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Ho{#e;#t;constructor(t={}){const{window:n=Lo,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=te(a=>{const l=xt(n,"focusin",a),u=xt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?Oo(this.#e):null}}new Ho;const ze=U("mode-watcher-mode"),De=U("mode-watcher-theme"),Ro=["dark","light","system"];function Xe(o){return typeof o!="string"?!1:Ro.includes(o)}class po{#e="system";#t=ge?localStorage:cn;#o=this.#t.getItem(ze.current);#n=Xe(this.#o)?this.#o:this.#e;#a=k(Wt(this.#i()));#i(t=this.#n){return new ln(ze.current,t,{serializer:{serialize:n=>n,deserialize:n=>Xe(n)?n:this.#e}})}constructor(){Re(()=>pe.pre(()=>ze.current,(t,n)=>{const i=e(this.#a).current;r(this.#a,this.#i(i),!0),n&&localStorage.removeItem(n)}))}get current(){return e(this.#a).current}set current(t){e(this.#a).current=t}}class Fo{#e=void 0;#t=!0;#o=k(Wt(this.#e));#n=typeof window<"u"&&typeof window.matchMedia=="function"?new kn("prefers-color-scheme: light"):{current:!1};query(){ge&&r(this.#o,this.#n.current?"light":"dark",!0)}tracking(t){this.#t=t}constructor(){Re(()=>{tn(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return e(this.#o)}}const Ge=new po,No=new Fo;class Vo{#e=ge?localStorage:cn;#t=this.#e.getItem(De.current);#o=this.#t===null||this.#t===void 0?"":this.#t;#n=k(Wt(this.#a()));#a(t=this.#o){return new ln(De.current,t,{serializer:{serialize:n=>typeof n!="string"?"":n,deserialize:n=>n}})}constructor(){Re(()=>pe.pre(()=>De.current,(t,n)=>{const i=e(this.#n).current;r(this.#n,this.#a(i),!0),n&&localStorage.removeItem(n)}))}get current(){return e(this.#n).current}set current(t){e(this.#n).current=t}}new Vo;let Qe,Je,$e=!1,Qt=null;function Wo(){return Qt||(Qt=document.createElement("style"),Qt.appendChild(document.createTextNode(`* {
5
- -webkit-transition: none !important;
6
- -moz-transition: none !important;
7
- -o-transition: none !important;
8
- -ms-transition: none !important;
9
- transition: none !important;
10
- }`)),Qt)}function Zo(o,t=!1){if(typeof document>"u")return;if(!$e){$e=!0,o();return}if(typeof window<"u"&&window.__vitest_worker__){o();return}clearTimeout(Qe),clearTimeout(Je);const i=Wo(),a=()=>document.head.appendChild(i),l=()=>{i.parentNode&&document.head.removeChild(i)};function u(){o(),window.requestAnimationFrame(l)}if(typeof window.requestAnimationFrame<"u"){a(),t?u():window.requestAnimationFrame(()=>{u()});return}a(),Qe=window.setTimeout(()=>{o(),Je=window.setTimeout(l,16)},16)}const ue=U(void 0),jo=U(!0),Uo=U(!1),Yo=U([]),qo=U([]);function Ko(){const o=g(()=>{if(!ge)return;const t=Ge.current==="system"?No.current:Ge.current,n=Ke(Yo.current),i=Ke(qo.current);function a(){const l=document.documentElement,u=document.querySelector('meta[name="theme-color"]');t==="light"?(n.length&&l.classList.remove(...n),i.length&&l.classList.add(...i),l.style.colorScheme="light",u&&ue.current&&u.setAttribute("content",ue.current.light)):(i.length&&l.classList.remove(...i),n.length&&l.classList.add(...n),l.style.colorScheme="dark",u&&ue.current&&u.setAttribute("content",ue.current.dark))}return jo.current?Zo(a,Uo.current):a(),t});return{get current(){return e(o)}}}const Xo=Ko();var Go=at("<title> </title>"),Qo=at('<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 Jo(o,t){const n=Ot(t,["children","$$slots","$$events","$$legacy"]),i=Ot(n,["size","title"]);Bt(t,!1);const a=Lt(),l=Lt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);Dt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),Dt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),he();var d=Qo();ee(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=j(d);{var B=D=>{var R=Go(),z=j(R,!0);p(R),q(()=>zt(z,v())),s(D,R)};C(_,D=>{v()&&D(B)})}me(2),p(d),s(o,d),Pt()}var $o=at("<title> </title>"),ti=at('<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 ei(o,t){const n=Ot(t,["children","$$slots","$$events","$$legacy"]),i=Ot(n,["size","title"]);Bt(t,!1);const a=Lt(),l=Lt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);Dt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),Dt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),he();var d=ti();ee(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=j(d);{var B=D=>{var R=$o(),z=j(R,!0);p(R),q(()=>zt(z,v())),s(D,R)};C(_,D=>{v()&&D(B)})}me(2),p(d),s(o,d),Pt()}var ni=at("<title> </title>"),oi=at('<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 ii(o,t){const n=Ot(t,["children","$$slots","$$events","$$legacy"]),i=Ot(n,["size","title"]);Bt(t,!1);const a=Lt(),l=Lt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);Dt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),Dt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),he();var d=oi();ee(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=j(d);{var B=D=>{var R=ni(),z=j(R,!0);p(R),q(()=>zt(z,v())),s(D,R)};C(_,D=>{v()&&D(B)})}me(2),p(d),s(o,d),Pt()}var ai=at("<title> </title>"),ri=at('<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 si(o,t){const n=Ot(t,["children","$$slots","$$events","$$legacy"]),i=Ot(n,["size","title"]);Bt(t,!1);const a=Lt(),l=Lt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);Dt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),Dt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),he();var d=ri();ee(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=j(d);{var B=D=>{var R=ai(),z=j(R,!0);p(R),q(()=>zt(z,v())),s(D,R)};C(_,D=>{v()&&D(B)})}me(3),p(d),s(o,d),Pt()}function li(o,t){Bt(t,!0);let n=nn(t,["$$slots","$$events","$$legacy"]);go(o,de({get theme(){return Xo.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>n,{loadingIcon:d=>{xn(d,{class:"size-4 animate-spin"})},successIcon:d=>{Jo(d,{class:"size-4"})},errorIcon:d=>{ei(d,{class:"size-4"})},infoIcon:d=>{ii(d,{class:"size-4"})},warningIcon:d=>{si(d,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),Pt()}var ci=it('<div style="display: contents;"><!> <!></div>');function Pi(o,t){Bt(t,!0);const n=typeof localStorage<"u"?localStorage.getItem("theme"):null;let i=k(Wt(n==="light"?"light":"dark"));Le("theme",{get current(){return e(i)},toggle(){r(i,e(i)==="dark"?"light":"dark",!0),localStorage.setItem("theme",e(i))}});const l=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null;let u=k(l==="true");Le("chat",{get open(){return e(u)},toggle(){r(u,!e(u)),localStorage.setItem("chatOpen",String(e(u)))},close(){r(u,!1),localStorage.setItem("chatOpen","false")}}),lt(()=>{document.documentElement.setAttribute("data-theme",e(i))});let d=k(null);lt(()=>{if(Gt.loading)return;const z=Gt.user?.email??(Gt.authEnabled?null:"__open__");z&&z!==e(d)&&(e(d)!==null&&_n.deselect(),r(d,z,!0),je.load(),Ue.connect()),!z&&e(d)&&(r(d,null),Ue.disconnect())}),He(async()=>{const z=window.location.pathname,F=z==="/login",$=z==="/setup",{authenticated:It,authEnabled:et,needsSetup:rt}=await Gt.checkAuth();if(rt&&!$){Ce("/setup");return}if(et&&!It&&!F){Ce("/login");return}if(It&&(F||$)){Ce("/");return}F||$||(Yt(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([0,1,2]),import.meta.url).catch(()=>{}),Promise.all([Yt(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),Yt(()=>import("../chunks/DnL9f0lc.js").then(ut=>ut.i),__vite__mapDeps([3,4]),import.meta.url),Yt(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([5,4,3,6,7,8]),import.meta.url),Yt(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([6,7,4,3]),import.meta.url),Yt(()=>import("../chunks/C7VoTosa.js").then(ut=>ut.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",ut=>{r(i,ut.detail,!0)}))});var _=ci();bn("12qhfyh",z=>{gn(()=>{vn.title=(je.name||"Studiograph")??""})});var B=j(_);{var D=z=>{var F=A(),$=E(F);st($,()=>t.children),s(z,F)};C(B,z=>{Gt.loading||z(D)})}var R=Vt(B,2);li(R,{}),p(_),q(()=>P(_,"data-theme",e(i))),s(o,_),Pt()}export{Pi as component};