lightly-studio 0.3.2__py3-none-any.whl → 0.3.4__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 (163) hide show
  1. lightly_studio/__init__.py +1 -1
  2. lightly_studio/api/app.py +8 -4
  3. lightly_studio/api/db_tables.py +0 -3
  4. lightly_studio/api/routes/api/annotation.py +26 -0
  5. lightly_studio/api/routes/api/annotations/__init__.py +7 -0
  6. lightly_studio/api/routes/api/annotations/create_annotation.py +52 -0
  7. lightly_studio/api/routes/api/caption.py +30 -0
  8. lightly_studio/api/routes/api/dataset.py +3 -5
  9. lightly_studio/api/routes/api/embeddings2d.py +136 -0
  10. lightly_studio/api/routes/api/export.py +73 -0
  11. lightly_studio/api/routes/api/metadata.py +57 -1
  12. lightly_studio/api/routes/api/selection.py +87 -0
  13. lightly_studio/core/add_samples.py +138 -9
  14. lightly_studio/core/dataset.py +174 -63
  15. lightly_studio/core/dataset_query/dataset_query.py +5 -0
  16. lightly_studio/dataset/env.py +4 -0
  17. lightly_studio/dataset/file_utils.py +13 -2
  18. lightly_studio/dataset/loader.py +2 -62
  19. lightly_studio/dataset/mobileclip_embedding_generator.py +3 -2
  20. lightly_studio/db_manager.py +10 -4
  21. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.B3oFNb6O.css +1 -0
  22. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/2.CkOblLn7.css +1 -0
  23. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.CIbricz7.css +1 -0
  24. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.7Ma7YdVg.css +1 -0
  25. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/{useFeatureFlags.CV-KWLNP.css → _layout.CefECEWA.css} +1 -1
  26. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.2jKMtOWG.css +1 -0
  27. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/-DXuGN29.js +1 -0
  28. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Ccq4ZD0B.js → B7302SU7.js} +1 -1
  29. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BeWf8-vJ.js +1 -0
  30. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bqz7dyEC.js +1 -0
  31. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C1FmrZbK.js +1 -0
  32. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DRZO-E-T.js → CSCQddQS.js} +1 -1
  33. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CZGpyrcA.js +1 -0
  34. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CfQ4mGwl.js +1 -0
  35. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CiaNZCBa.js +1 -0
  36. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cqo0Vpvt.js +417 -0
  37. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cy4fgWTG.js +1 -0
  38. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D5w4xp5l.js +1 -0
  39. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DD63uD-T.js +1 -0
  40. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DQ8aZ1o-.js +3 -0
  41. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Df3aMO5B.js → DSxvnAMh.js} +1 -1
  42. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D_JuJOO3.js +20 -0
  43. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D_ynJAfY.js +2 -0
  44. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dafy4oEQ.js +1 -0
  45. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BqBqV92V.js → Dj4O-5se.js} +1 -1
  46. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DmjAI-UV.js +1 -0
  47. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dug7Bq1S.js +1 -0
  48. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dv5BSBQG.js +1 -0
  49. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DzBTnFhV.js +1 -0
  50. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DzX_yyqb.js +1 -0
  51. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Frwd2CjB.js +1 -0
  52. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H4l0JFh9.js +1 -0
  53. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H60ATh8g.js +2 -0
  54. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/qIv1kPyv.js +1 -0
  55. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/sLqs1uaK.js +20 -0
  56. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/u-it74zV.js +96 -0
  57. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BPc0HQPq.js +2 -0
  58. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.SNvc2nrm.js +1 -0
  59. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.5jT7P06o.js +1 -0
  60. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1.Cdy-7S5q.js +1 -0
  61. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.C_uoESTX.js +1 -0
  62. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.DcO8wIAc.js +1 -0
  63. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.BIldfkxL.js +1012 -0
  64. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.w9g4AcAx.js → 3.BC9z_TWM.js} +1 -1
  65. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.BBI8KwnD.js → 4.D8X_Ch5n.js} +1 -1
  66. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.CAXhxJu6.js +39 -0
  67. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{6.CrbkRPam.js → 6.DRA5Ru_2.js} +1 -1
  68. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.WVBsruHQ.js +1 -0
  69. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.BuKUrCEN.js +20 -0
  70. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.CUIn1yCR.js +1 -0
  71. lightly_studio/dist_lightly_studio_view_app/_app/immutable/workers/clustering.worker-DKqeLtG0.js +2 -0
  72. lightly_studio/dist_lightly_studio_view_app/_app/immutable/workers/search.worker-vNSty3B0.js +1 -0
  73. lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
  74. lightly_studio/dist_lightly_studio_view_app/index.html +15 -14
  75. lightly_studio/examples/example.py +4 -0
  76. lightly_studio/examples/example_coco.py +4 -0
  77. lightly_studio/examples/example_coco_caption.py +24 -0
  78. lightly_studio/examples/example_metadata.py +4 -1
  79. lightly_studio/examples/example_selection.py +4 -0
  80. lightly_studio/examples/example_split_work.py +4 -0
  81. lightly_studio/examples/example_yolo.py +4 -0
  82. lightly_studio/export/export_dataset.py +73 -0
  83. lightly_studio/export/lightly_studio_label_input.py +120 -0
  84. lightly_studio/few_shot_classifier/classifier_manager.py +5 -26
  85. lightly_studio/metadata/compute_typicality.py +67 -0
  86. lightly_studio/models/annotation/annotation_base.py +11 -12
  87. lightly_studio/models/caption.py +73 -0
  88. lightly_studio/models/dataset.py +1 -2
  89. lightly_studio/models/metadata.py +1 -1
  90. lightly_studio/models/sample.py +2 -2
  91. lightly_studio/resolvers/annotation_label_resolver/__init__.py +2 -1
  92. lightly_studio/resolvers/annotation_label_resolver/get_all.py +15 -0
  93. lightly_studio/resolvers/annotation_resolver/__init__.py +2 -3
  94. lightly_studio/resolvers/annotation_resolver/create_many.py +3 -3
  95. lightly_studio/resolvers/annotation_resolver/delete_annotation.py +1 -1
  96. lightly_studio/resolvers/annotation_resolver/delete_annotations.py +7 -3
  97. lightly_studio/resolvers/annotation_resolver/get_by_id.py +19 -1
  98. lightly_studio/resolvers/annotation_resolver/update_annotation_label.py +0 -1
  99. lightly_studio/resolvers/annotations/annotations_filter.py +1 -11
  100. lightly_studio/resolvers/caption_resolver.py +80 -0
  101. lightly_studio/resolvers/dataset_resolver.py +4 -7
  102. lightly_studio/resolvers/metadata_resolver/__init__.py +2 -2
  103. lightly_studio/resolvers/metadata_resolver/sample/__init__.py +3 -3
  104. lightly_studio/resolvers/metadata_resolver/sample/bulk_update_metadata.py +46 -0
  105. lightly_studio/resolvers/samples_filter.py +18 -10
  106. lightly_studio/selection/mundig.py +7 -10
  107. lightly_studio/selection/selection_config.py +4 -1
  108. lightly_studio/services/annotations_service/__init__.py +8 -0
  109. lightly_studio/services/annotations_service/create_annotation.py +63 -0
  110. lightly_studio/services/annotations_service/delete_annotation.py +22 -0
  111. lightly_studio/type_definitions.py +2 -0
  112. {lightly_studio-0.3.2.dist-info → lightly_studio-0.3.4.dist-info}/METADATA +231 -41
  113. {lightly_studio-0.3.2.dist-info → lightly_studio-0.3.4.dist-info}/RECORD +114 -104
  114. lightly_studio/api/routes/api/annotation_task.py +0 -37
  115. lightly_studio/api/routes/api/metrics.py +0 -76
  116. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.DenzbfeK.css +0 -1
  117. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BBm0IWdq.css +0 -1
  118. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BNTuXSAe.css +0 -1
  119. lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.T-zjSUd3.css +0 -1
  120. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/2O287xak.js +0 -3
  121. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/7YNGEs1C.js +0 -1
  122. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BBoGk9hq.js +0 -1
  123. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BRnH9v23.js +0 -92
  124. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bg1Y5eUZ.js +0 -1
  125. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C0JiMuYn.js +0 -1
  126. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C98Hk3r5.js +0 -1
  127. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CG0dMCJi.js +0 -1
  128. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cpy-nab_.js +0 -1
  129. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Crk-jcvV.js +0 -1
  130. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cs31G8Qn.js +0 -1
  131. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CsKrY2zA.js +0 -1
  132. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cur71c3O.js +0 -1
  133. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CzgC3GFB.js +0 -1
  134. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D8GZDMNN.js +0 -1
  135. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DFRh-Spp.js +0 -1
  136. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DcGCxgpH.js +0 -1
  137. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DkR_EZ_B.js +0 -1
  138. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqUGznj_.js +0 -1
  139. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H7C68rOM.js +0 -1
  140. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/KpAtIldw.js +0 -1
  141. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/M1Q1F7bw.js +0 -4
  142. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/OH7-C_mc.js +0 -1
  143. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/gLNdjSzu.js +0 -1
  144. lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/i0ZZ4z06.js +0 -1
  145. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BI-EA5gL.js +0 -2
  146. lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CcsRl3cZ.js +0 -1
  147. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.BbO4Zc3r.js +0 -1
  148. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1._I9GR805.js +0 -1
  149. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.J2RBFrSr.js +0 -1
  150. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.Cmqj25a-.js +0 -1
  151. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.C45iKJHA.js +0 -6
  152. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.huHuxdiF.js +0 -1
  153. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.FomEdhD6.js +0 -1
  154. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cb_ADSLk.js +0 -1
  155. lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.CajIG5ce.js +0 -1
  156. lightly_studio/metrics/__init__.py +0 -0
  157. lightly_studio/metrics/detection/__init__.py +0 -0
  158. lightly_studio/metrics/detection/map.py +0 -268
  159. lightly_studio/models/annotation_task.py +0 -28
  160. lightly_studio/resolvers/annotation_resolver/create.py +0 -19
  161. lightly_studio/resolvers/annotation_task_resolver.py +0 -31
  162. lightly_studio/resolvers/metadata_resolver/sample/bulk_set_metadata.py +0 -48
  163. {lightly_studio-0.3.2.dist-info → lightly_studio-0.3.4.dist-info}/WHEEL +0 -0
