lightly-studio 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.

Potentially problematic release.


This version of lightly-studio might be problematic. Click here for more details.

Files changed (74) hide show
  1. lightly_studio/__init__.py +1 -2
  2. lightly_studio/api/db_tables.py +3 -0
  3. lightly_studio/api/routes/api/dataset.py +5 -3
  4. lightly_studio/api/routes/api/embeddings2d.py +4 -16
  5. lightly_studio/core/dataset_query/dataset_query.py +98 -2
  6. lightly_studio/core/dataset_query/sample_field.py +11 -2
  7. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.B-Bn8V7R.css +1 -0
  8. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.CTl60pQb.css +1 -0
  9. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.CxuTMeYy.css +1 -0
  10. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.Bte-FZ4V.css +1 -0
  11. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{ChlxSwqI.js → 7XnHnNk_.js} +1 -1
  12. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DthpwYR_.js → BDE1kT04.js} +2 -2
  13. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{D8ZGoCPm.js → BHoO7UL_.js} +2 -2
  14. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BiGQqqJP.js → BTpMiPuk.js} +1 -1
  15. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BbG6fgnL.js +1 -0
  16. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bip0vTKl.js +1 -0
  17. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BrNKoXwc.js → BzYRexN9.js} +1 -1
  18. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CP9M7pei.js → C5oezL0m.js} +1 -1
  19. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CEPpkZIV.js +1 -0
  20. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/ChO13USc.js +96 -0
  21. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{ClzkJBWk.js → CmNXvs5e.js} +1 -1
  22. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DUtlYNuP.js → D9WxTSWa.js} +1 -1
  23. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DELrRF6e.js +4 -0
  24. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BtXGzlpP.js → DFib3GIP.js} +1 -1
  25. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DMJzr1NB.js → DeAqvaPB.js} +1 -1
  26. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DgCXCApo.js +438 -0
  27. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqhovIS0.js +1 -0
  28. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/{app.Y-sSoz5q.js → app.CED-eiXl.js} +2 -2
  29. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.D6UcpqyO.js +1 -0
  30. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{0.0Fm6E-5B.js → 0.waSqEGqm.js} +2 -2
  31. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{1.DB-0vkHb.js → 1.Bb_sKkYl.js} +1 -1
  32. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{10.vaUePh5k.js → 10.D9Uicmfq.js} +1 -1
  33. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{11.7i7ljNVT.js → 11.DKnK0EcJ.js} +1 -1
  34. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/13.D7dGgxYC.js +1 -0
  35. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{2.Drwwdm7A.js → 2.BzK1sjoM.js} +138 -100
  36. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.D3X_-Wan.js → 3.B08UPFst.js} +1 -1
  37. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.C9TqY3tA.js → 4.C19_Nx95.js} +1 -1
  38. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.B2cR7brs.js +39 -0
  39. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{6.fqfYR7dB.js → 6.C9Y2LZxG.js} +1 -1
  40. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{7.C7gMM-gk.js → 7.CEbWmgIF.js} +1 -1
  41. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Con-GcPz.js +20 -0
  42. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{9.DbHcSiMn.js → 9.DW7FBNNH.js} +1 -1
  43. lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
  44. lightly_studio/dist_lightly_studio_view_app/index.html +7 -8
  45. lightly_studio/models/annotation/annotation_base.py +9 -0
  46. lightly_studio/models/dataset.py +6 -0
  47. lightly_studio/models/sample.py +1 -1
  48. lightly_studio/models/two_dim_embedding.py +16 -0
  49. lightly_studio/resolvers/annotation_resolver/get_all.py +3 -1
  50. lightly_studio/resolvers/dataset_resolver.py +18 -1
  51. lightly_studio/resolvers/sample_embedding_resolver.py +44 -2
  52. lightly_studio/resolvers/sample_resolver.py +1 -3
  53. lightly_studio/resolvers/twodim_embedding_resolver.py +93 -3
  54. lightly_studio/selection/select.py +70 -1
  55. lightly_studio/selection/selection_config.py +1 -1
  56. {lightly_studio-0.4.0.dist-info → lightly_studio-0.4.1.dist-info}/METADATA +1 -1
  57. {lightly_studio-0.4.0.dist-info → lightly_studio-0.4.1.dist-info}/RECORD +58 -58
  58. lightly_studio/dataset/loader.py +0 -581
  59. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.CN4hnTks.css +0 -1
  60. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.C0_eo9eP.css +0 -1
  61. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.kFFGI0zL.css +0 -1
  62. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.sLzR40om.css +0 -1
  63. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BOmrKuMn.js +0 -1
  64. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BPpOWbDa.js +0 -1
  65. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BaFFwDFr.js +0 -1
  66. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BsaJCCG_.js +0 -96
  67. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CWuDkrMZ.js +0 -436
  68. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DyIcJj6J.js +0 -1
  69. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/WEyXQRi6.js +0 -1
  70. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CvxVp0Cu.js +0 -1
  71. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/13.9qy3WtZv.js +0 -1
  72. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.iRw6HCWX.js +0 -39
  73. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.C4v1w-oS.js +0 -20
  74. {lightly_studio-0.4.0.dist-info → lightly_studio-0.4.1.dist-info}/WHEEL +0 -0
