lightly-studio 0.3.3__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.
- lightly_studio/api/app.py +2 -0
- lightly_studio/api/routes/api/caption.py +30 -0
- lightly_studio/api/routes/api/embeddings2d.py +36 -4
- lightly_studio/api/routes/api/metadata.py +57 -1
- lightly_studio/core/add_samples.py +138 -0
- lightly_studio/core/dataset.py +143 -16
- lightly_studio/dataset/loader.py +2 -8
- lightly_studio/db_manager.py +10 -4
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.B3oFNb6O.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/2.CkOblLn7.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.CIbricz7.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.7Ma7YdVg.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/{useFeatureFlags.CV-KWLNP.css → _layout.CefECEWA.css} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.2jKMtOWG.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/-DXuGN29.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Cs1XmhiF.js → B7302SU7.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BeWf8-vJ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bqz7dyEC.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C1FmrZbK.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BdfTHw61.js → CSCQddQS.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CZGpyrcA.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CfQ4mGwl.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CiaNZCBa.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cqo0Vpvt.js +417 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cy4fgWTG.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D5w4xp5l.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DD63uD-T.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DQ8aZ1o-.js +3 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{keKYsoph.js → DSxvnAMh.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D_JuJOO3.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D_ynJAfY.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dafy4oEQ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BfHVnyNT.js → Dj4O-5se.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DmjAI-UV.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dug7Bq1S.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dv5BSBQG.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DzBTnFhV.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DzX_yyqb.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Frwd2CjB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H4l0JFh9.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H60ATh8g.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{6t3IJ0vQ.js → qIv1kPyv.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/sLqs1uaK.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/u-it74zV.js +96 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BPc0HQPq.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.SNvc2nrm.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.5jT7P06o.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1.Cdy-7S5q.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.C_uoESTX.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.DcO8wIAc.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{2.C8HLK8mj.js → 2.BIldfkxL.js} +268 -113
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.CLvg3QcJ.js → 3.BC9z_TWM.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.BQhDtXUI.js → 4.D8X_Ch5n.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.CAXhxJu6.js +39 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{6.uBV1Lhat.js → 6.DRA5Ru_2.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.WVBsruHQ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.BuKUrCEN.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.CUIn1yCR.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
- lightly_studio/dist_lightly_studio_view_app/index.html +15 -14
- lightly_studio/examples/example.py +4 -0
- lightly_studio/examples/example_coco.py +4 -0
- lightly_studio/examples/example_coco_caption.py +24 -0
- lightly_studio/examples/example_metadata.py +4 -1
- lightly_studio/examples/example_selection.py +4 -0
- lightly_studio/examples/example_split_work.py +4 -0
- lightly_studio/examples/example_yolo.py +4 -0
- lightly_studio/export/export_dataset.py +11 -3
- lightly_studio/metadata/compute_typicality.py +1 -1
- lightly_studio/models/caption.py +73 -0
- lightly_studio/models/dataset.py +1 -2
- lightly_studio/models/metadata.py +1 -1
- lightly_studio/models/sample.py +2 -2
- lightly_studio/resolvers/caption_resolver.py +80 -0
- lightly_studio/resolvers/dataset_resolver.py +4 -7
- lightly_studio/resolvers/metadata_resolver/__init__.py +2 -2
- lightly_studio/resolvers/metadata_resolver/sample/__init__.py +3 -3
- lightly_studio/resolvers/metadata_resolver/sample/bulk_update_metadata.py +46 -0
- lightly_studio/resolvers/samples_filter.py +18 -10
- lightly_studio/type_definitions.py +2 -0
- {lightly_studio-0.3.3.dist-info → lightly_studio-0.3.4.dist-info}/METADATA +86 -21
- {lightly_studio-0.3.3.dist-info → lightly_studio-0.3.4.dist-info}/RECORD +83 -77
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.CA_CXIBb.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.DS78jgNY.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/index.BVs_sZj9.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.D487hwJk.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/8NsknIT2.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BND_-4Kp.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BjkP1AHA.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BuuNVL9G.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BzKGpnl4.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CCx7Ho51.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CH6P3X75.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CR2upx_Q.js +0 -4
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CWPZrTTJ.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CwPowJfP.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CxFKfZ9T.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cxevwdid.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D4whDBUi.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D6r9vr07.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DA6bFLPR.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DEgUu98i.js +0 -3
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DGTPl6Gk.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DKGxBSlK.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DQXoLcsF.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DQe_kdRt.js +0 -92
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DcY4jgG3.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H7C68rOM.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/RmD8FzRo.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/V-MnMC1X.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BVr6DYqP.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.u7zsVvqp.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.Da2agmdd.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1.B11tVRJV.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.l30Zud4h.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.CgKPGcAP.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.-6XqWX5G.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.BXsgoQZh.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.BkbcnUs8.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.Bkrv-Vww.js +0 -1
- lightly_studio/resolvers/metadata_resolver/sample/bulk_set_metadata.py +0 -48
- {lightly_studio-0.3.3.dist-info → lightly_studio-0.3.4.dist-info}/WHEEL +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
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{aG as mt,u as Gt,b as he,i as _t,w as De,a7 as C,g as N,J as O,aw as Mt}from"./CH6P3X75.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):Gt(()=>{const t=_t(e);if(typeof t=="function")return t})}function zn(e){he===null&&mt(),ge(()=>()=>_t(e))}function Kt(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}new URL("sveltekit-internal://");function Wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Yt(e){return e.split("%25").map(decodeURI).join("%25")}function Jt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Te({href:e}){return e.split("#")[0]}function zt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Xt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Zt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Qt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&Y.delete(Be(e)),Qt(e,t));const Y=new Map;function en(e,t){const n=Be(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&Y.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Zt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function tn(e,t,n){if(Y.size>0){const r=Be(e,n),a=Y.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);Y.delete(r)}}return window.fetch(t,n)}function Be(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Xt(...a)}"]`}return r}const nn=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function an(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${on(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Pe(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const h=nn.exec(c),[,u,_,f,m]=h;return t.push({name:f,matcher:m,optional:!!u,rest:!!_,chained:_?l===1&&i[0]==="":!1}),_?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return Pe(c)}).join("")}).join("")}/?$`),params:t}}function rn(e){return!/^\([^)]+\)$/.test(e)}function on(e){return e.slice(1).split("/").filter(rn)}function sn(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(h=>h).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const h=t[o+1],u=a[o+1];h&&!h.rest&&h.optional&&u&&c.chained&&(i=0),!h&&!u&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function Pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function cn({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,h]])=>{const{pattern:u,params:_}=an(o),f={id:o,exec:m=>{const p=u.exec(m);if(p)return sn(p,_,r)},errors:[1,...h||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function wt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function nt(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var ut;const P=((ut=globalThis.__sveltekit_1gqf9ui)==null?void 0:ut.base)??"";var dt;const ln=((dt=globalThis.__sveltekit_1gqf9ui)==null?void 0:dt.assets)??P,fn="1759479212790",yt="sveltekit:snapshot",vt="sveltekit:scroll",bt="sveltekit:states",un="sveltekit:pageurl",G="sveltekit:history",z="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 Ge(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 Me,je,we,j,$e,A;const ye=[],ve=[];let L=null;const de=new Map,He=new Set,Cn=new Set,M=new Set;let y={branch:[],error:null,url:null},Ke=!1,be=!1,it=!0,Q=!1,W=!1,Lt=!1,We=!1,Ye,E,T,$;const J=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)),Me=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[G],T=(o=history.state)==null?void 0:o[z],E||(E=T=Date.now(),history.replaceState({...history.state,[G]:E,[z]:T},""));const r=B[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Gn($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(),Ye.$set(n.props),It(n.props.page)}}function Tt(){ye.length=0,We=!1}function Pt(e){ve.some(t=>t==null?void 0:t.snapshot)&&(Z[e]=ve.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function xt(e){var t;(t=Z[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ve[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ct(){Ge(E),nt(vt,B),Pt(T),nt(yt,Z)}async function Re(e,t,n,r){return pe({type:"goto",url:kt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(We=!0),t.invalidate&&t.invalidate.forEach(Dt)}})}async function On(e){if(e.id!==(L==null?void 0:L.id)){const t={};J.add(t),L={id:e.id,token:t,promise:Xe({...e,preload:t}).then(n=>(J.delete(t),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Ne(e){var n;const t=(n=await ue(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].map(r=>r==null?void 0:r[1]()))}function Ct(e,t,n){var s;y=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(R,e.props.page),Ye=new A.root({target:t,props:{...e.props,stores:D,components:ve},hydrate:n,sync:!1}),xt(T);const a={from:null,to:{params:y.params,route:{id:((s=y.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a)),be=!0}function ke({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(P&&(e.pathname===P||e.pathname===P+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);e.pathname=Wt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:An(n).map(f=>f.node.component),page:Ze(R)}};i!==void 0&&(c.props.form=i);let l={},h=!R,u=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const m=n[f],p=y.branch[f];(m==null?void 0:m.data)!==(p==null?void 0:p.data)&&(h=!0),m&&(l={...l,...m.data},h&&(c.props[`data_${u}`]=l),u+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==R.form||h)&&(c.props.page={error:a,params:t,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:h?l:R.data}),c}async function Je({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:zt(n,()=>{o&&(c.url=!0)},p=>{o&&c.search_params.add(p)},A.hash),async fetch(p,d){p instanceof Request&&(d={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:[...p.headers].length?p.headers:void 0,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...d});const{resolved:v,promise:I}=Nt(p,d,n);return o&&f(v.href),I},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),t()},untrack(p){o=!1;try{return p()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=l.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Nt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=be?tn(r,a.href,t):en(r,t);return{resolved:a,promise:s}}function lt(e,t,n,r,a,s){if(We)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ye.some(o=>o(new URL(i))))return!0;return!1}function ze(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 J.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 J.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 Je({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:ze(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(J.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 Je({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:ze(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 Me){const s=a.exec(r);if(s)return{id:Ae(e),invalidating:t,route:a,params:Jt(s),url:e}}}}function Fn(e){return Yt(A.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(P.length))||"/"}function Ae(e){return(A.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ot({url:e,type:t,intent:n,delta:r}){let a=!1;const s=Bt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||He.forEach(o=>o(i)),a?null:s}async function pe({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=st,block:h=st}){const u=$;$=c;const _=await ue(t,!1),f=Ot({url:t,type:e,delta:n==null?void 0:n.delta,intent:_});if(!f){h(),$===c&&($=u);return}const m=E,p=T;l(),Q=!0,be&&D.navigating.set(X.current=f.navigation);let d=_&&await Xe(_);if(!d){if(Ee(t,P,A.hash))return await K(t);d=await jt(t,{id:null},await H(new Fe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(_==null?void 0:_.url)||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(d.type==="redirect")if(o>=20)d=await Ie({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Re(new URL(d.location,t).href,{},o+1,c),!1;else d.props.page.status>=400&&await D.updated.check()&&(await Ut(),await K(t));if(Tt(),Ge(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={[G]:E+=g,[z]: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=>{M.delete(b)})};g.push(w),g.forEach(b=>{M.add(b)})}Ye.$set(d.props),It(d.props.page),Lt=!0}else Ct(d,$e,!1);const{activeElement:v}=document;await Mt();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&&Mn(),it=!0,d.props.page&&Object.assign(R,d.props.page),Q=!1,e==="popstate"&&xt(T),f.fulfil(void 0),M.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))}}M.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(M,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(W=!0,Ge(E),e(a),!c.replace_state)return;W=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await pe({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(Ee(o,P,!1))return;const c=n.target,l=me(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const h=new FormData(c),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(h).toString(),pe({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[G]){const a=n.state[G];if($={},a===E)return;const s=B[a],i=n.state[bt]??{},o=new URL(n.state[un]??location.href),c=n.state[z],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(!W){const a=new URL(location.href);e(a),A.hash&&location.reload()}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[G]:++E,[z]: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 Gn(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=Me.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)),Je({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:ze(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 Mn(){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,zn as d,ta as e,Bn as g,ra as i,Xn as l,ge as o,R as p,D as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as S,o as D,R as M,q as _,H as V,S as T,A as f,z as v,F as u,N as I,V as w,W as g,v as O,X as P,Y as H,Z as F,_ as W,a0 as Y,a1 as j,C as z,p as X,b as $,P as q,a as x}from"./CH6P3X75.js";import{a as B,r as N,h as y}from"./D4whDBUi.js";import{b as G}from"./RmD8FzRo.js";function oe(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const U=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function se(e){return U.includes(e)}const Z={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 ie(e){return e=e.toLowerCase(),Z[e]??e}const J=["touchstart","touchmove"];function K(e){return J.includes(e)}const Q=["textarea","script","style","title"];function de(e){return Q.includes(e)}let r;function ee(){r=void 0}function ue(e){let t=null,a=_;var d;if(_){for(t=u,r===void 0&&(r=I(document.head));r!==null&&(r.nodeType!==8||r.data!==V);)r=T(r);r===null?f(!1):r=v(T(r))}_||(d=document.head.appendChild(S()));try{D(()=>e(d),M)}finally{a&&(f(!0),r=u,v(t))}}let A=!0;function le(e){A=e}function ce(e,t){var a=t==null?"":typeof t=="object"?t+"":t;a!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=a,e.nodeValue=a+"")}function te(e,t){return L(e,t)}function fe(e,t){w(),t.intro=t.intro??!1;const a=t.target,d=_,p=u;try{for(var n=I(a);n&&(n.nodeType!==8||n.data!==V);)n=T(n);if(!n)throw g;f(!0),v(n),O();const l=L(e,{...t,anchor:n});if(u===null||u.nodeType!==8||u.data!==P)throw H(),g;return f(!1),l}catch(l){if(l===g)return t.recover===!1&&F(),w(),W(a),f(!1),te(e,t);throw l}finally{f(d),v(p),ee()}}const c=new Map;function L(e,{target:t,anchor:a,props:d={},events:p,context:n,intro:l=!0}){w();var m=new Set,E=i=>{for(var o=0;o<i.length;o++){var s=i[o];if(!m.has(s)){m.add(s);var h=K(s);t.addEventListener(s,y,{passive:h});var k=c.get(s);k===void 0?(document.addEventListener(s,y,{passive:h}),c.set(s,1)):c.set(s,k+1)}}};E(Y(B)),N.add(E);var b=void 0,C=j(()=>{var i=a??t.appendChild(S());return z(()=>{if(n){X({});var o=$;o.c=n}p&&(d.$$events=p),_&&G(i,null),A=l,b=e(i,d)||{},A=!0,_&&(q.nodes_end=u),n&&x()}),()=>{var h;for(var o of m){t.removeEventListener(o,y);var s=c.get(o);--s===0?(document.removeEventListener(o,y),c.delete(o)):c.set(o,s)}N.delete(E),i!==a&&((h=i.parentNode)==null||h.removeChild(i))}});return R.set(b,C),b}let R=new WeakMap;function _e(e,t){const a=R.get(e);return a?(R.delete(e),a(t)):Promise.resolve()}export{ue as a,le as b,oe as c,se as d,A as e,fe as h,de as i,te as m,ie as n,ce as s,_e as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as ie,c as b,g as s,d as m,r as _,t as ae,a as ne,J as M,a7 as q,u as te,f as se,s as Q}from"./CH6P3X75.js";import{n as $e,a as o,t as x,c as ve,d as ue}from"./RmD8FzRo.js";import{a as f,s as ge,i as H}from"./DA6bFLPR.js";import{i as et,j as tt,k as st,l as B,n as it,c as at,s as nt,o as lt,p as ot,q as rt,t as dt,v as ct,w as mt,G as ft,L as vt,S as ut,x as gt,y as _t}from"./DQe_kdRt.js";import{p as _e,r as pt,a as E,b as ht}from"./DQXoLcsF.js";import{o as pe}from"./DEgUu98i.js";import{u as he}from"./6t3IJ0vQ.js";import{r as St}from"./H7C68rOM.js";import{u as bt}from"./8NsknIT2.js";import{c as xt,u as yt}from"./BND_-4Kp.js";import"./keKYsoph.js";import"./69_IOA4Y.js";import{P as wt,u as Pt}from"./CCx7Ho51.js";import{S as It}from"./D6r9vr07.js";import{b as Ft}from"./CxFKfZ9T.js";import{b as jt}from"./D4whDBUi.js";import{u as Ct,i as Ot}from"./CWPZrTTJ.js";var Ht=$e('<svg style="position: absolute; top: 0; left: 0;"><g></g></svg>');function Rt(e,t){ie(t,!0);const[i,d]=ge(),v=()=>f(y,"$isHidden",i),p=_e(t,"sampleImageObjectFit",3,"contain"),{isHidden:y}=et(),h=m(()=>t.sample.annotations.filter(w=>w.annotation_type!=="classification"));var n=Ht(),c=b(n);let u;tt(c,21,()=>s(h),st,(w,l)=>{It(w,{get annotation(){return s(l)},get showLabel(){return t.showLabel},get imageWidth(){return t.sample.width}})}),_(c),_(n),ae(w=>{B(n,"viewBox",`0 0 ${t.sample.width} ${t.sample.height}`),B(n,"preserveAspectRatio",p()==="contain"?"xMidYMid meet":"xMidYMid slice"),B(n,"width",t.containerWidth),B(n,"height",t.containerHeight),u=it(c,0,"",null,u,w)},[()=>({invisible:v()})]),o(e,n),ne(),d()}var At=x("<img>");function kt(e,t){ie(t,!0);const i=_e(t,"objectFit",3,"contain"),d=pt(t,["$$slots","$$events","$$legacy","sample","objectFit"]),{class:v,...p}=d,{getDatasetVersion:y}=he();let h=q("");pe(async()=>{var u;(u=t.sample)!=null&&u.dataset_id&&M(h,E(await y(t.sample.dataset_id)))});var n=At();let c;ae(u=>c=nt(n,c,{src:`${wt}/sample/${t.sample.sample_id}${s(h)?`?v=${s(h)}`:""}`,alt:t.sample.file_path_abs,class:u,style:`--object-fit: ${i()??""}`,loading:"lazy",...p},"svelte-1c6bz0a"),[()=>at("sample-image rounded-lg bg-black",v)]),jt(n),o(e,n),ne()}const Mt=e=>{const t=["readSamplesInfinite",e.dataset_id,e.mode,e.mode==="normal"?e.filters:e.classifierSamples,{metadata_values:e.metadata_values,text_embedding:e.text_embedding}];return Ot({queryKey:t,queryFn:async({pageParam:i=0,signal:d})=>{const v=Nt(e,i),{data:p}=await Ft({path:{dataset_id:e.dataset_id},body:v,signal:d,throwOnError:!0});return p},initialPageParam:0,getNextPageParam:i=>i.nextCursor??void 0,enabled:Vt(e)})},Nt=(e,t)=>{var d,v;const i={pagination:{offset:t,limit:100},text_embedding:e.text_embedding,filters:{metadata_filters:e.metadata_values?xt(e.metadata_values):void 0}};if(e.mode==="classifier"&&e.classifierSamples){const p=[...e.classifierSamples.positiveSampleIds,...e.classifierSamples.negativeSampleIds];return{...i,sample_ids:p}}else if(e.mode==="normal"&&e.filters)return{...i,filters:{...i.filters,annotation_label_ids:(d=e.filters.annotation_label_ids)!=null&&d.length?e.filters.annotation_label_ids:void 0,tag_ids:(v=e.filters.tag_ids)!=null&&v.length?e.filters.tag_ids:void 0,width:e.filters.dimensions?{min:e.filters.dimensions.min_width,max:e.filters.dimensions.max_width}:void 0,height:e.filters.dimensions?{min:e.filters.dimensions.min_height,max:e.filters.dimensions.max_height}:void 0}};return i},Vt=e=>e.mode==="classifier"?!!(e.classifierSamples&&(e.classifierSamples.positiveSampleIds.length>0||e.classifierSamples.negativeSampleIds.length>0)):!0,Lt=e=>{const t=Mt(e),i=lt(t),d=Ct();return{samples:i,refresh:()=>{d.invalidateQueries({queryKey:t.queryKey})}}};var zt=x('<div class="flex h-full w-full items-center justify-center"><div>Loading samples...</div></div>'),qt=x('<div class="flex h-full w-full items-center justify-center"><div class="mb-2 font-medium">Error loading samples</div></div>'),Bt=x('<div class="flex h-full w-full items-center justify-center"><div class="text-center text-muted-foreground"><div class="mb-2 text-lg font-medium">No samples found</div> <div class="text-sm"><!></div></div></div>'),Et=x('<div class="relative"><div class="absolute right-7 top-1 z-10"><!></div> <a data-testid="sample-link" class="block"><!> <!></a></div>'),Tt=x('<div class="flex justify-center p-4"><!></div>'),Wt=x("<!> <!>",1),Gt=x('<div class="viewport flex-1 svelte-gzepom"><!></div>'),Qt=x('<div class="flex h-full w-full items-center justify-center"><div>Loading...</div></div>');function fs(e,t){ie(t,!0);const[i,d]=ge(),v=()=>f(Pe,"$isCreateClassifiersPanelOpen",i),p=()=>f(Ie,"$isRefineClassifiersPanelOpen",i),y=()=>f(je,"$classifierSamples",i),h=()=>f(t.selectedAnnotationFilterIds,"$selectedAnnotationFilterIds",i),n=()=>f(xe,"$tagsSelected",i),c=()=>f(ye,"$dimensions",i),u=()=>f(we,"$metadataValues",i),w=()=>f(t.textEmbedding,"$textEmbedding",i),l=()=>f(s(ke),"$infiniteSamples",i),le=()=>f(be,"$gridViewSampleRenderingStore",i),Se=()=>f(Fe,"$selectedSampleIds",i),{gridViewSampleRenderingStore:be}=ot(),{tagsSelected:xe}=Pt({dataset_id:t.dataset_id,kind:["sample"]}),{dimensionsValues:ye}=bt(),{metadataValues:we}=yt(t.dataset_id),{isCreateClassifiersPanelOpen:Pe}=ct(),{isRefineClassifiersPanelOpen:Ie}=mt(),{selectedSampleIds:Fe,classifierSamples:je,toggleSampleSelection:Ce,getDatasetVersion:Oe,setSamplesTotalCount:He}=he(),N=m(()=>v()||p()),Re=m(()=>{var a,r;return{dataset_id:t.dataset_id,mode:s(N)?"classifier":"normal",...s(N)?{classifierSamples:y()}:{filters:{annotation_label_ids:(a=h())!=null&&a.length?h():void 0,tag_ids:n().size>0?Array.from(n()):void 0,dimensions:c()}},metadata_values:u(),text_embedding:(r=w())==null?void 0:r.embedding}}),Ae=m(()=>Lt(s(Re))),ke=m(()=>s(Ae).samples),P=m(()=>{var a;return((a=l().data)==null?void 0:a.pages.flatMap(r=>r.data))||[]});let C=q(null),oe=q(!1),D=q(E(le())),K=q(0);const{initialize:Me,savePosition:Ne,getRestoredPosition:Ve}=rt("samples_scroll");pe(async()=>{Me(),await Oe(t.dataset_id),M(oe,!0)});const re=m(()=>{var r;return[h().join(","),Array.from(n()).join(","),`${c().min_width}-${c().max_width}`,`${c().min_height}-${c().max_height}`,JSON.stringify(u()),((r=w())==null?void 0:r.queryText)||"",s(N)?"classifier":"normal",s(N)&&y()?`pos:${y().positiveSampleIds.length},neg:${y().negativeSampleIds.length}`:""].filter(Boolean).join("|")}),Le=m(()=>Ve(s(re)));function ze(a){const r=a.target.scrollTop;Ne(r,s(re))}te(()=>{M(D,E(le()))}),te(()=>{var a;l().isSuccess&&((a=l().data)==null?void 0:a.pages.length)>0&&He(l().data.pages[0].total_count)}),te(()=>{if(!s(C))return;M(K,E(s(C).clientHeight));const a=new ResizeObserver(()=>{s(C)&&M(K,E(s(C).clientHeight))});return a.observe(s(C)),()=>{a.disconnect()}});function qe(){l().hasNextPage&&!l().isFetchingNextPage&&l().fetchNextPage()}const de=16,Be=dt(),[Ee,Dt]=Be;var ce=ve(),Te=se(ce);{var We=a=>{var r=zt();o(a,r)},Ge=(a,r)=>{{var Qe=R=>{var J=qt();o(R,J)},De=(R,J)=>{{var Ke=A=>{var V=Bt(),T=b(V),W=Q(b(T),2),I=b(W);{var F=j=>{var L=ue("No samples available for this classifier.");o(j,L)},U=j=>{var L=ue("This dataset doesn't contain any samples.");o(j,L)};H(I,j=>{s(N)?j(F):j(U,!1)})}_(W),_(T),_(V),o(A,V)},Je=(A,V)=>{{var T=I=>{var F=Gt(),U=b(F);const j=m(()=>t.sampleHeight+de),L=m(()=>t.sampleWidth+de);ft(U,{get itemCount(){return s(P).length},get itemHeight(){return s(j)},get itemWidth(){return s(L)},get height(){return s(K)},get scrollPosition(){return s(Le)},onscroll:ze,class:"overflow-none overflow-y-auto dark:[color-scheme:dark]",get style(){return`--sample-width: ${t.sampleWidth??""}px; --sample-height: ${t.sampleHeight??""}px;`},overScan:100,item:(Y,S)=>{let g=()=>S==null?void 0:S().index,X=()=>S==null?void 0:S().style;var G=ve(),Z=se(G);{var z=O=>{var k=Et(),$=b(k),Ue=b($);const Ye=m(()=>Se().has(s(P)[g()].sample_id));ut(Ue,{onSelect:()=>Ce(s(P)[g()].sample_id),get isSelected(){return s(Ye)}}),_($);var ee=Q($,2),fe=b(ee);kt(fe,{get sample(){return s(P)[g()]},get objectFit(){return s(D)}});var Xe=Q(fe,2);Rt(Xe,{get sample(){return s(P)[g()]},get containerWidth(){return t.sampleWidth},get sampleImageObjectFit(){return s(D)},get containerHeight(){return t.sampleHeight}}),_(ee),_(k),ae(Ze=>{gt(k,X()),B(ee,"href",Ze)},[()=>Ee(St.toSample({sampleId:s(P)[g()].sample_id,datasetId:t.dataset_id,sampleIndex:g()}),void 0)]),o(O,k)};H(Z,O=>{s(P)[g()]&&O(z)})}o(Y,G)},footer:Y=>{var S=Wt(),g=se(S);const X=m(()=>!l().hasNextPage||l().isFetchingNextPage);vt(g,{onIntersect:qe,get disabled(){return s(X)}});var G=Q(g,2);{var Z=z=>{var O=Tt(),k=b(O);_t(k,{}),_(O),o(z,O)};H(G,z=>{l().isFetchingNextPage&&z(Z)})}o(Y,S)},$$slots:{item:!0,footer:!0}}),_(F),ht(F,me=>M(C,me),()=>s(C)),o(I,F)},W=I=>{var F=Qt();o(I,F)};H(A,I=>{s(oe)?I(T):I(W,!1)},V)}};H(R,A=>{l().isSuccess&&s(P).length===0?A(Ke):A(Je,!1)},J)}};H(a,R=>{l().isError?R(Qe):R(De,!1)},r)}};H(Te,a=>{l().isPending?a(We):a(Ge,!1)})}o(e,ce),ne(),d()}export{fs as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a8 as I,a9 as F,aa as G,ab as p,ac as Z,g as b,U as g,J as w,ad as x,P as z,ae as J,af as M,a6 as V,q as B,v as W,o as k,E as H,C as Q,D as X,F as ee,ag as re,ah as te,i as T,a2 as ne,ai as ie,aj as se,d as C,ak as ae,al as fe,am as ue,an as le,ao as Y,ap as oe,aq as ce,G as de,ar as ve,as as D}from"./CH6P3X75.js";import{c as _e}from"./DA6bFLPR.js";import{l as he}from"./DIeogL5L.js";function S(e,r=null,s){if(typeof e!="object"||e===null||I in e)return e;const a=M(e);if(a!==F&&a!==G)return e;var n=new Map,l=V(e),h=p(0);l&&n.set("length",p(e.length));var d;return new Proxy(e,{defineProperty(c,t,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&J();var f=n.get(t);return f===void 0?(f=p(i.value),n.set(t,f)):w(f,S(i.value,d)),!0},deleteProperty(c,t){var i=n.get(t);if(i===void 0)t in c&&n.set(t,p(g));else{if(l&&typeof t=="string"){var f=n.get("length"),u=Number(t);Number.isInteger(u)&&u<f.v&&w(f,u)}w(i,g),U(h)}return!0},get(c,t,i){var v;if(t===I)return e;var f=n.get(t),u=t in c;if(f===void 0&&(!u||(v=x(c,t))!=null&&v.writable)&&(f=p(S(u?c[t]:g,d)),n.set(t,f)),f!==void 0){var o=b(f);return o===g?void 0:o}return Reflect.get(c,t,i)},getOwnPropertyDescriptor(c,t){var i=Reflect.getOwnPropertyDescriptor(c,t);if(i&&"value"in i){var f=n.get(t);f&&(i.value=b(f))}else if(i===void 0){var u=n.get(t),o=u==null?void 0:u.v;if(u!==void 0&&o!==g)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return i},has(c,t){var o;if(t===I)return!0;var i=n.get(t),f=i!==void 0&&i.v!==g||Reflect.has(c,t);if(i!==void 0||z!==null&&(!f||(o=x(c,t))!=null&&o.writable)){i===void 0&&(i=p(f?S(c[t],d):g),n.set(t,i));var u=b(i);if(u===g)return!1}return f},set(c,t,i,f){var E;var u=n.get(t),o=t in c;if(l&&t==="length")for(var v=i;v<u.v;v+=1){var y=n.get(v+"");y!==void 0?w(y,g):v in c&&(y=p(g),n.set(v+"",y))}u===void 0?(!o||(E=x(c,t))!=null&&E.writable)&&(u=p(void 0),w(u,S(i,d)),n.set(t,u)):(o=u.v!==g,w(u,S(i,d)));var P=Reflect.getOwnPropertyDescriptor(c,t);if(P!=null&&P.set&&P.set.call(f,i),!o){if(l&&typeof t=="string"){var O=n.get("length"),A=Number(t);Number.isInteger(A)&&A>=O.v&&w(O,A+1)}U(h)}return!0},ownKeys(c){b(h);var t=Reflect.ownKeys(c).filter(u=>{var o=n.get(u);return o===void 0||o.v!==g});for(var[i,f]of n)f.v!==g&&!(i in c)&&t.push(i);return t},setPrototypeOf(){Z()}})}function U(e,r=1){w(e,e.v+r)}function Ee(e,r,s){B&&W();var a=e,n,l;k(()=>{n!==(n=r())&&(l&&(X(l),l=null),n&&(l=Q(()=>s(a,n))))},H),B&&(a=ee)}function j(e,r){return e===r||(e==null?void 0:e[I])===r}function Re(e={},r,s,a){return re(()=>{var n,l;return te(()=>{n=l,l=[],T(()=>{e!==s(...l)&&(r(e,...l),n&&j(s(...n),e)&&r(null,...n))})}),()=>{ne(()=>{l&&j(s(...l),e)&&r(null,...l)})}}),e}const ge={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 Se(e,r,s){return new Proxy({props:e,exclude:r},ge)}const ye={get(e,r){let s=e.props.length;for(;s--;){let a=e.props[s];if(D(a)&&(a=a()),typeof a=="object"&&a!==null&&r in a)return a[r]}},set(e,r,s){let a=e.props.length;for(;a--;){let n=e.props[a];D(n)&&(n=n());const l=x(n,r);if(l&&l.set)return l.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let a=e.props[s];if(D(a)&&(a=a()),typeof a=="object"&&a!==null&&r in a){const n=x(a,r);return n&&!n.configurable&&(n.configurable=!0),n}}},has(e,r){if(r===I||r===Y)return!1;for(let s of e.props)if(D(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props){D(s)&&(s=s());for(const a in s)r.includes(a)||r.push(a)}return r}};function Ie(...e){return new Proxy({props:e},ye)}function K(e){var r;return((r=e.ctx)==null?void 0:r.d)??!1}function xe(e,r,s,a){var q;var n=(s&ce)!==0,l=!he||(s&oe)!==0,h=(s&le)!==0,d=(s&ve)!==0,c=!1,t;h?[t,c]=_e(()=>e[r]):t=e[r];var i=I in e||Y in e,f=h&&(((q=x(e,r))==null?void 0:q.set)??(i&&r in e&&(_=>e[r]=_)))||void 0,u=a,o=!0,v=!1,y=()=>(v=!0,o&&(o=!1,d?u=T(a):u=a),u);t===void 0&&a!==void 0&&(f&&l&&ie(),t=y(),f&&f(t));var P;if(l)P=()=>{var _=e[r];return _===void 0?y():(o=!0,v=!1,_)};else{var O=(n?C:ae)(()=>e[r]);O.f|=se,P=()=>{var _=b(O);return _!==void 0&&(u=void 0),_===void 0?u:_}}if(!(s&fe))return P;if(f){var A=e.$$legacy;return function(_,R){return arguments.length>0?((!l||!R||A||c)&&f(R?P():_),_):P()}}var E=!1,L=de(t),m=C(()=>{var _=P(),R=b(L);return E?(E=!1,R):L.v=_});return h&&b(m),n||(m.equals=ue),function(_,R){if(arguments.length>0){const N=R?b(m):l&&h?S(_):_;if(!m.equals(N)){if(E=!0,w(L,N),v&&u!==void 0&&(u=N),K(m))return _;T(()=>b(m))}return _}return K(m)?m.v:b(m)}}const Pe="modulepreload",be=function(e,r){return new URL(e,r).href},$={},Oe=function(r,s,a){let n=Promise.resolve();if(s&&s.length>0){const h=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),c=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));n=Promise.allSettled(s.map(t=>{if(t=be(t,a),t in $)return;$[t]=!0;const i=t.endsWith(".css"),f=i?'[rel="stylesheet"]':"";if(!!a)for(let v=h.length-1;v>=0;v--){const y=h[v];if(y.href===t&&(!i||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${f}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Pe,i||(o.as="script"),o.crossOrigin="",o.href=t,c&&o.setAttribute("nonce",c),document.head.appendChild(o),i)return new Promise((v,y)=>{o.addEventListener("load",v),o.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${t}`)))})}))}function l(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return n.then(h=>{for(const d of h||[])d.status==="rejected"&&l(d.reason);return r().catch(l)})};export{Oe as _,S as a,Re as b,Ee as c,xe as p,Se as r,Ie as s};
|