@@ -0,0 +1 @@
1
+ import{m as u,w as e,o as w,q as n}from"./Frwd2CjB.js";import{c as h}from"./DzX_yyqb.js";import{u as L}from"./qIv1kPyv.js";const o=e(new Set);function _(f){const{dataset_id:r,kind:i}=f,{tags:l}=L(),c=e(!1),d=e(null),s=e(!1),g=()=>{u(s)||(s.set(!0),h.GET("/api/datasets/{dataset_id}/tags",{params:{path:{dataset_id:r}}}).then(t=>{t.data&&l.set(t.data)}).catch(t=>{d.set(t)}).finally(()=>{s.set(!1)}))};!u(c)&&r&&(g(),c.set(!0));const m=w(l,t=>{const a=t??[];return i?a.filter(T=>i.includes(T.kind)):a}),S=t=>{o.update(a=>(a.has(t)?a.delete(t):a.add(t),new Set([...a])))},p=()=>{o.set(new Set)};return{tags:n(m),loadTags:g,tagsSelected:n(o),tagSelectionToggle:S,clearTagsSelected:p,isLoading:n(s),error:d}}export{_ as u};
@@ -0,0 +1 @@
1
+ var I=Object.defineProperty;var E=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t,r)=>E(e,typeof t!="symbol"?t+"":t,r);const R={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)},U=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},V=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},P=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},W=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},C=({allowReserved:e,explode:t,name:r,style:i,value:n})=>{if(!t){const s=(e?n:n.map(c=>encodeURIComponent(c))).join(P(i));switch(i){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}const o=V(i),a=n.map(s=>i==="label"||i==="simple"?e?s:encodeURIComponent(s):g({allowReserved:e,name:r,value:s})).join(o);return i==="label"||i==="matrix"?o+a:a},g=({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)}`},$=({allowReserved:e,explode:t,name:r,style:i,value:n,valueOnly:o})=>{if(n instanceof Date)return o?n.toISOString():`${r}=${n.toISOString()}`;if(i!=="deepObject"&&!t){let c=[];Object.entries(n).forEach(([p,y])=>{c=[...c,p,e?y:encodeURIComponent(y)]});const f=c.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}const a=W(i),s=Object.entries(n).map(([c,f])=>g({allowReserved:e,name:i==="deepObject"?`${r}[${c}]`:c,value:f})).join(a);return i==="label"||i==="matrix"?a+s:s},k=/\{[^{}]+\}/g,H=({path:e,url:t})=>{let r=t;const i=t.match(k);if(i)for(const n of i){let o=!1,a=n.substring(1,n.length-1),s="simple";a.endsWith("*")&&(o=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),s="label"):a.startsWith(";")&&(a=a.substring(1),s="matrix");const c=e[a];if(c==null)continue;if(Array.isArray(c)){r=r.replace(n,C({explode:o,name:a,style:s,value:c}));continue}if(typeof c=="object"){r=r.replace(n,$({explode:o,name:a,style:s,value:c,valueOnly:!0}));continue}if(s==="matrix"){r=r.replace(n,`;${g({name:a,value:c})}`);continue}const f=encodeURIComponent(s==="label"?`.${c}`:c);r=r.replace(n,f)}return r},z=({allowReserved:e,array:t,object:r}={})=>n=>{const o=[];if(n&&typeof n=="object")for(const a in n){const s=n[a];if(s!=null)if(Array.isArray(s)){const c=C({allowReserved:e,explode:!0,name:a,style:"form",value:s,...t});c&&o.push(c)}else if(typeof s=="object"){const c=$({allowReserved:e,explode:!0,name:a,style:"deepObject",value:s,...r});c&&o.push(c)}else{const c=g({allowReserved:e,name:a,value:s});c&&o.push(c)}}return o.join("&")},N=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(i=>t.startsWith(i)))return"blob";if(t.startsWith("text/"))return"text"}},B=async({security:e,...t})=>{for(const r of e){const i=await U(r,t.auth);if(!i)continue;const n=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[n]=i;break;case"cookie":t.headers.append("Cookie",`${n}=${i}`);break;case"header":default:t.headers.set(n,i);break}return}},A=e=>L({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:z(e.querySerializer),url:e.url}),L=({baseUrl:e,path:t,query:r,querySerializer:i,url:n})=>{const o=n.startsWith("/")?n:`/${n}`;let a=(e??"")+o;t&&(a=H({path:t,url:a}));let s=r?i(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(a+=`?${s}`),a},x=(e,t)=>{var i;const r={...e,...t};return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=D(e.headers,t.headers),r},D=(...e)=>{const t=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const i=r instanceof Headers?r.entries():Object.entries(r);for(const[n,o]of i)if(o===null)t.delete(n);else if(Array.isArray(o))for(const a of o)t.append(n,a);else o!==void 0&&t.set(n,typeof o=="object"?JSON.stringify(o):o)}return t};class _{constructor(){w(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 i=this.getInterceptorIndex(t);return this._fns[i]?(this._fns[i]=r,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const J=()=>({error:new _,request:new _,response:new _}),M=z({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Q={"Content-Type":"application/json"},O=(e={})=>({...R,headers:Q,parseAs:"auto",querySerializer:M,...e}),F=(e={})=>{let t=x(O(),e);const r=()=>({...t}),i=a=>(t=x(t,a),r()),n=J(),o=async a=>{const s={...t,...a,fetch:a.fetch??t.fetch??globalThis.fetch,headers:D(t.headers,a.headers)};s.security&&await B({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body&&s.bodySerializer&&(s.body=s.bodySerializer(s.body)),(s.body===void 0||s.body==="")&&s.headers.delete("Content-Type");const c=A(s),f={redirect:"follow",...s};let p=new Request(c,f);for(const d of n.request._fns)d&&(p=await d(p,s));const y=s.fetch;let l=await y(p);for(const d of n.response._fns)d&&(l=await d(l,p,s));const b={request:p,response:l};if(l.ok){if(l.status===204||l.headers.get("Content-Length")==="0")return s.responseStyle==="data"?{}:{data:{},...b};const d=(s.parseAs==="auto"?N(l.headers.get("Content-Type")):s.parseAs)??"json";let h;switch(d){case"arrayBuffer":case"blob":case"formData":case"json":case"text":h=await l[d]();break;case"stream":return s.responseStyle==="data"?l.body:{data:l.body,...b}}return d==="json"&&(s.responseValidator&&await s.responseValidator(h),s.responseTransformer&&(h=await s.responseTransformer(h))),s.responseStyle==="data"?h:{data:h,...b}}const T=await l.text();let j;try{j=JSON.parse(T)}catch{}const S=j??T;let m=S;for(const d of n.error._fns)d&&(m=await d(S,l,p,s));if(m=m||{},s.throwOnError)throw m;return s.responseStyle==="data"?void 0:{error:m,...b}};return{buildUrl:A,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:n,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:i,trace:a=>o({...a,method:"TRACE"})}},G=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),v=async e=>(e=e.map(t=>G(t)),e),K=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e.updated_at&&(e.updated_at=new Date(e.updated_at)),e),X=async e=>(e=K(e),e),Y=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),q=e=>(e.tags=e.tags.map(t=>Y(t)),e),Z=e=>(e.data=e.data.map(t=>q(t)),e),ee=async e=>(e=Z(e),e),te=async e=>(e=q(e),e),re=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e),se=async e=>(e=e.map(t=>re(t)),e),ae=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),ne=async e=>(e=ae(e),e),u=F(O()),oe=e=>((e==null?void 0:e.client)??u).get({responseTransformer:v,url:"/api/datasets",...e}),ce=e=>(e.client??u).get({responseTransformer:X,url:"/api/datasets/{dataset_id}",...e}),ue=e=>(e.client??u).post({responseTransformer:ee,url:"/api/datasets/{dataset_id}/samples/list",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??u).get({responseTransformer:te,url:"/api/datasets/{dataset_id}/samples/{sample_id}",...e}),de=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/samples/{sample_id}/tag/{tag_id}",...e}),fe=e=>((e==null?void 0:e.client)??u).get({url:"/api/annotation_labels",...e}),pe=e=>(e.client??u).post({url:"/api/annotation_labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations",...e}),me=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??u).put({responseTransformer:se,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),be=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations/count",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),_e=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),Te=e=>((e==null?void 0:e.client)??u).get({responseTransformer:ne,url:"/api/settings",...e}),je=e=>(e.client??u).get({url:"/api/classifiers/{classifier_id}/sample_history",...e}),Se=e=>((e==null?void 0:e.client)??u).post({url:"/api/embeddings2d/tsne",...e,headers:{"Content-Type":"application/json",...e==null?void 0:e.headers}}),we=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/metadata/info",...e}),Ae=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/metadata/typicality",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/selection",...e,headers:{"Content-Type":"application/json",...e.headers}});export{ce as a,ue as b,u as c,ge as d,de as e,me as f,we as g,pe as h,le as i,fe as j,be as k,he as l,_e as m,Se as n,Te as o,xe as p,Ae as q,oe as r,je as s,ye as u};
@@ -0,0 +1 @@
1
+ var lt=e=>{throw TypeError(e)};var H=(e,t,s)=>t.has(e)||lt("Cannot "+s);var a=(e,t,s)=>(H(e,t,"read from private field"),s?s.call(e):t.get(e)),y=(e,t,s)=>t.has(e)?lt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),d=(e,t,s,n)=>(H(e,t,"write to private field"),n?n.call(e,s):t.set(e,s),s),f=(e,t,s)=>(H(e,t,"access private method"),s);import{c as It,d as St,g as Ct,e as Et,f as Qt,h as Ft,i as At,j as Mt,k as Tt,u as xt,l as Ut,m as Dt,n as Lt}from"./D5w4xp5l.js";import{aN as qt,o as G,m as nt,w as Kt}from"./Frwd2CjB.js";import{u as rt}from"./qIv1kPyv.js";import{S as Bt,p as ft,r as R,s as J,a as V,n as jt,i as yt,b as mt,t as kt,f as Pt,c as _t,d as bt,e as wt,g as Vt,h as zt}from"./H4l0JFh9.js";var O,r,k,p,A,L,C,w,P,q,K,M,T,E,B,i,j,X,Y,Z,$,tt,et,st,Rt,vt,Nt=(vt=class extends Bt{constructor(t,s){super();y(this,i);y(this,O);y(this,r);y(this,k);y(this,p);y(this,A);y(this,L);y(this,C);y(this,w);y(this,P);y(this,q);y(this,K);y(this,M);y(this,T);y(this,E);y(this,B,new Set);this.options=s,d(this,O,t),d(this,w,null),d(this,C,ft()),this.options.experimental_prefetchInRender||a(this,C).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(this,r).addObserver(this),pt(a(this,r),this.options)?f(this,i,j).call(this):this.updateResult(),f(this,i,$).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return at(a(this,r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return at(a(this,r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,i,tt).call(this),f(this,i,et).call(this),a(this,r).removeObserver(this)}setOptions(t,s){const n=this.options,o=a(this,r);if(this.options=a(this,O).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,a(this,r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,i,st).call(this),a(this,r).setOptions(this.options),n._defaulted&&!J(this.options,n)&&a(this,O).getQueryCache().notify({type:"observerOptionsUpdated",query:a(this,r),observer:this});const h=this.hasListeners();h&&Ot(a(this,r),o,this.options,n)&&f(this,i,j).call(this),this.updateResult(s),h&&(a(this,r)!==o||R(this.options.enabled,a(this,r))!==R(n.enabled,a(this,r))||V(this.options.staleTime,a(this,r))!==V(n.staleTime,a(this,r)))&&f(this,i,X).call(this);const l=f(this,i,Y).call(this);h&&(a(this,r)!==o||R(this.options.enabled,a(this,r))!==R(n.enabled,a(this,r))||l!==a(this,E))&&f(this,i,Z).call(this,l)}getOptimisticResult(t){const s=a(this,O).getQueryCache().build(a(this,O),t),n=this.createResult(s,t);return Ht(this,n)&&(d(this,p,n),d(this,L,this.options),d(this,A,a(this,r).state)),n}getCurrentResult(){return a(this,p)}trackResult(t,s){const n={};return Object.keys(t).forEach(o=>{Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),s==null||s(o),t[o])})}),n}trackProp(t){a(this,B).add(t)}getCurrentQuery(){return a(this,r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=a(this,O).defaultQueryOptions(t),n=a(this,O).getQueryCache().build(a(this,O),s);return n.fetch().then(()=>this.createResult(n,s))}fetch(t){return f(this,i,j).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),a(this,p)))}createResult(t,s){var dt;const n=a(this,r),o=this.options,h=a(this,p),l=a(this,A),m=a(this,L),I=t!==n?t.state:a(this,k),{state:u}=t;let c={...u},Q=!1,g;if(s._optimisticResults){const b=this.hasListeners(),U=!b&&pt(t,s),D=b&&Ot(t,n,s,o);(U||D)&&(c={...c,..._t(u.data,t.options)}),s._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:ot,errorUpdatedAt:ut,status:F}=c;if(s.select&&c.data!==void 0)if(h&&c.data===(l==null?void 0:l.data)&&s.select===a(this,P))g=a(this,q);else try{d(this,P,s.select),g=s.select(c.data),g=bt(h==null?void 0:h.data,g,s),d(this,q,g),d(this,w,null)}catch(b){d(this,w,b)}else g=c.data;if(s.placeholderData!==void 0&&g===void 0&&F==="pending"){let b;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))b=h.data;else if(b=typeof s.placeholderData=="function"?s.placeholderData((dt=a(this,K))==null?void 0:dt.state.data,a(this,K)):s.placeholderData,s.select&&b!==void 0)try{b=s.select(b),d(this,w,null)}catch(U){d(this,w,U)}b!==void 0&&(F="success",g=bt(h==null?void 0:h.data,b,s),Q=!0)}a(this,w)&&(ot=a(this,w),g=a(this,q),ut=Date.now(),F="error");const z=c.fetchStatus==="fetching",N=F==="pending",W=F==="error",ct=N&&z,ht=g!==void 0,v={status:F,fetchStatus:c.fetchStatus,isPending:N,isSuccess:F==="success",isError:W,isInitialLoading:ct,isLoading:ct,data:g,dataUpdatedAt:c.dataUpdatedAt,error:ot,errorUpdatedAt:ut,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>I.dataUpdateCount||c.errorUpdateCount>I.errorUpdateCount,isFetching:z,isRefetching:z&&!N,isLoadingError:W&&!ht,isPaused:c.fetchStatus==="paused",isPlaceholderData:Q,isRefetchError:W&&ht,isStale:it(t,s),refetch:this.refetch,promise:a(this,C)};if(this.options.experimental_prefetchInRender){const b=_=>{v.status==="error"?_.reject(v.error):v.data!==void 0&&_.resolve(v.data)},U=()=>{const _=d(this,C,v.promise=ft());b(_)},D=a(this,C);switch(D.status){case"pending":t.queryHash===n.queryHash&&b(D);break;case"fulfilled":(v.status==="error"||v.data!==D.value)&&U();break;case"rejected":(v.status!=="error"||v.error!==D.reason)&&U();break}}return v}updateResult(t){const s=a(this,p),n=this.createResult(a(this,r),this.options);if(d(this,A,a(this,r).state),d(this,L,this.options),a(this,A).data!==void 0&&d(this,K,a(this,r)),J(n,s))return;d(this,p,n);const o={},h=()=>{if(!s)return!0;const{notifyOnChangeProps:l}=this.options,m=typeof l=="function"?l():l;if(m==="all"||!m&&!a(this,B).size)return!0;const S=new Set(m??a(this,B));return this.options.throwOnError&&S.add("error"),Object.keys(a(this,p)).some(I=>{const u=I;return a(this,p)[u]!==s[u]&&S.has(u)})};(t==null?void 0:t.listeners)!==!1&&h()&&(o.listeners=!0),f(this,i,Rt).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,i,$).call(this)}},O=new WeakMap,r=new WeakMap,k=new WeakMap,p=new WeakMap,A=new WeakMap,L=new WeakMap,C=new WeakMap,w=new WeakMap,P=new WeakMap,q=new WeakMap,K=new WeakMap,M=new WeakMap,T=new WeakMap,E=new WeakMap,B=new WeakMap,i=new WeakSet,j=function(t){f(this,i,st).call(this);let s=a(this,r).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(jt)),s},X=function(){f(this,i,tt).call(this);const t=V(this.options.staleTime,a(this,r));if(yt||a(this,p).isStale||!mt(t))return;const n=kt(a(this,p).dataUpdatedAt,t)+1;d(this,M,setTimeout(()=>{a(this,p).isStale||this.updateResult()},n))},Y=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(a(this,r)):this.options.refetchInterval)??!1},Z=function(t){f(this,i,et).call(this),d(this,E,t),!(yt||R(this.options.enabled,a(this,r))===!1||!mt(a(this,E))||a(this,E)===0)&&d(this,T,setInterval(()=>{(this.options.refetchIntervalInBackground||Pt.isFocused())&&f(this,i,j).call(this)},a(this,E)))},$=function(){f(this,i,X).call(this),f(this,i,Z).call(this,f(this,i,Y).call(this))},tt=function(){a(this,M)&&(clearTimeout(a(this,M)),d(this,M,void 0))},et=function(){a(this,T)&&(clearInterval(a(this,T)),d(this,T,void 0))},st=function(){const t=a(this,O).getQueryCache().build(a(this,O),this.options);if(t===a(this,r))return;const s=a(this,r);d(this,r,t),d(this,k,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Rt=function(t){wt.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(a(this,p))}),a(this,O).getQueryCache().notify({query:a(this,r),type:"observerResultsUpdated"})})},vt);function Wt(e,t){return R(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pt(e,t){return Wt(e,t)||e.state.data!==void 0&&at(e,t,t.refetchOnMount)}function at(e,t,s){if(R(t.enabled,e)!==!1){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&it(e,t)}return!1}function Ot(e,t,s,n){return(e!==t||R(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&it(e,s)}function it(e,t){return R(t.enabled,e)!==!1&&e.isStaleByTime(V(t.staleTime,e))}function Ht(e,t){return!J(e.getCurrentResult(),t)}function Gt(){return Vt()}function Jt(e){return zt()}function Xt(e){return"subscribe"in e&&typeof e.subscribe=="function"}function Yt(){}function Zt(e,t,s){const n=Jt(),o=Gt(),h=Xt(e)?e:qt(e),l=G([h,o],([u,c])=>{const Q=n.defaultQueryOptions(u);return Q._optimisticResults=c?"isRestoring":"optimistic",Q}),m=new t(n,nt(l));l.subscribe(u=>{m.setOptions(u,{listeners:!1})});const S=G(o,(u,c)=>{const Q=u?Yt:m.subscribe(wt.batchCalls(c));return m.updateResult(),Q}),{subscribe:I}=G([S,l],([u,c])=>(u=m.getOptimisticResult(c),c.notifyOnChangeProps?u:m.trackResult(u)));return{subscribe:I}}function $t(e,t){return Zt(e,Nt)}function pe(e){return e}const x=(e,t,s)=>{const n={_id:e,baseUrl:(t==null?void 0:t.baseUrl)||((t==null?void 0:t.client)??It).getConfig().baseUrl};return s&&(n._infinite=s),t!=null&&t.body&&(n.body=t.body),t!=null&&t.headers&&(n.headers=t.headers),t!=null&&t.path&&(n.path=t.path),t!=null&&t.query&&(n.query=t.query),[n]},te=(e,t)=>{const s={...e[0]};return t.body&&(s.body={...e[0].body,...t.body}),t.headers&&(s.headers={...e[0].headers,...t.headers}),t.path&&(s.path={...e[0].path,...t.path}),t.query&&(s.query={...e[0].query,...t.query}),s},ee=e=>x("readSample",e),Oe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await At({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ee(e)}),ge=e=>({mutationFn:async s=>{const{data:n}=await Et({...e,...s,throwOnError:!0});return n}}),se=e=>x("readAnnotationLabels",e),ve=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Mt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:se(e)}),we=e=>({mutationFn:async s=>{const{data:n}=await Ft({...e,...s,throwOnError:!0});return n}}),ae=e=>x("readAnnotations",e,!0),Re=e=>({queryFn:async({pageParam:t,queryKey:s,signal:n})=>{const h=te(s,typeof t=="object"?t:{query:{cursor:t}}),{data:l}=await Ut({...e,...h,signal:n,throwOnError:!0});return l},queryKey:ae(e)}),Ie=e=>({mutationFn:async s=>{const{data:n}=await Qt({...e,...s,throwOnError:!0});return n}}),Se=e=>({mutationFn:async s=>{const{data:n}=await xt({...e,...s,throwOnError:!0});return n}}),ne=e=>x("countAnnotationsByDataset",e),Ce=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Tt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ne(e)}),Ee=e=>({mutationFn:async s=>{const{data:n}=await St({...e,...s,throwOnError:!0});return n}}),re=e=>x("getAnnotation",e),Qe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Dt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:re(e)}),ie=e=>x("getEmbeddings2dTsne",e),Fe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Lt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ie(e)}),oe=e=>x("getMetadataInfo",e),ue=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Ct({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:oe(e)}),gt=Kt(!1),ce=async e=>{if(nt(gt))return;const t=ue({path:{dataset_id:e}});$t(t).subscribe(n=>{if(n.data){const o=n.data,{updateMetadataBounds:h,updateMetadataValues:l,updateMetadataInfo:m}=rt(),S={},I={};o.forEach(u=>{(u.type==="integer"||u.type==="float")&&u.min!=null&&u.max!=null&&(S[u.name]={min:u.min,max:u.max},I[u.name]={min:u.min,max:u.max})}),h(S),l(I),m(o),gt.set(!0)}})},he=e=>{const t=[],{metadataBounds:s}=rt();for(const[n,o]of Object.entries(e)){const l=nt(s)[n];l&&(o.min>l.min&&t.push({key:n,value:o.min,op:">="}),o.max<l.max&&t.push({key:n,value:o.max,op:"<="}))}return t},Ae=e=>{e&&ce(e);const{metadataBounds:t,metadataValues:s,metadataInfo:n,updateMetadataValues:o,updateMetadataBounds:h,updateMetadataInfo:l}=rt();return{metadataBounds:t,metadataValues:s,metadataInfo:n,updateMetadataValues:o,updateMetadataBounds:h,updateMetadataInfo:l,createMetadataFilters:he}};export{Nt as Q,Ae as a,Ie as b,he as c,we as d,Ee as e,Oe as f,$t as g,Ce as h,pe as i,Fe as j,Zt as k,Xt as l,Se as m,Yt as n,Re as o,ve as p,Qe as q,ge as r,Jt as u};
@@ -0,0 +1,3 @@
1
+ var tt=e=>{throw TypeError(e)};var qt=(e,t,n)=>t.has(e)||tt("Cannot "+n);var k=(e,t,n)=>(qt(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{bf as mt,u as Mt,d as he,h as _t,w as De,ak as C,g as N,Y as O,aM as Gt}from"./Frwd2CjB.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):Mt(()=>{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 Yt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Wt(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"&&W.delete(Be(e)),Qt(e,t));const W=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&&W.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(W.size>0){const r=Be(e,n),a=W.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);W.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_7kclq1)==null?void 0:ut.base)??"";var dt;const ln=((dt=globalThis.__sveltekit_7kclq1)==null?void 0:dt.assets)??P,fn="1760445896529",yt="sveltekit:snapshot",vt="sveltekit:scroll",bt="sveltekit:states",un="sveltekit:pageurl",M="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 qe(){return{x:pageXOffset,y:pageYOffset}}function q(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=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),s===null&&(s=q(o,"reload")),i===null&&(i=q(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 Me(e){B[e]=qe()}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,Y=!1,Lt=!1,Ye=!1,We,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[M],T=(o=history.state)==null?void 0:o[J],E||(E=T=Date.now(),history.replaceState({...history.state,[M]:E,[J]:T},""));const r=B[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Mn($e,n):await Bn(A.hash?Hn(new URL(location.href)):location.href,{replaceState:!0}),qn()}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(),We.$set(n.props),It(n.props.page)}}function Tt(){ye.length=0,Ye=!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(){Me(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&&(Ye=!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),We=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=Yt(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(Ye)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 Wt(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(),Me(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={[M]: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)})}We.$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?qe():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 qn(){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(Y=!0,Me(E),e(a),!c.replace_state)return;Y=!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[M]){const a=n.state[M];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]=qe(),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(!Y){const a=new URL(location.href);e(a),A.hash&&location.reload()}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[M]:++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 Mn(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
+ `: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};
@@ -1 +1 @@
1
- import{s as t,p as r}from"./2O287xak.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"./DQ8aZ1o-.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,20 @@
1
+ import"./CWj6FrbW.js";import{p as n,f as i,n as m,a as c}from"./Frwd2CjB.js";import{c as d,a as f}from"./CiaNZCBa.js";import{s as l}from"./DzX_yyqb.js";import{s as u,r as h}from"./Dafy4oEQ.js";import{I as $}from"./Cqo0Vpvt.js";function y(r,o){n(o,!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 t=h(o,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M5 12h14"}]];$(r,u({name:"minus"},()=>t,{get iconNode(){return a},children:(e,_)=>{var s=d(),p=i(s);l(p,()=>o.children??m),f(e,s)},$$slots:{default:!0}})),c()}export{y as default};
@@ -0,0 +1,2 @@
1
+ var _e=Object.defineProperty;var Ct=e=>{throw TypeError(e)};var pe=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var N=(e,t,s)=>pe(e,typeof t!="symbol"?t+"":t,s),ht=(e,t,s)=>t.has(e)||Ct("Cannot "+s);var S=(e,t,s)=>(ht(e,t,"read from private field"),s?s.call(e):t.get(e)),U=(e,t,s)=>t.has(e)?Ct("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Q=(e,t,s,r)=>(ht(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),V=(e,t,s)=>(ht(e,t,"access private method"),s);import{aR as be,aS as ye,aT as me,F as ot,G as C,H as Bt,O as St,P as B,Q as xt,R as Jt,V as Y,U as Qt,T as Xt,M as gt,Z as we,g as x,ac as Se,J as Ae,K as Te,L as Ot,N as z,a3 as Pe,aJ as Ee,ap as Lt,W as Ie,an as Mt,aH as Zt,C as zt,aU as ut,S as Wt,aV as ft,aW as Ne,aX as vt,al as tt,az as Ce,aY as Oe,aG as Le,aZ as Me,E as Re,x as te,a_ as ee,a$ as ke,a4 as se,b0 as De,b1 as Fe,v as Ge,b2 as He,b3 as Ue,b4 as Ve,b5 as qe,b6 as $e,b7 as je,b8 as Ke,b9 as Ye,aP as Be,aO as xe,o as re,m as R,w as lt,ak as Rt,aa as kt,Y as Dt,h as Ft,b as Je}from"./Frwd2CjB.js";import{c as Qe,d as Xe}from"./Dug7Bq1S.js";import{i as Ze,n as ze,a as We}from"./H60ATh8g.js";import{c as ie}from"./DzX_yyqb.js";import{o as ts}from"./D5w4xp5l.js";import{R as es,j as ss,e as rs,k as is,l as as,m as ns}from"./H4l0JFh9.js";function Gs(e,t,s){C&&Bt();var r=e,i=Qt,n,a,u=null,h=be()?ye:me;function v(){n&&Xt(n),u!==null&&(u.lastChild.remove(),r.before(u),u=null),n=a}ot(()=>{if(h(i,i=t())){var p=r,y=Jt();y&&(u=document.createDocumentFragment(),u.append(p=St())),a=B(()=>s(p)),y?xt.add_callback(v):v()}}),C&&(r=Y)}function Hs(e,t){return t}function os(e,t,s){for(var r=e.items,i=[],n=t.length,a=0;a<n;a++)Oe(t[a].e,i,!0);var u=n>0&&i.length===0&&s!==null;if(u){var h=s.parentNode;Le(h),h.append(s),r.clear(),k(e,t[0].prev,t[n-1].next)}Me(i,()=>{for(var v=0;v<n;v++){var p=t[v];u||(r.delete(p.k),k(e,p.prev,p.next)),tt(p.e,!u)}})}function Us(e,t,s,r,i,n=null){var a=e,u={flags:t,items:new Map,first:null},h=(t&ee)!==0;if(h){var v=e;a=C?gt(we(v)):v.appendChild(St())}C&&Bt();var p=null,y=!1,g=new Map,A=Se(()=>{var T=s();return zt(T)?T:T==null?[]:Zt(T)}),c,_;function d(){us(_,c,u,g,a,i,t,r,s),n!==null&&(c.length===0?p?Wt(p):p=B(()=>n(a)):p!==null&&Xt(p,()=>{p=null}))}ot(()=>{_??(_=Re),c=x(A);var T=c.length;if(y&&T===0)return;y=T===0;let P=!1;if(C){var m=Ae(a)===Te;m!==(T===0)&&(a=Ot(),gt(a),z(!1),P=!0)}if(C){for(var b=null,w,o=0;o<T;o++){if(Y.nodeType===Pe&&Y.data===Ee){a=Y,P=!0,z(!1);break}var f=c[o],l=r(f,o);w=yt(Y,u,b,null,f,l,o,i,t,s),u.items.set(l,w),b=w}T>0&&gt(Ot())}if(C)T===0&&n&&(p=B(()=>n(a)));else if(Jt()){var E=new Set,I=xt;for(o=0;o<T;o+=1){f=c[o],l=r(f,o);var H=u.items.get(l)??g.get(l);H?t&(ft|ut)&&ae(H,f,o,t):(w=yt(null,u,null,null,f,l,o,i,t,s,!0),g.set(l,w)),E.add(l)}for(const[L,it]of u.items)E.has(L)||I.skipped_effects.add(it.e);I.add_callback(d)}else d();P&&z(!0),x(A)}),C&&(a=Y)}function us(e,t,s,r,i,n,a,u,h){var Tt,Pt,Et,It;var v=(a&ke)!==0,p=(a&(ft|ut))!==0,y=t.length,g=s.items,A=s.first,c=A,_,d=null,T,P=[],m=[],b,w,o,f;if(v)for(f=0;f<y;f+=1)b=t[f],w=u(b,f),o=g.get(w),o!==void 0&&((Tt=o.a)==null||Tt.measure(),(T??(T=new Set)).add(o));for(f=0;f<y;f+=1){if(b=t[f],w=u(b,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),_t(l,E,i),d=l}else{var I=c?c.e.nodes_start:i;d=yt(I,s,d,d===null?s.first:d.next,b,w,f,n,a,h)}g.set(w,d),P=[],m=[],c=d.next;continue}if(p&&ae(o,b,f,a),o.e.f&vt&&(Wt(o.e),v&&((Pt=o.a)==null||Pt.unfix(),(T??(T=new Set)).delete(o))),o!==c){if(_!==void 0&&_.has(o)){if(P.length<m.length){var H=m[0],L;d=H.prev;var it=P[0],ct=P[P.length-1];for(L=0;L<P.length;L+=1)_t(P[L],H,i);for(L=0;L<m.length;L+=1)_.delete(m[L]);k(s,it.prev,ct.next),k(s,d,it),k(s,ct,H),c=H,d=ct,f-=1,P=[],m=[]}else _.delete(o),_t(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=[],m=[];c!==null&&c.k!==w;)c.e.f&vt||(_??(_=new Set)).add(c),m.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 J=_===void 0?[]:Zt(_);c!==null;)c.e.f&vt||J.push(c),c=c.next;var dt=J.length;if(dt>0){var ge=a&ee&&y===0?i:null;if(v){for(f=0;f<dt;f+=1)(Et=J[f].a)==null||Et.measure();for(f=0;f<dt;f+=1)(It=J[f].a)==null||It.fix()}os(s,J,ge)}}v&&te(()=>{var Nt;if(T!==void 0)for(o of T)(Nt=o.a)==null||Nt.apply()}),e.first=s.first&&s.first.e,e.last=d&&d.e;for(var ve of r.values())tt(ve.e);r.clear()}function ae(e,t,s,r){r&ft&&Lt(e.v,t),r&ut?Lt(e.i,s):e.i=s}function yt(e,t,s,r,i,n,a,u,h,v,p){var y=(h&ft)!==0,g=(h&Ne)===0,A=y?g?Ie(i,!1,!1):Mt(i):i,c=h&ut?Mt(a):a,_={i:c,v:A,k:n,a:null,e:null,prev:s,next:r};try{if(e===null){var d=document.createDocumentFragment();d.append(e=St())}return _.e=B(()=>u(e,A,c,v),C),_.e.prev=s&&s.e,_.e.next=r&&r.e,s===null?p||(t.first=_):(s.next=_,s.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function _t(e,t,s){for(var r=e.next?e.next.e.nodes_start:s,i=t?t.e.nodes_start:s,n=e.e.nodes_start;n!==null&&n!==r;){var a=Ce(n);i.before(n),n=a}}function k(e,t,s){t===null?e.first=s:(t.next=s,t.e.next=s&&s.e),s!==null&&(s.prev=t,s.e.prev=t&&t.e)}function fs(e,t){var s=void 0,r;ot(()=>{s!==(s=t())&&(r&&(tt(r),r=null),s&&(r=B(()=>{se(()=>s(e))})))})}function ne(e){var t,s,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=ne(e[t]))&&(r&&(r+=" "),r+=s)}else for(s in e)e[s]&&(r&&(r+=" "),r+=s);return r}function ls(){for(var e,t,s=0,r="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=ne(e))&&(r&&(r+=" "),r+=t);return r}function cs(e){return typeof e=="object"?ls(e):e??""}const Gt=[...`
2
+ \r\f \v\uFEFF`];function ds(e,t,s){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),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||Gt.includes(r[a-1]))&&(u===r.length||Gt.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function Ht(e,t=!1){var s=t?" !important;":";",r="";for(var i in e){var n=e[i];n!=null&&n!==""&&(r+=" "+i+": "+n+s)}return r}function pt(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function hs(e,t){if(t){var s="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,u=!1,h=[];r&&h.push(...Object.keys(r).map(pt)),i&&h.push(...Object.keys(i).map(pt));var v=0,p=-1;const _=e.length;for(var y=0;y<_;y++){var g=e[y];if(u?g==="/"&&e[y-1]==="*"&&(u=!1):n?n===g&&(n=!1):g==="/"&&e[y+1]==="*"?u=!0:g==='"'||g==="'"?n=g:g==="("?a++:g===")"&&a--,!u&&n===!1&&a===0){if(g===":"&&p===-1)p=y;else if(g===";"||y===_-1){if(p!==-1){var A=pt(e.substring(v,p).trim());if(!h.includes(A)){g!==";"&&y++;var c=e.substring(v,y).trim();s+=" "+c+";"}}v=y+1,p=-1}}}}return r&&(s+=Ht(r)),i&&(s+=Ht(i,!0)),s=s.trim(),s===""?null:s}return e==null?null:String(e)}function gs(e,t,s,r,i,n){var a=e.__className;if(C||a!==s||a===void 0){var u=ds(s,r,n);(!C||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):t?e.className=u:e.setAttribute("class",u)),e.__className=s}else if(n&&i!==n)for(var h in n){var v=!!n[h];(i==null||v!==!!i[h])&&e.classList.toggle(h,v)}return n}function bt(e,t={},s,r){for(var i in s){var n=s[i];t[i]!==n&&(s[i]==null?e.style.removeProperty(i):e.style.setProperty(i,n,r))}}function vs(e,t,s,r){var i=e.__style;if(C||i!==t){var n=hs(t,r);(!C||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}else r&&(Array.isArray(r)?(bt(e,s==null?void 0:s[0],r[0]),bt(e,s==null?void 0:s[1],r[1],"important")):bt(e,s,r));return r}function mt(e,t,s=!1){if(e.multiple){if(t==null)return;if(!zt(t))return De();for(var r of e.options)r.selected=t.includes(Ut(r));return}for(r of e.options){var i=Ut(r);if(Fe(i,t)){r.selected=!0;return}}(!s||t!==void 0)&&(e.selectedIndex=-1)}function _s(e){var t=new MutationObserver(()=>{mt(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ge(()=>{t.disconnect()})}function Ut(e){return"__value"in e?e.__value:e.value}const X=Symbol("class"),Z=Symbol("style"),oe=Symbol("is custom element"),ue=Symbol("is html");function ps(e){if(C){var t=!1,s=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;at(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;at(e,"checked",null),e.checked=i}}};e.__on_r=s,te(s),Ke()}}function Vs(e,t){var s=At(e);s.value===(s.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function bs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function at(e,t,s,r){var i=At(e);C&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=s)&&(t==="loading"&&(e[Ye]=s),s==null?e.removeAttribute(t):typeof s!="string"&&fe(e).includes(t)?e[t]=s:e.setAttribute(t,s))}function ys(e,t,s,r,i=!1,n=!1){if(C&&i&&e.tagName==="INPUT"){var a=e,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in s||ps(a)}var h=At(e),v=h[oe],p=!h[ue];let y=C&&v;y&&z(!1);var g=t||{},A=e.tagName==="OPTION";for(var c in t)c in s||(s[c]=null);s.class?s.class=cs(s.class):(r||s[X])&&(s.class=null),s[Z]&&(s.style??(s.style=null));var _=fe(e);for(const o in s){let f=s[o];if(A&&o==="value"&&f==null){e.value=e.__value="",g[o]=f;continue}if(o==="class"){var d=e.namespaceURI==="http://www.w3.org/1999/xhtml";gs(e,d,f,r,t==null?void 0:t[X],s[X]),g[o]=f,g[X]=s[X];continue}if(o==="style"){vs(e,f,t==null?void 0:t[Z],s[Z]),g[o]=f,g[Z]=s[Z];continue}var T=g[o];if(!(f===T&&!(f===void 0&&e.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 m=We(I);if(Ze(I)&&(I=I.slice(0,-7),l.capture=!0),!m&&T){if(f!=null)continue;e.removeEventListener(I,g[E],l),g[E]=null}if(f!=null)if(m)e[`__${I}`]=f,Xe([I]);else{let H=function(L){g[o].call(this,L)};g[E]=Qe(I,e,H,l)}else m&&(e[`__${I}`]=void 0)}else if(o==="style")at(e,o,f);else if(o==="autofocus")je(e,!!f);else if(!v&&(o==="__value"||o==="value"&&f!=null))e.value=e.__value=f;else if(o==="selected"&&A)bs(e,f);else{var b=o;p||(b=ze(b));var w=b==="defaultValue"||b==="defaultChecked";if(f==null&&!v&&!w)if(h[o]=null,b==="value"||b==="checked"){let l=e;const E=t===void 0;if(b==="value"){let I=l.defaultValue;l.removeAttribute(b),l.defaultValue=I,l.value=l.__value=E?I:null}else{let I=l.defaultChecked;l.removeAttribute(b),l.defaultChecked=I,l.checked=E?I:!1}}else e.removeAttribute(o);else w||_.includes(b)&&(v||typeof f!="string")?(e[b]=f,b in h&&(h[b]=Qt)):typeof f!="function"&&at(e,b,f)}}}return y&&z(!0),g}function qs(e,t,s=[],r=[],i,n=!1,a=!1){qe(s,r,u=>{var h=void 0,v={},p=e.nodeName==="SELECT",y=!1;if(ot(()=>{var A=t(...u.map(x)),c=ys(e,h,A,i,n,a);y&&p&&"value"in A&&mt(e,A.value);for(let d of Object.getOwnPropertySymbols(v))A[d]||tt(v[d]);for(let d of Object.getOwnPropertySymbols(A)){var _=A[d];d.description===$e&&(!h||_!==h[d])&&(v[d]&&tt(v[d]),v[d]=B(()=>fs(e,()=>_))),c[d]=_}h=c}),p){var g=e;se(()=>{mt(g,h.value,!0),_s(g)})}y=!0})}function At(e){return e.__attributes??(e.__attributes={[oe]:e.nodeName.includes("-"),[ue]:e.namespaceURI===He})}var Vt=new Map;function fe(e){var t=e.getAttribute("is")||e.nodeName,s=Vt.get(t);if(s)return s;Vt.set(t,s=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Ve(i);for(var a in r)r[a].set&&s.push(a);i=Ue(i)}return s}const ms="data-no-translate",$s="paraglide:lang",js="paraglide_lang",le={},ws=()=>xe(le),Ks=e=>{Be(le,e)};function Ys(){const e=ws();function t(r,i){return typeof r!="string"||!e?r:e.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]=t(u,typeof h=="string"?h:void 0)}return r}return[t,s]}const ce={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,created_at:new Date().toISOString(),updated_at:new Date().toISOString()},G=lt(ce),$=lt(!1),K=lt(null),W=lt(!1),qt=re(G,e=>e.grid_view_sample_rendering||"contain"),$t=re(G,e=>e.show_annotation_text_labels??!0),jt=async()=>{if(G.set(ce),!(R(W)||R($))){$.set(!0),K.set(null);try{const{data:e}=await ts();e&&(G.set(e),W.set(!0))}catch(e){K.set(String(e))}finally{$.set(!1)}}},de=async e=>{$.set(!0),K.set(null);try{const t=R(G),s={setting_id:t.setting_id||"",grid_view_sample_rendering:e.grid_view_sample_rendering||t.grid_view_sample_rendering||"contain",key_hide_annotations:e.key_hide_annotations||t.key_hide_annotations||"v",key_go_back:e.key_go_back||t.key_go_back||"Escape",show_annotation_text_labels:e.show_annotation_text_labels!==void 0?e.show_annotation_text_labels:t.show_annotation_text_labels??!0,created_at:t.created_at||new Date().toISOString(),updated_at:new Date().toISOString()},r=await ie.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?(G.set(r.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(t){const s=String(t);return console.error("Error saving settings:",s),K.set(s),{success:!1,error:s}}finally{$.set(!1)}},Ss=async e=>de({grid_view_sample_rendering:e}),As=async e=>{const t=!!e,r={...R(G),show_annotation_text_labels:t};try{const i=await ie.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?(G.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 Bs(){return!R(W)&&!R($)&&jt(),{settingsStore:G,isLoadingStore:$,errorStore:K,isLoadedStore:W,gridViewSampleRenderingStore:qt,showAnnotationTextLabelsStore:$t,initSettings:jt,saveSettings:de,updateGridViewSampleRendering:Ss,updateShowAnnotationTextLabels:As,get settings(){return R(G)},get isLoading(){return R($)},get error(){return R(K)},get isLoaded(){return R(W)},get getGridViewSampleRendering(){return R(qt)},get getShowAnnotationTextLabels(){return R($t)}}}var D,O,j,F,q,Yt,xs=(Yt=class extends es{constructor(t){super();U(this,F);U(this,D);U(this,O);U(this,j);this.mutationId=t.mutationId,Q(this,O,t.mutationCache),Q(this,D,[]),this.state=t.state||Ts(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,D).includes(t)||(S(this,D).push(t),this.clearGcTimeout(),S(this,O).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,D,S(this,D).filter(s=>s!==t)),this.scheduleGc(),S(this,O).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,D).length||(this.state.status==="pending"?this.scheduleGc():S(this,O).remove(this))}continue(){var t;return((t=S(this,j))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,a,u,h,v,p,y,g,A,c,_,d,T,P,m,b,w,o,f;Q(this,j,ss({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,E)=>{V(this,F,q).call(this,{type:"failed",failureCount:l,error:E})},onPause:()=>{V(this,F,q).call(this,{type:"pause"})},onContinue:()=>{V(this,F,q).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){V(this,F,q).call(this,{type:"pending",variables:t,isPaused:r}),await((n=(i=S(this,O).config).onMutate)==null?void 0:n.call(i,t,this));const E=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));E!==this.state.context&&V(this,F,q).call(this,{type:"pending",context:E,variables:t,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,t,this.state.context,this)),await((y=(p=this.options).onSuccess)==null?void 0:y.call(p,l,t,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,t,this.state.context)),V(this,F,q).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,t,this.state.context,this)),await((m=(P=this.options).onError)==null?void 0:m.call(P,l,t,this.state.context)),await((w=(b=S(this,O).config).onSettled)==null?void 0:w.call(b,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,t,this.state.context)),l}finally{V(this,F,q).call(this,{type:"error",error:l})}}finally{S(this,O).runNext(this)}}},D=new WeakMap,O=new WeakMap,j=new WeakMap,F=new WeakSet,q=function(t){const s=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),rs.batch(()=>{S(this,D).forEach(r=>{r.onMutationUpdate(t)}),S(this,O).notify({mutation:this,type:"updated",action:t})})},Yt);function Ts(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function Js(e){return{onFetch:(t,s)=>{var p,y,g,A,c;const r=t.options,i=(g=(y=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:y.fetchMore)==null?void 0:g.direction,n=((A=t.state.data)==null?void 0:A.pages)||[],a=((c=t.state.data)==null?void 0:c.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const v=async()=>{let _=!1;const d=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?_=!0:t.signal.addEventListener("abort",()=>{_=!0}),t.signal)})},T=is(t.options,t.fetchOptions),P=async(m,b,w)=>{if(_)return Promise.reject();if(b==null&&m.pages.length)return Promise.resolve(m);const o={client:t.client,queryKey:t.queryKey,pageParam:b,direction:w?"backward":"forward",meta:t.options.meta};d(o);const f=await T(o),{maxPages:l}=t.options,E=w?as:ns;return{pages:E(m.pages,f,l),pageParams:E(m.pageParams,b,l)}};if(i&&n.length){const m=i==="backward",b=m?he:wt,w={pages:n,pageParams:a},o=b(r,w);u=await P(w,o,m)}else{const m=e??n.length;do{const b=h===0?a[0]??r.initialPageParam:wt(r,u);if(h>0&&b==null)break;u=await P(u,b),h++}while(h<m)}return u};t.options.persister?t.fetchFn=()=>{var _,d;return(d=(_=t.options).persister)==null?void 0:d.call(_,v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=v}}}function wt(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function he(e,{pages:t,pageParams:s}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,s[0],s):void 0}function Qs(e,t){return t?wt(e,t)!=null:!1}function Xs(e,t){return!t||!e.getPreviousPageParam?!1:he(e,t)!=null}function Zs(...e){return e.filter(Boolean).join(" ")}const Ps=typeof document<"u";let Kt=0;var et,st,rt;class Es{constructor(){U(this,et,Rt(kt([])));U(this,st,Rt(kt([])));U(this,rt,t=>{const s=this.toasts.findIndex(r=>r.id===t);return s===-1?null:s});N(this,"addToast",t=>{Ps&&this.toasts.unshift(t)});N(this,"updateToast",({id:t,data:s,type:r,message:i})=>{const n=this.toasts.findIndex(u=>u.id===t),a=this.toasts[n];this.toasts[n]={...a,...s,id:t,title:i,type:r,updated:!0}});N(this,"create",t=>{var u;const{message:s,...r}=t,i=typeof(t==null?void 0:t.id)=="number"||t.id&&((u=t.id)==null?void 0:u.length)>0?t.id:Kt++,n=t.dismissable===void 0?!0:t.dismissable,a=t.type===void 0?"default":t.type;return Ft(()=>{this.toasts.find(v=>v.id===i)?this.updateToast({id:i,data:t,type:a,message:s,dismissable:n}):this.addToast({...r,id:i,title:s,dismissable:n,type:a})}),i});N(this,"dismiss",t=>(Ft(()=>{if(t===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const s=this.toasts.findIndex(r=>r.id===t);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),t));N(this,"remove",t=>{if(t===void 0){this.toasts=[];return}const s=S(this,rt).call(this,t);if(s!==null)return this.toasts.splice(s,1),t});N(this,"message",(t,s)=>this.create({...s,type:"default",message:t}));N(this,"error",(t,s)=>this.create({...s,type:"error",message:t}));N(this,"success",(t,s)=>this.create({...s,type:"success",message:t}));N(this,"info",(t,s)=>this.create({...s,type:"info",message:t}));N(this,"warning",(t,s)=>this.create({...s,type:"warning",message:t}));N(this,"loading",(t,s)=>this.create({...s,type:"loading",message:t}));N(this,"promise",(t,s)=>{if(!s)return;let r;s.loading!==void 0&&(r=this.create({...s,promise:t,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const i=t instanceof Promise?t:t();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=Is(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",(t,s)=>{const r=(s==null?void 0:s.id)||Kt++;return this.create({component:t,id:r,...s}),r});N(this,"removeHeight",t=>{this.heights=this.heights.filter(s=>s.toastId!==t)});N(this,"setHeight",t=>{const s=S(this,rt).call(this,t.toastId);if(s===null){this.heights.push(t);return}this.heights[s]=t});N(this,"reset",()=>{this.toasts=[],this.heights=[]})}get toasts(){return x(S(this,et))}set toasts(t){Dt(S(this,et),t,!0)}get heights(){return x(S(this,st))}set heights(t){Dt(S(this,st),t,!0)}}et=new WeakMap,st=new WeakMap,rt=new WeakMap;function Is(e){return e&&typeof e=="object"&&"status"in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}const M=new Es;function Ns(e,t){return M.create({message:e,...t})}var nt;class zs{constructor(){U(this,nt,Je(()=>M.toasts.filter(t=>!t.dismiss)))}get toasts(){return x(S(this,nt))}}nt=new WeakMap;const Cs=Ns,Ws=Object.assign(Cs,{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(e=>!e.dismiss)});export{js as L,xs as M,zs as S,qs as a,gs as b,cs as c,vs as d,Us as e,Ks as f,Ys as g,$s as h,Hs as i,Js as j,Gs as k,M as l,Zs as m,Z as n,ls as o,Xs as p,Qs as q,Ts as r,at as s,Ws as t,Bs as u,ps as v,Vs as w};
@@ -0,0 +1 @@
1
+ import{F as L,G as R,H as N,I as Y,O as j,P as B,Q as m,R as F,V as C,T as K,a4 as M,a5 as U,h as I,x as q,a6 as b,a7 as S,a8 as G,a9 as $,g,aa as z,Y as H,E as Q,ab as V,l as Z,ac as J,ad as W,ae as X,af as k,ag as ee,ah as re,ai as y,aj as v}from"./Frwd2CjB.js";import{c as ne}from"./-DXuGN29.js";import{l as te}from"./DIeogL5L.js";function le(e,r,t){R&&N();var n=e,i,a,u=null,f=null;function c(){a&&(K(a),a=null),u&&(u.lastChild.remove(),n.before(u),u=null),a=f,f=null}L(()=>{if(i!==(i=r())){var d=F();if(i){var l=n;d&&(u=document.createDocumentFragment(),u.append(l=j()),a&&m.skipped_effects.add(a)),f=B(()=>t(l,i))}d?m.add_callback(c):c()}},Y),R&&(n=C)}function x(e,r){return e===r||(e==null?void 0:e[b])===r}function ce(e={},r,t,n){return M(()=>{var i,a;return U(()=>{i=a,a=[],I(()=>{e!==t(...a)&&(r(e,...a),i&&x(t(...i),e)&&r(null,...i))})}),()=>{q(()=>{a&&x(t(...a),e)&&r(null,...a)})}}),e}const ie={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function oe(e,r,t){return new Proxy({props:e,exclude:r},ie)}const ae={get(e,r){let t=e.props.length;for(;t--;){let n=e.props[t];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,t){let n=e.props.length;for(;n--;){let i=e.props[n];v(i)&&(i=i());const a=S(i,r);if(a&&a.set)return a.set(t),!0}return!1},getOwnPropertyDescriptor(e,r){let t=e.props.length;for(;t--;){let n=e.props[t];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=S(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===b||r===y)return!1;for(let t of e.props)if(v(t)&&(t=t()),t!=null&&r in t)return!0;return!1},ownKeys(e){const r=[];for(let t of e.props)if(v(t)&&(t=t()),!!t){for(const n in t)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(t))r.includes(n)||r.push(n)}return r}};function de(...e){return new Proxy({props:e},ae)}function pe(e,r,t,n){var w;var i=!te||(t&X)!==0,a=(t&W)!==0,u=(t&ee)!==0,f=n,c=!0,d=()=>(c&&(c=!1,f=u?I(n):n),f),l;if(a){var T=b in e||y in e;l=((w=S(e,r))==null?void 0:w.set)??(T&&r in e?s=>e[r]=s:void 0)}var p,O=!1;a?[p,O]=ne(()=>e[r]):p=e[r],p===void 0&&n!==void 0&&(p=d(),l&&(i&&G(),l(p)));var o;if(i?o=()=>{var s=e[r];return s===void 0?d():(c=!0,s)}:o=()=>{var s=e[r];return s!==void 0&&(f=void 0),s===void 0?f:s},i&&!(t&$))return o;if(l){var A=e.$$legacy;return function(s,h){return arguments.length>0?((!i||!h||A||O)&&l(h?o():s),s):o()}}var P=!1,_=(t&k?Z:J)(()=>(P=!1,o()));a&&g(_);var D=Q;return function(s,h){if(arguments.length>0){const E=h?g(_):i&&a?z(s):s;return H(_,E),P=!0,f!==void 0&&(f=E),s}return re&&P||D.f&V?_.v:g(_)}}export{ce as b,le as c,pe as p,oe as r,de as s};
@@ -1 +1 @@
1
- import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{b as w}from"./2O287xak.js";import{p as X}from"./Ccq4ZD0B.js";import{l as H}from"./DcGCxgpH.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"}));function G(t,n){if(t==="")return"";const e=new URL(t,n).pathname;return e.endsWith("/")?e.slice(0,-1):e}function S(t,n){const e=V(t),o=J(e,n),[s,a]=Z(o);return[s,a]}const B=(t,n,e)=>[n,t,e??""].filter(o=>o!=="/").join("")||"/";function J(t,n){const e=t.replace(n,"");return e.startsWith("/")?e:`/${e}`}function Z(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 V(t){try{return decodeURI(t)}catch{return t}}const tt=t=>({url:n})=>{try{const[e,o]=S(n.pathname,w),s=t.getLanguageFromLocalisedPath(e);if(!s)return n.pathname;const a=t.getCanonicalPath(e,s);return B(a,w,o)}catch{return n.pathname}};function et(t){return`/${t.split("/").filter(Boolean).join("/")}`}function nt(t){const n=t.map(e=>typeof e=="string"?o=>o===e:o=>e.test(o));return e=>n.some(o=>o(et(e)))}const T="rtl",R="ltr";function rt(t){try{const n=new Intl.Locale(t);return"textInfo"in n?n.textInfo.direction===T?T:R:n.getTextInfo().direction===T?T:R}catch{return R}}function ot(t){const n=t.map(e=>[e,rt(e)]);return Object.fromEntries(n)}const at=0,F=1,$=2,it=4,p=0,v=1,b=2;function st(t){const n=ct(ut);return t.sort((e,o)=>{var s,a,i,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 y=((s=m[_+1])==null?void 0:s[v])||((i=(a=f[g+1])==null?void 0:a[0])==null?void 0:i[v]),I=((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&&I,O=y&&!I,W=!y&&I;if((h[p]&&d[p])===$){if(K)continue;if(O)return-1;if(W)return 1}if(h[p]===$)return O?-1:1;if(d[p]===$)return W?1:-1;if(h[b]!==d[b])return(-1)**+h[b];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 lt(h[v],d[v])}}return e<o?1:-1})}function ct(t){const n=new Map;return e=>(n.has(e)||n.set(e,t(e)),n.get(e))}function ut(t){const n=[];let e=0;for(;e<=t.length;){const o=t.indexOf("[",e),s=o===-1;if(n.push([at,t.slice(e,s?void 0:o),!1]),s)break;const a=t[o+1]==="["?F:t[o+1]==="."?$:it,i=a===F?"]]":"]",c=t.indexOf(i,o);if(c===-1)throw new Error(`Invalid route definition ${t}`);const r=t.slice(o,e=c+i.length);n.push([a,r,r.includes("=")])}return n}const z=t=>t.replace(/\[\[[^\]]+\]\](?!$)/g,"").split("/").filter(Boolean);function lt(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 ft=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${U(t).map(o=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(s)return n.push({name:s[1],matcher:s[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 i=o.split(/\[(.+?)\](?!\])/);return"/"+i.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=ft.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&&i[0]==="":!1}),g?"(.*?)":l?"([^/]*)?":"([^/]+?)"}return j(r)}).join("")}).join("")}/?$`),params:n}}function ht(t,n,e){const o={},s=t.slice(1),a=s.filter(c=>c!==void 0);let i=0;for(const[c,r]of n.entries()){let u=s[c-i];if(r.chained&&r.rest&&i&&(u=s.slice(c-i,c+1).filter(l=>l).join("/"),i=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=s[c+1];l&&!l.rest&&l.optional&&g&&r.chained&&(i=0),!l&&!g&&Object.keys(o).length===a.length&&(i=0);continue}if(r.optional&&r.chained){i++;continue}return}if(!i)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 dt=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function M(t,n){return"/"+U(t).map(e=>e.replace(dt,(o,s,a,i)=>{const c=n[i];if(!c){if(s||a&&c!==void 0)return"";throw new Error(`Missing parameter '${i}' in route ${t}`)}if(c[0]=="/"||c.endsWith("/"))throw new Error(`Parameter '${i}' in route ${t} cannot start or end with a slash`);return c})).filter(Boolean).join("/")}function N(t,n,e){const o=st(n);for(const s of o){const a=gt(s),i=a.pattern.exec(pt(t));if(!i)continue;const c=ht(i,a.params,e);if(c)return{params:c,id:s}}}const pt=t=>t.endsWith("/")?t.slice(0,-1):t,U=t=>t.slice(1).split("/");function mt(t,n,e,o,s){function a(r){const f=r.split("/")[1];if(t.includes(f)&&(s==="always"||f!==n))return f;if(s==="never")return n}function i(r,u){const f=r.endsWith("/")&&r!=="/";r=f?r.slice(0,-1):r;let l=vt(r,u,e,o);return f&&(l+="/"),(s==="always"||u!==n)&&(l=`/${u}${l}`),l}function c(r,u){const f=r.endsWith("/")&&r!=="/";(s==="always"||u!==n)&&(r=r.replace(`/${u}`,"")||"/");const l=f;r=l?r.slice(0,-1):r;let g=_t(r,u,e,o);return l&&(g+="/"),g}return{getLanguageFromLocalisedPath:a,getLocalisedPath:i,getCanonicalPath:c}}function _t(t,n,e,o){for(const[s,a]of Object.entries(e)){if(!(n in a))continue;const i=a[n];if(!i)continue;const c=N(t,[i],o);if(c)return M(s,c.params)}return t}function vt(t,n,e,o){const s=N(t,Object.keys(e),o);if(!s)return t;const a=e[s.id];if(!a)return t;const i=a[n];return i?M(i,s.params):t}function xt(t,n){const e={},o=[],s=t.sourceLanguageTag,a={defaultLanguageTag:s,runtime:t,translations:e,matchers:{},exclude:nt(o),prefixDefaultLanguage:"never",textDirection:ot(t.availableLanguageTags),seo:{noAlternateLinks:!1}},i=mt(t.availableLanguageTags,s,a.translations,a.matchers,a.prefixDefaultLanguage);return Object.freeze(e),Object.freeze(a),{config:a,strategy:i,reroute:()=>tt(i),handle:()=>{throw new Error("")},getLanguageFromUrl(c){const r=E(w),[u]=S(c.pathname,r);return a.exclude(u)?a.defaultLanguageTag:i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag},resolveRoute(c,r=void 0){if(a.exclude(c))return c;const u=E(w),[f,l]=S(c,u);if(r=r??t.languageTag(),!c.startsWith(u))return c;const g=i.getLocalisedPath(f,r);return B(g,u,l)},route(c){const r=E(w),[u,f]=S(c,r),g=i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag,m=i.getCanonicalPath(u,g);return B(m,r,f)}}}function E(t){return t===""?"":t.startsWith("/")?t:G(t,new URL(H(X).url))}const It=xt(q);export{It as i,G as n,S as p,B as s};
1
+ import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{b as w}from"./DQ8aZ1o-.js";import{p as X}from"./B7302SU7.js";import{m as H}from"./Frwd2CjB.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"}));function G(t,n){if(t==="")return"";const e=new URL(t,n).pathname;return e.endsWith("/")?e.slice(0,-1):e}function S(t,n){const e=V(t),o=J(e,n),[s,a]=Z(o);return[s,a]}const B=(t,n,e)=>[n,t,e??""].filter(o=>o!=="/").join("")||"/";function J(t,n){const e=t.replace(n,"");return e.startsWith("/")?e:`/${e}`}function Z(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 V(t){try{return decodeURI(t)}catch{return t}}const tt=t=>({url:n})=>{try{const[e,o]=S(n.pathname,w),s=t.getLanguageFromLocalisedPath(e);if(!s)return n.pathname;const a=t.getCanonicalPath(e,s);return B(a,w,o)}catch{return n.pathname}};function et(t){return`/${t.split("/").filter(Boolean).join("/")}`}function nt(t){const n=t.map(e=>typeof e=="string"?o=>o===e:o=>e.test(o));return e=>n.some(o=>o(et(e)))}const T="rtl",R="ltr";function rt(t){try{const n=new Intl.Locale(t);return"textInfo"in n?n.textInfo.direction===T?T:R:n.getTextInfo().direction===T?T:R}catch{return R}}function ot(t){const n=t.map(e=>[e,rt(e)]);return Object.fromEntries(n)}const at=0,F=1,$=2,it=4,p=0,v=1,b=2;function st(t){const n=ct(ut);return t.sort((e,o)=>{var s,a,i,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 y=((s=m[_+1])==null?void 0:s[v])||((i=(a=f[g+1])==null?void 0:a[0])==null?void 0:i[v]),I=((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&&I,O=y&&!I,W=!y&&I;if((h[p]&&d[p])===$){if(K)continue;if(O)return-1;if(W)return 1}if(h[p]===$)return O?-1:1;if(d[p]===$)return W?1:-1;if(h[b]!==d[b])return(-1)**+h[b];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 lt(h[v],d[v])}}return e<o?1:-1})}function ct(t){const n=new Map;return e=>(n.has(e)||n.set(e,t(e)),n.get(e))}function ut(t){const n=[];let e=0;for(;e<=t.length;){const o=t.indexOf("[",e),s=o===-1;if(n.push([at,t.slice(e,s?void 0:o),!1]),s)break;const a=t[o+1]==="["?F:t[o+1]==="."?$:it,i=a===F?"]]":"]",c=t.indexOf(i,o);if(c===-1)throw new Error(`Invalid route definition ${t}`);const r=t.slice(o,e=c+i.length);n.push([a,r,r.includes("=")])}return n}const z=t=>t.replace(/\[\[[^\]]+\]\](?!$)/g,"").split("/").filter(Boolean);function lt(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 ft=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${U(t).map(o=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(s)return n.push({name:s[1],matcher:s[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 i=o.split(/\[(.+?)\](?!\])/);return"/"+i.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=ft.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&&i[0]==="":!1}),g?"(.*?)":l?"([^/]*)?":"([^/]+?)"}return j(r)}).join("")}).join("")}/?$`),params:n}}function ht(t,n,e){const o={},s=t.slice(1),a=s.filter(c=>c!==void 0);let i=0;for(const[c,r]of n.entries()){let u=s[c-i];if(r.chained&&r.rest&&i&&(u=s.slice(c-i,c+1).filter(l=>l).join("/"),i=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=s[c+1];l&&!l.rest&&l.optional&&g&&r.chained&&(i=0),!l&&!g&&Object.keys(o).length===a.length&&(i=0);continue}if(r.optional&&r.chained){i++;continue}return}if(!i)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 dt=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function M(t,n){return"/"+U(t).map(e=>e.replace(dt,(o,s,a,i)=>{const c=n[i];if(!c){if(s||a&&c!==void 0)return"";throw new Error(`Missing parameter '${i}' in route ${t}`)}if(c[0]=="/"||c.endsWith("/"))throw new Error(`Parameter '${i}' in route ${t} cannot start or end with a slash`);return c})).filter(Boolean).join("/")}function N(t,n,e){const o=st(n);for(const s of o){const a=gt(s),i=a.pattern.exec(pt(t));if(!i)continue;const c=ht(i,a.params,e);if(c)return{params:c,id:s}}}const pt=t=>t.endsWith("/")?t.slice(0,-1):t,U=t=>t.slice(1).split("/");function mt(t,n,e,o,s){function a(r){const f=r.split("/")[1];if(t.includes(f)&&(s==="always"||f!==n))return f;if(s==="never")return n}function i(r,u){const f=r.endsWith("/")&&r!=="/";r=f?r.slice(0,-1):r;let l=vt(r,u,e,o);return f&&(l+="/"),(s==="always"||u!==n)&&(l=`/${u}${l}`),l}function c(r,u){const f=r.endsWith("/")&&r!=="/";(s==="always"||u!==n)&&(r=r.replace(`/${u}`,"")||"/");const l=f;r=l?r.slice(0,-1):r;let g=_t(r,u,e,o);return l&&(g+="/"),g}return{getLanguageFromLocalisedPath:a,getLocalisedPath:i,getCanonicalPath:c}}function _t(t,n,e,o){for(const[s,a]of Object.entries(e)){if(!(n in a))continue;const i=a[n];if(!i)continue;const c=N(t,[i],o);if(c)return M(s,c.params)}return t}function vt(t,n,e,o){const s=N(t,Object.keys(e),o);if(!s)return t;const a=e[s.id];if(!a)return t;const i=a[n];return i?M(i,s.params):t}function xt(t,n){const e={},o=[],s=t.sourceLanguageTag,a={defaultLanguageTag:s,runtime:t,translations:e,matchers:{},exclude:nt(o),prefixDefaultLanguage:"never",textDirection:ot(t.availableLanguageTags),seo:{noAlternateLinks:!1}},i=mt(t.availableLanguageTags,s,a.translations,a.matchers,a.prefixDefaultLanguage);return Object.freeze(e),Object.freeze(a),{config:a,strategy:i,reroute:()=>tt(i),handle:()=>{throw new Error("")},getLanguageFromUrl(c){const r=E(w),[u]=S(c.pathname,r);return a.exclude(u)?a.defaultLanguageTag:i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag},resolveRoute(c,r=void 0){if(a.exclude(c))return c;const u=E(w),[f,l]=S(c,u);if(r=r??t.languageTag(),!c.startsWith(u))return c;const g=i.getLocalisedPath(f,r);return B(g,u,l)},route(c){const r=E(w),[u,f]=S(c,r),g=i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag,m=i.getCanonicalPath(u,g);return B(m,r,f)}}}function E(t){return t===""?"":t.startsWith("/")?t:G(t,new URL(H(X).url))}const It=xt(q);export{It as i,G as n,S as p,B as s};
@@ -0,0 +1 @@
1
+ import"./CWj6FrbW.js";import{p as rt,g as e,ak as Q,u as ht,c as F,s as H,r as I,Y as X,t as G,b as R,a as nt,aM as dt,f as gt,aa as ft,aQ as mt}from"./Frwd2CjB.js";import{b as p,a as U}from"./CiaNZCBa.js";import{i as W,a as bt,s as yt}from"./-DXuGN29.js";import{s as l}from"./D_ynJAfY.js";import{p as C,b as lt}from"./Dafy4oEQ.js";import{J as it,K as xt,M as wt,o as vt,N as _t,w as $,O as Mt}from"./Cqo0Vpvt.js";import"./qIv1kPyv.js";import"./Bqz7dyEC.js";import"./D5w4xp5l.js";import"./DSxvnAMh.js";import"./69_IOA4Y.js";import{o as zt}from"./DQ8aZ1o-.js";import"./DzX_yyqb.js";import{s as J}from"./H60ATh8g.js";function tt(a,t,o=!1){const f={...a};if(o)return f.x=Math.round(Math.max(t.x,Math.min(f.x,t.x+t.width-f.width))),f.y=Math.round(Math.max(t.y,Math.min(f.y,t.y+t.height-f.height))),f;{const z=a.x,i=a.y,b=a.x+a.width,d=a.y+a.height,n=Math.max(t.x,z),u=Math.max(t.y,i),x=Math.min(t.x+t.width,b),s=Math.min(t.y+t.height,d),w={x:Math.round(n),y:Math.round(u),width:Math.round(x-n),height:Math.round(s-u)};return w.width=Math.max(1,w.width),w.height=Math.max(1,w.height),w}}function j(a){return typeof a=="string"?new it([[document.querySelector(a)]],[document.documentElement]):new it([[a]],xt)}function St(a){let t;for(;t=a.sourceEvent;)a=t;return a}function st(a,t){if(a=St(a),t===void 0&&(t=a.currentTarget),t){var o=t.ownerSVGElement||t;if(o.createSVGPoint){var c=o.createSVGPoint();return c.x=a.clientX,c.y=a.clientY,c=c.matrixTransform(t.getScreenCTM().inverse()),[c.x,c.y]}if(t.getBoundingClientRect){var f=t.getBoundingClientRect();return[a.clientX-f.left-t.clientLeft,a.clientY-f.top-t.clientTop]}}return[a.pageX,a.pageY]}const kt={passive:!1},V={capture:!0,passive:!1};function et(a){a.stopImmediatePropagation()}function Y(a){a.preventDefault(),a.stopImmediatePropagation()}function Et(a){var t=a.document.documentElement,o=j(a).on("dragstart.drag",Y,V);"onselectstart"in t?o.on("selectstart.drag",Y,V):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Dt(a,t){var o=a.document.documentElement,c=j(a).on("dragstart.drag",null);t&&(c.on("click.drag",Y,V),setTimeout(function(){c.on("click.drag",null)},0)),"onselectstart"in o?c.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}const K=a=>()=>a;function at(a,{sourceEvent:t,subject:o,target:c,identifier:f,active:z,x:i,y:b,dx:d,dy:n,dispatch:u}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:c,enumerable:!0,configurable:!0},identifier:{value:f,enumerable:!0,configurable:!0},active:{value:z,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:b,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:n,enumerable:!0,configurable:!0},_:{value:u}})}at.prototype.on=function(){var a=this._.on.apply(this._,arguments);return a===this._?this:a};function Rt(a){return!a.ctrlKey&&!a.button}function Nt(){return this.parentNode}function Tt(a,t){return t??{x:a.x,y:a.y}}function Ct(){return navigator.maxTouchPoints||"ontouchstart"in this}function ct(){var a=Rt,t=Nt,o=Tt,c=Ct,f={},z=wt("start","drag","end"),i=0,b,d,n,u,x=0;function s(r){r.on("mousedown.drag",w).filter(c).on("touchstart.drag",k).on("touchmove.drag",N,kt).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(r,m){if(!(u||!a.call(this,r,m))){var M=P(this,t.call(this,r,m),r,m,"mouse");M&&(j(r.view).on("mousemove.drag",_,V).on("mouseup.drag",T,V),Et(r.view),et(r),n=!1,b=r.clientX,d=r.clientY,M("start",r))}}function _(r){if(Y(r),!n){var m=r.clientX-b,M=r.clientY-d;n=m*m+M*M>x}f.mouse("drag",r)}function T(r){j(r.view).on("mousemove.drag mouseup.drag",null),Dt(r.view,n),Y(r),f.mouse("end",r)}function k(r,m){if(a.call(this,r,m)){var M=r.changedTouches,g=t.call(this,r,m),h=M.length,v,L;for(v=0;v<h;++v)(L=P(this,g,r,m,M[v].identifier,M[v]))&&(et(r),L("start",r,M[v]))}}function N(r){var m=r.changedTouches,M=m.length,g,h;for(g=0;g<M;++g)(h=f[m[g].identifier])&&(Y(r),h("drag",r,m[g]))}function D(r){var m=r.changedTouches,M=m.length,g,h;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),g=0;g<M;++g)(h=f[m[g].identifier])&&(et(r),h("end",r,m[g]))}function P(r,m,M,g,h,v){var L=z.copy(),S=st(v||M,m),E,Z,A;if((A=o.call(r,new at("beforestart",{sourceEvent:M,target:s,identifier:h,active:i,x:S[0],y:S[1],dx:0,dy:0,dispatch:L}),g))!=null)return E=A.x-S[0]||0,Z=A.y-S[1]||0,function y(O,q,ut){var ot=S,B;switch(O){case"start":f[h]=y,B=i++;break;case"end":delete f[h],--i;case"drag":S=st(ut||q,m),B=i;break}L.call(O,r,new at(O,{sourceEvent:q,subject:A,target:s,identifier:h,active:B,x:S[0]+E,y:S[1]+Z,dx:S[0]-ot[0],dy:S[1]-ot[1],dispatch:L}),g)}}return s.filter=function(r){return arguments.length?(a=typeof r=="function"?r:K(!!r),s):a},s.container=function(r){return arguments.length?(t=typeof r=="function"?r:K(r),s):t},s.subject=function(r){return arguments.length?(o=typeof r=="function"?r:K(r),s):o},s.touchable=function(r){return arguments.length?(c=typeof r=="function"?r:K(!!r),s):c},s.on=function(){var r=z.on.apply(z,arguments);return r===z?s:r},s.clickDistance=function(r){return arguments.length?(x=(r=+r)*r,s):Math.sqrt(x)},s}function Lt({handle:a,getCurrentBbox:t,onResize:o,onDragEnd:c,onInteractionStart:f,onInteractionEnd:z}){let i;return ct().on("start",()=>{i=t(),f==null||f()}).on("drag",b=>{let d=i.x,n=i.y,u=i.width,x=i.height;const s=b.x-b.subject.x,w=b.y-b.subject.y;switch(a){case"nw":d=i.x+s,n=i.y+w,u=i.width-s,x=i.height-w;break;case"ne":n=i.y+w,u=i.width+s,x=i.height-w;break;case"sw":d=i.x+s,u=i.width-s,x=i.height+w;break;case"se":u=i.width+s,x=i.height+w;break;case"n":n=i.y+w,x=i.height-w;break;case"s":x=i.height+w;break;case"w":d=i.x+s,u=i.width-s;break;case"e":u=i.width+s;break}const _=1;u<_&&(u=_,a.includes("w")&&(d=i.x+i.width-_)),x<_&&(x=_,a.includes("n")&&(n=i.y+i.height-_));const T=Math.round(d),k=Math.round(n),N=Math.round(u),D=Math.round(x);o&&o({x:T,y:k,width:N,height:D})}).on("end",()=>{const{x:b,y:d,width:n,height:u}=t();c&&c({x:b,y:d,width:n,height:u}),z==null||z()})}function Ot({getCurrentBbox:a,onMove:t,onDragEnd:o,onInteractionStart:c,onInteractionEnd:f}){let z;return ct().on("start",()=>{z=a(),c==null||c()}).on("drag",i=>{const b=i.x-i.subject.x,d=i.y-i.subject.y,n=Math.round(z.x+b),u=Math.round(z.y+d);t&&t({x:n,y:u,width:z.width,height:z.height})}).on("end",()=>{const i=a();o&&o(i),f==null||f()})}var Xt=p('<text dominant-baseline="middle" text-anchor="end"> </text><text text-anchor="middle"> </text><text dominant-baseline="middle" text-anchor="end"> </text>',1),At=p('<g><rect stroke-width="2" pointer-events="all" vector-effect="non-scaling-stroke" class="movable-rectangle" style="cursor: move;"></rect><!></g>');function Ft(a,t){rt(t,!0);const o=C(t,"bbox",15),c=C(t,"colorStroke",3,"#007bff"),f=C(t,"colorFill",3,"transparent"),z=C(t,"opacity",3,.3),i=C(t,"handleSize",3,12),b=C(t,"scale",3,1),d=R(()=>o().x),n=R(()=>o().y),u=R(()=>o().width),x=R(()=>o().height);let s=Q(void 0),w=Q(!1);function _(){if(!e(s))return;const m=i()/b(),h=Math.max(3,Math.min(m,e(u)*.1,e(x)*.1,7)),v=[{id:"nw",x:e(d)-h/2,y:e(n)-h/2,cursor:"nwse-resize",label:"Resize northwest corner"},{id:"ne",x:e(d)+e(u)-h/2,y:e(n)-h/2,cursor:"nesw-resize",label:"Resize northeast corner"},{id:"sw",x:e(d)-h/2,y:e(n)+e(x)-h/2,cursor:"nesw-resize",label:"Resize southwest corner"},{id:"se",x:e(d)+e(u)-h/2,y:e(n)+e(x)-h/2,cursor:"nwse-resize",label:"Resize southeast corner"},{id:"n",x:e(d)+e(u)/2-h/2,y:e(n)-h/2,cursor:"ns-resize",label:"Resize top edge"},{id:"s",x:e(d)+e(u)/2-h/2,y:e(n)+e(x)-h/2,cursor:"ns-resize",label:"Resize bottom edge"},{id:"w",x:e(d)-h/2,y:e(n)+e(x)/2-h/2,cursor:"ew-resize",label:"Resize left edge"},{id:"e",x:e(d)+e(u)-h/2,y:e(n)+e(x)/2-h/2,cursor:"ew-resize",label:"Resize right edge"}],S=j(e(s)).selectAll(".resize-handle").data(v,E=>E.id);S.enter().append("rect").attr("class","resize-handle").attr("width",h).attr("height",h).attr("fill",c()).attr("stroke",c()).attr("stroke-width","1").attr("vector-effect","non-scaling-stroke").attr("role","button").attr("style",E=>`cursor: ${E.cursor};`).attr("data-testid",E=>`resize-handle-${E.id}`).attr("aria-label",E=>E.label).merge(S).attr("x",E=>E.x).attr("y",E=>E.y).attr("width",h).attr("height",h).attr("fill",c()).attr("stroke",c()),S.exit().remove()}function T(){if(!e(s))return;["nw","ne","sw","se","n","s","w","e"].forEach(g=>{if(!e(s))return;const h=e(s).querySelector(`[data-testid="resize-handle-${g}"]`);h&&j(h).call(Lt({handle:g,getCurrentBbox:()=>({x:e(d),y:e(n),width:e(u),height:e(x)}),onResize:v=>{o(o().x=v.x,!0),o(o().y=v.y,!0),o(o().width=v.width,!0),o(o().height=v.height,!0),t.onResize&&t.onResize(v),_()},onDragEnd:v=>{t.onDragEnd&&t.onDragEnd(v)},onInteractionStart:()=>{X(w,!0)},onInteractionEnd:()=>{X(w,!1)}}))});const M=e(s).querySelector(".movable-rectangle");M&&j(M).call(Ot({getCurrentBbox:()=>({x:e(d),y:e(n),width:e(u),height:e(x)}),onMove:g=>{o(o().x=g.x,!0),o(o().y=g.y,!0),o(o().width=g.width,!0),o(o().height=g.height,!0),t.onMove&&t.onMove(g),_()},onDragEnd:g=>{t.onDragEnd&&t.onDragEnd(g)},onInteractionStart:()=>{X(w,!0)},onInteractionEnd:()=>{X(w,!1)}}))}zt(()=>{e(s)&&(_(),T())});const k=async()=>{e(s)&&(await dt(),_(),T())};ht(()=>{_(),k()});var N=At(),D=F(N),P=H(D);{var r=m=>{var M=Xt(),g=gt(M),h=F(g);I(g);var v=H(g),L=F(v);I(v);var S=H(v),E=F(S);I(S),G(()=>{l(g,"x",e(d)-10/b()),l(g,"y",e(n)+1/b()),l(g,"fill",c()),l(g,"font-size",14/b()),J(h,`x: ${e(d)??""}, y: ${e(n)??""}`),l(v,"x",e(d)+e(u)/2),l(v,"y",e(n)+e(x)+20/b()),l(v,"fill",c()),l(v,"font-size",14/b()),J(L,`w: ${e(u)??""}px`),l(S,"x",e(d)-10/b()),l(S,"y",e(n)+e(x)/2),l(S,"fill",c()),l(S,"font-size",14/b()),J(E,`h: ${e(x)??""}px`)}),U(m,M)};W(P,m=>{e(w)&&m(r)})}I(N),lt(N,m=>X(s,m),()=>e(s)),G(()=>{l(D,"x",e(d)),l(D,"y",e(n)),l(D,"width",e(u)),l(D,"height",e(x)),l(D,"stroke",c()),l(D,"fill",f()),l(D,"fill-opacity",z())}),U(a,N),nt()}var It=p('<g data-testid="sample-annotation"><!><!><!></g>');function re(a,t){var Z,A;rt(t,!0);const o=()=>yt(d,"$customLabelColorsStore",c),[c,f]=bt(),z=C(t,"showLabel",3,!1),i=C(t,"isResizable",3,!1),b=C(t,"scale",3,1),{customLabelColorsStore:d}=Mt(),n=R(()=>t.annotation.annotation_label.annotation_label_name),u=(A=(Z=t.annotation)==null?void 0:Z.instance_segmentation_details)==null?void 0:A.segmentation_mask,x=R(()=>t.annotation.annotation_id),s=R(()=>$(e(n),1)),w=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.color)??$(e(n),1).color}),_=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.color)??$(e(n),.4).color}),T=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.alpha)*.4});let k=Q(ft(vt(t.annotation)));const N=y=>{X(k,t.constraintBox?tt(y,t.constraintBox,!1):y,!0)},D=y=>{X(k,t.constraintBox?tt(y,t.constraintBox,!0):y,!0)},P=y=>{var q;const O=t.constraintBox?tt(y,t.constraintBox,!0):y;X(k,O,!0),(q=t.onBoundingBoxChanged)==null||q.call(t,O)},r=R(()=>[e(k).x,e(k).y,e(k).width,e(k).height]);var m=It(),M=F(m);{var g=y=>{{let O=R(()=>[e(k).x,e(k).y]);Yt(y,{get coordinates(){return e(O)},get colorText(){return e(s)},get label(){return e(n)}})}};W(M,y=>{z()&&y(g)})}var h=H(M);{var v=y=>{_t(y,{get segmentation(){return u},get width(){return t.imageWidth},get colorFill(){return e(_)},get opacity(){return e(T)}})};W(h,y=>{u&&y(v)})}var L=H(h);{var S=y=>{Ft(y,{get colorStroke(){return e(w)},get colorFill(){return e(_)},get opacity(){return e(T)},get scale(){return b()},onResize:N,onMove:D,onDragEnd:P,get bbox(){return e(k)},set bbox(O){X(k,O,!0)}})},E=y=>{Pt(y,{get bbox(){return e(r)},get annotationId(){return e(x)},get label(){return e(n)},get colorStroke(){return e(w)},get colorFill(){return e(_)},get opacity(){return e(T)}})};W(L,y=>{i()&&t.constraintBox?y(S):y(E,!1)})}I(m),G(()=>{l(m,"data-annotation-label",e(n)),l(m,"data-annotation-id",e(x))}),U(a,m),nt(),f()}var jt=p('<rect vector-effect="non-scaling-stroke" stroke-width="2" pointer-events="all" data-testid="annotation_box"></rect>');function Pt(a,t){const o=C(t,"isPrediction",3,!1),[c,f,z,i]=t.bbox,b=o()?"5,5":"none",d=o()?.8:1;var n=jt();G(()=>{l(n,"x",c),l(n,"y",f),l(n,"width",z),l(n,"height",i),l(n,"stroke",t.colorStroke),l(n,"stroke-opacity",d),l(n,"stroke-dasharray",b),l(n,"fill",t.colorFill),l(n,"fill-opacity",t.opacity),l(n,"aria-label",t.label)}),U(a,n)}var Ht=p('<g class="unscaled"><rect></rect><text class="annotation-label-text" data-testid="svg-annotation-text"> </text></g>');function Yt(a,t){rt(t,!0);const o=C(t,"fontSize",3,14),c=C(t,"isPrediction",3,!1),f=R(()=>mt(t.coordinates,2)),z=R(()=>e(f)[0]),i=R(()=>e(f)[1]);let b=Q(null);const d=R(()=>e(b)?(e(b).textContent=c()?`${t.label} (pred)`:t.label,e(b).getBBox()):{width:0,height:0}),n=5,u=c()?.8:1,x=c()?"italic":"normal";var s=Ht(),w=F(s),_=H(w);l(_,"x",n),l(_,"y",-5);var T=F(_,!0);I(_),lt(_,k=>X(b,k),()=>e(b)),I(s),G(()=>{var k,N,D;l(s,"transform",`translate(${e(z)}, ${e(i)})`),l(s,"data-label",t.label),l(w,"y",-((k=e(d))==null?void 0:k.height)),l(w,"width",((N=e(d))==null?void 0:N.width)+n*2),l(w,"height",(D=e(d))==null?void 0:D.height),l(w,"fill",t.colorText.color),l(w,"opacity",u),l(_,"fill",t.colorText.contrastColor),l(_,"font-size",o()),l(_,"font-style",x),J(T,c()?`${t.label} (pred)`:t.label)}),U(a,s),nt()}export{Ft as R,re as S,Et as a,ct as d,st as p,j as s,Dt as y};
@@ -0,0 +1 @@
1
+ import{v as x,x as B,y as M,z as S,A as v,B as g,C as T,D as q,E as D}from"./Frwd2CjB.js";const O=new Set,W=new Set;function b(r,a,i,c={}){function e(t){if(c.capture||z.call(a,t),!t.cancelBubble)return M(()=>i==null?void 0:i.call(this,t))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?B(()=>{a.addEventListener(r,e,c)}):a.addEventListener(r,e,c),e}function C(r,a,i,c={}){var e=b(a,r,i,c);return()=>{r.removeEventListener(a,e,c)}}function H(r,a,i,c,e){var t={capture:c,passive:e},o=b(r,a,i,t);(a===document.body||a===window||a===document||a instanceof HTMLMediaElement)&&x(()=>{a.removeEventListener(r,o,t)})}function N(r){for(var a=0;a<r.length;a++)O.add(r[a]);for(var i of W)i(r)}let w=null;function z(r){var p;var a=this,i=a.ownerDocument,c=r.type,e=((p=r.composedPath)==null?void 0:p.call(r))||[],t=e[0]||r.target;w=r;var o=0,_=w===r&&r.__root;if(_){var l=e.indexOf(_);if(l!==-1&&(a===document||a===window)){r.__root=a;return}var d=e.indexOf(a);if(d===-1)return;l<=d&&(o=l)}if(t=e[o]||r.target,t!==a){S(r,"currentTarget",{configurable:!0,get(){return t||i}});var y=q,E=D;v(null),g(null);try{for(var n,h=[];t!==null;){var f=t.assignedSlot||t.parentNode||t.host||null;try{var s=t["__"+c];if(s!=null&&(!t.disabled||r.target===t))if(T(s)){var[L,...k]=s;L.apply(t,[r,...k])}else s.call(t,r)}catch(u){n?h.push(u):n=u}if(r.cancelBubble||f===a||f===null)break;t=f}if(n){for(let u of h)queueMicrotask(()=>{throw u});throw n}}finally{r.__root=a,delete r.currentTarget,v(y),g(E)}}}export{O as a,b as c,N as d,H as e,z as h,C as o,W as r};
@@ -0,0 +1 @@
1
+ import"./CWj6FrbW.js";import{f as m}from"./Frwd2CjB.js";import{c as i,a as p}from"./CiaNZCBa.js";import{s as n}from"./DzX_yyqb.js";function d(o,a){var r=i(),t=m(r);n(t,()=>a.children),p(o,r)}export{d as L};
@@ -0,0 +1 @@
1
+ import{d,e as g,u as c,h as m,i as b,j as l,g as p,k as h,l as k}from"./Frwd2CjB.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>h(s.s);if(n){let o=0,t={};const _=k(()=>{let i=!1;const a=s.s;for(const f in a)a[f]!==t[f]&&(t[f]=a[f],i=!0);return i&&o++,o});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),c(()=>{const o=m(()=>e.m.map(b));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -0,0 +1 @@
1
+ import{F,I as N,P as B,n as M,al as W,G,V as Q}from"./Frwd2CjB.js";function se(r,t,...e){var s=r,n=M,i;F(()=>{n!==(n=t())&&(i&&(W(i),i=null),i=B(()=>n(s,...e)))},N),G&&(s=Q)}const J=/\{[^{}]+\}/g,V=()=>{var r,t;return typeof process=="object"&&Number.parseInt((t=(r=process==null?void 0:process.versions)==null?void 0:r.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function Y(){return Math.random().toString(36).slice(2,11)}function K(r){let{baseUrl:t="",Request:e=globalThis.Request,fetch:s=globalThis.fetch,querySerializer:n,bodySerializer:i,headers:f,requestInitExt:l=void 0,..._}={...r};l=V()?l:void 0,t=P(t);const y=[];async function h(a,o){const{baseUrl:m,fetch:z=s,Request:ne=e,headers:D,params:R={},parseAs:T="json",querySerializer:j,bodySerializer:I=i??Z,body:C,...$}=o||{};m&&(t=P(m));let U=typeof n=="function"?n:O(n);j&&(U=typeof j=="function"?j:O({...typeof n=="object"?n:{},...j}));const q=C===void 0?void 0:I(C),v=q===void 0||q instanceof FormData?{}:{"Content-Type":"application/json"},k={redirect:"follow",..._,...$,body:q,headers:re(v,f,D,R.header)};let g,E,b=new e(ee(a,{baseUrl:t,params:R,querySerializer:U}),k);for(const u in $)u in b||(b[u]=$[u]);if(y.length){g=Y(),E=Object.freeze({baseUrl:t,fetch:z,parseAs:T,querySerializer:U,bodySerializer:I});for(const u of y)if(u&&typeof u=="object"&&typeof u.onRequest=="function"){const d=await u.onRequest({request:b,schemaPath:a,params:R,options:E,id:g});if(d){if(!(d instanceof e))throw new Error("onRequest: must return new Request() when modifying the request");b=d}}}let c;try{c=await z(b,l)}catch(u){let d=u;if(y.length)for(let p=y.length-1;p>=0;p--){const S=y[p];if(S&&typeof S=="object"&&typeof S.onError=="function"){const w=await S.onError({request:b,error:d,schemaPath:a,params:R,options:E,id:g});if(w){if(w instanceof Response){d=void 0,c=w;break}if(w instanceof Error){d=w;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(d)throw d}if(y.length)for(let u=y.length-1;u>=0;u--){const d=y[u];if(d&&typeof d=="object"&&typeof d.onResponse=="function"){const p=await d.onResponse({request:b,response:c,schemaPath:a,params:R,options:E,id:g});if(p){if(!(p instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");c=p}}}if(c.status===204||c.headers.get("Content-Length")==="0")return c.ok?{data:void 0,response:c}:{error:void 0,response:c};if(c.ok)return T==="stream"?{data:c.body,response:c}:{data:await c[T](),response:c};let x=await c.text();try{x=JSON.parse(x)}catch{}return{error:x,response:c}}return{request(a,o,m){return h(o,{...m,method:a.toUpperCase()})},GET(a,o){return h(a,{...o,method:"GET"})},PUT(a,o){return h(a,{...o,method:"PUT"})},POST(a,o){return h(a,{...o,method:"POST"})},DELETE(a,o){return h(a,{...o,method:"DELETE"})},OPTIONS(a,o){return h(a,{...o,method:"OPTIONS"})},HEAD(a,o){return h(a,{...o,method:"HEAD"})},PATCH(a,o){return h(a,{...o,method:"PATCH"})},TRACE(a,o){return h(a,{...o,method:"TRACE"})},use(...a){for(const o of a)if(o){if(typeof o!="object"||!("onRequest"in o||"onResponse"in o||"onError"in o))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");y.push(o)}},eject(...a){for(const o of a){const m=y.indexOf(o);m!==-1&&y.splice(m,1)}}}}function A(r,t,e){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${(e==null?void 0:e.allowReserved)===!0?t:encodeURIComponent(t)}`}function L(r,t,e){if(!t||typeof t!="object")return"";const s=[],n={simple:",",label:".",matrix:";"}[e.style]||"&";if(e.style!=="deepObject"&&e.explode===!1){for(const l in t)s.push(l,e.allowReserved===!0?t[l]:encodeURIComponent(t[l]));const f=s.join(",");switch(e.style){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}for(const f in t){const l=e.style==="deepObject"?`${r}[${f}]`:f;s.push(A(l,t[f],e))}const i=s.join(n);return e.style==="label"||e.style==="matrix"?`${n}${i}`:i}function H(r,t,e){if(!Array.isArray(t))return"";if(e.explode===!1){const i={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[e.style]||",",f=(e.allowReserved===!0?t:t.map(l=>encodeURIComponent(l))).join(i);switch(e.style){case"simple":return f;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return`${r}=${f}`}}const s={simple:",",label:".",matrix:";"}[e.style]||"&",n=[];for(const i of t)e.style==="simple"||e.style==="label"?n.push(e.allowReserved===!0?i:encodeURIComponent(i)):n.push(A(r,i,e));return e.style==="label"||e.style==="matrix"?`${s}${n.join(s)}`:n.join(s)}function O(r){return function(e){const s=[];if(e&&typeof e=="object")for(const n in e){const i=e[n];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;s.push(H(n,i,{style:"form",explode:!0,...r==null?void 0:r.array,allowReserved:(r==null?void 0:r.allowReserved)||!1}));continue}if(typeof i=="object"){s.push(L(n,i,{style:"deepObject",explode:!0,...r==null?void 0:r.object,allowReserved:(r==null?void 0:r.allowReserved)||!1}));continue}s.push(A(n,i,r))}}return s.join("&")}}function X(r,t){let e=r;for(const s of r.match(J)??[]){let n=s.substring(1,s.length-1),i=!1,f="simple";if(n.endsWith("*")&&(i=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(f="label",n=n.substring(1)):n.startsWith(";")&&(f="matrix",n=n.substring(1)),!t||t[n]===void 0||t[n]===null)continue;const l=t[n];if(Array.isArray(l)){e=e.replace(s,H(n,l,{style:f,explode:i}));continue}if(typeof l=="object"){e=e.replace(s,L(n,l,{style:f,explode:i}));continue}if(f==="matrix"){e=e.replace(s,`;${A(n,l)}`);continue}e=e.replace(s,f==="label"?`.${encodeURIComponent(l)}`:encodeURIComponent(l))}return e}function Z(r){return r instanceof FormData?r:JSON.stringify(r)}function ee(r,t){var n;let e=`${t.baseUrl}${r}`;(n=t.params)!=null&&n.path&&(e=X(e,t.params.path));let s=t.querySerializer(t.params.query??{});return s.startsWith("?")&&(s=s.substring(1)),s&&(e+=`?${s}`),e}function re(...r){const t=new Headers;for(const e of r){if(!e||typeof e!="object")continue;const s=e instanceof Headers?e.entries():Object.entries(e);for(const[n,i]of s)if(i===null)t.delete(n);else if(Array.isArray(i))for(const f of i)t.append(n,f);else i!==void 0&&t.set(n,i)}return t}function P(r){return r.endsWith("/")?r.substring(0,r.length-1):r}const oe="/images",te="/",ae=K({baseUrl:te,fetch});export{oe as P,te as a,ae as c,se as s};
@@ -0,0 +1 @@
1
+ var vn=Object.defineProperty;var he=t=>{throw TypeError(t)};var pn=(t,e,n)=>e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Tt=(t,e,n)=>pn(t,typeof e!="symbol"?e+"":e,n),Kt=(t,e,n)=>e.has(t)||he("Cannot "+n);var d=(t,e,n)=>(Kt(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),U=(t,e,n,r)=>(Kt(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),B=(t,e,n)=>(Kt(t,e,"access private method"),n);import{l as re,t as hn}from"./DIeogL5L.js";const Re=!1;var dn=Array.isArray,wn=Array.prototype.indexOf,fr=Array.from,de=Object.defineProperty,St=Object.getOwnPropertyDescriptor,yn=Object.getOwnPropertyDescriptors,bn=Object.prototype,En=Array.prototype,Oe=Object.getPrototypeOf,we=Object.isExtensible;function ur(t){return typeof t=="function"}const et=()=>{};function lr(t){return typeof(t==null?void 0:t.then)=="function"}function or(t){return t()}function Ne(t){for(var e=0;e<t.length;e++)t[e]()}function ke(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}function cr(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const S=2,se=4,Ut=8,ft=16,q=32,Z=64,Ce=128,C=256,Lt=512,g=1024,O=2048,Y=4096,z=8192,Et=16384,ae=32768,Ie=65536,ye=1<<17,gn=1<<18,gt=1<<19,Pe=1<<20,Xt=1<<21,Bt=1<<22,nt=1<<23,rt=Symbol("$state"),_r=Symbol("legacy props"),vr=Symbol(""),Rt=new class extends Error{constructor(){super(...arguments);Tt(this,"name","StaleReactionError");Tt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},hr=1,ie=3,De=8;function mn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Tn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function An(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Sn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function wr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function On(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function yr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const br=1,Er=2,gr=4,mr=8,Tr=16,Ar=1,xr=2,Sr=4,Rr=8,Or=16,Nr=4,kr=1,Cr=2,Cn="[",In="[!",Pn="]",fe={},m=Symbol(),Ir="http://www.w3.org/1999/xhtml",Pr="http://www.w3.org/2000/svg",Dr="@attach";function ue(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Mr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Me(t){j=t}let E;function at(t){if(t===null)throw ue(),fe;return E=t}function Lr(){return at(ut(E))}function jr(t){if(j){if(ut(E)!==null)throw ue(),fe;E=t}}function qr(t=1){if(j){for(var e=t,n=E;e--;)n=ut(n);E=n}}function Yr(t=!0){for(var e=0,n=E;;){if(n.nodeType===De){var r=n.data;if(r===Pn){if(e===0)return n;e-=1}else(r===Cn||r===In)&&(e+=1)}var s=ut(n);t&&n.remove(),n=s}}function Hr(t){if(!t||t.nodeType!==De)throw ue(),fe;return t.data}function Fe(t){return t===this.v}function Le(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ur(t,e){return t!==e}function je(t){return!Le(t,this.v)}let y=null;function jt(t){y=t}function Br(t){return Vt().get(t)}function Vr(t,e){return Vt().set(t,e),e}function $r(t){return Vt().has(t)}function Gr(){return Vt()}function Kr(t,e=!1,n){y={p:y,c:null,e:null,s:t,x:null,l:re&&!e?{s:null,u:null,$:[]}:null}}function zr(t){var e=y,n=e.e;if(n!==null){e.e=null;for(var r of n)Ze(r)}return t!==void 0&&(e.x=t),y=e.p,t??{}}function Pt(){return!re||y!==null&&y.l===null}function Vt(t){return y===null&&mn(),y.c??(y.c=new Map(Dn(y)||void 0))}function Dn(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let Q=[];function qe(){var t=Q;Q=[],Ne(t)}function Ye(t){if(Q.length===0&&!Ot){var e=Q;queueMicrotask(()=>{e===Q&&qe()})}Q.push(t)}function Mn(){for(;Q.length>0;)qe()}const Fn=new WeakMap;function Ln(t){var e=h;if(e===null)return _.f|=nt,t;if(e.f&ae)qt(t,e);else{if(!(e.f&Ce))throw!e.parent&&t instanceof Error&&He(t),t;e.b.error(t)}}function qt(t,e){for(;e!==null;){if(e.f&Ce)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&He(t),t}function He(t){const e=Fn.get(t);e&&(de(t,"message",{value:e.message}),de(t,"stack",{value:e.stack}))}const Mt=new Set;let b=null,zt=null,be=new Set,F=[],$t=null,Zt=!1,Ot=!1;var _t,vt,$,kt,pt,ht,tt,dt,Ct,It,I,Jt,Ft,Qt;const ot=class ot{constructor(){N(this,I);Tt(this,"current",new Map);N(this,_t,new Map);N(this,vt,new Set);N(this,$,0);N(this,kt,null);N(this,pt,[]);N(this,ht,[]);N(this,tt,[]);N(this,dt,[]);N(this,Ct,[]);N(this,It,[]);Tt(this,"skipped_effects",new Set)}process(e){var i;F=[],zt=null;var n=ot.apply(this);for(const u of e)B(this,I,Jt).call(this,u);if(d(this,$)===0){B(this,I,Qt).call(this);var r=d(this,ht),s=d(this,tt);U(this,ht,[]),U(this,tt,[]),U(this,dt,[]),zt=this,b=null,Ee(r),Ee(s),(i=d(this,kt))==null||i.resolve()}else B(this,I,Ft).call(this,d(this,ht)),B(this,I,Ft).call(this,d(this,tt)),B(this,I,Ft).call(this,d(this,dt));n();for(const u of d(this,pt))bt(u);U(this,pt,[])}capture(e,n){d(this,_t).has(e)||d(this,_t).set(e,n),this.current.set(e,e.v)}activate(){b=this}deactivate(){b=null,zt=null;for(const e of be)if(be.delete(e),e(),b!==null)break}flush(){if(F.length>0){if(this.activate(),Ue(),b!==null&&b!==this)return}else d(this,$)===0&&B(this,I,Qt).call(this);this.deactivate()}increment(){U(this,$,d(this,$)+1)}decrement(){if(U(this,$,d(this,$)-1),d(this,$)===0){for(const e of d(this,Ct))T(e,O),it(e);for(const e of d(this,It))T(e,Y),it(e);this.flush()}else this.deactivate()}add_callback(e){d(this,vt).add(e)}settled(){return(d(this,kt)??U(this,kt,ke())).promise}static ensure(){if(b===null){const e=b=new ot;Mt.add(b),Ot||ot.enqueue(()=>{b===e&&e.flush()})}return b}static enqueue(e){Ye(e)}static apply(e){return et}};_t=new WeakMap,vt=new WeakMap,$=new WeakMap,kt=new WeakMap,pt=new WeakMap,ht=new WeakMap,tt=new WeakMap,dt=new WeakMap,Ct=new WeakMap,It=new WeakMap,I=new WeakSet,Jt=function(e){var f;e.f^=g;for(var n=e.first;n!==null;){var r=n.f,s=(r&(q|Z))!==0,i=s&&(r&g)!==0,u=i||(r&z)!==0||this.skipped_effects.has(n);if(!u&&n.fn!==null){s?n.f^=g:r&se?d(this,tt).push(n):r&g||(r&Bt&&((f=n.b)!=null&&f.is_pending())?d(this,pt).push(n):Dt(n)&&(n.f&ft&&d(this,dt).push(n),bt(n)));var l=n.first;if(l!==null){n=l;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}},Ft=function(e){for(const n of e)(n.f&O?d(this,Ct):d(this,It)).push(n),T(n,g);e.length=0},Qt=function(){var e;for(const n of d(this,vt))n();if(d(this,vt).clear(),Mt.size>1){d(this,_t).clear();let n=!0;for(const r of Mt){if(r===this){n=!1;continue}for(const[s,i]of this.current){if(r.current.has(s))if(n)r.current.set(s,i);else continue;Be(s)}if(F.length>0){b=r;const s=ot.apply(r);for(const i of F)B(e=r,I,Jt).call(e,i);F=[],s()}}b=null}Mt.delete(this)};let wt=ot;function jn(t){var e=Ot;Ot=!0;try{for(var n;;){if(Mn(),F.length===0&&(b==null||b.flush(),F.length===0))return $t=null,n;Ue()}}finally{Ot=e}}function Ue(){var t=ct;Zt=!0;try{var e=0;for(Ae(!0);F.length>0;){var n=wt.ensure();if(e++>1e3){var r,s;qn()}n.process(F),K.clear()}}finally{Zt=!1,Ae(t),$t=null}}function qn(){try{Rn()}catch(t){qt(t,$t)}}let L=null;function Ee(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if(!(r.f&(Et|z))&&Dt(r)&&(L=[],bt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?en(r):r.fn=null),(L==null?void 0:L.length)>0)){K.clear();for(const s of L)bt(s);L=[]}}L=null}}function Be(t){if(t.reactions!==null)for(const e of t.reactions){const n=e.f;n&S?Be(e):n&(Bt|ft)&&(T(e,O),it(e))}}function it(t){for(var e=$t=t;e.parent!==null;){e=e.parent;var n=e.f;if(Zt&&e===h&&n&ft)return;if(n&(Z|q)){if(!(n&g))return;e.f^=g}}F.push(e)}function Yn(t,e,n){const r=Pt()?le:Bn;if(e.length===0){n(t.map(r));return}var s=b,i=h,u=Hn(),l=j;Promise.all(e.map(a=>Un(a))).then(a=>{s==null||s.activate(),u();try{n([...t.map(r),...a])}catch(f){i.f&Et||qt(f,i)}l&&Me(!1),s==null||s.deactivate(),Ve()}).catch(a=>{qt(a,i)})}function Hn(){var t=h,e=_,n=y,r=b,s=j;if(s)var i=E;return function(){yt(t),X(e),jt(n),r==null||r.activate(),s&&(Me(!0),at(i))}}function Ve(){yt(null),X(null),jt(null)}function le(t){var e=S|O,n=_!==null&&_.f&S?_:null;return h===null||n!==null&&n.f&C?e|=C:h.f|=gt,{ctx:y,deps:null,effects:null,equals:Fe,f:e,fn:t,reactions:null,rv:0,v:m,wv:0,parent:n??h,ac:null}}function Un(t,e){let n=h;n===null&&Tn();var r=n.b,s=void 0,i=ce(m),u=!_,l=new Map;return Wn(()=>{var w;var a=ke();s=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject)}catch(p){a.reject(p)}var f=b,o=r.is_pending();u&&(r.update_pending_count(1),o||(f.increment(),(w=l.get(f))==null||w.reject(Rt),l.set(f,a)));const c=(p,v=void 0)=>{o||f.activate(),v?v!==Rt&&(i.f|=nt,te(i,v)):(i.f&nt&&(i.f^=nt),te(i,p)),u&&(r.update_pending_count(-1),o||f.decrement()),Ve()};a.promise.then(c,p=>c(null,p||"unknown"))}),zn(()=>{for(const a of l.values())a.reject(Rt)}),new Promise(a=>{function f(o){function c(){o===s?a(i):f(s)}o.then(c,c)}f(s)})}function Wr(t){const e=le(t);return sn(e),e}function Bn(t){const e=le(t);return e.equals=je,e}function $e(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)W(e[n])}}function Vn(t){for(var e=t.parent;e!==null;){if(!(e.f&S))return e;e=e.parent}return null}function oe(t){var e,n=h;yt(Vn(t));try{$e(t),e=ln(t)}finally{yt(n)}return e}function Ge(t){var e=oe(t);if(t.equals(e)||(t.v=e,t.wv=fn()),!mt){var n=(G||t.f&C)&&t.deps!==null?Y:g;T(t,n)}}const K=new Map;function ce(t,e){var n={f:0,v:t,reactions:null,equals:Fe,rv:0,wv:0};return n}function V(t,e){const n=ce(t);return sn(n),n}function Xr(t,e=!1,n=!0){var s;const r=ce(t);return e||(r.equals=je),re&&n&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function J(t,e,n=!1){_!==null&&(!P||_.f&ye)&&Pt()&&_.f&(S|ft|Bt|ye)&&!(x!=null&&x.includes(t))&&kn();let r=n?At(e):e;return te(t,r)}function te(t,e){if(!t.equals(e)){var n=t.v;mt?K.set(t,e):K.set(t,n),t.v=e;var r=wt.ensure();r.capture(t,n),t.f&S&&(t.f&O&&oe(t),T(t,t.f&C?Y:g)),t.wv=fn(),Ke(t,O),Pt()&&h!==null&&h.f&g&&!(h.f&(q|Z))&&(k===null?tr([t]):k.push(t))}return e}function Wt(t){J(t,t.v+1)}function Ke(t,e){var n=t.reactions;if(n!==null)for(var r=Pt(),s=n.length,i=0;i<s;i++){var u=n[i],l=u.f;if(!(!r&&u===h)){var a=(l&O)===0;a&&T(u,e),l&S?Ke(u,Y):a&&(l&ft&&L!==null&&L.push(u),it(u))}}}function At(t){if(typeof t!="object"||t===null||rt in t)return t;const e=Oe(t);if(e!==bn&&e!==En)return t;var n=new Map,r=dn(t),s=V(0),i=st,u=l=>{if(st===i)return l();var a=_,f=st;X(null),Se(i);var o=l();return X(a),Se(f),o};return r&&n.set("length",V(t.length)),new Proxy(t,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&On();var o=n.get(a);return o===void 0?o=u(()=>{var c=V(f.value);return n.set(a,c),c}):J(o,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const o=u(()=>V(m));n.set(a,o),Wt(s)}}else J(f,m),Wt(s);return!0},get(l,a,f){var p;if(a===rt)return t;var o=n.get(a),c=a in l;if(o===void 0&&(!c||(p=St(l,a))!=null&&p.writable)&&(o=u(()=>{var v=At(c?l[a]:m),M=V(v);return M}),n.set(a,o)),o!==void 0){var w=xt(o);return w===m?void 0:w}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var o=n.get(a);o&&(f.value=xt(o))}else if(f===void 0){var c=n.get(a),w=c==null?void 0:c.v;if(c!==void 0&&w!==m)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return f},has(l,a){var w;if(a===rt)return!0;var f=n.get(a),o=f!==void 0&&f.v!==m||Reflect.has(l,a);if(f!==void 0||h!==null&&(!o||(w=St(l,a))!=null&&w.writable)){f===void 0&&(f=u(()=>{var p=o?At(l[a]):m,v=V(p);return v}),n.set(a,f));var c=xt(f);if(c===m)return!1}return o},set(l,a,f,o){var pe;var c=n.get(a),w=a in l;if(r&&a==="length")for(var p=f;p<c.v;p+=1){var v=n.get(p+"");v!==void 0?J(v,m):p in l&&(v=u(()=>V(m)),n.set(p+"",v))}if(c===void 0)(!w||(pe=St(l,a))!=null&&pe.writable)&&(c=u(()=>V(void 0)),J(c,At(f)),n.set(a,c));else{w=c.v!==m;var M=u(()=>At(f));J(c,M)}var H=Reflect.getOwnPropertyDescriptor(l,a);if(H!=null&&H.set&&H.set.call(o,f),!w){if(r&&typeof a=="string"){var ve=n.get("length"),Gt=Number(a);Number.isInteger(Gt)&&Gt>=ve.v&&J(ve,Gt+1)}Wt(s)}return!0},ownKeys(l){xt(s);var a=Reflect.ownKeys(l).filter(c=>{var w=n.get(c);return w===void 0||w.v!==m});for(var[f,o]of n)o.v!==m&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Nn()}})}function ge(t){try{if(t!==null&&typeof t=="object"&&rt in t)return t[rt]}catch{}return t}function Zr(t,e){return Object.is(ge(t),ge(e))}var me,$n,ze,We;function Jr(){if(me===void 0){me=window,$n=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ze=St(e,"firstChild").get,We=St(e,"nextSibling").get,we(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),we(n)&&(n.__t=void 0)}}function Yt(t=""){return document.createTextNode(t)}function ee(t){return ze.call(t)}function ut(t){return We.call(t)}function Qr(t,e){if(!j)return ee(t);var n=ee(E);if(n===null)n=E.appendChild(Yt());else if(e&&n.nodeType!==ie){var r=Yt();return n==null||n.before(r),at(r),r}return at(n),n}function ts(t,e=!1){if(!j){var n=ee(t);return n instanceof Comment&&n.data===""?ut(n):n}if(e&&(E==null?void 0:E.nodeType)!==ie){var r=Yt();return E==null||E.before(r),at(r),r}return E}function es(t,e=1,n=!1){let r=j?E:t;for(var s;e--;)s=r,r=ut(r);if(!j)return r;if(n&&(r==null?void 0:r.nodeType)!==ie){var i=Yt();return r===null?s==null||s.after(i):r.before(i),at(i),i}return at(r),r}function ns(t){t.textContent=""}function rs(){return!1}function ss(t,e){if(e){const n=document.body;t.autofocus=!0,Ye(()=>{document.activeElement===n&&t.focus()})}}let Te=!1;function Gn(){Te||(Te=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n.__on_r)==null||e.call(n)})},{capture:!0}))}function _e(t){var e=_,n=h;X(null),yt(null);try{return t()}finally{X(e),yt(n)}}function as(t,e,n,r=n){t.addEventListener(e,()=>_e(n));const s=t.__on_r;s?t.__on_r=()=>{s(),r(!0)}:t.__on_r=()=>r(!0),Gn()}function Xe(t){h===null&&_===null&&Sn(),_!==null&&_.f&C&&h===null&&xn(),mt&&An()}function Kn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function D(t,e,n,r=!0){var s=h;s!==null&&s.f&z&&(t|=z);var i={ctx:y,deps:null,nodes_start:null,nodes_end:null,f:t|O,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{bt(i),i.f|=ae}catch(a){throw W(i),a}else e!==null&&it(i);if(r){var u=i;if(n&&u.deps===null&&u.teardown===null&&u.nodes_start===null&&u.first===u.last&&!(u.f&gt)&&(u=u.first),u!==null&&(u.parent=s,s!==null&&Kn(u,s),_!==null&&_.f&S&&!(t&Z))){var l=_;(l.effects??(l.effects=[])).push(u)}}return i}function is(){return _!==null&&!P}function zn(t){const e=D(Ut,null,!1);return T(e,g),e.teardown=t,e}function fs(t){Xe();var e=h.f,n=!_&&(e&q)!==0&&(e&ae)===0;if(n){var r=y;(r.e??(r.e=[])).push(t)}else return Ze(t)}function Ze(t){return D(se|Pe,t,!1)}function us(t){return Xe(),D(Ut|Pe,t,!0)}function ls(t){wt.ensure();const e=D(Z|gt,t,!0);return()=>{W(e)}}function os(t){wt.ensure();const e=D(Z|gt,t,!0);return(n={})=>new Promise(r=>{n.outro?Jn(e,()=>{W(e),r(void 0)}):(W(e),r(void 0))})}function cs(t){return D(se,t,!1)}function _s(t,e){var n=y,r={effect:null,ran:!1,deps:t};n.l.$.push(r),r.effect=Je(()=>{t(),!r.ran&&(r.ran=!0,cn(e))})}function vs(){var t=y;Je(()=>{for(var e of t.l.$){e.deps();var n=e.effect;n.f&g&&T(n,Y),Dt(n)&&bt(n),e.ran=!1}})}function Wn(t){return D(Bt|gt,t,!0)}function Je(t,e=0){return D(Ut|e,t,!0)}function ps(t,e=[],n=[]){Yn(e,n,r=>{D(Ut,()=>t(...r.map(xt)),!0)})}function hs(t,e=0){var n=D(ft|e,t,!0);return n}function ds(t,e=!0){return D(q|gt,t,!0,e)}function Qe(t){var e=t.teardown;if(e!==null){const n=mt,r=_;xe(!0),X(null);try{e.call(null)}finally{xe(n),X(r)}}}function tn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&_e(()=>{s.abort(Rt)});var r=n.next;n.f&Z?n.parent=null:W(n,e),n=r}}function Xn(t){for(var e=t.first;e!==null;){var n=e.next;e.f&q||W(e),e=n}}function W(t,e=!0){var n=!1;(e||t.f&gn)&&t.nodes_start!==null&&t.nodes_end!==null&&(Zn(t.nodes_start,t.nodes_end),n=!0),tn(t,e&&!n),Ht(t,0),T(t,Et);var r=t.transitions;if(r!==null)for(const i of r)i.stop();Qe(t);var s=t.parent;s!==null&&s.first!==null&&en(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Zn(t,e){for(;t!==null;){var n=t===e?null:ut(t);t.remove(),t=n}}function en(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Jn(t,e){var n=[];nn(t,n,!0),Qn(n,()=>{W(t),e&&e()})}function Qn(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function nn(t,e,n){if(!(t.f&z)){if(t.f^=z,t.transitions!==null)for(const u of t.transitions)(u.is_global||n)&&e.push(u);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&Ie)!==0||(r.f&q)!==0;nn(r,e,i?n:!1),r=s}}}function ws(t){rn(t,!0)}function rn(t,e){if(t.f&z){t.f^=z,t.f&g||(T(t,O),it(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&Ie)!==0||(n.f&q)!==0;rn(n,s?e:!1),n=r}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}let ct=!1;function Ae(t){ct=t}let mt=!1;function xe(t){mt=t}let _=null,P=!1;function X(t){_=t}let h=null;function yt(t){h=t}let x=null;function sn(t){_!==null&&(x===null?x=[t]:x.push(t))}let A=null,R=0,k=null;function tr(t){k=t}let an=1,Nt=0,st=Nt;function Se(t){st=t}let G=!1;function fn(){return++an}function Dt(t){var c;var e=t.f;if(e&O)return!0;if(e&Y){var n=t.deps,r=(e&C)!==0;if(n!==null){var s,i,u=(e&Lt)!==0,l=r&&h!==null&&!G,a=n.length;if((u||l)&&(h===null||!(h.f&Et))){var f=t,o=f.parent;for(s=0;s<a;s++)i=n[s],(u||!((c=i==null?void 0:i.reactions)!=null&&c.includes(f)))&&(i.reactions??(i.reactions=[])).push(f);u&&(f.f^=Lt),l&&o!==null&&!(o.f&C)&&(f.f^=C)}for(s=0;s<a;s++)if(i=n[s],Dt(i)&&Ge(i),i.wv>t.wv)return!0}(!r||h!==null&&!G)&&T(t,g)}return!1}function un(t,e,n=!0){var r=t.reactions;if(r!==null&&!(x!=null&&x.includes(t)))for(var s=0;s<r.length;s++){var i=r[s];i.f&S?un(i,e,!1):e===i&&(n?T(i,O):i.f&g&&T(i,Y),it(i))}}function ln(t){var M;var e=A,n=R,r=k,s=_,i=G,u=x,l=y,a=P,f=st,o=t.f;A=null,R=0,k=null,G=(o&C)!==0&&(P||!ct||_===null),_=o&(q|Z)?null:t,x=null,jt(t.ctx),P=!1,st=++Nt,t.ac!==null&&(_e(()=>{t.ac.abort(Rt)}),t.ac=null);try{t.f|=Xt;var c=t.fn,w=c(),p=t.deps;if(A!==null){var v;if(Ht(t,R),p!==null&&R>0)for(p.length=R+A.length,v=0;v<A.length;v++)p[R+v]=A[v];else t.deps=p=A;if(!G||o&S&&t.reactions!==null)for(v=R;v<p.length;v++)((M=p[v]).reactions??(M.reactions=[])).push(t)}else p!==null&&R<p.length&&(Ht(t,R),p.length=R);if(Pt()&&k!==null&&!P&&p!==null&&!(t.f&(S|Y|O)))for(v=0;v<k.length;v++)un(k[v],t);return s!==null&&s!==t&&(Nt++,k!==null&&(r===null?r=k:r.push(...k))),t.f&nt&&(t.f^=nt),w}catch(H){return Ln(H)}finally{t.f^=Xt,A=e,R=n,k=r,_=s,G=i,x=u,jt(l),P=a,st=f}}function er(t,e){let n=e.reactions;if(n!==null){var r=wn.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&e.f&S&&(A===null||!A.includes(e))&&(T(e,Y),e.f&(C|Lt)||(e.f^=Lt),$e(e),Ht(e,0))}function Ht(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)er(t,n[r])}function bt(t){var e=t.f;if(!(e&Et)){T(t,g);var n=h,r=ct;h=t,ct=!0;try{e&ft?Xn(t):tn(t),Qe(t);var s=ln(t);t.teardown=typeof s=="function"?s:null,t.wv=an;var i;Re&&hn&&t.f&O&&t.deps}finally{ct=r,h=n}}}async function ys(){await Promise.resolve(),jn()}function xt(t){var e=t.f,n=(e&S)!==0;if(_!==null&&!P){var r=h!==null&&(h.f&Et)!==0;if(!r&&!(x!=null&&x.includes(t))){var s=_.deps;if(_.f&Xt)t.rv<Nt&&(t.rv=Nt,A===null&&s!==null&&s[R]===t?R++:A===null?A=[t]:(!G||!A.includes(t))&&A.push(t));else{(_.deps??(_.deps=[])).push(t);var i=t.reactions;i===null?t.reactions=[_]:i.includes(_)||i.push(_)}}}else if(n&&t.deps===null&&t.effects===null){var u=t,l=u.parent;l!==null&&!(l.f&C)&&(u.f^=C)}if(mt){if(K.has(t))return K.get(t);if(n){u=t;var a=u.v;return(!(u.f&g)&&u.reactions!==null||on(u))&&(a=oe(u)),K.set(u,a),a}}else n&&(u=t,Dt(u)&&Ge(u));if(t.f&nt)throw t.v;return t.v}function on(t){if(t.v===m)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(K.has(e)||e.f&S&&on(e))return!0;return!1}function cn(t){var e=P;try{return P=!0,t()}finally{P=e}}const nr=-7169;function T(t,e){t.f=t.f&nr|e}function bs(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(rt in t)ne(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&rt in n&&ne(n)}}}function ne(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{ne(t[r],e)}catch{}const n=Oe(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=yn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(t)}catch{}}}}}function _n(t,e,n){if(t==null)return e(void 0),n&&n(void 0),et;const r=cn(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const lt=[];function rr(t,e){return{subscribe:sr(t,e).subscribe}}function sr(t,e=et){let n=null;const r=new Set;function s(l){if(Le(t,l)&&(t=l,n)){const a=!lt.length;for(const f of r)f[1](),lt.push(f,t);if(a){for(let f=0;f<lt.length;f+=2)lt[f][0](lt[f+1]);lt.length=0}}}function i(l){s(l(t))}function u(l,a=et){const f=[l,a];return r.add(f),r.size===1&&(n=e(s,i)||et),l(t),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:u}}function Es(t,e,n){const r=!Array.isArray(t),s=r?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return rr(n,(u,l)=>{let a=!1;const f=[];let o=0,c=et;const w=()=>{if(o)return;c();const v=e(r?f[0]:f,u,l);i?u(v):c=typeof v=="function"?v:et},p=s.map((v,M)=>_n(v,H=>{f[M]=H,o&=~(1<<M),a&&w()},()=>{o|=1<<M}));return a=!0,w(),function(){Ne(p),c(),a=!1}})}function gs(t){return{subscribe:t.subscribe.bind(t)}}function ms(t){let e;return _n(t,n=>e=n)(),e}export{me as $,X as A,yt as B,dn as C,_ as D,h as E,hs as F,j as G,Lr as H,Ie as I,Hr as J,In as K,Yr as L,at as M,Me as N,Yt as O,ds as P,b as Q,rs as R,ws as S,Jn as T,m as U,E as V,Xr as W,_n as X,J as Y,ee as Z,$n as _,zr as a,mr as a$,kr as a0,Cr as a1,ie as a2,De as a3,cs as a4,Je as a5,rt as a6,St as a7,wr as a8,Sr as a9,Fr as aA,gn as aB,Cn as aC,Jr as aD,fe as aE,dr as aF,ns as aG,fr as aH,os as aI,Pn as aJ,ue as aK,jn as aL,ys as aM,rr as aN,Br as aO,Vr as aP,cr as aQ,Pt as aR,Ur as aS,Le as aT,Er as aU,br as aV,Tr as aW,z as aX,nn as aY,Qn as aZ,gr as a_,At as aa,Et as ab,Bn as ac,Rr as ad,xr as ae,Ar as af,Or as ag,mt as ah,_r as ai,ur as aj,V as ak,W as al,is as am,ce as an,Wt as ao,te as ap,wt as aq,jt as ar,Ln as as,be as at,qr as au,qt as av,yr as aw,gt as ax,Ce as ay,ut as az,Wr as b,Mr as b0,Zr as b1,Ir as b2,Oe as b3,yn as b4,Yn as b5,Dr as b6,ss as b7,Gn as b8,vr as b9,Re as ba,_s as bb,vs as bc,$r as bd,st as be,mn as bf,bn as bg,lr as bh,Ot as bi,hr as bj,Pr as bk,ft as bl,ae as bm,Nr as bn,as as bo,zt as bp,Gr as bq,ls as br,Qr as c,y as d,us as e,ts as f,xt as g,cn as h,or as i,Ne as j,bs as k,le as l,ms as m,et as n,Es as o,Kr as p,gs as q,jr as r,es as s,ps as t,fs as u,zn as v,sr as w,Ye as x,_e as y,de as z};
@@ -0,0 +1 @@
1
+ var B=t=>{throw TypeError(t)};var G=(t,e,s)=>e.has(t)||B("Cannot "+s);var n=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),h=(t,e,s,r)=>(G(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s),g=(t,e,s)=>(G(t,e,"access private method"),s);import{aO as se,aN as V,aP as fe}from"./Frwd2CjB.js";var re=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},I=typeof window>"u"||"Deno"in globalThis;function J(){}function Me(t,e){return typeof t=="function"?t(e):t}function de(t){return typeof t=="number"&&t>=0&&t!==1/0}function ye(t,e){return Math.max(t+(e||0)-Date.now(),0)}function xe(t,e){return typeof t=="function"?t(e):t}function pe(t,e){return typeof t=="function"?t(e):t}function Ke(t,e){const{type:s="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:a}=t;if(l){if(r){if(e.queryHash!==ve(l,e.options))return!1}else if(!z(e.queryKey,l))return!1}if(s!=="all"){const f=e.isActive();if(s==="active"&&!f||s==="inactive"&&f)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||i&&i!==e.state.fetchStatus||o&&!o(e))}function Le(t,e){const{exact:s,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(s){if(H(e.options.mutationKey)!==H(o))return!1}else if(!z(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function ve(t,e){return((e==null?void 0:e.queryKeyHashFn)||H)(t)}function H(t){return JSON.stringify(t,(e,s)=>$(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function z(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(s=>!z(t[s],e[s])):!1}function ie(t,e){if(t===e)return t;const s=W(t)&&W(e);if(s||$(t)&&$(e)){const r=s?t:Object.keys(t),i=r.length,o=s?e:Object.keys(e),l=o.length,a=s?[]:{};let f=0;for(let w=0;w<l;w++){const y=s?w:o[w];(!s&&r.includes(y)||s)&&t[y]===void 0&&e[y]===void 0?(a[y]=void 0,f++):(a[y]=ie(t[y],e[y]),a[y]===t[y]&&t[y]!==void 0&&f++)}return i===l&&f===i?t:a}return e}function ke(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function W(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function $(t){if(!X(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!X(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function X(t){return Object.prototype.toString.call(t)==="[object Object]"}function be(t){return new Promise(e=>{setTimeout(e,t)})}function me(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==!1?ie(t,e):e}function Ie(t,e,s=0){const r=[...t,e];return s&&r.length>s?r.slice(1):r}function Qe(t,e,s=0){const r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var ne=Symbol();function Se(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===ne?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var q,j,T,Y,we=(Y=class extends re{constructor(){super();p(this,q);p(this,j);p(this,T);h(this,T,e=>{if(!I&&window.addEventListener){const s=()=>e();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){n(this,j)||this.setEventListener(n(this,T))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,j))==null||e.call(this),h(this,j,void 0))}setEventListener(e){var s;h(this,T,e),(s=n(this,j))==null||s.call(this),h(this,j,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){n(this,q)!==e&&(h(this,q,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(s=>{s(e)})}isFocused(){var e;return typeof n(this,q)=="boolean"?n(this,q):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},q=new WeakMap,j=new WeakMap,T=new WeakMap,Y),Fe=new we,A,O,M,Z,Ce=(Z=class extends re{constructor(){super();p(this,A,!0);p(this,O);p(this,M);h(this,M,e=>{if(!I&&window.addEventListener){const s=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){n(this,O)||this.setEventListener(n(this,M))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,O))==null||e.call(this),h(this,O,void 0))}setEventListener(e){var s;h(this,M,e),(s=n(this,O))==null||s.call(this),h(this,O,e(this.setOnline.bind(this)))}setOnline(e){n(this,A)!==e&&(h(this,A,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return n(this,A)}},A=new WeakMap,O=new WeakMap,M=new WeakMap,Z),ae=new Ce;function ge(){let t,e;const s=new Promise((i,o)=>{t=i,e=o});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},s.reject=i=>{r({status:"rejected",reason:i}),e(i)},s}function Re(t){return Math.min(1e3*2**t,3e4)}function ue(t){return(t??"online")==="online"?ae.isOnline():!0}var oe=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function N(t){return t instanceof oe}function Ee(t){let e=!1,s=0,r=!1,i;const o=ge(),l=c=>{var b;r||(d(new oe(c)),(b=t.abort)==null||b.call(t))},a=()=>{e=!0},f=()=>{e=!1},w=()=>Fe.isFocused()&&(t.networkMode==="always"||ae.isOnline())&&t.canRun(),y=()=>ue(t.networkMode)&&t.canRun(),u=c=>{var b;r||(r=!0,(b=t.onSuccess)==null||b.call(t,c),i==null||i(),o.resolve(c))},d=c=>{var b;r||(r=!0,(b=t.onError)==null||b.call(t,c),i==null||i(),o.reject(c))},E=()=>new Promise(c=>{var b;i=C=>{(r||w())&&c(C)},(b=t.onPause)==null||b.call(t)}).then(()=>{var c;i=void 0,r||(c=t.onContinue)==null||c.call(t)}),F=()=>{if(r)return;let c;const b=s===0?t.initialPromise:void 0;try{c=b??t.fn()}catch(C){c=Promise.reject(C)}Promise.resolve(c).then(u).catch(C=>{var _;if(r)return;const L=t.retry??(I?0:3),Q=t.retryDelay??Re,he=typeof Q=="function"?Q(s,C):Q,le=L===!0||typeof L=="number"&&s<L||typeof L=="function"&&L(s,C);if(e||!le){d(C);return}s++,(_=t.onFail)==null||_.call(t,s,C),be(he).then(()=>w()?void 0:E()).then(()=>{e?d(C):F()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:f,canStart:y,start:()=>(y()?F():E().then(F),o)}}function je(){let t=[],e=0,s=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{e?t.push(a):i(()=>{s(a)})},l=()=>{const a=t;t=[],a.length&&i(()=>{r(()=>{a.forEach(f=>{s(f)})})})};return{batch:a=>{let f;e++;try{f=a()}finally{e--,e||l()}return f},batchCalls:a=>(...f)=>{o(()=>{a(...f)})},schedule:o,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Oe=je(),U,ee,qe=(ee=class{constructor(){p(this,U)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),de(this.gcTime)&&h(this,U,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(I?1/0:5*60*1e3))}clearGcTimeout(){n(this,U)&&(clearTimeout(n(this,U)),h(this,U,void 0))}},U=new WeakMap,ee),x,K,m,P,v,k,D,S,R,te,Ge=(te=class extends qe{constructor(e){super();p(this,S);p(this,x);p(this,K);p(this,m);p(this,P);p(this,v);p(this,k);p(this,D);h(this,D,!1),h(this,k,e.defaultOptions),this.setOptions(e.options),this.observers=[],h(this,P,e.client),h(this,m,n(this,P).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,h(this,x,Pe(this.options)),this.state=e.state??n(this,x),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=n(this,v))==null?void 0:e.promise}setOptions(e){this.options={...n(this,k),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&n(this,m).remove(this)}setData(e,s){const r=me(this.state.data,e,this.options);return g(this,S,R).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(e,s){g(this,S,R).call(this,{type:"setState",state:e,setStateOptions:s})}cancel(e){var r,i;const s=(r=n(this,v))==null?void 0:r.promise;return(i=n(this,v))==null||i.cancel(e),s?s.then(J).catch(J):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(n(this,x))}isActive(){return this.observers.some(e=>pe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ne||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!ye(this.state.dataUpdatedAt,e)}onFocus(){var s;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(s=n(this,v))==null||s.continue()}onOnline(){var s;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(s=n(this,v))==null||s.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),n(this,m).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(s=>s!==e),this.observers.length||(n(this,v)&&(n(this,D)?n(this,v).cancel({revert:!0}):n(this,v).cancelRetry()),this.scheduleGc()),n(this,m).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||g(this,S,R).call(this,{type:"invalidate"})}fetch(e,s){var f,w,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(n(this,v))return n(this,v).continueRetry(),n(this,v).promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,i=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(h(this,D,!0),r.signal)})},o=()=>{const u=Se(this.options,s),d={client:n(this,P),queryKey:this.queryKey,meta:this.meta};return i(d),h(this,D,!1),this.options.persister?this.options.persister(u,d,this):u(d)},l={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:n(this,P),state:this.state,fetchFn:o};i(l),(f=this.options.behavior)==null||f.onFetch(l,this),h(this,K,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=l.fetchOptions)==null?void 0:w.meta))&&g(this,S,R).call(this,{type:"fetch",meta:(y=l.fetchOptions)==null?void 0:y.meta});const a=u=>{var d,E,F,c;N(u)&&u.silent||g(this,S,R).call(this,{type:"error",error:u}),N(u)||((E=(d=n(this,m).config).onError)==null||E.call(d,u,this),(c=(F=n(this,m).config).onSettled)==null||c.call(F,this.state.data,u,this)),this.scheduleGc()};return h(this,v,Ee({initialPromise:s==null?void 0:s.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:u=>{var d,E,F,c;if(u===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(b){a(b);return}(E=(d=n(this,m).config).onSuccess)==null||E.call(d,u,this),(c=(F=n(this,m).config).onSettled)==null||c.call(F,u,this.state.error,this),this.scheduleGc()},onError:a,onFail:(u,d)=>{g(this,S,R).call(this,{type:"failed",failureCount:u,error:d})},onPause:()=>{g(this,S,R).call(this,{type:"pause"})},onContinue:()=>{g(this,S,R).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),n(this,v).start()}},x=new WeakMap,K=new WeakMap,m=new WeakMap,P=new WeakMap,v=new WeakMap,k=new WeakMap,D=new WeakMap,S=new WeakSet,R=function(e){const s=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ue(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return N(i)&&i.revert&&n(this,K)?{...n(this,K),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=s(this.state),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),n(this,m).notify({query:this,type:"updated",action:e})})},te);function Ue(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ue(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Pe(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,r=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}const ce="$$_queryClient",Ne=()=>{const t=se(ce);if(!t)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return t},He=t=>{fe(ce,t)},De="$$_isRestoring",$e=()=>{try{const t=se(De);return t||V(!1)}catch{return V(!1)}};export{He as A,Ge as Q,qe as R,re as S,xe as a,de as b,Ue as c,me as d,Oe as e,Fe as f,$e as g,Ne as h,I as i,Ee as j,Se as k,Qe as l,Ie as m,J as n,ve as o,ge as p,Ke as q,pe as r,ke as s,ye as t,Le as u,ae as v,Me as w,H as x,z as y,ne as z};
@@ -0,0 +1,2 @@
1
+ var Re=Object.defineProperty;var ae=t=>{throw TypeError(t)};var ke=(t,e,i)=>e in t?Re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var oe=(t,e,i)=>ke(t,typeof e!="symbol"?e+"":e,i),J=(t,e,i)=>e.has(t)||ae("Cannot "+i);var s=(t,e,i)=>(J(t,e,"read from private field"),i?i.call(t):e.get(t)),o=(t,e,i)=>e.has(t)?ae("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),n=(t,e,i,r)=>(J(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i),g=(t,e,i)=>(J(t,e,"access private method"),i);import{am as Ne,g as _e,an as pe,a5 as De,h as Se,ao as le,x as Q,V as w,G as T,ap as Fe,E as W,F as ve,H as Ce,a3 as U,K as Ie,P as F,aq as H,T as X,B as ue,A as B,ar as he,as as Oe,D as de,d as ge,at as Le,al as Z,M,au as Ve,L as Me,av as fe,aw as Pe,I as xe,ax as He,ay as Be,az as G,aA as Ye,O as ye,aB as We,aC as me,N as V,Z as Ee,aD as ee,aE as te,aF as je,aG as qe,aH as Ge,aI as ze,p as Ke,aJ as Ue,aK as $e,a as Je}from"./Frwd2CjB.js";import{a as Xe,r as ce,h as Y}from"./Dug7Bq1S.js";import{d as Ze}from"./CiaNZCBa.js";function Qe(t){let e=0,i=pe(0),r;return()=>{Ne()&&(_e(i),De(()=>(e===0&&(r=Se(()=>t(()=>le(i)))),e+=1,()=>{Q(()=>{e-=1,e===0&&(r==null||r(),r=void 0,le(i))})})))}}var et=xe|He|Be;function tt(t,e,i){new st(t,e,i)}var y,f,x,m,C,E,v,h,b,A,I,R,O,k,z,K,l,be,Te,j,q,se;class st{constructor(e,i,r){o(this,l);oe(this,"parent");o(this,y,!1);o(this,f);o(this,x,T?w:null);o(this,m);o(this,C);o(this,E);o(this,v,null);o(this,h,null);o(this,b,null);o(this,A,null);o(this,I,0);o(this,R,0);o(this,O,!1);o(this,k,null);o(this,z,()=>{s(this,k)&&Fe(s(this,k),s(this,I))});o(this,K,Qe(()=>(n(this,k,pe(s(this,I))),()=>{n(this,k,null)})));n(this,f,e),n(this,m,i),n(this,C,r),this.parent=W.b,n(this,y,!!s(this,m).pending),n(this,E,ve(()=>{if(W.b=this,T){const u=s(this,x);Ce(),u.nodeType===U&&u.data===Ie?g(this,l,Te).call(this):g(this,l,be).call(this)}else{try{n(this,v,F(()=>r(s(this,f))))}catch(u){this.error(u)}s(this,R)>0?g(this,l,q).call(this):n(this,y,!1)}},et)),T&&n(this,f,w)}is_pending(){return s(this,y)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,m).pending}update_pending_count(e){g(this,l,se).call(this,e),n(this,I,s(this,I)+e),Le.add(s(this,z))}get_effect_pending(){return s(this,K).call(this),_e(s(this,k))}error(e){var i=s(this,m).onerror;let r=s(this,m).failed;if(s(this,O)||!i&&!r)throw e;s(this,v)&&(Z(s(this,v)),n(this,v,null)),s(this,h)&&(Z(s(this,h)),n(this,h,null)),s(this,b)&&(Z(s(this,b)),n(this,b,null)),T&&(M(s(this,x)),Ve(),M(Me()));var u=!1,a=!1;const c=()=>{if(u){Ye();return}u=!0,a&&Pe(),H.ensure(),n(this,I,0),s(this,b)!==null&&X(s(this,b),()=>{n(this,b,null)}),n(this,y,this.has_pending_snippet()),n(this,v,g(this,l,j).call(this,()=>(n(this,O,!1),F(()=>s(this,C).call(this,s(this,f)))))),s(this,R)>0?g(this,l,q).call(this):n(this,y,!1)};var N=de;try{B(null),a=!0,i==null||i(e,c),a=!1}catch(D){fe(D,s(this,E)&&s(this,E).parent)}finally{B(N)}r&&Q(()=>{n(this,b,g(this,l,j).call(this,()=>{n(this,O,!0);try{return F(()=>{r(s(this,f),()=>e,()=>c)})}catch(D){return fe(D,s(this,E).parent),null}finally{n(this,O,!1)}}))})}}y=new WeakMap,f=new WeakMap,x=new WeakMap,m=new WeakMap,C=new WeakMap,E=new WeakMap,v=new WeakMap,h=new WeakMap,b=new WeakMap,A=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,k=new WeakMap,z=new WeakMap,K=new WeakMap,l=new WeakSet,be=function(){try{n(this,v,F(()=>s(this,C).call(this,s(this,f))))}catch(e){this.error(e)}n(this,y,!1)},Te=function(){const e=s(this,m).pending;e&&(n(this,h,F(()=>e(s(this,f)))),H.enqueue(()=>{n(this,v,g(this,l,j).call(this,()=>(H.ensure(),F(()=>s(this,C).call(this,s(this,f)))))),s(this,R)>0?g(this,l,q).call(this):(X(s(this,h),()=>{n(this,h,null)}),n(this,y,!1))}))},j=function(e){var i=W,r=de,u=ge;ue(s(this,E)),B(s(this,E)),he(s(this,E).ctx);try{return e()}catch(a){return Oe(a),null}finally{ue(i),B(r),he(u)}},q=function(){const e=s(this,m).pending;s(this,v)!==null&&(n(this,A,document.createDocumentFragment()),it(s(this,v),s(this,A))),s(this,h)===null&&n(this,h,F(()=>e(s(this,f))))},se=function(e){var i;if(!this.has_pending_snippet()){this.parent&&g(i=this.parent,l,se).call(i,e);return}n(this,R,s(this,R)+e),s(this,R)===0&&(n(this,y,!1),s(this,h)&&X(s(this,h),()=>{n(this,h,null)}),s(this,A)&&(s(this,f).before(s(this,A)),n(this,A,null)),Q(()=>{H.ensure().flush()}))};function it(t,e){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var u=i===r?null:G(i);e.append(i),i=u}}function pt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const nt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vt(t){return nt.includes(t)}const rt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function gt(t){return t=t.toLowerCase(),rt[t]??t}const at=["touchstart","touchmove"];function ot(t){return at.includes(t)}const lt=["textarea","script","style","title"];function yt(t){return lt.includes(t)}let p;function ut(){p=void 0}function mt(t){let e=null,i=T;var r;if(T){for(e=w,p===void 0&&(p=Ee(document.head));p!==null&&(p.nodeType!==U||p.data!==me);)p=G(p);p===null?V(!1):p=M(G(p))}T||(r=document.head.appendChild(ye()));try{ve(()=>t(r),We)}finally{i&&(V(!0),p=w,M(e))}}let ie=!0;function Et(t){ie=t}function bt(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function ht(t,e){return we(t,e)}function Tt(t,e){ee(),e.intro=e.intro??!1;const i=e.target,r=T,u=w;try{for(var a=Ee(i);a&&(a.nodeType!==U||a.data!==me);)a=G(a);if(!a)throw te;V(!0),M(a);const c=we(t,{...e,anchor:a});return V(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
2
+ `).some(N=>N.startsWith("https://svelte.dev/e/")))throw c;return c!==te&&console.warn("Failed to hydrate: ",c),e.recover===!1&&je(),ee(),qe(i),V(!1),ht(t,e)}finally{V(r),M(u),ut()}}const L=new Map;function we(t,{target:e,anchor:i,props:r={},events:u,context:a,intro:c=!0}){ee();var N=new Set,D=S=>{for(var _=0;_<S.length;_++){var d=S[_];if(!N.has(d)){N.add(d);var P=ot(d);e.addEventListener(d,Y,{passive:P});var re=L.get(d);re===void 0?(document.addEventListener(d,Y,{passive:P}),L.set(d,1)):L.set(d,re+1)}}};D(Ge(Xe)),ce.add(D);var $=void 0,Ae=ze(()=>{var S=i??e.appendChild(ye());return tt(S,{pending:()=>{}},_=>{if(a){Ke({});var d=ge;d.c=a}if(u&&(r.$$events=u),T&&Ze(_,null),ie=c,$=t(_,r)||{},ie=!0,T&&(W.nodes_end=w,w===null||w.nodeType!==U||w.data!==Ue))throw $e(),te;a&&Je()}),()=>{var P;for(var _ of N){e.removeEventListener(_,Y);var d=L.get(_);--d===0?(document.removeEventListener(_,Y),L.delete(_)):L.set(_,d)}ce.delete(D),S!==i&&((P=S.parentNode)==null||P.removeChild(S))}});return ne.set($,Ae),$}let ne=new WeakMap;function wt(t,e){const i=ne.get(t);return i?(ne.delete(t),i(e)):Promise.resolve()}export{vt as a,mt as b,Qe as c,yt as d,Et as e,ie as f,Tt as h,pt as i,ht as m,gt as n,bt as s,wt as u};
@@ -0,0 +1 @@
1
+ import{a as I}from"./D5w4xp5l.js";import{w as s,m as g}from"./Frwd2CjB.js";function d(n,o){const i=s((()=>{if(typeof sessionStorage>"u")return o;try{const a=sessionStorage.getItem(n);if(a)return JSON.parse(a)}catch(a){console.warn(`Failed to read ${n} from sessionStorage`,a)}return o})());return i.subscribe(a=>{if(!(typeof sessionStorage>"u"))try{sessionStorage.setItem(n,JSON.stringify(a))}catch(h){console.warn(`Failed to write ${n} to sessionStorage`,h)}}),i}const r=s([]),B=()=>({reversibleActions:r,addReversibleAction:n=>{r.update(o=>[n,...o].slice(0,50))},executeReversibleAction:async n=>{const o=g(r),l=o.find(i=>i.id===n);if(l){await l.execute();const i=o.findIndex(a=>a.id===n);r.update(a=>a.slice(i+1))}},clearReversibleActions:()=>{r.set([])},clearReversibleActionsByGroupId:n=>{r.update(o=>o.filter(l=>l.groupId!==n))},hasReversibleActions:()=>g(r).length>0}),b=s("samples"),u=s(new Set),p=s(new Set),S=s(new Set),w=s(0),v=s(0),y=s(!1),C=s(void 0),f=s(null),_=d("lightlyStudio_sampleSize",{width:200,height:200}),T=d("lightlyStudio_metadata_bounds",{}),x=d("lightlyStudio_metadata_values",{}),M=d("lightlyStudio_metadata_info",[]),G=s(void 0),V=s([]),m=s({}),z=s(!1),D=n=>{z.set(n)},R=s(!1),N=()=>{const n=B();return{tags:G,textEmbedding:C,setTextEmbedding:e=>{C.set(e)},selectedSampleIds:u,selectedSampleAnnotationCropIds:p,selectedAnnotationFilterIds:S,annotationsTotalCount:w,samplesTotalCount:v,datasetVersions:m,hideAnnotations:y,classifiers:V,classifierSamples:f,setClassifierSamples:e=>{f.set(e)},clearClassifierSamples:()=>{f.set(null)},metadataBounds:T,metadataValues:x,metadataInfo:M,updateMetadataValues:e=>{x.set(e)},updateMetadataBounds:e=>{T.set(e)},updateMetadataInfo:e=>{M.set(e)},setHideAnnotations:e=>{y.set(e)},getDatasetVersion:async e=>{const t=g(m);if(t[e])return t[e];const{data:c}=await I({path:{dataset_id:e}});if(c!=null&&c.created_at){const A=new Date(c.created_at).getTime().toString();return m.update(E=>({...E,[e]:A})),A}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:b,setLastGridType:e=>{b.set(e)},setSelectedAnnotationFilterIds:e=>{S.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedAnnotationFilterIds:()=>{S.update(e=>(e.clear(),e))},setAnnotationsTotalCount:e=>{w.set(e)},setSamplesTotalCount:e=>{v.set(e)},sampleSize:_,updateSampleSize:e=>{_.set({width:e,height:e})},isEditingMode:z,setIsEditingMode:D,showPlot:R,setShowPlot:e=>{R.set(e)},...n}};export{d as a,N as u};
@@ -0,0 +1,20 @@
1
+ import"./CWj6FrbW.js";import{p as n,f as l,n as m,a as i}from"./Frwd2CjB.js";import{c as d,a as c}from"./CiaNZCBa.js";import{s as f}from"./DzX_yyqb.js";import{s as h,r as u}from"./Dafy4oEQ.js";import{I as $}from"./Cqo0Vpvt.js";function N(t,a){n(a,!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 r=u(a,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}]];$(t,h({name:"component"},()=>r,{get iconNode(){return s},children:(p,z)=>{var o=d(),e=l(o);f(e,()=>a.children??m),c(p,o)},$$slots:{default:!0}})),i()}export{N as C};