@@ -1,2 +1,2 @@
1
- var gt=Object.defineProperty;var Oe=t=>{throw TypeError(t)};var vt=(t,e,s)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var N=(t,e,s)=>vt(t,typeof e!="symbol"?e+"":e,s),he=(t,e,s)=>e.has(t)||Oe("Cannot "+s);var S=(t,e,s)=>(he(t,e,"read from private field"),s?s.call(t):e.get(t)),q=(t,e,s)=>e.has(t)?Oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),X=(t,e,s,r)=>(he(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),U=(t,e,s)=>(he(t,e,"access private method"),s);import{aQ as _t,aR as pt,aS as mt,v as oe,z as C,L as Be,R as Se,x as Y,S as Ye,T as xe,A as B,U as Qe,W as Xe,aT as ze,P as ge,_ as bt,g as x,ad as yt,M as wt,N as St,O as Le,Q as Z,a4 as At,aJ as Tt,aU as ue,aV as fe,aq as Me,X as Pt,ao as Re,aH as Je,I as Ze,V as We,aW as Et,aX as ve,C as et,y as ee,aY as It,az as Nt,aZ as Ct,aG as Ot,a_ as Lt,K as Mt,a5 as tt,a$ as Rt,b0 as kt,B as Dt,b1 as Ft,b2 as Ht,b3 as Gt,b4 as qt,b5 as Ut,b6 as Vt,b7 as $t,b8 as jt,aP as Kt,aO as Bt,o as Ae,m as H,w as le,al as ke,ab as De,Z as Fe,h as He,b as Yt}from"./C3xJX0nD.js";import{c as xt,d as Qt}from"./SiegjVo0.js";import{i as Xt,n as zt,a as Jt}from"./CpbA3HU7.js";import{c as st}from"./gBp1tBnA.js";import{q as Zt}from"./BaFFwDFr.js";import{R as Wt,j as es,e as ts,k as ss,l as rs,m as is}from"./CANX9QXL.js";function Gs(t,e,s){C&&Be();var r=t,i=Qe,n,a,u=null,h=_t()?pt:mt;function v(){n&&Xe(n),u!==null&&(u.lastChild.remove(),r.before(u),u=null),n=a}oe(()=>{if(h(i,i=e())){var p=r,b=xe();b&&(u=document.createDocumentFragment(),u.append(p=Se())),a=Y(()=>s(p)),b?Ye.add_callback(v):v()}}),C&&(r=B)}function qs(t,e){return e}function as(t,e,s){for(var r=t.items,i=[],n=e.length,a=0;a<n;a++)Ct(e[a].e,i,!0);var u=n>0&&i.length===0&&s!==null;if(u){var h=s.parentNode;Ot(h),h.append(s),r.clear(),k(t,e[0].prev,e[n-1].next)}Lt(i,()=>{for(var v=0;v<n;v++){var p=e[v];u||(r.delete(p.k),k(t,p.prev,p.next)),ee(p.e,!u)}})}function Us(t,e,s,r,i,n=null){var a=t,u={flags:e,items:new Map,first:null},h=(e&ze)!==0;if(h){var v=t;a=C?ge(bt(v)):v.appendChild(Se())}C&&Be();var p=null,b=!1,g=new Map,A=yt(()=>{var T=s();return Ze(T)?T:T==null?[]:Je(T)}),c,_;function d(){ns(_,c,u,g,a,i,e,r,s),n!==null&&(c.length===0?p?We(p):p=Y(()=>n(a)):p!==null&&Xe(p,()=>{p=null}))}oe(()=>{_??(_=Mt),c=x(A);var T=c.length;if(b&&T===0)return;b=T===0;let P=!1;if(C){var y=wt(a)===St;y!==(T===0)&&(a=Le(),ge(a),Z(!1),P=!0)}if(C){for(var m=null,w,o=0;o<T;o++){if(B.nodeType===At&&B.data===Tt){a=B,P=!0,Z(!1);break}var f=c[o],l=r(f,o);w=be(B,u,m,null,f,l,o,i,e,s),u.items.set(l,w),m=w}T>0&&ge(Le())}if(C)T===0&&n&&(p=Y(()=>n(a)));else if(xe()){var E=new Set,I=Ye;for(o=0;o<T;o+=1){f=c[o],l=r(f,o);var G=u.items.get(l)??g.get(l);G?e&(ue|fe)&&rt(G,f,o,e):(w=be(null,u,null,null,f,l,o,i,e,s,!0),g.set(l,w)),E.add(l)}for(const[L,ie]of u.items)E.has(L)||I.skipped_effects.add(ie.e);I.add_callback(d)}else d();P&&Z(!0),x(A)}),C&&(a=B)}function ns(t,e,s,r,i,n,a,u,h){var Pe,Ee,Ie,Ne;var v=(a&It)!==0,p=(a&(ue|fe))!==0,b=e.length,g=s.items,A=s.first,c=A,_,d=null,T,P=[],y=[],m,w,o,f;if(v)for(f=0;f<b;f+=1)m=e[f],w=u(m,f),o=g.get(w),o!==void 0&&((Pe=o.a)==null||Pe.measure(),(T??(T=new Set)).add(o));for(f=0;f<b;f+=1){if(m=e[f],w=u(m,f),o=g.get(w),o===void 0){var l=r.get(w);if(l!==void 0){r.delete(w),g.set(w,l);var E=d?d.next:c;k(s,d,l),k(s,l,E),_e(l,E,i),d=l}else{var I=c?c.e.nodes_start:i;d=be(I,s,d,d===null?s.first:d.next,m,w,f,n,a,h)}g.set(w,d),P=[],y=[],c=d.next;continue}if(p&&rt(o,m,f,a),o.e.f&ve&&(We(o.e),v&&((Ee=o.a)==null||Ee.unfix(),(T??(T=new Set)).delete(o))),o!==c){if(_!==void 0&&_.has(o)){if(P.length<y.length){var G=y[0],L;d=G.prev;var ie=P[0],ce=P[P.length-1];for(L=0;L<P.length;L+=1)_e(P[L],G,i);for(L=0;L<y.length;L+=1)_.delete(y[L]);k(s,ie.prev,ce.next),k(s,d,ie),k(s,ce,G),c=G,d=ce,f-=1,P=[],y=[]}else _.delete(o),_e(o,c,i),k(s,o.prev,o.next),k(s,o,d===null?s.first:d.next),k(s,d,o),d=o;continue}for(P=[],y=[];c!==null&&c.k!==w;)c.e.f&ve||(_??(_=new Set)).add(c),y.push(c),c=c.next;if(c===null)continue;o=c}P.push(o),d=o,c=o.next}if(c!==null||_!==void 0){for(var Q=_===void 0?[]:Je(_);c!==null;)c.e.f&ve||Q.push(c),c=c.next;var de=Q.length;if(de>0){var dt=a&ze&&b===0?i:null;if(v){for(f=0;f<de;f+=1)(Ie=Q[f].a)==null||Ie.measure();for(f=0;f<de;f+=1)(Ne=Q[f].a)==null||Ne.fix()}as(s,Q,dt)}}v&&et(()=>{var Ce;if(T!==void 0)for(o of T)(Ce=o.a)==null||Ce.apply()}),t.first=s.first&&s.first.e,t.last=d&&d.e;for(var ht of r.values())ee(ht.e);r.clear()}function rt(t,e,s,r){r&ue&&Me(t.v,e),r&fe?Me(t.i,s):t.i=s}function be(t,e,s,r,i,n,a,u,h,v,p){var b=(h&ue)!==0,g=(h&Et)===0,A=b?g?Pt(i,!1,!1):Re(i):i,c=h&fe?Re(a):a,_={i:c,v:A,k:n,a:null,e:null,prev:s,next:r};try{if(t===null){var d=document.createDocumentFragment();d.append(t=Se())}return _.e=Y(()=>u(t,A,c,v),C),_.e.prev=s&&s.e,_.e.next=r&&r.e,s===null?p||(e.first=_):(s.next=_,s.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function _e(t,e,s){for(var r=t.next?t.next.e.nodes_start:s,i=e?e.e.nodes_start:s,n=t.e.nodes_start;n!==null&&n!==r;){var a=Nt(n);i.before(n),n=a}}function k(t,e,s){e===null?t.first=s:(e.next=s,e.e.next=s&&s.e),s!==null&&(s.prev=e,s.e.prev=e&&e.e)}function os(t,e){var s=void 0,r;oe(()=>{s!==(s=e())&&(r&&(ee(r),r=null),s&&(r=Y(()=>{tt(()=>s(t))})))})}function it(t){var e,s,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(s=it(t[e]))&&(r&&(r+=" "),r+=s)}else for(s in t)t[s]&&(r&&(r+=" "),r+=s);return r}function us(){for(var t,e,s=0,r="",i=arguments.length;s<i;s++)(t=arguments[s])&&(e=it(t))&&(r&&(r+=" "),r+=e);return r}function fs(t){return typeof t=="object"?us(t):t??""}const Ge=[...`
2
- \r\f \v\uFEFF`];function ls(t,e,s){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),s){for(var i in s)if(s[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,a=0;(a=r.indexOf(i,a))>=0;){var u=a+n;(a===0||Ge.includes(r[a-1]))&&(u===r.length||Ge.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function qe(t,e=!1){var s=e?" !important;":";",r="";for(var i in t){var n=t[i];n!=null&&n!==""&&(r+=" "+i+": "+n+s)}return r}function pe(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function cs(t,e){if(e){var s="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,u=!1,h=[];r&&h.push(...Object.keys(r).map(pe)),i&&h.push(...Object.keys(i).map(pe));var v=0,p=-1;const _=t.length;for(var b=0;b<_;b++){var g=t[b];if(u?g==="/"&&t[b-1]==="*"&&(u=!1):n?n===g&&(n=!1):g==="/"&&t[b+1]==="*"?u=!0:g==='"'||g==="'"?n=g:g==="("?a++:g===")"&&a--,!u&&n===!1&&a===0){if(g===":"&&p===-1)p=b;else if(g===";"||b===_-1){if(p!==-1){var A=pe(t.substring(v,p).trim());if(!h.includes(A)){g!==";"&&b++;var c=t.substring(v,b).trim();s+=" "+c+";"}}v=b+1,p=-1}}}}return r&&(s+=qe(r)),i&&(s+=qe(i,!0)),s=s.trim(),s===""?null:s}return t==null?null:String(t)}function ds(t,e,s,r,i,n){var a=t.__className;if(C||a!==s||a===void 0){var u=ls(s,r,n);(!C||u!==t.getAttribute("class"))&&(u==null?t.removeAttribute("class"):e?t.className=u:t.setAttribute("class",u)),t.__className=s}else if(n&&i!==n)for(var h in n){var v=!!n[h];(i==null||v!==!!i[h])&&t.classList.toggle(h,v)}return n}function me(t,e={},s,r){for(var i in s){var n=s[i];e[i]!==n&&(s[i]==null?t.style.removeProperty(i):t.style.setProperty(i,n,r))}}function hs(t,e,s,r){var i=t.__style;if(C||i!==e){var n=cs(e,r);(!C||n!==t.getAttribute("style"))&&(n==null?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}else r&&(Array.isArray(r)?(me(t,s==null?void 0:s[0],r[0]),me(t,s==null?void 0:s[1],r[1],"important")):me(t,s,r));return r}function ye(t,e,s=!1){if(t.multiple){if(e==null)return;if(!Ze(e))return Rt();for(var r of t.options)r.selected=e.includes(Ue(r));return}for(r of t.options){var i=Ue(r);if(kt(i,e)){r.selected=!0;return}}(!s||e!==void 0)&&(t.selectedIndex=-1)}function gs(t){var e=new MutationObserver(()=>{ye(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Dt(()=>{e.disconnect()})}function Ue(t){return"__value"in t?t.__value:t.value}const z=Symbol("class"),J=Symbol("style"),at=Symbol("is custom element"),nt=Symbol("is html");function vs(t){if(C){var e=!1,s=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;ae(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;ae(t,"checked",null),t.checked=i}}};t.__on_r=s,et(s),$t()}}function Vs(t,e){var s=Te(t);s.value===(s.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function _s(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,s,r){var i=Te(t);C&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||i[e]!==(i[e]=s)&&(e==="loading"&&(t[jt]=s),s==null?t.removeAttribute(e):typeof s!="string"&&ot(t).includes(e)?t[e]=s:t.setAttribute(e,s))}function ps(t,e,s,r,i=!1,n=!1){if(C&&i&&t.tagName==="INPUT"){var a=t,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in s||vs(a)}var h=Te(t),v=h[at],p=!h[nt];let b=C&&v;b&&Z(!1);var g=e||{},A=t.tagName==="OPTION";for(var c in e)c in s||(s[c]=null);s.class?s.class=fs(s.class):(r||s[z])&&(s.class=null),s[J]&&(s.style??(s.style=null));var _=ot(t);for(const o in s){let f=s[o];if(A&&o==="value"&&f==null){t.value=t.__value="",g[o]=f;continue}if(o==="class"){var d=t.namespaceURI==="http://www.w3.org/1999/xhtml";ds(t,d,f,r,e==null?void 0:e[z],s[z]),g[o]=f,g[z]=s[z];continue}if(o==="style"){hs(t,f,e==null?void 0:e[J],s[J]),g[o]=f,g[J]=s[J];continue}var T=g[o];if(!(f===T&&!(f===void 0&&t.hasAttribute(o)))){g[o]=f;var P=o[0]+o[1];if(P!=="$$")if(P==="on"){const l={},E="$$"+o;let I=o.slice(2);var y=Jt(I);if(Xt(I)&&(I=I.slice(0,-7),l.capture=!0),!y&&T){if(f!=null)continue;t.removeEventListener(I,g[E],l),g[E]=null}if(f!=null)if(y)t[`__${I}`]=f,Qt([I]);else{let G=function(L){g[o].call(this,L)};g[E]=xt(I,t,G,l)}else y&&(t[`__${I}`]=void 0)}else if(o==="style")ae(t,o,f);else if(o==="autofocus")Vt(t,!!f);else if(!v&&(o==="__value"||o==="value"&&f!=null))t.value=t.__value=f;else if(o==="selected"&&A)_s(t,f);else{var m=o;p||(m=zt(m));var w=m==="defaultValue"||m==="defaultChecked";if(f==null&&!v&&!w)if(h[o]=null,m==="value"||m==="checked"){let l=t;const E=e===void 0;if(m==="value"){let I=l.defaultValue;l.removeAttribute(m),l.defaultValue=I,l.value=l.__value=E?I:null}else{let I=l.defaultChecked;l.removeAttribute(m),l.defaultChecked=I,l.checked=E?I:!1}}else t.removeAttribute(o);else w||_.includes(m)&&(v||typeof f!="string")?(t[m]=f,m in h&&(h[m]=Qe)):typeof f!="function"&&ae(t,m,f)}}}return b&&Z(!0),g}function $s(t,e,s=[],r=[],i,n=!1,a=!1){Ft(s,r,u=>{var h=void 0,v={},p=t.nodeName==="SELECT",b=!1;if(oe(()=>{var A=e(...u.map(x)),c=ps(t,h,A,i,n,a);b&&p&&"value"in A&&ye(t,A.value);for(let d of Object.getOwnPropertySymbols(v))A[d]||ee(v[d]);for(let d of Object.getOwnPropertySymbols(A)){var _=A[d];d.description===qt&&(!h||_!==h[d])&&(v[d]&&ee(v[d]),v[d]=Y(()=>os(t,()=>_))),c[d]=_}h=c}),p){var g=t;tt(()=>{ye(g,h.value,!0),gs(g)})}b=!0})}function Te(t){return t.__attributes??(t.__attributes={[at]:t.nodeName.includes("-"),[nt]:t.namespaceURI===Ht})}var Ve=new Map;function ot(t){var e=t.getAttribute("is")||t.nodeName,s=Ve.get(e);if(s)return s;Ve.set(e,s=[]);for(var r,i=t,n=Element.prototype;n!==i;){r=Ut(i);for(var a in r)r[a].set&&s.push(a);i=Gt(i)}return s}const ms="data-no-translate",js="paraglide:lang",Ks="paraglide_lang",ut={},bs=()=>Bt(ut),Bs=t=>{Kt(ut,t)};function Ys(){const t=bs();function e(r,i){return typeof r!="string"||!t?r:t.translateHref(r,i)}function s(r,i){if(r[ms])return r;for(const{attribute_name:n,lang_attribute_name:a}of i)if(n in r){const u=r[n],h=a?r[a]:void 0;r[n]=e(u,typeof h=="string"?h:void 0)}return r}return[e,s]}const ft={setting_id:"00000000-0000-0000-0000-000000000000",grid_view_sample_rendering:"contain",key_hide_annotations:"v",key_go_back:"Escape",show_annotation_text_labels:!0,show_sample_filenames:!0,created_at:new Date().toISOString(),updated_at:new Date().toISOString()},R=le(ft),$=le(!1),K=le(null),W=le(!1),ys=Ae(R,t=>t.grid_view_sample_rendering||"contain"),ws=Ae(R,t=>t.show_annotation_text_labels??!0),Ss=Ae(R,t=>t.show_sample_filenames??!0),$e=async()=>{if(R.set(ft),!(H(W)||H($))){$.set(!0),K.set(null);try{const{data:t}=await Zt();t&&(R.set(t),W.set(!0))}catch(t){K.set(String(t))}finally{$.set(!1)}}},lt=async t=>{$.set(!0),K.set(null);try{const e=H(R),s={setting_id:e.setting_id||"",grid_view_sample_rendering:t.grid_view_sample_rendering||e.grid_view_sample_rendering||"contain",key_hide_annotations:t.key_hide_annotations||e.key_hide_annotations||"v",key_go_back:t.key_go_back||e.key_go_back||"Escape",show_annotation_text_labels:t.show_annotation_text_labels!==void 0?t.show_annotation_text_labels:e.show_annotation_text_labels??!0,show_sample_filenames:t.show_sample_filenames!==void 0?t.show_sample_filenames:e.show_sample_filenames??!0,created_at:e.created_at||new Date().toISOString(),updated_at:new Date().toISOString()},r=await st.POST("/api/settings",{body:s,headers:{"Content-Type":"application/json"}});if(r.error){const i=JSON.stringify(r.error);return console.error("Settings API error:",i),K.set(i),{success:!1,error:i}}return r.data?(R.set(r.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(e){const s=String(e);return console.error("Error saving settings:",s),K.set(s),{success:!1,error:s}}finally{$.set(!1)}},As=async t=>lt({grid_view_sample_rendering:t}),Ts=async t=>{const e=!!t,r={...H(R),show_annotation_text_labels:e};try{const i=await st.POST("/api/settings",{body:r,headers:{"Content-Type":"application/json"}});return i.error?(console.error("API error saving setting:",i.error),{success:!1,error:JSON.stringify(i.error)}):i.data?(R.set(i.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(i){return console.error("Error saving annotation text label setting:",i),{success:!1,error:String(i)}}};function xs(){return!H(W)&&!H($)&&$e(),{settingsStore:R,isLoadingStore:$,errorStore:K,isLoadedStore:W,gridViewSampleRenderingStore:ys,showAnnotationTextLabelsStore:ws,showSampleFilenamesStore:Ss,initSettings:$e,saveSettings:lt,updateGridViewSampleRendering:As,updateShowAnnotationTextLabels:Ts,get settings(){return H(R)},get isLoading(){return H($)},get error(){return H(K)},get isLoaded(){return H(W)}}}var D,O,j,F,V,Ke,Qs=(Ke=class extends Wt{constructor(e){super();q(this,F);q(this,D);q(this,O);q(this,j);this.mutationId=e.mutationId,X(this,O,e.mutationCache),X(this,D,[]),this.state=e.state||Ps(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){S(this,D).includes(e)||(S(this,D).push(e),this.clearGcTimeout(),S(this,O).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,D,S(this,D).filter(s=>s!==e)),this.scheduleGc(),S(this,O).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){S(this,D).length||(this.state.status==="pending"?this.scheduleGc():S(this,O).remove(this))}continue(){var e;return((e=S(this,j))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,n,a,u,h,v,p,b,g,A,c,_,d,T,P,y,m,w,o,f;X(this,j,es({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,E)=>{U(this,F,V).call(this,{type:"failed",failureCount:l,error:E})},onPause:()=>{U(this,F,V).call(this,{type:"pause"})},onContinue:()=>{U(this,F,V).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,O).canRun(this)}));const s=this.state.status==="pending",r=!S(this,j).canStart();try{if(!s){U(this,F,V).call(this,{type:"pending",variables:e,isPaused:r}),await((n=(i=S(this,O).config).onMutate)==null?void 0:n.call(i,e,this));const E=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,e));E!==this.state.context&&U(this,F,V).call(this,{type:"pending",context:E,variables:e,isPaused:r})}const l=await S(this,j).start();return await((v=(h=S(this,O).config).onSuccess)==null?void 0:v.call(h,l,e,this.state.context,this)),await((b=(p=this.options).onSuccess)==null?void 0:b.call(p,l,e,this.state.context)),await((A=(g=S(this,O).config).onSettled)==null?void 0:A.call(g,l,null,this.state.variables,this.state.context,this)),await((_=(c=this.options).onSettled)==null?void 0:_.call(c,l,null,e,this.state.context)),U(this,F,V).call(this,{type:"success",data:l}),l}catch(l){try{throw await((T=(d=S(this,O).config).onError)==null?void 0:T.call(d,l,e,this.state.context,this)),await((y=(P=this.options).onError)==null?void 0:y.call(P,l,e,this.state.context)),await((w=(m=S(this,O).config).onSettled)==null?void 0:w.call(m,void 0,l,this.state.variables,this.state.context,this)),await((f=(o=this.options).onSettled)==null?void 0:f.call(o,void 0,l,e,this.state.context)),l}finally{U(this,F,V).call(this,{type:"error",error:l})}}finally{S(this,O).runNext(this)}}},D=new WeakMap,O=new WeakMap,j=new WeakMap,F=new WeakSet,V=function(e){const s=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ts.batch(()=>{S(this,D).forEach(r=>{r.onMutationUpdate(e)}),S(this,O).notify({mutation:this,type:"updated",action:e})})},Ke);function Ps(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function Xs(t){return{onFetch:(e,s)=>{var p,b,g,A,c;const r=e.options,i=(g=(b=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:b.fetchMore)==null?void 0:g.direction,n=((A=e.state.data)==null?void 0:A.pages)||[],a=((c=e.state.data)==null?void 0:c.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const v=async()=>{let _=!1;const d=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?_=!0:e.signal.addEventListener("abort",()=>{_=!0}),e.signal)})},T=ss(e.options,e.fetchOptions),P=async(y,m,w)=>{if(_)return Promise.reject();if(m==null&&y.pages.length)return Promise.resolve(y);const o={client:e.client,queryKey:e.queryKey,pageParam:m,direction:w?"backward":"forward",meta:e.options.meta};d(o);const f=await T(o),{maxPages:l}=e.options,E=w?rs:is;return{pages:E(y.pages,f,l),pageParams:E(y.pageParams,m,l)}};if(i&&n.length){const y=i==="backward",m=y?ct:we,w={pages:n,pageParams:a},o=m(r,w);u=await P(w,o,y)}else{const y=t??n.length;do{const m=h===0?a[0]??r.initialPageParam:we(r,u);if(h>0&&m==null)break;u=await P(u,m),h++}while(h<y)}return u};e.options.persister?e.fetchFn=()=>{var _,d;return(d=(_=e.options).persister)==null?void 0:d.call(_,v,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=v}}}function we(t,{pages:e,pageParams:s}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function ct(t,{pages:e,pageParams:s}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,s[0],s):void 0}function zs(t,e){return e?we(t,e)!=null:!1}function Js(t,e){return!e||!t.getPreviousPageParam?!1:ct(t,e)!=null}function Zs(...t){return t.filter(Boolean).join(" ")}const Es=typeof document<"u";let je=0;var te,se,re;class Is{constructor(){q(this,te,ke(De([])));q(this,se,ke(De([])));q(this,re,e=>{const s=this.toasts.findIndex(r=>r.id===e);return s===-1?null:s});N(this,"addToast",e=>{Es&&this.toasts.unshift(e)});N(this,"updateToast",({id:e,data:s,type:r,message:i})=>{const n=this.toasts.findIndex(u=>u.id===e),a=this.toasts[n];this.toasts[n]={...a,...s,id:e,title:i,type:r,updated:!0}});N(this,"create",e=>{var u;const{message:s,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||e.id&&((u=e.id)==null?void 0:u.length)>0?e.id:je++,n=e.dismissable===void 0?!0:e.dismissable,a=e.type===void 0?"default":e.type;return He(()=>{this.toasts.find(v=>v.id===i)?this.updateToast({id:i,data:e,type:a,message:s,dismissable:n}):this.addToast({...r,id:i,title:s,dismissable:n,type:a})}),i});N(this,"dismiss",e=>(He(()=>{if(e===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const s=this.toasts.findIndex(r=>r.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e));N(this,"remove",e=>{if(e===void 0){this.toasts=[];return}const s=S(this,re).call(this,e);if(s!==null)return this.toasts.splice(s,1),e});N(this,"message",(e,s)=>this.create({...s,type:"default",message:e}));N(this,"error",(e,s)=>this.create({...s,type:"error",message:e}));N(this,"success",(e,s)=>this.create({...s,type:"success",message:e}));N(this,"info",(e,s)=>this.create({...s,type:"info",message:e}));N(this,"warning",(e,s)=>this.create({...s,type:"warning",message:e}));N(this,"loading",(e,s)=>this.create({...s,type:"loading",message:e}));N(this,"promise",(e,s)=>{if(!s)return;let r;s.loading!==void 0&&(r=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const i=e instanceof Promise?e:e();let n=r!==void 0;return i.then(a=>{if(typeof a=="object"&&a&&"ok"in a&&typeof a.ok=="boolean"&&!a.ok){n=!1;const u=Ns(a);this.create({id:r,type:"error",message:u})}else if(s.success!==void 0){n=!1;const u=typeof s.success=="function"?s.success(a):s.success;this.create({id:r,type:"success",message:u})}}).catch(a=>{if(s.error!==void 0){n=!1;const u=typeof s.error=="function"?s.error(a):s.error;this.create({id:r,type:"error",message:u})}}).finally(()=>{var a;n&&(this.dismiss(r),r=void 0),(a=s.finally)==null||a.call(s)}),r});N(this,"custom",(e,s)=>{const r=(s==null?void 0:s.id)||je++;return this.create({component:e,id:r,...s}),r});N(this,"removeHeight",e=>{this.heights=this.heights.filter(s=>s.toastId!==e)});N(this,"setHeight",e=>{const s=S(this,re).call(this,e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e});N(this,"reset",()=>{this.toasts=[],this.heights=[]})}get toasts(){return x(S(this,te))}set toasts(e){Fe(S(this,te),e,!0)}get heights(){return x(S(this,se))}set heights(e){Fe(S(this,se),e,!0)}}te=new WeakMap,se=new WeakMap,re=new WeakMap;function Ns(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const M=new Is;function Cs(t,e){return M.create({message:t,...e})}var ne;class Ws{constructor(){q(this,ne,Yt(()=>M.toasts.filter(e=>!e.dismiss)))}get toasts(){return x(S(this,ne))}}ne=new WeakMap;const Os=Cs,er=Object.assign(Os,{success:M.success,info:M.info,warning:M.warning,error:M.error,custom:M.custom,message:M.message,promise:M.promise,dismiss:M.dismiss,loading:M.loading,getActiveToasts:()=>M.toasts.filter(t=>!t.dismiss)});export{Ks as L,Qs as M,J as S,$s as a,ds as b,ae as c,Bs as d,Us as e,js as f,Ys as g,Xs as h,qs as i,fs as j,Gs as k,M as l,Zs as m,Ws as n,us as o,Js as p,zs as q,Ps as r,hs as s,er as t,xs as u,vs as v,Vs as w};
1
+ var gt=Object.defineProperty;var Oe=t=>{throw TypeError(t)};var vt=(t,e,s)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var N=(t,e,s)=>vt(t,typeof e!="symbol"?e+"":e,s),he=(t,e,s)=>e.has(t)||Oe("Cannot "+s);var S=(t,e,s)=>(he(t,e,"read from private field"),s?s.call(t):e.get(t)),U=(t,e,s)=>e.has(t)?Oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),X=(t,e,s,r)=>(he(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),q=(t,e,s)=>(he(t,e,"access private method"),s);import{aQ as _t,aR as pt,aS as mt,v as oe,z as C,L as Be,R as Se,x as Y,S as Ye,T as xe,A as B,U as Qe,W as Xe,aT as ze,P as ge,_ as bt,g as x,ad as yt,M as wt,N as St,O as Le,Q as Z,a4 as At,aJ as Tt,aU as ue,aV as fe,aq as Me,X as Pt,ao as Re,aH as Je,I as Ze,V as We,aW as Et,aX as ve,C as et,y as ee,aY as It,az as Nt,aZ as Ct,aG as Ot,a_ as Lt,K as Mt,a5 as tt,a$ as Rt,b0 as kt,B as Dt,b1 as Ft,b2 as Ht,b3 as Gt,b4 as Ut,b5 as qt,b6 as Vt,b7 as $t,b8 as jt,aP as Kt,aO as Bt,o as Ae,m as H,w as le,al as ke,ab as De,Z as Fe,h as He,b as Yt}from"./C3xJX0nD.js";import{c as xt,d as Qt}from"./SiegjVo0.js";import{i as Xt,n as zt,a as Jt}from"./CpbA3HU7.js";import{c as st}from"./gBp1tBnA.js";import{s as Zt}from"./CEPpkZIV.js";import{R as Wt,j as es,e as ts,k as ss,l as rs,m as is}from"./CANX9QXL.js";function Gs(t,e,s){C&&Be();var r=t,i=Qe,n,a,u=null,h=_t()?pt:mt;function v(){n&&Xe(n),u!==null&&(u.lastChild.remove(),r.before(u),u=null),n=a}oe(()=>{if(h(i,i=e())){var p=r,b=xe();b&&(u=document.createDocumentFragment(),u.append(p=Se())),a=Y(()=>s(p)),b?Ye.add_callback(v):v()}}),C&&(r=B)}function Us(t,e){return e}function as(t,e,s){for(var r=t.items,i=[],n=e.length,a=0;a<n;a++)Ct(e[a].e,i,!0);var u=n>0&&i.length===0&&s!==null;if(u){var h=s.parentNode;Ot(h),h.append(s),r.clear(),k(t,e[0].prev,e[n-1].next)}Lt(i,()=>{for(var v=0;v<n;v++){var p=e[v];u||(r.delete(p.k),k(t,p.prev,p.next)),ee(p.e,!u)}})}function qs(t,e,s,r,i,n=null){var a=t,u={flags:e,items:new Map,first:null},h=(e&ze)!==0;if(h){var v=t;a=C?ge(bt(v)):v.appendChild(Se())}C&&Be();var p=null,b=!1,g=new Map,A=yt(()=>{var T=s();return Ze(T)?T:T==null?[]:Je(T)}),c,_;function d(){ns(_,c,u,g,a,i,e,r,s),n!==null&&(c.length===0?p?We(p):p=Y(()=>n(a)):p!==null&&Xe(p,()=>{p=null}))}oe(()=>{_??(_=Mt),c=x(A);var T=c.length;if(b&&T===0)return;b=T===0;let P=!1;if(C){var y=wt(a)===St;y!==(T===0)&&(a=Le(),ge(a),Z(!1),P=!0)}if(C){for(var m=null,w,o=0;o<T;o++){if(B.nodeType===At&&B.data===Tt){a=B,P=!0,Z(!1);break}var f=c[o],l=r(f,o);w=be(B,u,m,null,f,l,o,i,e,s),u.items.set(l,w),m=w}T>0&&ge(Le())}if(C)T===0&&n&&(p=Y(()=>n(a)));else if(xe()){var E=new Set,I=Ye;for(o=0;o<T;o+=1){f=c[o],l=r(f,o);var G=u.items.get(l)??g.get(l);G?e&(ue|fe)&&rt(G,f,o,e):(w=be(null,u,null,null,f,l,o,i,e,s,!0),g.set(l,w)),E.add(l)}for(const[L,ie]of u.items)E.has(L)||I.skipped_effects.add(ie.e);I.add_callback(d)}else d();P&&Z(!0),x(A)}),C&&(a=B)}function ns(t,e,s,r,i,n,a,u,h){var Pe,Ee,Ie,Ne;var v=(a&It)!==0,p=(a&(ue|fe))!==0,b=e.length,g=s.items,A=s.first,c=A,_,d=null,T,P=[],y=[],m,w,o,f;if(v)for(f=0;f<b;f+=1)m=e[f],w=u(m,f),o=g.get(w),o!==void 0&&((Pe=o.a)==null||Pe.measure(),(T??(T=new Set)).add(o));for(f=0;f<b;f+=1){if(m=e[f],w=u(m,f),o=g.get(w),o===void 0){var l=r.get(w);if(l!==void 0){r.delete(w),g.set(w,l);var E=d?d.next:c;k(s,d,l),k(s,l,E),_e(l,E,i),d=l}else{var I=c?c.e.nodes_start:i;d=be(I,s,d,d===null?s.first:d.next,m,w,f,n,a,h)}g.set(w,d),P=[],y=[],c=d.next;continue}if(p&&rt(o,m,f,a),o.e.f&ve&&(We(o.e),v&&((Ee=o.a)==null||Ee.unfix(),(T??(T=new Set)).delete(o))),o!==c){if(_!==void 0&&_.has(o)){if(P.length<y.length){var G=y[0],L;d=G.prev;var ie=P[0],ce=P[P.length-1];for(L=0;L<P.length;L+=1)_e(P[L],G,i);for(L=0;L<y.length;L+=1)_.delete(y[L]);k(s,ie.prev,ce.next),k(s,d,ie),k(s,ce,G),c=G,d=ce,f-=1,P=[],y=[]}else _.delete(o),_e(o,c,i),k(s,o.prev,o.next),k(s,o,d===null?s.first:d.next),k(s,d,o),d=o;continue}for(P=[],y=[];c!==null&&c.k!==w;)c.e.f&ve||(_??(_=new Set)).add(c),y.push(c),c=c.next;if(c===null)continue;o=c}P.push(o),d=o,c=o.next}if(c!==null||_!==void 0){for(var Q=_===void 0?[]:Je(_);c!==null;)c.e.f&ve||Q.push(c),c=c.next;var de=Q.length;if(de>0){var dt=a&ze&&b===0?i:null;if(v){for(f=0;f<de;f+=1)(Ie=Q[f].a)==null||Ie.measure();for(f=0;f<de;f+=1)(Ne=Q[f].a)==null||Ne.fix()}as(s,Q,dt)}}v&&et(()=>{var Ce;if(T!==void 0)for(o of T)(Ce=o.a)==null||Ce.apply()}),t.first=s.first&&s.first.e,t.last=d&&d.e;for(var ht of r.values())ee(ht.e);r.clear()}function rt(t,e,s,r){r&ue&&Me(t.v,e),r&fe?Me(t.i,s):t.i=s}function be(t,e,s,r,i,n,a,u,h,v,p){var b=(h&ue)!==0,g=(h&Et)===0,A=b?g?Pt(i,!1,!1):Re(i):i,c=h&fe?Re(a):a,_={i:c,v:A,k:n,a:null,e:null,prev:s,next:r};try{if(t===null){var d=document.createDocumentFragment();d.append(t=Se())}return _.e=Y(()=>u(t,A,c,v),C),_.e.prev=s&&s.e,_.e.next=r&&r.e,s===null?p||(e.first=_):(s.next=_,s.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function _e(t,e,s){for(var r=t.next?t.next.e.nodes_start:s,i=e?e.e.nodes_start:s,n=t.e.nodes_start;n!==null&&n!==r;){var a=Nt(n);i.before(n),n=a}}function k(t,e,s){e===null?t.first=s:(e.next=s,e.e.next=s&&s.e),s!==null&&(s.prev=e,s.e.prev=e&&e.e)}function os(t,e){var s=void 0,r;oe(()=>{s!==(s=e())&&(r&&(ee(r),r=null),s&&(r=Y(()=>{tt(()=>s(t))})))})}function it(t){var e,s,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(s=it(t[e]))&&(r&&(r+=" "),r+=s)}else for(s in t)t[s]&&(r&&(r+=" "),r+=s);return r}function us(){for(var t,e,s=0,r="",i=arguments.length;s<i;s++)(t=arguments[s])&&(e=it(t))&&(r&&(r+=" "),r+=e);return r}function fs(t){return typeof t=="object"?us(t):t??""}const Ge=[...`
2
+ \r\f \v\uFEFF`];function ls(t,e,s){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),s){for(var i in s)if(s[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,a=0;(a=r.indexOf(i,a))>=0;){var u=a+n;(a===0||Ge.includes(r[a-1]))&&(u===r.length||Ge.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function Ue(t,e=!1){var s=e?" !important;":";",r="";for(var i in t){var n=t[i];n!=null&&n!==""&&(r+=" "+i+": "+n+s)}return r}function pe(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function cs(t,e){if(e){var s="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,u=!1,h=[];r&&h.push(...Object.keys(r).map(pe)),i&&h.push(...Object.keys(i).map(pe));var v=0,p=-1;const _=t.length;for(var b=0;b<_;b++){var g=t[b];if(u?g==="/"&&t[b-1]==="*"&&(u=!1):n?n===g&&(n=!1):g==="/"&&t[b+1]==="*"?u=!0:g==='"'||g==="'"?n=g:g==="("?a++:g===")"&&a--,!u&&n===!1&&a===0){if(g===":"&&p===-1)p=b;else if(g===";"||b===_-1){if(p!==-1){var A=pe(t.substring(v,p).trim());if(!h.includes(A)){g!==";"&&b++;var c=t.substring(v,b).trim();s+=" "+c+";"}}v=b+1,p=-1}}}}return r&&(s+=Ue(r)),i&&(s+=Ue(i,!0)),s=s.trim(),s===""?null:s}return t==null?null:String(t)}function ds(t,e,s,r,i,n){var a=t.__className;if(C||a!==s||a===void 0){var u=ls(s,r,n);(!C||u!==t.getAttribute("class"))&&(u==null?t.removeAttribute("class"):e?t.className=u:t.setAttribute("class",u)),t.__className=s}else if(n&&i!==n)for(var h in n){var v=!!n[h];(i==null||v!==!!i[h])&&t.classList.toggle(h,v)}return n}function me(t,e={},s,r){for(var i in s){var n=s[i];e[i]!==n&&(s[i]==null?t.style.removeProperty(i):t.style.setProperty(i,n,r))}}function hs(t,e,s,r){var i=t.__style;if(C||i!==e){var n=cs(e,r);(!C||n!==t.getAttribute("style"))&&(n==null?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}else r&&(Array.isArray(r)?(me(t,s==null?void 0:s[0],r[0]),me(t,s==null?void 0:s[1],r[1],"important")):me(t,s,r));return r}function ye(t,e,s=!1){if(t.multiple){if(e==null)return;if(!Ze(e))return Rt();for(var r of t.options)r.selected=e.includes(qe(r));return}for(r of t.options){var i=qe(r);if(kt(i,e)){r.selected=!0;return}}(!s||e!==void 0)&&(t.selectedIndex=-1)}function gs(t){var e=new MutationObserver(()=>{ye(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Dt(()=>{e.disconnect()})}function qe(t){return"__value"in t?t.__value:t.value}const z=Symbol("class"),J=Symbol("style"),at=Symbol("is custom element"),nt=Symbol("is html");function vs(t){if(C){var e=!1,s=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;ae(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;ae(t,"checked",null),t.checked=i}}};t.__on_r=s,et(s),$t()}}function Vs(t,e){var s=Te(t);s.value===(s.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function _s(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,s,r){var i=Te(t);C&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||i[e]!==(i[e]=s)&&(e==="loading"&&(t[jt]=s),s==null?t.removeAttribute(e):typeof s!="string"&&ot(t).includes(e)?t[e]=s:t.setAttribute(e,s))}function ps(t,e,s,r,i=!1,n=!1){if(C&&i&&t.tagName==="INPUT"){var a=t,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in s||vs(a)}var h=Te(t),v=h[at],p=!h[nt];let b=C&&v;b&&Z(!1);var g=e||{},A=t.tagName==="OPTION";for(var c in e)c in s||(s[c]=null);s.class?s.class=fs(s.class):(r||s[z])&&(s.class=null),s[J]&&(s.style??(s.style=null));var _=ot(t);for(const o in s){let f=s[o];if(A&&o==="value"&&f==null){t.value=t.__value="",g[o]=f;continue}if(o==="class"){var d=t.namespaceURI==="http://www.w3.org/1999/xhtml";ds(t,d,f,r,e==null?void 0:e[z],s[z]),g[o]=f,g[z]=s[z];continue}if(o==="style"){hs(t,f,e==null?void 0:e[J],s[J]),g[o]=f,g[J]=s[J];continue}var T=g[o];if(!(f===T&&!(f===void 0&&t.hasAttribute(o)))){g[o]=f;var P=o[0]+o[1];if(P!=="$$")if(P==="on"){const l={},E="$$"+o;let I=o.slice(2);var y=Jt(I);if(Xt(I)&&(I=I.slice(0,-7),l.capture=!0),!y&&T){if(f!=null)continue;t.removeEventListener(I,g[E],l),g[E]=null}if(f!=null)if(y)t[`__${I}`]=f,Qt([I]);else{let G=function(L){g[o].call(this,L)};g[E]=xt(I,t,G,l)}else y&&(t[`__${I}`]=void 0)}else if(o==="style")ae(t,o,f);else if(o==="autofocus")Vt(t,!!f);else if(!v&&(o==="__value"||o==="value"&&f!=null))t.value=t.__value=f;else if(o==="selected"&&A)_s(t,f);else{var m=o;p||(m=zt(m));var w=m==="defaultValue"||m==="defaultChecked";if(f==null&&!v&&!w)if(h[o]=null,m==="value"||m==="checked"){let l=t;const E=e===void 0;if(m==="value"){let I=l.defaultValue;l.removeAttribute(m),l.defaultValue=I,l.value=l.__value=E?I:null}else{let I=l.defaultChecked;l.removeAttribute(m),l.defaultChecked=I,l.checked=E?I:!1}}else t.removeAttribute(o);else w||_.includes(m)&&(v||typeof f!="string")?(t[m]=f,m in h&&(h[m]=Qe)):typeof f!="function"&&ae(t,m,f)}}}return b&&Z(!0),g}function $s(t,e,s=[],r=[],i,n=!1,a=!1){Ft(s,r,u=>{var h=void 0,v={},p=t.nodeName==="SELECT",b=!1;if(oe(()=>{var A=e(...u.map(x)),c=ps(t,h,A,i,n,a);b&&p&&"value"in A&&ye(t,A.value);for(let d of Object.getOwnPropertySymbols(v))A[d]||ee(v[d]);for(let d of Object.getOwnPropertySymbols(A)){var _=A[d];d.description===Ut&&(!h||_!==h[d])&&(v[d]&&ee(v[d]),v[d]=Y(()=>os(t,()=>_))),c[d]=_}h=c}),p){var g=t;tt(()=>{ye(g,h.value,!0),gs(g)})}b=!0})}function Te(t){return t.__attributes??(t.__attributes={[at]:t.nodeName.includes("-"),[nt]:t.namespaceURI===Ht})}var Ve=new Map;function ot(t){var e=t.getAttribute("is")||t.nodeName,s=Ve.get(e);if(s)return s;Ve.set(e,s=[]);for(var r,i=t,n=Element.prototype;n!==i;){r=qt(i);for(var a in r)r[a].set&&s.push(a);i=Gt(i)}return s}const ms="data-no-translate",js="paraglide:lang",Ks="paraglide_lang",ut={},bs=()=>Bt(ut),Bs=t=>{Kt(ut,t)};function Ys(){const t=bs();function e(r,i){return typeof r!="string"||!t?r:t.translateHref(r,i)}function s(r,i){if(r[ms])return r;for(const{attribute_name:n,lang_attribute_name:a}of i)if(n in r){const u=r[n],h=a?r[a]:void 0;r[n]=e(u,typeof h=="string"?h:void 0)}return r}return[e,s]}const ft={setting_id:"00000000-0000-0000-0000-000000000000",grid_view_sample_rendering:"contain",key_hide_annotations:"v",key_go_back:"Escape",show_annotation_text_labels:!0,show_sample_filenames:!0,created_at:new Date().toISOString(),updated_at:new Date().toISOString()},R=le(ft),$=le(!1),K=le(null),W=le(!1),ys=Ae(R,t=>t.grid_view_sample_rendering||"contain"),ws=Ae(R,t=>t.show_annotation_text_labels??!0),Ss=Ae(R,t=>t.show_sample_filenames??!0),$e=async()=>{if(R.set(ft),!(H(W)||H($))){$.set(!0),K.set(null);try{const{data:t}=await Zt();t&&(R.set(t),W.set(!0))}catch(t){K.set(String(t))}finally{$.set(!1)}}},lt=async t=>{$.set(!0),K.set(null);try{const e=H(R),s={setting_id:e.setting_id||"",grid_view_sample_rendering:t.grid_view_sample_rendering||e.grid_view_sample_rendering||"contain",key_hide_annotations:t.key_hide_annotations||e.key_hide_annotations||"v",key_go_back:t.key_go_back||e.key_go_back||"Escape",show_annotation_text_labels:t.show_annotation_text_labels!==void 0?t.show_annotation_text_labels:e.show_annotation_text_labels??!0,show_sample_filenames:t.show_sample_filenames!==void 0?t.show_sample_filenames:e.show_sample_filenames??!0,created_at:e.created_at||new Date().toISOString(),updated_at:new Date().toISOString()},r=await st.POST("/api/settings",{body:s,headers:{"Content-Type":"application/json"}});if(r.error){const i=JSON.stringify(r.error);return console.error("Settings API error:",i),K.set(i),{success:!1,error:i}}return r.data?(R.set(r.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(e){const s=String(e);return console.error("Error saving settings:",s),K.set(s),{success:!1,error:s}}finally{$.set(!1)}},As=async t=>lt({grid_view_sample_rendering:t}),Ts=async t=>{const e=!!t,r={...H(R),show_annotation_text_labels:e};try{const i=await st.POST("/api/settings",{body:r,headers:{"Content-Type":"application/json"}});return i.error?(console.error("API error saving setting:",i.error),{success:!1,error:JSON.stringify(i.error)}):i.data?(R.set(i.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(i){return console.error("Error saving annotation text label setting:",i),{success:!1,error:String(i)}}};function xs(){return!H(W)&&!H($)&&$e(),{settingsStore:R,isLoadingStore:$,errorStore:K,isLoadedStore:W,gridViewSampleRenderingStore:ys,showAnnotationTextLabelsStore:ws,showSampleFilenamesStore:Ss,initSettings:$e,saveSettings:lt,updateGridViewSampleRendering:As,updateShowAnnotationTextLabels:Ts,get settings(){return H(R)},get isLoading(){return H($)},get error(){return H(K)},get isLoaded(){return H(W)}}}var D,O,j,F,V,Ke,Qs=(Ke=class extends Wt{constructor(e){super();U(this,F);U(this,D);U(this,O);U(this,j);this.mutationId=e.mutationId,X(this,O,e.mutationCache),X(this,D,[]),this.state=e.state||Ps(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){S(this,D).includes(e)||(S(this,D).push(e),this.clearGcTimeout(),S(this,O).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,D,S(this,D).filter(s=>s!==e)),this.scheduleGc(),S(this,O).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){S(this,D).length||(this.state.status==="pending"?this.scheduleGc():S(this,O).remove(this))}continue(){var e;return((e=S(this,j))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,n,a,u,h,v,p,b,g,A,c,_,d,T,P,y,m,w,o,f;X(this,j,es({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,E)=>{q(this,F,V).call(this,{type:"failed",failureCount:l,error:E})},onPause:()=>{q(this,F,V).call(this,{type:"pause"})},onContinue:()=>{q(this,F,V).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,O).canRun(this)}));const s=this.state.status==="pending",r=!S(this,j).canStart();try{if(!s){q(this,F,V).call(this,{type:"pending",variables:e,isPaused:r}),await((n=(i=S(this,O).config).onMutate)==null?void 0:n.call(i,e,this));const E=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,e));E!==this.state.context&&q(this,F,V).call(this,{type:"pending",context:E,variables:e,isPaused:r})}const l=await S(this,j).start();return await((v=(h=S(this,O).config).onSuccess)==null?void 0:v.call(h,l,e,this.state.context,this)),await((b=(p=this.options).onSuccess)==null?void 0:b.call(p,l,e,this.state.context)),await((A=(g=S(this,O).config).onSettled)==null?void 0:A.call(g,l,null,this.state.variables,this.state.context,this)),await((_=(c=this.options).onSettled)==null?void 0:_.call(c,l,null,e,this.state.context)),q(this,F,V).call(this,{type:"success",data:l}),l}catch(l){try{throw await((T=(d=S(this,O).config).onError)==null?void 0:T.call(d,l,e,this.state.context,this)),await((y=(P=this.options).onError)==null?void 0:y.call(P,l,e,this.state.context)),await((w=(m=S(this,O).config).onSettled)==null?void 0:w.call(m,void 0,l,this.state.variables,this.state.context,this)),await((f=(o=this.options).onSettled)==null?void 0:f.call(o,void 0,l,e,this.state.context)),l}finally{q(this,F,V).call(this,{type:"error",error:l})}}finally{S(this,O).runNext(this)}}},D=new WeakMap,O=new WeakMap,j=new WeakMap,F=new WeakSet,V=function(e){const s=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ts.batch(()=>{S(this,D).forEach(r=>{r.onMutationUpdate(e)}),S(this,O).notify({mutation:this,type:"updated",action:e})})},Ke);function Ps(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function Xs(t){return{onFetch:(e,s)=>{var p,b,g,A,c;const r=e.options,i=(g=(b=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:b.fetchMore)==null?void 0:g.direction,n=((A=e.state.data)==null?void 0:A.pages)||[],a=((c=e.state.data)==null?void 0:c.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const v=async()=>{let _=!1;const d=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?_=!0:e.signal.addEventListener("abort",()=>{_=!0}),e.signal)})},T=ss(e.options,e.fetchOptions),P=async(y,m,w)=>{if(_)return Promise.reject();if(m==null&&y.pages.length)return Promise.resolve(y);const o={client:e.client,queryKey:e.queryKey,pageParam:m,direction:w?"backward":"forward",meta:e.options.meta};d(o);const f=await T(o),{maxPages:l}=e.options,E=w?rs:is;return{pages:E(y.pages,f,l),pageParams:E(y.pageParams,m,l)}};if(i&&n.length){const y=i==="backward",m=y?ct:we,w={pages:n,pageParams:a},o=m(r,w);u=await P(w,o,y)}else{const y=t??n.length;do{const m=h===0?a[0]??r.initialPageParam:we(r,u);if(h>0&&m==null)break;u=await P(u,m),h++}while(h<y)}return u};e.options.persister?e.fetchFn=()=>{var _,d;return(d=(_=e.options).persister)==null?void 0:d.call(_,v,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=v}}}function we(t,{pages:e,pageParams:s}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function ct(t,{pages:e,pageParams:s}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,s[0],s):void 0}function zs(t,e){return e?we(t,e)!=null:!1}function Js(t,e){return!e||!t.getPreviousPageParam?!1:ct(t,e)!=null}function Zs(...t){return t.filter(Boolean).join(" ")}const Es=typeof document<"u";let je=0;var te,se,re;class Is{constructor(){U(this,te,ke(De([])));U(this,se,ke(De([])));U(this,re,e=>{const s=this.toasts.findIndex(r=>r.id===e);return s===-1?null:s});N(this,"addToast",e=>{Es&&this.toasts.unshift(e)});N(this,"updateToast",({id:e,data:s,type:r,message:i})=>{const n=this.toasts.findIndex(u=>u.id===e),a=this.toasts[n];this.toasts[n]={...a,...s,id:e,title:i,type:r,updated:!0}});N(this,"create",e=>{var u;const{message:s,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||e.id&&((u=e.id)==null?void 0:u.length)>0?e.id:je++,n=e.dismissable===void 0?!0:e.dismissable,a=e.type===void 0?"default":e.type;return He(()=>{this.toasts.find(v=>v.id===i)?this.updateToast({id:i,data:e,type:a,message:s,dismissable:n}):this.addToast({...r,id:i,title:s,dismissable:n,type:a})}),i});N(this,"dismiss",e=>(He(()=>{if(e===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const s=this.toasts.findIndex(r=>r.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e));N(this,"remove",e=>{if(e===void 0){this.toasts=[];return}const s=S(this,re).call(this,e);if(s!==null)return this.toasts.splice(s,1),e});N(this,"message",(e,s)=>this.create({...s,type:"default",message:e}));N(this,"error",(e,s)=>this.create({...s,type:"error",message:e}));N(this,"success",(e,s)=>this.create({...s,type:"success",message:e}));N(this,"info",(e,s)=>this.create({...s,type:"info",message:e}));N(this,"warning",(e,s)=>this.create({...s,type:"warning",message:e}));N(this,"loading",(e,s)=>this.create({...s,type:"loading",message:e}));N(this,"promise",(e,s)=>{if(!s)return;let r;s.loading!==void 0&&(r=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const i=e instanceof Promise?e:e();let n=r!==void 0;return i.then(a=>{if(typeof a=="object"&&a&&"ok"in a&&typeof a.ok=="boolean"&&!a.ok){n=!1;const u=Ns(a);this.create({id:r,type:"error",message:u})}else if(s.success!==void 0){n=!1;const u=typeof s.success=="function"?s.success(a):s.success;this.create({id:r,type:"success",message:u})}}).catch(a=>{if(s.error!==void 0){n=!1;const u=typeof s.error=="function"?s.error(a):s.error;this.create({id:r,type:"error",message:u})}}).finally(()=>{var a;n&&(this.dismiss(r),r=void 0),(a=s.finally)==null||a.call(s)}),r});N(this,"custom",(e,s)=>{const r=(s==null?void 0:s.id)||je++;return this.create({component:e,id:r,...s}),r});N(this,"removeHeight",e=>{this.heights=this.heights.filter(s=>s.toastId!==e)});N(this,"setHeight",e=>{const s=S(this,re).call(this,e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e});N(this,"reset",()=>{this.toasts=[],this.heights=[]})}get toasts(){return x(S(this,te))}set toasts(e){Fe(S(this,te),e,!0)}get heights(){return x(S(this,se))}set heights(e){Fe(S(this,se),e,!0)}}te=new WeakMap,se=new WeakMap,re=new WeakMap;function Ns(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const M=new Is;function Cs(t,e){return M.create({message:t,...e})}var ne;class Ws{constructor(){U(this,ne,Yt(()=>M.toasts.filter(e=>!e.dismiss)))}get toasts(){return x(S(this,ne))}}ne=new WeakMap;const Os=Cs,er=Object.assign(Os,{success:M.success,info:M.info,warning:M.warning,error:M.error,custom:M.custom,message:M.message,promise:M.promise,dismiss:M.dismiss,loading:M.loading,getActiveToasts:()=>M.toasts.filter(t=>!t.dismiss)});export{Ks as L,Qs as M,J as S,$s as a,ds as b,ae as c,Bs as d,qs as e,js as f,Ys as g,Xs as h,Us as i,fs as j,Gs as k,M as l,Zs as m,Ws as n,us as o,Js as p,zs as q,Ps as r,hs as s,er as t,xs as u,vs as v,Vs as w};
@@ -1,3 +1,3 @@
1
- var tt=e=>{throw TypeError(e)};var Mt=(e,t,n)=>t.has(e)||tt("Cannot "+n);var k=(e,t,n)=>(Mt(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{be as mt,u as qt,d as he,h as _t,w as De,al as C,g as N,Z as O,aM as Gt}from"./C3xJX0nD.js";import{l as Ht}from"./DIeogL5L.js";import{H as Se,S as Fe,R as Ve}from"./CYgJF_JY.js";function ge(e){he===null&&mt(),Ht&&he.l!==null?Kt(he).m.push(e):qt(()=>{const t=_t(e);if(typeof t=="function")return t})}function Jn(e){he===null&&mt(),ge(()=>()=>_t(e))}function Kt(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}new URL("sveltekit-internal://");function Wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Yt(e){return e.split("%25").map(decodeURI).join("%25")}function zt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Te({href:e}){return e.split("#")[0]}function Jt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Xt(...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 a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Zt(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.buffer}const Qt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&Y.delete(Be(e)),Qt(e,t));const Y=new Map;function en(e,t){const n=Be(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&Y.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Zt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function tn(e,t,n){if(Y.size>0){const r=Be(e,n),a=Y.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);Y.delete(r)}}return window.fetch(t,n)}function Be(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Xt(...a)}"]`}return r}const nn=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function an(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${on(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Pe(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const h=nn.exec(c),[,u,_,f,m]=h;return t.push({name:f,matcher:m,optional:!!u,rest:!!_,chained:_?l===1&&i[0]==="":!1}),_?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return Pe(c)}).join("")}).join("")}/?$`),params:t}}function rn(e){return!/^\([^)]+\)$/.test(e)}function on(e){return e.slice(1).split("/").filter(rn)}function sn(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(h=>h).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const h=t[o+1],u=a[o+1];h&&!h.rest&&h.optional&&u&&c.chained&&(i=0),!h&&!u&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function Pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function cn({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,h]])=>{const{pattern:u,params:_}=an(o),f={id:o,exec:m=>{const p=u.exec(m);if(p)return sn(p,_,r)},errors:[1,...h||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function wt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function nt(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var ut;const P=((ut=globalThis.__sveltekit_6ycv9w)==null?void 0:ut.base)??"";var dt;const ln=((dt=globalThis.__sveltekit_6ycv9w)==null?void 0:dt.assets)??P,fn="1761033043766",yt="sveltekit:snapshot",vt="sveltekit:scroll",bt="sveltekit:states",un="sveltekit:pageurl",q="sveltekit:history",J="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function kt(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 Me(){return{x:pageXOffset,y:pageYOffset}}function M(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const at={...V,"":V.hover};function At(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function St(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=At(e)}}function Oe(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 a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||Ee(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===fe&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function me(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=M(o,"preload-code")),a===null&&(a=M(o,"preload-data")),t===null&&(t=M(o,"keepfocus")),n===null&&(n=M(o,"noscroll")),s===null&&(s=M(o,"reload")),i===null&&(i=M(o,"replacestate")),o=At(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:at[r??"off"],preload_data:at[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function rt(e){const t=De(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const Et={v:()=>{}};function dn(){const{set:e,subscribe:t}=De(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ln}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==fn;return i&&(e(!0),Et.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function Ee(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Xn(e){}function ot(e){const t=pn(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function pn(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=hn.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const gn=-1,mn=-2,_n=-3,wn=-4,yn=-5,vn=-6;function bn(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===gn)return;if(s===_n)return NaN;if(s===wn)return 1/0;if(s===yn)return-1/0;if(s===vn)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t==null?void 0:t[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const h=new Set;r[s]=h;for(let f=1;f<o.length;f+=1)h.add(a(o[f]));break;case"Map":const u=new Map;r[s]=u;for(let f=1;f<o.length;f+=2)u.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const _=Object.create(null);r[s]=_;for(let f=1;f<o.length;f+=2)_[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],m=o[1],p=ot(m),d=new f(p);r[s]=d;break}case"ArrayBuffer":{const f=o[1],m=ot(f);r[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const h=o[l];h!==mn&&(c[l]=a(h))}}else{const c={};r[s]=c;for(const l in o){const h=o[l];c[l]=a(h)}}return r[s]}return a(0)}const Rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Rt];const kn=new Set([...Rt]);[...kn];function An(e){return e.filter(t=>t!=null)}const Sn="x-sveltekit-invalidated",En="x-sveltekit-trailing-slash";function _e(e){return e instanceof Se||e instanceof Fe?e.status:500}function Rn(e){return e instanceof Fe?e.text:"Internal Error"}let R,X,xe;const In=ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(ge.toString());var ee,te,ne,ae,re,oe,se,ie,ht,ce,pt,le,gt;In?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},xe={current:!1}):(R=new(ht=class{constructor(){x(this,ee,C({}));x(this,te,C(null));x(this,ne,C(null));x(this,ae,C({}));x(this,re,C({id:null}));x(this,oe,C({}));x(this,se,C(-1));x(this,ie,C(new URL("https://example.com")))}get data(){return N(k(this,ee))}set data(t){O(k(this,ee),t)}get form(){return N(k(this,te))}set form(t){O(k(this,te),t)}get error(){return N(k(this,ne))}set error(t){O(k(this,ne),t)}get params(){return N(k(this,ae))}set params(t){O(k(this,ae),t)}get route(){return N(k(this,re))}set route(t){O(k(this,re),t)}get state(){return N(k(this,oe))}set state(t){O(k(this,oe),t)}get status(){return N(k(this,se))}set status(t){O(k(this,se),t)}get url(){return N(k(this,ie))}set url(t){O(k(this,ie),t)}},ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ae=new WeakMap,re=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ht),X=new(pt=class{constructor(){x(this,ce,C(null))}get current(){return N(k(this,ce))}set current(t){O(k(this,ce),t)}},ce=new WeakMap,pt),xe=new(gt=class{constructor(){x(this,le,C(!1))}get current(){return N(k(this,le))}set current(t){O(k(this,le),t)}},le=new WeakMap,gt),Et.v=()=>xe.current=!0);function It(e){Object.assign(R,e)}const Un="/__data.json",Ln=".html__data.json";function Tn(e){return e.endsWith(".html")?e.replace(/\.html$/,Ln):e.replace(/\/$/,"")+Un}const Pn=new Set(["icon","shortcut icon","apple-touch-icon"]),B=wt(vt)??{},Z=wt(yt)??{},D={url:rt({}),page:rt({}),navigating:De(null),updated:dn()};function qe(e){B[e]=Me()}function xn(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;Z[n];)delete Z[n],n+=1}function K(e){return location.href=e.href,new Promise(()=>{})}async function Ut(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(P||"/");e&&await e.update()}}function st(){}let Ge,je,we,j,$e,A;const ye=[],ve=[];let L=null;const de=new Map,He=new Set,Cn=new Set,G=new Set;let y={branch:[],error:null,url:null},Ke=!1,be=!1,it=!0,Q=!1,W=!1,Lt=!1,We=!1,Ye,E,T,$;const z=new Set;let Ce;async function ta(e,t,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),A=e,await((s=(a=e.hooks).init)==null?void 0:s.call(a)),Ge=cn(e),j=document.documentElement,$e=t,je=e.nodes[0],we=e.nodes[1],je(),we(),E=(i=history.state)==null?void 0:i[q],T=(o=history.state)==null?void 0:o[J],E||(E=T=Date.now(),history.replaceState({...history.state,[q]:E,[J]:T},""));const r=B[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await qn($e,n):await Bn(A.hash?Hn(new URL(location.href)):location.href,{replaceState:!0}),Mn()}async function Nn(){if(await(Ce||(Ce=Promise.resolve())),!Ce)return;Ce=null;const e=$={},t=await ue(y.url,!0);L=null;const n=t&&await Xe(t);if(!(!n||e!==$)){if(n.type==="redirect")return Re(new URL(n.location,y.url).href,{},1,e);n.props.page&&Object.assign(R,n.props.page),y=n.state,Tt(),Ye.$set(n.props),It(n.props.page)}}function Tt(){ye.length=0,We=!1}function Pt(e){ve.some(t=>t==null?void 0:t.snapshot)&&(Z[e]=ve.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function xt(e){var t;(t=Z[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ve[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ct(){qe(E),nt(vt,B),Pt(T),nt(yt,Z)}async function Re(e,t,n,r){return pe({type:"goto",url:kt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(We=!0),t.invalidate&&t.invalidate.forEach(Dt)}})}async function On(e){if(e.id!==(L==null?void 0:L.id)){const t={};z.add(t),L={id:e.id,token:t,promise:Xe({...e,preload:t}).then(n=>(z.delete(t),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Ne(e){var n;const t=(n=await ue(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].map(r=>r==null?void 0:r[1]()))}function Ct(e,t,n){var s;y=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(R,e.props.page),Ye=new A.root({target:t,props:{...e.props,stores:D,components:ve},hydrate:n,sync:!1}),xt(T);const a={from:null,to:{params:y.params,route:{id:((s=y.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(a)),be=!0}function ke({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(P&&(e.pathname===P||e.pathname===P+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);e.pathname=Wt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:An(n).map(f=>f.node.component),page:Ze(R)}};i!==void 0&&(c.props.form=i);let l={},h=!R,u=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const m=n[f],p=y.branch[f];(m==null?void 0:m.data)!==(p==null?void 0:p.data)&&(h=!0),m&&(l={...l,...m.data},h&&(c.props[`data_${u}`]=l),u+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==R.form||h)&&(c.props.page={error:a,params:t,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:h?l:R.data}),c}async function ze({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){var h,u,_;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if((h=l.universal)!=null&&h.load){let f=function(...p){for(const d of p){const{href:v}=new URL(d,n);c.dependencies.add(v)}};const m={route:new Proxy(a,{get:(p,d)=>(o&&(c.route=!0),p[d])}),params:new Proxy(r,{get:(p,d)=>(o&&c.params.add(d),p[d])}),data:(s==null?void 0:s.data)??null,url:Jt(n,()=>{o&&(c.url=!0)},p=>{o&&c.search_params.add(p)},A.hash),async fetch(p,d){p instanceof Request&&(d={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:[...p.headers].length?p.headers:void 0,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...d});const{resolved:v,promise:I}=Nt(p,d,n);return o&&f(v.href),I},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),t()},untrack(p){o=!1;try{return p()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=l.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Nt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=be?tn(r,a.href,t):en(r,t);return{resolved:a,promise:s}}function lt(e,t,n,r,a,s){if(We)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ye.some(o=>o(new URL(i))))return!0;return!1}function Je(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function jn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ft({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ze(R),constructors:[]}}}async function Xe({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===e)return z.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let h=null;const u=y.url?e!==Ae(y.url):!1,_=y.route?a.id!==y.route.id:!1,f=jn(y.url,n);let m=!1;const p=l.map((g,w)=>{var F;const b=y.branch[w],S=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||lt(m,_,u,f,(F=b.server)==null?void 0:F.uses,r));return S&&(m=!0),S});if(p.some(Boolean)){try{h=await Ft(n,p)}catch(g){const w=await H(g,{url:n,params:r,route:{id:e}});return z.has(s)?ft({error:w,url:n,params:r,route:a}):Ie({status:_e(g),error:w,url:n,route:a})}if(h.type==="redirect")return h}const d=h==null?void 0:h.nodes;let v=!1;const I=l.map(async(g,w)=>{var Ue;if(!g)return;const b=y.branch[w],S=d==null?void 0:d[w];if((!S||S.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!lt(v,_,u,f,(Ue=b.universal)==null?void 0:Ue.uses,r))return b;if(v=!0,(S==null?void 0:S.type)==="error")throw S;return ze({loader:g[1],url:n,params:r,route:a,parent:async()=>{var et;const Qe={};for(let Le=0;Le<w;Le+=1)Object.assign(Qe,(et=await I[Le])==null?void 0:et.data);return Qe},server_data_node:Je(S===void 0&&g[0]?{type:"skip"}:S??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of I)g.catch(()=>{});const U=[];for(let g=0;g<l.length;g+=1)if(l[g])try{U.push(await I[g])}catch(w){if(w instanceof Ve)return{type:"redirect",location:w.location};if(z.has(s))return ft({error:await H(w,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=_e(w),S;if(d!=null&&d.includes(w))b=w.status??b,S=w.error;else if(w instanceof Se)S=w.body;else{if(await D.updated.check())return await Ut(),await K(n);S=await H(w,{params:r,url:n,route:{id:a.id}})}const F=await $n(g,U,i);return F?ke({url:n,params:r,branch:U.slice(0,F.idx).concat(F.node),status:b,error:S,route:a}):await jt(n,{id:a.id},S,b)}else U.push(void 0);return ke({url:n,params:r,branch:U,status:200,error:null,route:a,form:t?void 0:null})}async function $n(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ie({status:e,error:t,url:n,route:r}){const a={};let s=null;if(A.server_loads[0]===0)try{const o=await Ft(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==fe||n.pathname!==location.pathname||Ke)&&await K(n)}try{const o=await ze({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Je(s)}),c={node:await we(),loader:we,universal:null,server:null,data:null};return ke({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ve)return Re(new URL(o.location,location.href),{},0);throw o}}async function Dn(e){const t=e.href;if(de.has(t))return de.get(t);let n;try{const r=(async()=>{let a=await A.hooks.reroute({url:new URL(e),fetch:async(s,i)=>Nt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);A.hash?s.hash=a:s.pathname=a,a=s}return a})();de.set(t,r),n=await r}catch{de.delete(t);return}return n}async function ue(e,t){if(e&&!Ee(e,P,A.hash)){const n=await Dn(e);if(!n)return;const r=Fn(n);for(const a of Ge){const s=a.exec(r);if(s)return{id:Ae(e),invalidating:t,route:a,params:zt(s),url:e}}}}function Fn(e){return Yt(A.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(P.length))||"/"}function Ae(e){return(A.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ot({url:e,type:t,intent:n,delta:r}){let a=!1;const s=Bt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||He.forEach(o=>o(i)),a?null:s}async function pe({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=st,block:h=st}){const u=$;$=c;const _=await ue(t,!1),f=Ot({url:t,type:e,delta:n==null?void 0:n.delta,intent:_});if(!f){h(),$===c&&($=u);return}const m=E,p=T;l(),Q=!0,be&&D.navigating.set(X.current=f.navigation);let d=_&&await Xe(_);if(!d){if(Ee(t,P,A.hash))return await K(t);d=await jt(t,{id:null},await H(new Fe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(_==null?void 0:_.url)||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(d.type==="redirect")if(o>=20)d=await Ie({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Re(new URL(d.location,t).href,{},o+1,c),!1;else d.props.page.status>=400&&await D.updated.check()&&(await Ut(),await K(t));if(Tt(),qe(m),Pt(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,w={[q]:E+=g,[J]:T+=g,[bt]:i};(s?history.replaceState:history.pushState).call(history,w,"",t),s||xn(E,T)}if(L=null,d.props.page.state=i,be){y=d.state,d.props.page&&(d.props.page.url=t);const g=(await Promise.all(Array.from(Cn,w=>w(f.navigation)))).filter(w=>typeof w=="function");if(g.length>0){let w=function(){g.forEach(b=>{G.delete(b)})};g.push(w),g.forEach(b=>{G.add(b)})}Ye.$set(d.props),It(d.props.page),Lt=!0}else Ct(d,$e,!1);const{activeElement:v}=document;await Gt();const I=n?n.scroll:a?Me():null;if(it){const g=t.hash&&document.getElementById(decodeURIComponent(A.hash?t.hash.split("#")[2]??"":t.hash.slice(1)));I?scrollTo(I.x,I.y):g?g.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==v&&document.activeElement!==document.body;!r&&!U&&Gn(),it=!0,d.props.page&&Object.assign(R,d.props.page),Q=!1,e==="popstate"&&xt(T),f.fulfil(void 0),G.forEach(g=>g(f.navigation)),D.navigating.set(X.current=null)}async function jt(e,t,n,r){return e.origin===fe&&e.pathname===location.pathname&&!Ke?await Ie({status:r,error:n,url:e,route:t}):await K(e)}function Vn(){let e,t,n;j.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,V.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],V.tap)}j.addEventListener("mousedown",r),j.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(Ne(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=St(o,j),h=l===t&&c>=n;if(!l||h)return;const{url:u,external:_,download:f}=Oe(l,P,A.hash);if(_||f)return;const m=me(l),p=u&&Ae(y.url)===Ae(u);if(!(m.reload||p))if(c<=m.preload_data){t=l,n=V.tap;const d=await ue(u,!1);if(!d)return;On(d)}else c<=m.preload_code&&(t=l,n=c,Ne(u))}function i(){a.disconnect();for(const o of j.querySelectorAll("a")){const{url:c,external:l,download:h}=Oe(o,P,A.hash);if(l||h)continue;const u=me(o);u.reload||(u.preload_code===V.viewport&&a.observe(o),u.preload_code===V.eager&&Ne(c))}}G.add(i),i()}function H(e,t){if(e instanceof Se)return e.body;const n=_e(e),r=Rn(e);return A.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function $t(e,t){ge(()=>(e.add(t),()=>{e.delete(t)}))}function na(e){$t(G,e)}function aa(e){$t(He,e)}function Bn(e,t={}){return e=new URL(kt(e)),e.origin!==fe?Promise.reject(new Error("goto: invalid URL")):Re(e,t,0)}function ra(e){return Dt(e),Nn()}function Dt(e){if(typeof e=="function")ye.push(e);else{const{href:t}=new URL(e,location.href);ye.push(n=>n.href===t)}}function Mn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ct(),!Q){const a=Bt(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};He.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ct()}),(t=navigator.connection)!=null&&t.saveData||Vn(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=St(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Oe(r,P,A.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=me(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[h,u]=(A.hash?a.hash.replace(/^#/,""):a.href).split("#"),_=h===Te(location);if(s||c.reload&&(!_||!u)){Ot({url:a,type:"link"})?Q=!0:n.preventDefault();return}if(u!==void 0&&_){const[,f]=y.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(W=!0,qe(E),e(a),!c.replace_state)return;W=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await pe({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(Ee(o,P,!1))return;const c=n.target,l=me(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const h=new FormData(c),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(h).toString(),pe({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[q]){const a=n.state[q];if($={},a===E)return;const s=B[a],i=n.state[bt]??{},o=new URL(n.state[un]??location.href),c=n.state[J],l=y.url?Te(location)===Te(y.url):!1;if(c===T&&(Lt||l)){i!==R.state&&(R.state=i),e(o),B[E]=Me(),s&&scrollTo(s.x,s.y),E=a;return}const u=a-E;await pe({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{E=a,T=c},block:()=>{history.go(-u)},nav_token:$})}else if(!W){const a=new URL(location.href);e(a),A.hash&&location.reload()}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[q]:++E,[J]:T},"",location.href))});for(const n of document.querySelectorAll("link"))Pn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&D.navigating.set(X.current=null)});function e(n){y.url=R.url=n,D.page.set(Ze(R)),D.page.notify()}}async function qn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ke=!0;const l=new URL(location.href);let h;({params:a={},route:s={id:null}}=await ue(l,!1)||{}),h=Ge.find(({id:f})=>f===s.id);let u,_=!0;try{const f=r.map(async(p,d)=>{const v=o[d];return v!=null&&v.uses&&(v.uses=Vt(v.uses)),ze({loader:A.nodes[p],url:l,params:a,route:s,parent:async()=>{const I={};for(let U=0;U<d;U+=1)Object.assign(I,(await f[U]).data);return I},server_data_node:Je(v)})}),m=await Promise.all(f);if(h){const p=h.layouts;for(let d=0;d<p.length;d++)p[d]||m.splice(d,0,void 0)}u=ke({url:l,params:a,branch:m,status:t,error:n,form:c,route:h??null})}catch(f){if(f instanceof Ve){await K(new URL(f.location,location.href));return}u=await Ie({status:_e(f),error:await H(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",_=!1}u.props.page&&(u.props.page.state={}),Ct(u,e,_)}async function Ft(e,t){var s;const n=new URL(e);n.pathname=Tn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(En,"1"),n.searchParams.append(Sn,t.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new Se(a.status,i)}return new Promise(async i=>{var _;const o=new Map,c=a.body.getReader(),l=new TextDecoder;function h(f){return bn(f,{...A.decoders,Promise:m=>new Promise((p,d)=>{o.set(m,{fulfil:p,reject:d})})})}let u="";for(;;){const{done:f,value:m}=await c.read();if(f&&!u)break;for(u+=!m&&u?`
1
+ var tt=e=>{throw TypeError(e)};var Mt=(e,t,n)=>t.has(e)||tt("Cannot "+n);var k=(e,t,n)=>(Mt(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{be as mt,u as qt,d as he,h as _t,w as De,al as C,g as N,Z as O,aM as Gt}from"./C3xJX0nD.js";import{l as Ht}from"./DIeogL5L.js";import{H as Se,S as Fe,R as Ve}from"./CYgJF_JY.js";function ge(e){he===null&&mt(),Ht&&he.l!==null?Kt(he).m.push(e):qt(()=>{const t=_t(e);if(typeof t=="function")return t})}function Jn(e){he===null&&mt(),ge(()=>()=>_t(e))}function Kt(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}new URL("sveltekit-internal://");function Wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Yt(e){return e.split("%25").map(decodeURI).join("%25")}function zt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Te({href:e}){return e.split("#")[0]}function Jt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Xt(...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 a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Zt(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.buffer}const Qt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&Y.delete(Be(e)),Qt(e,t));const Y=new Map;function en(e,t){const n=Be(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&Y.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Zt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function tn(e,t,n){if(Y.size>0){const r=Be(e,n),a=Y.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);Y.delete(r)}}return window.fetch(t,n)}function Be(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Xt(...a)}"]`}return r}const nn=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function an(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${on(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Pe(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const h=nn.exec(c),[,u,_,f,m]=h;return t.push({name:f,matcher:m,optional:!!u,rest:!!_,chained:_?l===1&&i[0]==="":!1}),_?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return Pe(c)}).join("")}).join("")}/?$`),params:t}}function rn(e){return!/^\([^)]+\)$/.test(e)}function on(e){return e.slice(1).split("/").filter(rn)}function sn(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(h=>h).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const h=t[o+1],u=a[o+1];h&&!h.rest&&h.optional&&u&&c.chained&&(i=0),!h&&!u&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function Pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function cn({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,h]])=>{const{pattern:u,params:_}=an(o),f={id:o,exec:m=>{const p=u.exec(m);if(p)return sn(p,_,r)},errors:[1,...h||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function wt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function nt(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var ut;const P=((ut=globalThis.__sveltekit_r7iyvs)==null?void 0:ut.base)??"";var dt;const ln=((dt=globalThis.__sveltekit_r7iyvs)==null?void 0:dt.assets)??P,fn="1761579667220",yt="sveltekit:snapshot",vt="sveltekit:scroll",bt="sveltekit:states",un="sveltekit:pageurl",q="sveltekit:history",J="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function kt(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 Me(){return{x:pageXOffset,y:pageYOffset}}function M(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const at={...V,"":V.hover};function At(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function St(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=At(e)}}function Oe(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 a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||Ee(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===fe&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function me(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=M(o,"preload-code")),a===null&&(a=M(o,"preload-data")),t===null&&(t=M(o,"keepfocus")),n===null&&(n=M(o,"noscroll")),s===null&&(s=M(o,"reload")),i===null&&(i=M(o,"replacestate")),o=At(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:at[r??"off"],preload_data:at[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function rt(e){const t=De(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const Et={v:()=>{}};function dn(){const{set:e,subscribe:t}=De(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ln}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==fn;return i&&(e(!0),Et.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function Ee(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Xn(e){}function ot(e){const t=pn(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function pn(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=hn.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const gn=-1,mn=-2,_n=-3,wn=-4,yn=-5,vn=-6;function bn(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===gn)return;if(s===_n)return NaN;if(s===wn)return 1/0;if(s===yn)return-1/0;if(s===vn)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t==null?void 0:t[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const h=new Set;r[s]=h;for(let f=1;f<o.length;f+=1)h.add(a(o[f]));break;case"Map":const u=new Map;r[s]=u;for(let f=1;f<o.length;f+=2)u.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const _=Object.create(null);r[s]=_;for(let f=1;f<o.length;f+=2)_[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],m=o[1],p=ot(m),d=new f(p);r[s]=d;break}case"ArrayBuffer":{const f=o[1],m=ot(f);r[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const h=o[l];h!==mn&&(c[l]=a(h))}}else{const c={};r[s]=c;for(const l in o){const h=o[l];c[l]=a(h)}}return r[s]}return a(0)}const Rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Rt];const kn=new Set([...Rt]);[...kn];function An(e){return e.filter(t=>t!=null)}const Sn="x-sveltekit-invalidated",En="x-sveltekit-trailing-slash";function _e(e){return e instanceof Se||e instanceof Fe?e.status:500}function Rn(e){return e instanceof Fe?e.text:"Internal Error"}let R,X,xe;const In=ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(ge.toString());var ee,te,ne,ae,re,oe,se,ie,ht,ce,pt,le,gt;In?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},xe={current:!1}):(R=new(ht=class{constructor(){x(this,ee,C({}));x(this,te,C(null));x(this,ne,C(null));x(this,ae,C({}));x(this,re,C({id:null}));x(this,oe,C({}));x(this,se,C(-1));x(this,ie,C(new URL("https://example.com")))}get data(){return N(k(this,ee))}set data(t){O(k(this,ee),t)}get form(){return N(k(this,te))}set form(t){O(k(this,te),t)}get error(){return N(k(this,ne))}set error(t){O(k(this,ne),t)}get params(){return N(k(this,ae))}set params(t){O(k(this,ae),t)}get route(){return N(k(this,re))}set route(t){O(k(this,re),t)}get state(){return N(k(this,oe))}set state(t){O(k(this,oe),t)}get status(){return N(k(this,se))}set status(t){O(k(this,se),t)}get url(){return N(k(this,ie))}set url(t){O(k(this,ie),t)}},ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ae=new WeakMap,re=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ht),X=new(pt=class{constructor(){x(this,ce,C(null))}get current(){return N(k(this,ce))}set current(t){O(k(this,ce),t)}},ce=new WeakMap,pt),xe=new(gt=class{constructor(){x(this,le,C(!1))}get current(){return N(k(this,le))}set current(t){O(k(this,le),t)}},le=new WeakMap,gt),Et.v=()=>xe.current=!0);function It(e){Object.assign(R,e)}const Un="/__data.json",Ln=".html__data.json";function Tn(e){return e.endsWith(".html")?e.replace(/\.html$/,Ln):e.replace(/\/$/,"")+Un}const Pn=new Set(["icon","shortcut icon","apple-touch-icon"]),B=wt(vt)??{},Z=wt(yt)??{},D={url:rt({}),page:rt({}),navigating:De(null),updated:dn()};function qe(e){B[e]=Me()}function xn(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;Z[n];)delete Z[n],n+=1}function K(e){return location.href=e.href,new Promise(()=>{})}async function Ut(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(P||"/");e&&await e.update()}}function st(){}let Ge,je,we,j,$e,A;const ye=[],ve=[];let L=null;const de=new Map,He=new Set,Cn=new Set,G=new Set;let y={branch:[],error:null,url:null},Ke=!1,be=!1,it=!0,Q=!1,W=!1,Lt=!1,We=!1,Ye,E,T,$;const z=new Set;let Ce;async function ta(e,t,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),A=e,await((s=(a=e.hooks).init)==null?void 0:s.call(a)),Ge=cn(e),j=document.documentElement,$e=t,je=e.nodes[0],we=e.nodes[1],je(),we(),E=(i=history.state)==null?void 0:i[q],T=(o=history.state)==null?void 0:o[J],E||(E=T=Date.now(),history.replaceState({...history.state,[q]:E,[J]:T},""));const r=B[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await qn($e,n):await Bn(A.hash?Hn(new URL(location.href)):location.href,{replaceState:!0}),Mn()}async function Nn(){if(await(Ce||(Ce=Promise.resolve())),!Ce)return;Ce=null;const e=$={},t=await ue(y.url,!0);L=null;const n=t&&await Xe(t);if(!(!n||e!==$)){if(n.type==="redirect")return Re(new URL(n.location,y.url).href,{},1,e);n.props.page&&Object.assign(R,n.props.page),y=n.state,Tt(),Ye.$set(n.props),It(n.props.page)}}function Tt(){ye.length=0,We=!1}function Pt(e){ve.some(t=>t==null?void 0:t.snapshot)&&(Z[e]=ve.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function xt(e){var t;(t=Z[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ve[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ct(){qe(E),nt(vt,B),Pt(T),nt(yt,Z)}async function Re(e,t,n,r){return pe({type:"goto",url:kt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(We=!0),t.invalidate&&t.invalidate.forEach(Dt)}})}async function On(e){if(e.id!==(L==null?void 0:L.id)){const t={};z.add(t),L={id:e.id,token:t,promise:Xe({...e,preload:t}).then(n=>(z.delete(t),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Ne(e){var n;const t=(n=await ue(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].map(r=>r==null?void 0:r[1]()))}function Ct(e,t,n){var s;y=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(R,e.props.page),Ye=new A.root({target:t,props:{...e.props,stores:D,components:ve},hydrate:n,sync:!1}),xt(T);const a={from:null,to:{params:y.params,route:{id:((s=y.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(a)),be=!0}function ke({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(P&&(e.pathname===P||e.pathname===P+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);e.pathname=Wt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:An(n).map(f=>f.node.component),page:Ze(R)}};i!==void 0&&(c.props.form=i);let l={},h=!R,u=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const m=n[f],p=y.branch[f];(m==null?void 0:m.data)!==(p==null?void 0:p.data)&&(h=!0),m&&(l={...l,...m.data},h&&(c.props[`data_${u}`]=l),u+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==R.form||h)&&(c.props.page={error:a,params:t,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:h?l:R.data}),c}async function ze({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){var h,u,_;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if((h=l.universal)!=null&&h.load){let f=function(...p){for(const d of p){const{href:v}=new URL(d,n);c.dependencies.add(v)}};const m={route:new Proxy(a,{get:(p,d)=>(o&&(c.route=!0),p[d])}),params:new Proxy(r,{get:(p,d)=>(o&&c.params.add(d),p[d])}),data:(s==null?void 0:s.data)??null,url:Jt(n,()=>{o&&(c.url=!0)},p=>{o&&c.search_params.add(p)},A.hash),async fetch(p,d){p instanceof Request&&(d={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:[...p.headers].length?p.headers:void 0,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...d});const{resolved:v,promise:I}=Nt(p,d,n);return o&&f(v.href),I},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),t()},untrack(p){o=!1;try{return p()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=l.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Nt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=be?tn(r,a.href,t):en(r,t);return{resolved:a,promise:s}}function lt(e,t,n,r,a,s){if(We)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ye.some(o=>o(new URL(i))))return!0;return!1}function Je(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function jn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ft({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ze(R),constructors:[]}}}async function Xe({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===e)return z.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let h=null;const u=y.url?e!==Ae(y.url):!1,_=y.route?a.id!==y.route.id:!1,f=jn(y.url,n);let m=!1;const p=l.map((g,w)=>{var F;const b=y.branch[w],S=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||lt(m,_,u,f,(F=b.server)==null?void 0:F.uses,r));return S&&(m=!0),S});if(p.some(Boolean)){try{h=await Ft(n,p)}catch(g){const w=await H(g,{url:n,params:r,route:{id:e}});return z.has(s)?ft({error:w,url:n,params:r,route:a}):Ie({status:_e(g),error:w,url:n,route:a})}if(h.type==="redirect")return h}const d=h==null?void 0:h.nodes;let v=!1;const I=l.map(async(g,w)=>{var Ue;if(!g)return;const b=y.branch[w],S=d==null?void 0:d[w];if((!S||S.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!lt(v,_,u,f,(Ue=b.universal)==null?void 0:Ue.uses,r))return b;if(v=!0,(S==null?void 0:S.type)==="error")throw S;return ze({loader:g[1],url:n,params:r,route:a,parent:async()=>{var et;const Qe={};for(let Le=0;Le<w;Le+=1)Object.assign(Qe,(et=await I[Le])==null?void 0:et.data);return Qe},server_data_node:Je(S===void 0&&g[0]?{type:"skip"}:S??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of I)g.catch(()=>{});const U=[];for(let g=0;g<l.length;g+=1)if(l[g])try{U.push(await I[g])}catch(w){if(w instanceof Ve)return{type:"redirect",location:w.location};if(z.has(s))return ft({error:await H(w,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=_e(w),S;if(d!=null&&d.includes(w))b=w.status??b,S=w.error;else if(w instanceof Se)S=w.body;else{if(await D.updated.check())return await Ut(),await K(n);S=await H(w,{params:r,url:n,route:{id:a.id}})}const F=await $n(g,U,i);return F?ke({url:n,params:r,branch:U.slice(0,F.idx).concat(F.node),status:b,error:S,route:a}):await jt(n,{id:a.id},S,b)}else U.push(void 0);return ke({url:n,params:r,branch:U,status:200,error:null,route:a,form:t?void 0:null})}async function $n(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ie({status:e,error:t,url:n,route:r}){const a={};let s=null;if(A.server_loads[0]===0)try{const o=await Ft(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==fe||n.pathname!==location.pathname||Ke)&&await K(n)}try{const o=await ze({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Je(s)}),c={node:await we(),loader:we,universal:null,server:null,data:null};return ke({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ve)return Re(new URL(o.location,location.href),{},0);throw o}}async function Dn(e){const t=e.href;if(de.has(t))return de.get(t);let n;try{const r=(async()=>{let a=await A.hooks.reroute({url:new URL(e),fetch:async(s,i)=>Nt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);A.hash?s.hash=a:s.pathname=a,a=s}return a})();de.set(t,r),n=await r}catch{de.delete(t);return}return n}async function ue(e,t){if(e&&!Ee(e,P,A.hash)){const n=await Dn(e);if(!n)return;const r=Fn(n);for(const a of Ge){const s=a.exec(r);if(s)return{id:Ae(e),invalidating:t,route:a,params:zt(s),url:e}}}}function Fn(e){return Yt(A.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(P.length))||"/"}function Ae(e){return(A.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ot({url:e,type:t,intent:n,delta:r}){let a=!1;const s=Bt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||He.forEach(o=>o(i)),a?null:s}async function pe({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=st,block:h=st}){const u=$;$=c;const _=await ue(t,!1),f=Ot({url:t,type:e,delta:n==null?void 0:n.delta,intent:_});if(!f){h(),$===c&&($=u);return}const m=E,p=T;l(),Q=!0,be&&D.navigating.set(X.current=f.navigation);let d=_&&await Xe(_);if(!d){if(Ee(t,P,A.hash))return await K(t);d=await jt(t,{id:null},await H(new Fe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(_==null?void 0:_.url)||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(d.type==="redirect")if(o>=20)d=await Ie({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Re(new URL(d.location,t).href,{},o+1,c),!1;else d.props.page.status>=400&&await D.updated.check()&&(await Ut(),await K(t));if(Tt(),qe(m),Pt(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,w={[q]:E+=g,[J]:T+=g,[bt]:i};(s?history.replaceState:history.pushState).call(history,w,"",t),s||xn(E,T)}if(L=null,d.props.page.state=i,be){y=d.state,d.props.page&&(d.props.page.url=t);const g=(await Promise.all(Array.from(Cn,w=>w(f.navigation)))).filter(w=>typeof w=="function");if(g.length>0){let w=function(){g.forEach(b=>{G.delete(b)})};g.push(w),g.forEach(b=>{G.add(b)})}Ye.$set(d.props),It(d.props.page),Lt=!0}else Ct(d,$e,!1);const{activeElement:v}=document;await Gt();const I=n?n.scroll:a?Me():null;if(it){const g=t.hash&&document.getElementById(decodeURIComponent(A.hash?t.hash.split("#")[2]??"":t.hash.slice(1)));I?scrollTo(I.x,I.y):g?g.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==v&&document.activeElement!==document.body;!r&&!U&&Gn(),it=!0,d.props.page&&Object.assign(R,d.props.page),Q=!1,e==="popstate"&&xt(T),f.fulfil(void 0),G.forEach(g=>g(f.navigation)),D.navigating.set(X.current=null)}async function jt(e,t,n,r){return e.origin===fe&&e.pathname===location.pathname&&!Ke?await Ie({status:r,error:n,url:e,route:t}):await K(e)}function Vn(){let e,t,n;j.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,V.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],V.tap)}j.addEventListener("mousedown",r),j.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(Ne(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=St(o,j),h=l===t&&c>=n;if(!l||h)return;const{url:u,external:_,download:f}=Oe(l,P,A.hash);if(_||f)return;const m=me(l),p=u&&Ae(y.url)===Ae(u);if(!(m.reload||p))if(c<=m.preload_data){t=l,n=V.tap;const d=await ue(u,!1);if(!d)return;On(d)}else c<=m.preload_code&&(t=l,n=c,Ne(u))}function i(){a.disconnect();for(const o of j.querySelectorAll("a")){const{url:c,external:l,download:h}=Oe(o,P,A.hash);if(l||h)continue;const u=me(o);u.reload||(u.preload_code===V.viewport&&a.observe(o),u.preload_code===V.eager&&Ne(c))}}G.add(i),i()}function H(e,t){if(e instanceof Se)return e.body;const n=_e(e),r=Rn(e);return A.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function $t(e,t){ge(()=>(e.add(t),()=>{e.delete(t)}))}function na(e){$t(G,e)}function aa(e){$t(He,e)}function Bn(e,t={}){return e=new URL(kt(e)),e.origin!==fe?Promise.reject(new Error("goto: invalid URL")):Re(e,t,0)}function ra(e){return Dt(e),Nn()}function Dt(e){if(typeof e=="function")ye.push(e);else{const{href:t}=new URL(e,location.href);ye.push(n=>n.href===t)}}function Mn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ct(),!Q){const a=Bt(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};He.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ct()}),(t=navigator.connection)!=null&&t.saveData||Vn(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=St(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Oe(r,P,A.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=me(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[h,u]=(A.hash?a.hash.replace(/^#/,""):a.href).split("#"),_=h===Te(location);if(s||c.reload&&(!_||!u)){Ot({url:a,type:"link"})?Q=!0:n.preventDefault();return}if(u!==void 0&&_){const[,f]=y.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(W=!0,qe(E),e(a),!c.replace_state)return;W=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await pe({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(Ee(o,P,!1))return;const c=n.target,l=me(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const h=new FormData(c),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(h).toString(),pe({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[q]){const a=n.state[q];if($={},a===E)return;const s=B[a],i=n.state[bt]??{},o=new URL(n.state[un]??location.href),c=n.state[J],l=y.url?Te(location)===Te(y.url):!1;if(c===T&&(Lt||l)){i!==R.state&&(R.state=i),e(o),B[E]=Me(),s&&scrollTo(s.x,s.y),E=a;return}const u=a-E;await pe({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{E=a,T=c},block:()=>{history.go(-u)},nav_token:$})}else if(!W){const a=new URL(location.href);e(a),A.hash&&location.reload()}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[q]:++E,[J]:T},"",location.href))});for(const n of document.querySelectorAll("link"))Pn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&D.navigating.set(X.current=null)});function e(n){y.url=R.url=n,D.page.set(Ze(R)),D.page.notify()}}async function qn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ke=!0;const l=new URL(location.href);let h;({params:a={},route:s={id:null}}=await ue(l,!1)||{}),h=Ge.find(({id:f})=>f===s.id);let u,_=!0;try{const f=r.map(async(p,d)=>{const v=o[d];return v!=null&&v.uses&&(v.uses=Vt(v.uses)),ze({loader:A.nodes[p],url:l,params:a,route:s,parent:async()=>{const I={};for(let U=0;U<d;U+=1)Object.assign(I,(await f[U]).data);return I},server_data_node:Je(v)})}),m=await Promise.all(f);if(h){const p=h.layouts;for(let d=0;d<p.length;d++)p[d]||m.splice(d,0,void 0)}u=ke({url:l,params:a,branch:m,status:t,error:n,form:c,route:h??null})}catch(f){if(f instanceof Ve){await K(new URL(f.location,location.href));return}u=await Ie({status:_e(f),error:await H(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",_=!1}u.props.page&&(u.props.page.state={}),Ct(u,e,_)}async function Ft(e,t){var s;const n=new URL(e);n.pathname=Tn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(En,"1"),n.searchParams.append(Sn,t.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new Se(a.status,i)}return new Promise(async i=>{var _;const o=new Map,c=a.body.getReader(),l=new TextDecoder;function h(f){return bn(f,{...A.decoders,Promise:m=>new Promise((p,d)=>{o.set(m,{fulfil:p,reject:d})})})}let u="";for(;;){const{done:f,value:m}=await c.read();if(f&&!u)break;for(u+=!m&&u?`
2
2
  `:l.decode(m,{stream:!0});;){const p=u.indexOf(`
3
- `);if(p===-1)break;const d=JSON.parse(u.slice(0,p));if(u=u.slice(p+1),d.type==="redirect")return i(d);if(d.type==="data")(_=d.nodes)==null||_.forEach(v=>{(v==null?void 0:v.type)==="data"&&(v.uses=Vt(v.uses),v.data=h(v.data))}),i(d);else if(d.type==="chunk"){const{id:v,data:I,error:U}=d,g=o.get(v);o.delete(v),U?g.reject(h(U)):g.fulfil(h(I))}}}})}function Vt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Gn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function Bt(e,t,n,r){var c,l;let a,s;const i=new Promise((h,u)=>{a=h,s=u});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function Ze(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 Hn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}export{na as a,P as b,aa as c,Jn as d,ta as e,Bn as g,ra as i,Xn as l,ge as o,R as p,D as s};
3
+ `);if(p===-1)break;const d=JSON.parse(u.slice(0,p));if(u=u.slice(p+1),d.type==="redirect")return i(d);if(d.type==="data")(_=d.nodes)==null||_.forEach(v=>{(v==null?void 0:v.type)==="data"&&(v.uses=Vt(v.uses),v.data=h(v.data))}),i(d);else if(d.type==="chunk"){const{id:v,data:I,error:U}=d,g=o.get(v);o.delete(v),U?g.reject(h(U)):g.fulfil(h(I))}}}})}function Vt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Gn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function Bt(e,t,n,r){var c,l;let a,s;const i=new Promise((h,u)=>{a=h,s=u});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function Ze(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 Hn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}export{na as a,aa as b,P as c,Jn as d,ta as e,Bn as g,ra as i,Xn as l,ge as o,R as p,D as s};
@@ -1 +1 @@
1
- var B=Object.defineProperty;var A=r=>{throw TypeError(r)};var D=(r,t,e)=>t in r?B(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var O=(r,t,e)=>D(r,typeof t!="symbol"?t+"":t,e),E=(r,t,e)=>t.has(r)||A("Cannot "+e);var S=(r,t,e)=>(E(r,t,"read from private field"),e?e.call(r):t.get(r)),P=(r,t,e)=>t.has(r)?A("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e);import"./CWj6FrbW.js";import{b as R,g as h,Z as H,p as T,f as b,a as y,c as Z,n as j,r as q}from"./C3xJX0nD.js";import{c as w,a as p,f as C}from"./CAPx0Bfm.js";import{p as i,r as z,c as F,s as G}from"./xQhUoIl9.js";import{u as J,g as K,b as L,c as M,d as N,e as l,m as Q,f as U}from"./CWuDkrMZ.js";import{s as x}from"./DoEId1MK.js";import{i as V}from"./DmGM9V9Q.js";import{a as W}from"./DthpwYR_.js";const X="data-separator-root";var n;class Y{constructor(t){O(this,"opts");P(this,n,R(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":M(this.opts.orientation.current),"aria-hidden":L(this.opts.decorative.current),"data-orientation":K(this.opts.orientation.current),[X]:""})));this.opts=t,J(t)}get props(){return h(S(this,n))}set props(t){H(S(this,n),t)}}n=new WeakMap;function $(r){return new Y(r)}var tt=C("<div><!></div>");function rt(r,t){T(t,!0);let e=i(t,"id",19,N),s=i(t,"ref",15,null),m=i(t,"decorative",3,!1),c=i(t,"orientation",3,"horizontal"),u=z(t,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const v=$({ref:l.with(()=>s(),a=>s(a)),id:l.with(()=>e()),decorative:l.with(()=>m()),orientation:l.with(()=>c())}),d=R(()=>Q(u,v.props));var f=w(),g=b(f);{var k=a=>{var o=w(),_=b(o);x(_,()=>t.child,()=>({props:h(d)})),p(a,o)},I=a=>{var o=tt();W(o,()=>({...h(d)}));var _=Z(o);x(_,()=>t.children??j),q(o),p(a,o)};V(g,a=>{t.child?a(k):a(I,!1)})}p(r,f),y()}function lt(r,t){T(t,!0);let e=i(t,"ref",15,null),s=i(t,"orientation",3,"horizontal"),m=z(t,["$$slots","$$events","$$legacy","ref","class","orientation"]);var c=w(),u=b(c);{let v=R(()=>U("bg-border shrink-0",s()==="horizontal"?"h-[1px] w-full":"min-h-full w-[1px]",t.class));F(u,()=>rt,(d,f)=>{f(d,G({get class(){return h(v)},get orientation(){return s()}},()=>m,{get ref(){return e()},set ref(g){e(g)}}))})}p(r,c),y()}export{lt as S};
1
+ var B=Object.defineProperty;var A=r=>{throw TypeError(r)};var D=(r,t,e)=>t in r?B(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var O=(r,t,e)=>D(r,typeof t!="symbol"?t+"":t,e),E=(r,t,e)=>t.has(r)||A("Cannot "+e);var S=(r,t,e)=>(E(r,t,"read from private field"),e?e.call(r):t.get(r)),P=(r,t,e)=>t.has(r)?A("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e);import"./CWj6FrbW.js";import{b as R,g as h,Z as H,p as T,f as b,a as y,c as Z,n as j,r as q}from"./C3xJX0nD.js";import{c as w,a as p,f as C}from"./CAPx0Bfm.js";import{p as i,r as z,c as F,s as G}from"./xQhUoIl9.js";import{u as J,g as K,b as L,c as M,d as N,e as l,m as Q,f as U}from"./DgCXCApo.js";import{s as x}from"./DoEId1MK.js";import{i as V}from"./DmGM9V9Q.js";import{a as W}from"./BDE1kT04.js";const X="data-separator-root";var n;class Y{constructor(t){O(this,"opts");P(this,n,R(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":M(this.opts.orientation.current),"aria-hidden":L(this.opts.decorative.current),"data-orientation":K(this.opts.orientation.current),[X]:""})));this.opts=t,J(t)}get props(){return h(S(this,n))}set props(t){H(S(this,n),t)}}n=new WeakMap;function $(r){return new Y(r)}var tt=C("<div><!></div>");function rt(r,t){T(t,!0);let e=i(t,"id",19,N),s=i(t,"ref",15,null),m=i(t,"decorative",3,!1),c=i(t,"orientation",3,"horizontal"),u=z(t,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const v=$({ref:l.with(()=>s(),a=>s(a)),id:l.with(()=>e()),decorative:l.with(()=>m()),orientation:l.with(()=>c())}),d=R(()=>Q(u,v.props));var f=w(),g=b(f);{var k=a=>{var o=w(),_=b(o);x(_,()=>t.child,()=>({props:h(d)})),p(a,o)},I=a=>{var o=tt();W(o,()=>({...h(d)}));var _=Z(o);x(_,()=>t.children??j),q(o),p(a,o)};V(g,a=>{t.child?a(k):a(I,!1)})}p(r,f),y()}function lt(r,t){T(t,!0);let e=i(t,"ref",15,null),s=i(t,"orientation",3,"horizontal"),m=z(t,["$$slots","$$events","$$legacy","ref","class","orientation"]);var c=w(),u=b(c);{let v=R(()=>U("bg-border shrink-0",s()==="horizontal"?"h-[1px] w-full":"min-h-full w-[1px]",t.class));F(u,()=>rt,(d,f)=>{f(d,G({get class(){return h(v)},get orientation(){return s()}},()=>m,{get ref(){return e()},set ref(g){e(g)}}))})}p(r,c),y()}export{lt as S};
@@ -0,0 +1 @@
1
+ import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{s as X,c as w}from"./BHoO7UL_.js";import{m as H}from"./C3xJX0nD.js";let P;const D="en",k=["en","de"];let L=()=>D;const Q=t=>{typeof t=="function"?L=C(t):L=C(()=>t),P!==void 0&&P(L())};function C(t){return()=>{const n=t();if(!A(n))throw new Error("languageTag() didn't return a valid language tag. Check your setLanguageTag call");return n}}const Y=t=>{P=t};function A(t){return k.includes(t)}const q=Object.freeze(Object.defineProperty({__proto__:null,availableLanguageTags:k,isAvailableLanguageTag:A,get languageTag(){return L},onSetLanguageTag:Y,setLanguageTag:Q,sourceLanguageTag:D},Symbol.toStringTag,{value:"Module"})),G=()=>{const t=X;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},J={subscribe(t){return G().page.subscribe(t)}};function Z(t,n){if(t==="")return"";const e=new URL(t,n).pathname;return e.endsWith("/")?e.slice(0,-1):e}function b(t,n){const e=et(t),o=V(e,n),[i,a]=tt(o);return[i,a]}const B=(t,n,e)=>[n,t,e??""].filter(o=>o!=="/").join("")||"/";function V(t,n){const e=t.replace(n,"");return e.startsWith("/")?e:`/${e}`}function tt(t){const e=["/.html__data.json","/__data.json"].find(o=>t.endsWith(o));return e?[t.slice(0,-e.length)||"/",e]:[t,void 0]}function et(t){try{return decodeURI(t)}catch{return t}}const nt=t=>({url:n})=>{try{const[e,o]=b(n.pathname,w),i=t.getLanguageFromLocalisedPath(e);if(!i)return n.pathname;const a=t.getCanonicalPath(e,i);return B(a,w,o)}catch{return n.pathname}};function rt(t){return`/${t.split("/").filter(Boolean).join("/")}`}function ot(t){const n=t.map(e=>typeof e=="string"?o=>o===e:o=>e.test(o));return e=>n.some(o=>o(rt(e)))}const T="rtl",I="ltr";function at(t){try{const n=new Intl.Locale(t);return"textInfo"in n?n.textInfo.direction===T?T:I:n.getTextInfo().direction===T?T:I}catch{return I}}function st(t){const n=t.map(e=>[e,at(e)]);return Object.fromEntries(n)}const it=0,F=1,S=2,ct=4,p=0,v=1,R=2;function ut(t){const n=lt(ft);return t.sort((e,o)=>{var i,a,s,c,r,u;const f=z(e).map(n),l=z(o).map(n);for(let g=0;g<Math.max(f.length,l.length);g+=1){const m=f[g],x=l[g];if(!m)return-1;if(!x)return 1;for(let _=0;_<Math.max(m.length,x.length);_+=1){const h=m[_],d=x[_];if((h==null?void 0:h[p])||(d==null?void 0:d[p])){if(!h)return-1;if(!d)return 1;const $=((i=m[_+1])==null?void 0:i[v])||((s=(a=f[g+1])==null?void 0:a[0])==null?void 0:s[v]),y=((c=x[_+1])==null?void 0:c[v])||((u=(r=l[g+1])==null?void 0:r[0])==null?void 0:u[v]),K=$&&y,O=$&&!y,W=!$&&y;if((h[p]&&d[p])===S){if(K)continue;if(O)return-1;if(W)return 1}if(h[p]===S)return O?-1:1;if(d[p]===S)return W?1:-1;if(h[R]!==d[R])return(-1)**+h[R];if(h[p]!==d[p])return(-1)**+(h[p]>d[p])}else if((h==null?void 0:h[v])!==(d==null?void 0:d[v]))return gt(h[v],d[v])}}return e<o?1:-1})}function lt(t){const n=new Map;return e=>(n.has(e)||n.set(e,t(e)),n.get(e))}function ft(t){const n=[];let e=0;for(;e<=t.length;){const o=t.indexOf("[",e),i=o===-1;if(n.push([it,t.slice(e,i?void 0:o),!1]),i)break;const a=t[o+1]==="["?F:t[o+1]==="."?S:ct,s=a===F?"]]":"]",c=t.indexOf(s,o);if(c===-1)throw new Error(`Invalid route definition ${t}`);const r=t.slice(o,e=c+s.length);n.push([a,r,r.includes("=")])}return n}const z=t=>t.replace(/\[\[[^\]]+\]\](?!$)/g,"").split("/").filter(Boolean);function gt(t,n){if(t===n)return 0;let e=0;for(;t[e]===n[e];)e++;return t[e]?n[e]?t[e]<n[e]?-1:1:-1:1}const ht=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function dt(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${U(t).map(o=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(i)return n.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(a)return n.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const s=o.split(/\[(.+?)\](?!\])/);return"/"+s.map((r,u)=>{if(u%2){if(r.startsWith("x+"))return j(String.fromCharCode(parseInt(r.slice(2),16)));if(r.startsWith("u+"))return j(String.fromCharCode(...r.slice(2).split("-").map(_=>parseInt(_,16))));const f=ht.exec(r);if(!f)throw new Error(`Invalid param: ${r}`);const[,l,g,m,x]=f;return n.push({name:m,matcher:x,optional:!!l,rest:!!g,chained:g?u===1&&s[0]==="":!1}),g?"(.*?)":l?"([^/]*)?":"([^/]+?)"}return j(r)}).join("")}).join("")}/?$`),params:n}}function pt(t,n,e){const o={},i=t.slice(1),a=i.filter(c=>c!==void 0);let s=0;for(const[c,r]of n.entries()){let u=i[c-s];if(r.chained&&r.rest&&s&&(u=i.slice(c-s,c+1).filter(l=>l).join("/"),s=0),u===void 0){r.rest&&(o[r.name]="");continue}if(r.matcher&&!e[r.matcher])return;if((e[r.matcher]??(()=>!0))(u)){o[r.name]=u;const l=n[c+1],g=i[c+1];l&&!l.rest&&l.optional&&g&&r.chained&&(s=0),!l&&!g&&Object.keys(o).length===a.length&&(s=0);continue}if(r.optional&&r.chained){s++;continue}return}if(!s)return o}function j(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const mt=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function M(t,n){return"/"+U(t).map(e=>e.replace(mt,(o,i,a,s)=>{const c=n[s];if(!c){if(i||a&&c!==void 0)return"";throw new Error(`Missing parameter '${s}' in route ${t}`)}if(c[0]=="/"||c.endsWith("/"))throw new Error(`Parameter '${s}' in route ${t} cannot start or end with a slash`);return c})).filter(Boolean).join("/")}function N(t,n,e){const o=ut(n);for(const i of o){const a=dt(i),s=a.pattern.exec(_t(t));if(!s)continue;const c=pt(s,a.params,e);if(c)return{params:c,id:i}}}const _t=t=>t.endsWith("/")?t.slice(0,-1):t,U=t=>t.slice(1).split("/");function vt(t,n,e,o,i){function a(r){const f=r.split("/")[1];if(t.includes(f)&&(i==="always"||f!==n))return f;if(i==="never")return n}function s(r,u){const f=r.endsWith("/")&&r!=="/";r=f?r.slice(0,-1):r;let l=wt(r,u,e,o);return f&&(l+="/"),(i==="always"||u!==n)&&(l=`/${u}${l}`),l}function c(r,u){const f=r.endsWith("/")&&r!=="/";(i==="always"||u!==n)&&(r=r.replace(`/${u}`,"")||"/");const l=f;r=l?r.slice(0,-1):r;let g=xt(r,u,e,o);return l&&(g+="/"),g}return{getLanguageFromLocalisedPath:a,getLocalisedPath:s,getCanonicalPath:c}}function xt(t,n,e,o){for(const[i,a]of Object.entries(e)){if(!(n in a))continue;const s=a[n];if(!s)continue;const c=N(t,[s],o);if(c)return M(i,c.params)}return t}function wt(t,n,e,o){const i=N(t,Object.keys(e),o);if(!i)return t;const a=e[i.id];if(!a)return t;const s=a[n];return s?M(s,i.params):t}function Tt(t,n){const e={},o=[],i=t.sourceLanguageTag,a={defaultLanguageTag:i,runtime:t,translations:e,matchers:{},exclude:ot(o),prefixDefaultLanguage:"never",textDirection:st(t.availableLanguageTags),seo:{noAlternateLinks:!1}},s=vt(t.availableLanguageTags,i,a.translations,a.matchers,a.prefixDefaultLanguage);return Object.freeze(e),Object.freeze(a),{config:a,strategy:s,reroute:()=>nt(s),handle:()=>{throw new Error("")},getLanguageFromUrl(c){const r=E(w),[u]=b(c.pathname,r);return a.exclude(u)?a.defaultLanguageTag:s.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag},resolveRoute(c,r=void 0){if(a.exclude(c))return c;const u=E(w),[f,l]=b(c,u);if(r=r??t.languageTag(),!c.startsWith(u))return c;const g=s.getLocalisedPath(f,r);return B(g,u,l)},route(c){const r=E(w),[u,f]=b(c,r),g=s.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag,m=s.getCanonicalPath(u,g);return B(m,r,f)}}}function E(t){return t===""?"":t.startsWith("/")?t:Z(t,new URL(H(J).url))}const It=Tt(q);export{J as a,It as i,Z as n,b as p,B as s};
@@ -0,0 +1 @@
1
+ import{b as E}from"./CEPpkZIV.js";import{w as n,m as g}from"./C3xJX0nD.js";function l(s,a){const i=n((()=>{if(typeof sessionStorage>"u")return a;try{const o=sessionStorage.getItem(s);if(o)return JSON.parse(o)}catch(o){console.warn(`Failed to read ${s} from sessionStorage`,o)}return a})());return i.subscribe(o=>{if(!(typeof sessionStorage>"u"))try{sessionStorage.setItem(s,JSON.stringify(o))}catch(e){console.warn(`Failed to write ${s} to sessionStorage`,e)}}),i}const r=n([]),I=()=>({reversibleActions:r,addReversibleAction:s=>{r.update(a=>[s,...a].slice(0,50))},executeReversibleAction:async s=>{const a=g(r),d=a.find(i=>i.id===s);if(d){await d.execute();const i=a.findIndex(o=>o.id===s);r.update(o=>o.slice(i+1))}},clearReversibleActions:()=>{r.set([])},clearReversibleActionsByGroupId:s=>{r.update(a=>a.filter(d=>d.groupId!==s))},hasReversibleActions:()=>g(r).length>0}),h=n("samples"),u=n(new Set),p=n(new Set),S=n(new Set),A=n(0),b=n(0),w=n(!1),v=n(void 0),y=l("lightlyStudio_sampleSize",{width:200,height:200}),_=l("lightlyStudio_metadata_bounds",{}),x=l("lightlyStudio_metadata_values",{}),M=l("lightlyStudio_metadata_info",[]),T=n(void 0),B=n([]),f=n({}),R=n(!1),G=s=>{R.set(s)},C=n(!1),F=()=>{const s=I();return{tags:T,textEmbedding:v,setTextEmbedding:e=>{v.set(e)},selectedSampleIds:u,selectedSampleAnnotationCropIds:p,selectedAnnotationFilterIds:S,filteredAnnotationCount:A,filteredSampleCount:b,datasetVersions:f,hideAnnotations:w,classifiers:B,metadataBounds:_,metadataValues:x,metadataInfo:M,updateMetadataValues:e=>{x.set(e)},updateMetadataBounds:e=>{_.set(e)},updateMetadataInfo:e=>{M.set(e)},setHideAnnotations:e=>{w.set(e)},getDatasetVersion:async e=>{const t=g(f);if(t[e])return t[e];const{data:c}=await E({path:{dataset_id:e}});if(c!=null&&c.created_at){const m=new Date(c.created_at).getTime().toString();return f.update(z=>({...z,[e]:m})),m}return""},toggleSampleSelection:e=>{u.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedSamples:()=>{u.update(e=>(e.clear(),e))},toggleSampleAnnotationCropSelection:e=>{p.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedSampleAnnotationCrops:()=>{p.update(e=>(e.clear(),e))},lastGridType:h,setLastGridType:e=>{h.set(e)},setSelectedAnnotationFilterIds:e=>{S.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedAnnotationFilterIds:()=>{S.update(e=>(e.clear(),e))},setfilteredAnnotationCount:e=>{A.set(e)},setfilteredSampleCount:e=>{b.set(e)},sampleSize:y,updateSampleSize:e=>{y.set({width:e,height:e})},isEditingMode:R,setIsEditingMode:G,showPlot:C,setShowPlot:e=>{C.set(e)},...s}};export{l as a,F as u};
@@ -1,4 +1,4 @@
1
- import"./CWj6FrbW.js";import{p as n,f as i,n as m,a as c}from"./C3xJX0nD.js";import{c as d,a as f}from"./CAPx0Bfm.js";import{s as l}from"./DoEId1MK.js";import{s as u,r as h}from"./xQhUoIl9.js";import{I as $}from"./CWuDkrMZ.js";function y(r,o){n(o,!0);/**
1
+ import"./CWj6FrbW.js";import{p as n,f as i,n as m,a as c}from"./C3xJX0nD.js";import{c as d,a as f}from"./CAPx0Bfm.js";import{s as l}from"./DoEId1MK.js";import{s as u,r as h}from"./xQhUoIl9.js";import{I as $}from"./DgCXCApo.js";function y(r,o){n(o,!0);/**
2
2
  * @license @lucide/svelte v0.482.0 - ISC
3
3
  *
4
4
  * ISC License
@@ -1,4 +1,4 @@
1
- import"./CWj6FrbW.js";import{p as c,a as m,f as $,n as _,c as G,s as f,g,b as v,r as P}from"./C3xJX0nD.js";import{c as w,a as p,f as L}from"./CAPx0Bfm.js";import{s as S,r as y,p as x}from"./xQhUoIl9.js";import{a as V,s as j}from"./DmGM9V9Q.js";import{I as z,_ as k,a as q}from"./CWuDkrMZ.js";import{u as A}from"./BOmrKuMn.js";import{s as I}from"./DoEId1MK.js";function B(a,e){c(e,!0);/**
1
+ import"./CWj6FrbW.js";import{p as c,a as m,f as $,n as _,c as G,s as f,g,b as v,r as P}from"./C3xJX0nD.js";import{c as w,a as p,f as L}from"./CAPx0Bfm.js";import{s as S,r as y,p as x}from"./xQhUoIl9.js";import{a as V,s as j}from"./DmGM9V9Q.js";import{I as z,_ as k,a as q}from"./DgCXCApo.js";import{u as A}from"./Bip0vTKl.js";import{s as I}from"./DoEId1MK.js";function B(a,e){c(e,!0);/**
2
2
  * @license @lucide/svelte v0.482.0 - ISC
3
3
  *
4
4
  * ISC License
@@ -0,0 +1 @@
1
+ var V=Object.defineProperty;var E=(e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var j=(e,t,r)=>E(e,typeof t!="symbol"?t+"":t,r);const U={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)},W=async(e,t)=>{const r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},P=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},k=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},H=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},x=({allowReserved:e,explode:t,name:r,style:o,value:s})=>{if(!t){const n=(e?s:s.map(c=>encodeURIComponent(c))).join(k(o));switch(o){case"label":return`.${n}`;case"matrix":return`;${r}=${n}`;case"simple":return n;default:return`${r}=${n}`}}const i=P(o),a=s.map(n=>o==="label"||o==="simple"?e?n:encodeURIComponent(n):_({allowReserved:e,name:r,value:n})).join(i);return o==="label"||o==="matrix"?i+a:a},_=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},D=({allowReserved:e,explode:t,name:r,style:o,value:s,valueOnly:i})=>{if(s instanceof Date)return i?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!t){let c=[];Object.entries(s).forEach(([p,y])=>{c=[...c,p,e?y:encodeURIComponent(y)]});const f=c.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}const a=H(o),n=Object.entries(s).map(([c,f])=>_({allowReserved:e,name:o==="deepObject"?`${r}[${c}]`:c,value:f})).join(a);return o==="label"||o==="matrix"?a+n:n},N=/\{[^{}]+\}/g,B=({path:e,url:t})=>{let r=t;const o=t.match(N);if(o)for(const s of o){let i=!1,a=s.substring(1,s.length-1),n="simple";a.endsWith("*")&&(i=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),n="label"):a.startsWith(";")&&(a=a.substring(1),n="matrix");const c=e[a];if(c==null)continue;if(Array.isArray(c)){r=r.replace(s,x({explode:i,name:a,style:n,value:c}));continue}if(typeof c=="object"){r=r.replace(s,D({explode:i,name:a,style:n,value:c,valueOnly:!0}));continue}if(n==="matrix"){r=r.replace(s,`;${_({name:a,value:c})}`);continue}const f=encodeURIComponent(n==="label"?`.${c}`:c);r=r.replace(s,f)}return r},R=({allowReserved:e,array:t,object:r}={})=>s=>{const i=[];if(s&&typeof s=="object")for(const a in s){const n=s[a];if(n!=null)if(Array.isArray(n)){const c=x({allowReserved:e,explode:!0,name:a,style:"form",value:n,...t});c&&i.push(c)}else if(typeof n=="object"){const c=D({allowReserved:e,explode:!0,name:a,style:"deepObject",value:n,...r});c&&i.push(c)}else{const c=_({allowReserved:e,name:a,value:n});c&&i.push(c)}}return i.join("&")},L=e=>{var r;if(!e)return"stream";const t=(r=e.split(";")[0])==null?void 0:r.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>t.startsWith(o)))return"blob";if(t.startsWith("text/"))return"text"}},J=async({security:e,...t})=>{for(const r of e){const o=await W(r,t.auth);if(!o)continue;const s=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[s]=o;break;case"cookie":t.headers.append("Cookie",`${s}=${o}`);break;case"header":default:t.headers.set(s,o);break}return}},A=e=>M({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:R(e.querySerializer),url:e.url}),M=({baseUrl:e,path:t,query:r,querySerializer:o,url:s})=>{const i=s.startsWith("/")?s:`/${s}`;let a=(e??"")+i;t&&(a=B({path:t,url:a}));let n=r?o(r):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(a+=`?${n}`),a},C=(e,t)=>{var o;const r={...e,...t};return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=I(e.headers,t.headers),r},I=(...e)=>{const t=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const o=r instanceof Headers?r.entries():Object.entries(r);for(const[s,i]of o)if(i===null)t.delete(s);else if(Array.isArray(i))for(const a of i)t.append(s,a);else i!==void 0&&t.set(s,typeof i=="object"?JSON.stringify(i):i)}return t};class T{constructor(){j(this,"_fns");this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(t){return typeof t=="number"?this._fns[t]?t:-1:this._fns.indexOf(t)}exists(t){const r=this.getInterceptorIndex(t);return!!this._fns[r]}eject(t){const r=this.getInterceptorIndex(t);this._fns[r]&&(this._fns[r]=null)}update(t,r){const o=this.getInterceptorIndex(t);return this._fns[o]?(this._fns[o]=r,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const v=()=>({error:new T,request:new T,response:new T}),F=R({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Q={"Content-Type":"application/json"},$=(e={})=>({...U,headers:Q,parseAs:"auto",querySerializer:F,...e}),G=(e={})=>{let t=C($(),e);const r=()=>({...t}),o=a=>(t=C(t,a),r()),s=v(),i=async a=>{const n={...t,...a,fetch:a.fetch??t.fetch??globalThis.fetch,headers:I(t.headers,a.headers)};n.security&&await J({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body&&n.bodySerializer&&(n.body=n.bodySerializer(n.body)),(n.body===void 0||n.body==="")&&n.headers.delete("Content-Type");const c=A(n),f={redirect:"follow",...n};let p=new Request(c,f);for(const d of s.request._fns)d&&(p=await d(p,n));const y=n.fetch;let l=await y(p);for(const d of s.response._fns)d&&(l=await d(l,p,n));const g={request:p,response:l};if(l.ok){if(l.status===204||l.headers.get("Content-Length")==="0")return n.responseStyle==="data"?{}:{data:{},...g};const d=(n.parseAs==="auto"?L(l.headers.get("Content-Type")):n.parseAs)??"json";let m;switch(d){case"arrayBuffer":case"blob":case"formData":case"json":case"text":m=await l[d]();break;case"stream":return n.responseStyle==="data"?l.body:{data:l.body,...g}}return d==="json"&&(n.responseValidator&&await n.responseValidator(m),n.responseTransformer&&(m=await n.responseTransformer(m))),n.responseStyle==="data"?m:{data:m,...g}}const b=await l.text();let w;try{w=JSON.parse(b)}catch{}const S=w??b;let h=S;for(const d of s.error._fns)d&&(h=await d(S,l,p,n));if(h=h||{},n.throwOnError)throw h;return n.responseStyle==="data"?void 0:{error:h,...g}};return{buildUrl:A,connect:a=>i({...a,method:"CONNECT"}),delete:a=>i({...a,method:"DELETE"}),get:a=>i({...a,method:"GET"}),getConfig:r,head:a=>i({...a,method:"HEAD"}),interceptors:s,options:a=>i({...a,method:"OPTIONS"}),patch:a=>i({...a,method:"PATCH"}),post:a=>i({...a,method:"POST"}),put:a=>i({...a,method:"PUT"}),request:i,setConfig:o,trace:a=>i({...a,method:"TRACE"})}},K=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),X=async e=>(e=e.map(t=>K(t)),e),Y=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),Z=async e=>(e=Y(e),e),z=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),ee=async e=>(e=e.map(t=>z(t)),e),te=async e=>(e=z(e),e),O=e=>(e.created_at=new Date(e.created_at),e),re=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),q=e=>(e.annotations=e.annotations.map(t=>O(t)),e.tags=e.tags.map(t=>re(t)),e),ne=e=>(e.data=e.data.map(t=>q(t)),e),ae=async e=>(e=ne(e),e),se=async e=>(e=q(e),e),oe=e=>(e.created_at=new Date(e.created_at),e),ie=e=>(e.data=e.data.map(t=>oe(t)),e),ce=async e=>(e=ie(e),e),ue=async e=>(e=O(e),e),le=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e),de=async e=>(e=e.map(t=>le(t)),e),fe=e=>(e.created_at=new Date(e.created_at),e),pe=async e=>(e=fe(e),e),me=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),he=async e=>(e=me(e),e),u=G($()),ge=e=>((e==null?void 0:e.client)??u).get({responseTransformer:X,url:"/api/datasets",...e}),_e=e=>(e.client??u).get({responseTransformer:Z,url:"/api/datasets/{dataset_id}",...e}),Te=e=>(e.client??u).get({responseTransformer:ee,url:"/api/datasets/{dataset_id}/tags",...e}),be=e=>(e.client??u).post({responseTransformer:te,url:"/api/datasets/{dataset_id}/tags",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/tags/{tag_id}/add/samples",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/tags/{tag_id}/add/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),je=e=>(e.client??u).post({responseTransformer:ae,url:"/api/datasets/{dataset_id}/samples/list",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??u).get({responseTransformer:se,url:"/api/datasets/{dataset_id}/samples/{sample_id}",...e}),Ce=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/samples/{sample_id}/tag/{tag_id}",...e}),xe=e=>((e==null?void 0:e.client)??u).get({url:"/api/annotation_labels",...e}),De=e=>(e.client??u).post({url:"/api/annotation_labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??u).get({responseTransformer:ce,url:"/api/datasets/{dataset_id}/annotations",...e}),Ie=e=>(e.client??u).post({responseTransformer:ue,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??u).put({responseTransformer:de,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations/count",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}/tag/{tag_id}",...e}),qe=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),Ve=e=>(e.client??u).get({responseTransformer:pe,url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),Ee=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/captions",...e}),Ue=e=>((e==null?void 0:e.client)??u).get({responseTransformer:he,url:"/api/settings",...e}),We=e=>(e.client??u).get({url:"/api/classifiers/{classifier_id}/sample_history",...e}),Pe=e=>((e==null?void 0:e.client)??u).post({url:"/api/embeddings2d/default",...e,headers:{"Content-Type":"application/json",...e==null?void 0:e.headers}}),ke=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/metadata/info",...e}),He=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/metadata/typicality",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/selection",...e,headers:{"Content-Type":"application/json",...e.headers}});export{Te as a,_e as b,je as c,u as d,qe as e,Ce as f,ke as g,Ie as h,De as i,Ae as j,xe as k,ze as l,Ee as m,Re as n,Ve as o,Oe as p,Pe as q,ge as r,Ue as s,be as t,$e as u,we as v,Se as w,Ne as x,He as y,We as z};
@@ -0,0 +1,96 @@
1
+ import"./CWj6FrbW.js";import{p as F,f as W,n as j,a as H,c as A,r as I,g as l,b as ct,s as at,t as ft,am as At,u as kt,al as ut,Z as tt,ab as Ct}from"./C3xJX0nD.js";import{c as nt,a as T,f as O,t as Et}from"./CAPx0Bfm.js";import{s as X}from"./DoEId1MK.js";import{s as vt,r as K,p as ot,b as it}from"./xQhUoIl9.js";import{I as gt,P as Nt,f as _t,o as Vt,G as Bt,U as Rt,V as pt,W as wt,y as et,X as rt,Y as zt,Z as Yt,$ as Ot,J as Mt}from"./DgCXCApo.js";import{a as ht,g as Xt,e as St,c as lt,s as Ft}from"./BDE1kT04.js";import{i as xt}from"./DmGM9V9Q.js";import{P as Ht}from"./gBp1tBnA.js";import{g as qt,u as Gt,h as Ut}from"./DqhovIS0.js";import"./CEPpkZIV.js";import{s as st}from"./CpbA3HU7.js";import{f as Pt,a as Wt}from"./DELrRF6e.js";import{o as jt}from"./BHoO7UL_.js";function Kt(a,t){F(t,!0);/**
2
+ * @license @lucide/svelte v0.482.0 - ISC
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
7
+ *
8
+ * Permission to use, copy, modify, and/or distribute this software for any
9
+ * purpose with or without fee is hereby granted, provided that the above
10
+ * copyright notice and this permission notice appear in all copies.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
+ *
20
+ */let o=K(t,["$$slots","$$events","$$legacy"]);const d=[["path",{d:"m9 18 6-6-6-6"}]];gt(a,vt({name:"chevron-right"},()=>o,{get iconNode(){return d},children:(i,u)=>{var r=nt(),x=W(r);X(x,()=>t.children??j),T(i,r)},$$slots:{default:!0}})),H()}function He(a,t){F(t,!0);/**
21
+ * @license @lucide/svelte v0.482.0 - ISC
22
+ *
23
+ * ISC License
24
+ *
25
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
26
+ *
27
+ * Permission to use, copy, modify, and/or distribute this software for any
28
+ * purpose with or without fee is hereby granted, provided that the above
29
+ * copyright notice and this permission notice appear in all copies.
30
+ *
31
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
32
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
33
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
34
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
35
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
36
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
37
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
38
+ *
39
+ */let o=K(t,["$$slots","$$events","$$legacy"]);const d=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];gt(a,vt({name:"database"},()=>o,{get iconNode(){return d},children:(i,u)=>{var r=nt(),x=W(r);X(x,()=>t.children??j),T(i,r)},$$slots:{default:!0}})),H()}function qe(a,t){F(t,!0);/**
40
+ * @license @lucide/svelte v0.482.0 - ISC
41
+ *
42
+ * ISC License
43
+ *
44
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
45
+ *
46
+ * Permission to use, copy, modify, and/or distribute this software for any
47
+ * purpose with or without fee is hereby granted, provided that the above
48
+ * copyright notice and this permission notice appear in all copies.
49
+ *
50
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
51
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
52
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
53
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
54
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
55
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
56
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
57
+ *
58
+ */let o=K(t,["$$slots","$$events","$$legacy"]);const d=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];gt(a,vt({name:"house"},()=>o,{get iconNode(){return d},children:(i,u)=>{var r=nt(),x=W(r);X(x,()=>t.children??j),T(i,r)},$$slots:{default:!0}})),H()}function Qt(a,t){F(t,!0);/**
59
+ * @license @lucide/svelte v0.482.0 - ISC
60
+ *
61
+ * ISC License
62
+ *
63
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
64
+ *
65
+ * Permission to use, copy, modify, and/or distribute this software for any
66
+ * purpose with or without fee is hereby granted, provided that the above
67
+ * copyright notice and this permission notice appear in all copies.
68
+ *
69
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
70
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
71
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
72
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
73
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
74
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
75
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
76
+ *
77
+ */let o=K(t,["$$slots","$$events","$$legacy"]);const d=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];gt(a,vt({name:"zoom-in"},()=>o,{get iconNode(){return d},children:(i,u)=>{var r=nt(),x=W(r);X(x,()=>t.children??j),T(i,r)},$$slots:{default:!0}})),H()}function Lt(a,t){F(t,!0);/**
78
+ * @license @lucide/svelte v0.482.0 - ISC
79
+ *
80
+ * ISC License
81
+ *
82
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
83
+ *
84
+ * Permission to use, copy, modify, and/or distribute this software for any
85
+ * purpose with or without fee is hereby granted, provided that the above
86
+ * copyright notice and this permission notice appear in all copies.
87
+ *
88
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
89
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
90
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
91
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
92
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
93
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
94
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
95
+ *
96
+ */let o=K(t,["$$slots","$$events","$$legacy"]);const d=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];gt(a,vt({name:"zoom-out"},()=>o,{get iconNode(){return d},children:(i,u)=>{var r=nt(),x=W(r);X(x,()=>t.children??j),T(i,r)},$$slots:{default:!0}})),H()}function Jt(a){return new Nt([document.querySelectorAll(a)],[document.documentElement])}var $t=O("<nav><!></nav>");function Ge(a,t){F(t,!0);let o=ot(t,"ref",15),d=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=$t();ht(i,()=>({class:t.class,"aria-label":"breadcrumb",...d}));var u=A(i);X(u,()=>t.children??j),I(i),it(i,r=>o(r),()=>o()),T(a,i),H()}var te=O("<li><!></li>");function Ue(a,t){F(t,!0);let o=ot(t,"ref",15,null),d=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=te();ht(i,r=>({class:r,...d}),[()=>_t("inline-flex items-center gap-1.5",t.class)]);var u=A(i);X(u,()=>t.children??j),I(i),it(i,r=>o(r),()=>o()),T(a,i),H()}var ee=O("<li><!></li>");function We(a,t){F(t,!0);let o=ot(t,"ref",15,null),d=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ee();ht(i,g=>({role:"presentation","aria-hidden":"true",class:g,...d}),[()=>_t("[&>svg]:size-3.5",t.class)]);var u=A(i);{var r=g=>{var f=nt(),M=W(f);X(M,()=>t.children??j),T(g,f)},x=g=>{Kt(g,{})};xt(u,g=>{t.children?g(r):g(x,!1)})}I(i),it(i,g=>o(g),()=>o()),T(a,i),H()}var ae=O("<a><!></a>");function je(a,t){F(t,!0);let o=ot(t,"ref",15,null),d=ot(t,"href",3,void 0),i=K(t,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const u=ct(()=>({class:_t("hover:text-foreground transition-colors",t.class),href:d(),...i})),r=Xt(),[x,g]=r;var f=nt(),M=W(f);{var C=w=>{var b=nt(),k=W(b);X(k,()=>t.child,()=>({props:l(u)})),T(w,b)},_=w=>{var b=ae();ht(b,Z=>({...Z}),[()=>g({...l(u)},[{attribute_name:"href",lang_attribute_name:"hreflang"}])]);var k=A(b);X(k,()=>t.children??j),I(b),it(b,Z=>o(Z),()=>o()),T(w,b)};xt(M,w=>{t.child?w(C):w(_,!1)})}T(a,f),H()}var ne=O("<ol><!></ol>");function Ke(a,t){F(t,!0);let o=ot(t,"ref",15,null),d=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ne();ht(i,r=>({class:r,...d}),[()=>_t("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",t.class)]);var u=A(i);X(u,()=>t.children??j),I(i),it(i,r=>o(r),()=>o()),T(a,i),H()}var oe=O("<span><!></span>");function Qe(a,t){F(t,!0);let o=ot(t,"ref",15,null),d=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=oe();ht(i,r=>({role:"link","aria-disabled":"true","aria-current":"page",class:r,...d}),[()=>_t("text-foreground font-normal",t.class)]);var u=A(i);X(u,()=>t.children??j),I(i),it(i,r=>o(r),()=>o()),T(a,i),H()}const Le=a=>`${Ht}/sample/${a}`,Je=({sampleId:a,datasetId:t})=>{const o=qt({path:{sample_id:a,dataset_id:t}}),d=Gt(),i=Ut(o);return{refetch:()=>{d.invalidateQueries({queryKey:o.queryKey})},sample:i}},ie="bbox-change-annotation-details",$e=({annotation:a,addReversibleAction:t,updateAnnotation:o})=>{const d=Vt(a),i=async()=>{const u={annotation_id:a.annotation_id,dataset_id:a.dataset_id,bounding_box:d};await o(u)};t({id:`bbox-change-${a.annotation_id}-${Date.now()}`,description:`Revert bounding box change for annotation ${a.annotation_id}`,execute:i,timestamp:new Date,groupId:ie})};var re=O('<span class="text-sm"> </span> <span class="break-all text-sm"> </span>',1),se=O('<div class="grid grid-cols-[6rem_1fr] gap-y-3 text-diffuse-foreground"></div>'),le=O('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <pre class="min-w-[8rem] flex-1 overflow-x-auto whitespace-pre-wrap rounded bg-muted p-2 text-sm"> </pre></div>'),ue=O('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <span class="min-w-[8rem] flex-1 break-all text-sm"> </span></div>'),ce=O('<div class="space-y-3 text-diffuse-foreground"></div>'),he=O("<!> <!>",1);function ta(a,t){F(t,!0);const o=ot(t,"showCustomMetadata",3,!0),d=ct(()=>[{id:"height",label:"Height:",value:Pt(t.sample.height)+"px"},{id:"width",label:"Width:",value:Pt(t.sample.width)+"px"},{id:"filename",label:"Filename:",value:t.sample.file_name},{id:"filepath",label:"Filepath:",value:t.sample.file_path_abs}]),i=ct(()=>{const f=[];if(t.sample.metadata_dict&&typeof t.sample.metadata_dict=="object"&&"data"in t.sample.metadata_dict){const M=t.sample.metadata_dict.data;M&&typeof M=="object"&&Object.entries(M).forEach(([C,_])=>{const w=Wt(_),b=typeof _=="object"&&_!==null&&!Array.isArray(_);f.push({id:`metadata_${C}`,label:`${C}:`,value:w,isComplex:b})})}return f});var u=he(),r=W(u);Bt(r,{title:"Sample details",children:(f,M)=>{var C=se();St(C,21,()=>l(d),({label:_,value:w,id:b})=>_,(_,w)=>{let b=()=>l(w).label,k=()=>l(w).value,Z=()=>l(w).id;var h=re(),E=W(h),B=A(E,!0);I(E);var N=at(E,2),Y=A(N,!0);I(N),ft(()=>{st(B,b()),lt(N,"data-testid",`sample-metadata-${Z()}`),st(Y,k())}),T(_,h)}),I(C),T(f,C)}});var x=at(r,2);{var g=f=>{Bt(f,{title:"Metadata",children:(M,C)=>{var _=ce();St(_,21,()=>l(i),({label:w,value:b,id:k,isComplex:Z})=>w,(w,b)=>{let k=()=>l(b).label,Z=()=>l(b).value,h=()=>l(b).id,E=()=>l(b).isComplex;var B=nt(),N=W(B);{var Y=m=>{var S=le(),P=A(S),q=A(P,!0);I(P);var Q=at(P,2),dt=A(Q,!0);I(Q),I(S),ft(()=>{lt(P,"title",k()),st(q,k()),st(dt,Z())}),T(m,S)},R=m=>{var S=ue(),P=A(S),q=A(P,!0);I(P);var Q=at(P,2),dt=A(Q,!0);I(Q),I(S),ft(()=>{lt(P,"title",k()),st(q,k()),lt(Q,"data-testid",`sample-metadata-${h()}`),st(dt,Z())}),T(m,S)};xt(N,m=>{E()?m(Y):m(R,!1)})}T(w,B)}),I(_),T(M,_)}})};xt(x,f=>{o()&&l(i).length>0&&f(g)})}T(a,u),H()}var de=1e-12;function Dt(a){return((a=Math.exp(a))+1/a)/2}function me(a){return((a=Math.exp(a))-1/a)/2}function fe(a){return((a=Math.exp(2*a))-1)/(a+1)}const ve=function a(t,o,d){function i(u,r){var x=u[0],g=u[1],f=u[2],M=r[0],C=r[1],_=r[2],w=M-x,b=C-g,k=w*w+b*b,Z,h;if(k<de)h=Math.log(_/f)/t,Z=function(m){return[x+m*w,g+m*b,f*Math.exp(t*m*h)]};else{var E=Math.sqrt(k),B=(_*_-f*f+d*k)/(2*f*o*E),N=(_*_-f*f-d*k)/(2*_*o*E),Y=Math.log(Math.sqrt(B*B+1)-B),R=Math.log(Math.sqrt(N*N+1)-N);h=(R-Y)/t,Z=function(m){var S=m*h,P=Dt(Y),q=f/(o*E)*(P*fe(t*S+Y)-me(Y));return[x+q*w,g+q*b,f*P/Dt(t*S+Y)]}}return Z.duration=h*1e3*t/Math.SQRT2,Z}return i.rho=function(u){var r=Math.max(.001,+u),x=r*r,g=x*x;return a(r,x,g)},i}(Math.SQRT2,2,4),yt=a=>()=>a;function ge(a,{sourceEvent:t,target:o,transform:d,dispatch:i}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:d,enumerable:!0,configurable:!0},_:{value:i}})}function Tt(a){a.stopImmediatePropagation()}function mt(a){a.preventDefault(),a.stopImmediatePropagation()}function _e(a){return(!a.ctrlKey||a.type==="wheel")&&!a.button}function ye(){var a=this;return a instanceof SVGElement?(a=a.ownerSVGElement||a,a.hasAttribute("viewBox")?(a=a.viewBox.baseVal,[[a.x,a.y],[a.x+a.width,a.y+a.height]]):[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]):[[0,0],[a.clientWidth,a.clientHeight]]}function It(){return this.__zoom||pt}function pe(a){return-a.deltaY*(a.deltaMode===1?.05:a.deltaMode?1:.002)*(a.ctrlKey?10:1)}function xe(){return navigator.maxTouchPoints||"ontouchstart"in this}function be(a,t,o){var d=a.invertX(t[0][0])-o[0][0],i=a.invertX(t[1][0])-o[1][0],u=a.invertY(t[0][1])-o[0][1],r=a.invertY(t[1][1])-o[1][1];return a.translate(i>d?(d+i)/2:Math.min(0,d)||Math.max(0,i),r>u?(u+r)/2:Math.min(0,u)||Math.max(0,r))}function we(){var a=_e,t=ye,o=be,d=pe,i=xe,u=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],x=250,g=ve,f=Rt("start","zoom","end"),M,C,_,w=500,b=150,k=0,Z=10;function h(e){e.property("__zoom",It).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",q).filter(i).on("touchstart.zoom",Q).on("touchmove.zoom",dt).on("touchend.zoom touchcancel.zoom",Zt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}h.transform=function(e,s,n,c){var v=e.selection?e.selection():e;v.property("__zoom",It),e!==v?Y(e,s,n,c):v.interrupt().each(function(){R(this,arguments).event(c).start().zoom(null,typeof s=="function"?s.apply(this,arguments):s).end()})},h.scaleBy=function(e,s,n,c){h.scaleTo(e,function(){var v=this.__zoom.k,y=typeof s=="function"?s.apply(this,arguments):s;return v*y},n,c)},h.scaleTo=function(e,s,n,c){h.transform(e,function(){var v=t.apply(this,arguments),y=this.__zoom,p=n==null?N(v):typeof n=="function"?n.apply(this,arguments):n,z=y.invert(p),D=typeof s=="function"?s.apply(this,arguments):s;return o(B(E(y,D),p,z),v,r)},n,c)},h.translateBy=function(e,s,n,c){h.transform(e,function(){return o(this.__zoom.translate(typeof s=="function"?s.apply(this,arguments):s,typeof n=="function"?n.apply(this,arguments):n),t.apply(this,arguments),r)},null,c)},h.translateTo=function(e,s,n,c,v){h.transform(e,function(){var y=t.apply(this,arguments),p=this.__zoom,z=c==null?N(y):typeof c=="function"?c.apply(this,arguments):c;return o(pt.translate(z[0],z[1]).scale(p.k).translate(typeof s=="function"?-s.apply(this,arguments):-s,typeof n=="function"?-n.apply(this,arguments):-n),y,r)},c,v)};function E(e,s){return s=Math.max(u[0],Math.min(u[1],s)),s===e.k?e:new wt(s,e.x,e.y)}function B(e,s,n){var c=s[0]-n[0]*e.k,v=s[1]-n[1]*e.k;return c===e.x&&v===e.y?e:new wt(e.k,c,v)}function N(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function Y(e,s,n,c){e.on("start.zoom",function(){R(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(c).end()}).tween("zoom",function(){var v=this,y=arguments,p=R(v,y).event(c),z=t.apply(v,y),D=n==null?N(z):typeof n=="function"?n.apply(v,y):n,L=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),V=v.__zoom,G=typeof s=="function"?s.apply(v,y):s,J=g(V.invert(D).concat(L/V.k),G.invert(D).concat(L/G.k));return function(U){if(U===1)U=G;else{var $=J(U),bt=L/$[2];U=new wt(bt,D[0]-$[0]*bt,D[1]-$[1]*bt)}p.zoom(null,U)}})}function R(e,s,n){return!n&&e.__zooming||new m(e,s)}function m(e,s){this.that=e,this.args=s,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,s),this.taps=0}m.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,s){return this.mouse&&e!=="mouse"&&(this.mouse[1]=s.invert(this.mouse[0])),this.touch0&&e!=="touch"&&(this.touch0[1]=s.invert(this.touch0[0])),this.touch1&&e!=="touch"&&(this.touch1[1]=s.invert(this.touch1[0])),this.that.__zoom=s,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var s=et(this.that).datum();f.call(e,this.that,new ge(e,{sourceEvent:this.sourceEvent,target:h,transform:this.that.__zoom,dispatch:f}),s)}};function S(e,...s){if(!a.apply(this,arguments))return;var n=R(this,s).event(e),c=this.__zoom,v=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,d.apply(this,arguments)))),y=rt(e);if(n.wheel)(n.mouse[0][0]!==y[0]||n.mouse[0][1]!==y[1])&&(n.mouse[1]=c.invert(n.mouse[0]=y)),clearTimeout(n.wheel);else{if(c.k===v)return;n.mouse=[y,c.invert(y)],zt(this),n.start()}mt(e),n.wheel=setTimeout(p,b),n.zoom("mouse",o(B(E(c,v),n.mouse[0],n.mouse[1]),n.extent,r));function p(){n.wheel=null,n.end()}}function P(e,...s){if(_||!a.apply(this,arguments))return;var n=e.currentTarget,c=R(this,s,!0).event(e),v=et(e.view).on("mousemove.zoom",D,!0).on("mouseup.zoom",L,!0),y=rt(e,n),p=e.clientX,z=e.clientY;Yt(e.view),Tt(e),c.mouse=[y,this.__zoom.invert(y)],zt(this),c.start();function D(V){if(mt(V),!c.moved){var G=V.clientX-p,J=V.clientY-z;c.moved=G*G+J*J>k}c.event(V).zoom("mouse",o(B(c.that.__zoom,c.mouse[0]=rt(V,n),c.mouse[1]),c.extent,r))}function L(V){v.on("mousemove.zoom mouseup.zoom",null),Ot(V.view,c.moved),mt(V),c.event(V).end()}}function q(e,...s){if(a.apply(this,arguments)){var n=this.__zoom,c=rt(e.changedTouches?e.changedTouches[0]:e,this),v=n.invert(c),y=n.k*(e.shiftKey?.5:2),p=o(B(E(n,y),c,v),t.apply(this,s),r);mt(e),x>0?et(this).transition().duration(x).call(Y,p,c,e):et(this).call(h.transform,p,c,e)}}function Q(e,...s){if(a.apply(this,arguments)){var n=e.touches,c=n.length,v=R(this,s,e.changedTouches.length===c).event(e),y,p,z,D;for(Tt(e),p=0;p<c;++p)z=n[p],D=rt(z,this),D=[D,this.__zoom.invert(D),z.identifier],v.touch0?!v.touch1&&v.touch0[2]!==D[2]&&(v.touch1=D,v.taps=0):(v.touch0=D,y=!0,v.taps=1+!!M);M&&(M=clearTimeout(M)),y&&(v.taps<2&&(C=D[0],M=setTimeout(function(){M=null},w)),zt(this),v.start())}}function dt(e,...s){if(this.__zooming){var n=R(this,s).event(e),c=e.changedTouches,v=c.length,y,p,z,D;for(mt(e),y=0;y<v;++y)p=c[y],z=rt(p,this),n.touch0&&n.touch0[2]===p.identifier?n.touch0[0]=z:n.touch1&&n.touch1[2]===p.identifier&&(n.touch1[0]=z);if(p=n.that.__zoom,n.touch1){var L=n.touch0[0],V=n.touch0[1],G=n.touch1[0],J=n.touch1[1],U=(U=G[0]-L[0])*U+(U=G[1]-L[1])*U,$=($=J[0]-V[0])*$+($=J[1]-V[1])*$;p=E(p,Math.sqrt(U/$)),z=[(L[0]+G[0])/2,(L[1]+G[1])/2],D=[(V[0]+J[0])/2,(V[1]+J[1])/2]}else if(n.touch0)z=n.touch0[0],D=n.touch0[1];else return;n.zoom("touch",o(B(p,z,D),n.extent,r))}}function Zt(e,...s){if(this.__zooming){var n=R(this,s).event(e),c=e.changedTouches,v=c.length,y,p;for(Tt(e),_&&clearTimeout(_),_=setTimeout(function(){_=null},w),y=0;y<v;++y)p=c[y],n.touch0&&n.touch0[2]===p.identifier?delete n.touch0:n.touch1&&n.touch1[2]===p.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(p=rt(p,this),Math.hypot(C[0]-p[0],C[1]-p[1])<Z)){var z=et(this).on("dblclick.zoom");z&&z.apply(this,arguments)}}}return h.wheelDelta=function(e){return arguments.length?(d=typeof e=="function"?e:yt(+e),h):d},h.filter=function(e){return arguments.length?(a=typeof e=="function"?e:yt(!!e),h):a},h.touchable=function(e){return arguments.length?(i=typeof e=="function"?e:yt(!!e),h):i},h.extent=function(e){return arguments.length?(t=typeof e=="function"?e:yt([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),h):t},h.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],h):[u[0],u[1]]},h.translateExtent=function(e){return arguments.length?(r[0][0]=+e[0][0],r[1][0]=+e[1][0],r[0][1]=+e[0][1],r[1][1]=+e[1][1],h):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},h.constrain=function(e){return arguments.length?(o=e,h):o},h.duration=function(e){return arguments.length?(x=+e,h):x},h.interpolate=function(e){return arguments.length?(g=e,h):g},h.on=function(){var e=f.on.apply(f,arguments);return e===f?h:e},h.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,h):Math.sqrt(k)},h.tapDistance=function(e){return arguments.length?(Z=+e,h):Z},h}function ze(a,t){let o=a.scaleIndependentXForm;o||(o=a.scaleIndependentXForm=t.createSVGTransform(),a.transform.baseVal.appendItem(o));const d=a.parentNode;if(d){const i=d.getScreenCTM();if(i){const u=i.inverse().multiply(t.getScreenCTM());u.e=u.f=0,o.setMatrix(u)}}}var Me=O('<div class="pointer-events-auto absolute bottom-0 left-1 z-20 flex select-none items-center gap-1 rounded-lg bg-muted bg-opacity-80 shadow-md backdrop-blur-sm"><!> <div class="h-6 w-px bg-white bg-opacity-20"></div> <!> <div class="w-[32px] text-center text-sm text-muted-foreground" data-testid="zoom-level"> </div> <!></div>');function Te(a,t){var o=Me(),d=A(o);Mt(d,{variant:"ghost","data-testid":"zoom-reset",size:"sm",get onclick(){return t.onZoomReset},get disabled(){return t.isResetDisabled},children:(g,f)=>{At();var M=Et("Reset");T(g,M)},$$slots:{default:!0}});var i=at(d,4);Mt(i,{title:"zoom out",variant:"ghost",size:"icon","data-testid":"zoom-out",get onclick(){return t.onZoomOut},get disabled(){return t.isZoominDisabled},children:(g,f)=>{Lt(g,{class:"h-4 w-4"})},$$slots:{default:!0}});var u=at(i,2),r=A(u);I(u);var x=at(u,2);Mt(x,{title:"zoom in",variant:"ghost",size:"icon","data-testid":"zoom-in",get onclick(){return t.onZoomIn},get disabled(){return t.isZoomoutDisabled},children:(g,f)=>{Qt(g,{class:"h-4 w-4"})},$$slots:{default:!0}}),I(o),ft(g=>st(r,`${g??""}%`),[()=>Math.round(t.scale*100)]),T(a,o)}var ke=O('<div class="relative flex h-full w-full select-none items-center justify-center"><!> <svg class="z-10 h-full w-full" preserveAspectRatio="xMidYMid meet"><g><!></g></svg> <svg class="pointer-events-none absolute inset-0" preserveAspectRatio="xMidYMid meet"></svg></div>');function ea(a,t){F(t,!0);let o=ut(null),d=ut(null);const i=ot(t,"cursor",3,"auto");let u=ut(800),r=ut(600);kt(()=>{if(!l(o))return;tt(u,l(o).clientWidth,!0),tt(r,l(o).clientHeight,!0);const m=new ResizeObserver(()=>{l(o)&&(tt(u,l(o).clientWidth,!0),tt(r,l(o).clientHeight,!0))});return m.observe(l(o)),()=>m.disconnect()});const x=10,g=ct(()=>{const m={x:0,y:0,width:t.width,height:t.height};if(t.boundingBox){k();const{x:S,y:P,width:q,height:Q}=t.boundingBox;return{x:Math.round(Math.max(0,S-x)),y:Math.round(Math.max(0,P-x)),width:Math.round(Math.min(t.width-S,q+x*2)),height:Math.round(Math.min(t.height-P,Q+x*2))}}return m});let f=ut(Ct({k:1,x:0,y:0}));const M=ct(()=>{if(!l(o))return 1;const m=l(u)/t.width,S=l(r)/t.height,P=Math.min(m,S);return l(f).k*P}),C=ct(()=>{if(!l(o))return 1;let m=l(M);if(t.boundingBox){const S=t.width/l(g).width,P=t.height/l(g).height,q=Math.min(S,P);m*=q}return m});let _=ut(null);const w=()=>{l(o)&&(tt(_,we().on("zoom",m=>{tt(f,m.transform,!0)}).filter(m=>(!m.ctrlKey||m.type==="wheel")&&!m.button&&!(m.type==="mousedown"&&m.button===2)).wheelDelta(m=>-m.deltaY*.002),!0),et(l(o)).call(l(_)).on("dblclick.zoom",null))},b=m=>{if(!l(o)||!l(_))return;const S=m?1.5:.75;et(l(o)).transition().duration(300).call(l(_).scaleBy,S)},k=()=>{!l(o)||!l(_)||et(l(o)).transition().duration(300).call(l(_).transform,pt)},Z=()=>{tt(f,{k:1,x:0,y:0},!0),l(o)&&l(_)&&et(l(o)).call(l(_).transform,pt)};jt(()=>{var m;w(),(m=t.registerResetFn)==null||m.call(t,Z)}),kt(()=>{l(f).k,Jt(".unscaled").each(function(){ze(this,l(d))})});var h=ke(),E=A(h);Te(E,{get scale(){return l(M)},onZoomIn:()=>b(!0),onZoomOut:()=>b(!1),onZoomReset:k});var B=at(E,2),N=A(B),Y=A(N);X(Y,()=>t.zoomableContent,()=>({scale:l(C)})),I(N),I(B),it(B,m=>tt(o,m),()=>l(o));var R=at(B,2);lt(R,"viewBox","0 0 1024 768"),it(R,m=>tt(d,m),()=>l(d)),I(h),ft(()=>{Ft(B,`cursor: ${i()};`),lt(B,"viewBox",`${l(g).x} ${l(g).y} ${l(g).width} ${l(g).height}`),lt(N,"transform",`translate(${l(f).x}, ${l(f).y}) scale(${l(f).k})`)}),T(a,h),H()}export{Ge as B,He as D,qe as H,ta as S,ea as Z,Ke as a,Ue as b,je as c,We as d,Qe as e,$e as f,ie as g,Le as h,Je as u};
@@ -1 +1 @@
1
- import{c as d}from"./gBp1tBnA.js";import{a as r}from"./BOmrKuMn.js";import{m,w as u}from"./C3xJX0nD.js";const l=async({dataset_id:s,annotation_label_ids:n})=>{const t={data:void 0,error:void 0};try{const i=await d.GET("/api/datasets/{dataset_id}/samples/dimensions",{params:{path:{dataset_id:s},query:{annotation_label_ids:n}}});if(i.error)throw new Error(JSON.stringify(i.error,null,2));if(!i.data)throw new Error("No dimension bounds data");t.data=i.data}catch(i){t.error="Error loading dimension bounds: "+String(i)}return t},o=r("lightlyStudio_dimensions_bounds",{min_width:0,max_width:0,min_height:0,max_height:0}),e=r("lightlyStudio_dimensions_values",{min_width:0,max_width:0,min_height:0,max_height:0}),h=s=>{e.set(s)},c=s=>{o.set(s)},a=u(!1),w=async s=>{if(m(a))return;const{data:n}=await l({dataset_id:s});n&&(o.set(n),e.set(n)),a.set(!0)},f=s=>(s&&w(s),{dimensionsBounds:o,dimensionsValues:e,updateDimensionsValues:h,updateDimensionsBounds:c});export{f as u};
1
+ import{c as d}from"./gBp1tBnA.js";import{a as r}from"./Bip0vTKl.js";import{m,w as u}from"./C3xJX0nD.js";const l=async({dataset_id:s,annotation_label_ids:n})=>{const t={data:void 0,error:void 0};try{const i=await d.GET("/api/datasets/{dataset_id}/samples/dimensions",{params:{path:{dataset_id:s},query:{annotation_label_ids:n}}});if(i.error)throw new Error(JSON.stringify(i.error,null,2));if(!i.data)throw new Error("No dimension bounds data");t.data=i.data}catch(i){t.error="Error loading dimension bounds: "+String(i)}return t},o=r("lightlyStudio_dimensions_bounds",{min_width:0,max_width:0,min_height:0,max_height:0}),e=r("lightlyStudio_dimensions_values",{min_width:0,max_width:0,min_height:0,max_height:0}),h=s=>{e.set(s)},c=s=>{o.set(s)},a=u(!1),w=async s=>{if(m(a))return;const{data:n}=await l({dataset_id:s});n&&(o.set(n),e.set(n)),a.set(!0)},f=s=>(s&&w(s),{dimensionsBounds:o,dimensionsValues:e,updateDimensionsValues:h,updateDimensionsBounds:c});export{f as u};
@@ -1 +1 @@
1
- import{s as t,p as r}from"./D8ZGoCPm.js";const e={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
1
+ import{s as t,p as r}from"./BHoO7UL_.js";const e={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
@@ -0,0 +1,4 @@
1
+ const s="en-US",f=r=>new Intl.NumberFormat(s,{}).format(r).toString(),m=(r,t=3,n=0)=>new Intl.NumberFormat(s,{maximumFractionDigits:t,minimumFractionDigits:n}).format(r).toString(),i=r=>{if(r==null)return"null";if(typeof r=="string")return r;if(typeof r=="number")return Number.isInteger(r)?f(r):m(r);if(typeof r=="boolean")return r?"true":"false";if(Array.isArray(r))return r.length===0?"[]":r.length<=3&&r.every(t=>typeof t!="object"||t===null)?`[${r.map(t=>i(t)).join(", ")}]`:`[${r.map(n=>i(n)).join(", ")}]`;if(typeof r=="object"&&r!==null&&!Array.isArray(r)){const t=r,n=Object.keys(t);return n.length===0?"{}":n.length<=3&&n.every(e=>{const o=t[e];return typeof o!="object"||o===null||Array.isArray(o)})?`{${n.map(o=>`${o}: ${i(t[o])}`).join(", ")}}`:`{
2
+ ${n.map(e=>{const o=i(t[e]);return`${e}: ${o}`}).join(`
3
+ `)}
4
+ }`}return String(r)};export{i as a,m as b,f};
@@ -1,4 +1,4 @@
1
- import"./CWj6FrbW.js";import{p as n,f as l,n as m,a as i}from"./C3xJX0nD.js";import{c as d,a as c}from"./CAPx0Bfm.js";import{s as f}from"./DoEId1MK.js";import{s as h,r as u}from"./xQhUoIl9.js";import{I as $}from"./CWuDkrMZ.js";function N(t,a){n(a,!0);/**
1
+ import"./CWj6FrbW.js";import{p as n,f as l,n as m,a as i}from"./C3xJX0nD.js";import{c as d,a as c}from"./CAPx0Bfm.js";import{s as f}from"./DoEId1MK.js";import{s as h,r as u}from"./xQhUoIl9.js";import{I as $}from"./DgCXCApo.js";function N(t,a){n(a,!0);/**
2
2
  * @license @lucide/svelte v0.482.0 - ISC
3
3
  *
4
4
  * ISC License
@@ -1 +1 @@
1
- import{m as f,w as s,o as h,q as r}from"./C3xJX0nD.js";import{a as p}from"./BaFFwDFr.js";import{u as y}from"./BOmrKuMn.js";const o=s(new Set);function v(u){const{dataset_id:n,kind:i}=u,{tags:l}=y(),g=s(!1),c=s(null),e=s(!1),d=()=>{f(e)||(e.set(!0),p({path:{dataset_id:n}}).then(t=>{if(t.error)throw new Error(JSON.stringify(t.error));t.data&&l.set(t.data)}).catch(t=>{c.set(t)}).finally(()=>{e.set(!1)}))};!f(g)&&n&&(d(),g.set(!0));const S=h(l,t=>{const a=t??[];return i?a.filter(T=>i.includes(T.kind)):a}),m=t=>{o.update(a=>(a.has(t)?a.delete(t):a.add(t),new Set([...a])))},w=()=>{o.set(new Set)};return{tags:r(S),loadTags:d,tagsSelected:r(o),tagSelectionToggle:m,clearTagsSelected:w,isLoading:r(e),error:c}}export{v as u};
1
+ import{m as f,w as s,o as h,q as r}from"./C3xJX0nD.js";import{a as p}from"./CEPpkZIV.js";import{u as y}from"./Bip0vTKl.js";const o=s(new Set);function v(u){const{dataset_id:n,kind:i}=u,{tags:l}=y(),g=s(!1),c=s(null),e=s(!1),d=()=>{f(e)||(e.set(!0),p({path:{dataset_id:n}}).then(t=>{if(t.error)throw new Error(JSON.stringify(t.error));t.data&&l.set(t.data)}).catch(t=>{c.set(t)}).finally(()=>{e.set(!1)}))};!f(g)&&n&&(d(),g.set(!0));const S=h(l,t=>{const a=t??[];return i?a.filter(T=>i.includes(T.kind)):a}),m=t=>{o.update(a=>(a.has(t)?a.delete(t):a.add(t),new Set([...a])))},w=()=>{o.set(new Set)};return{tags:r(S),loadTags:d,tagsSelected:r(o),tagSelectionToggle:m,clearTagsSelected:w,isLoading:r(e),error:c}}export{v as u};