lightly-studio 0.3.3__py3-none-any.whl → 0.4.0__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/features.py +3 -5
- lightly_studio/api/routes/api/caption.py +30 -0
- lightly_studio/api/routes/api/dataset_tag.py +10 -0
- lightly_studio/api/routes/api/embeddings2d.py +42 -39
- lightly_studio/api/routes/api/metadata.py +57 -1
- lightly_studio/core/add_samples.py +138 -0
- lightly_studio/core/dataset.py +232 -18
- lightly_studio/core/dataset_query/__init__.py +14 -0
- lightly_studio/core/sample.py +33 -1
- lightly_studio/dataset/loader.py +2 -8
- lightly_studio/db_manager.py +14 -6
- lightly_studio/dist_lightly_studio_view_app/_app/env.js +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.CN4hnTks.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.C0_eo9eP.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/_layout.kFFGI0zL.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.sLzR40om.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{6t3IJ0vQ.js → BOmrKuMn.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Cs1XmhiF.js → BPpOWbDa.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BaFFwDFr.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BiGQqqJP.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BrNKoXwc.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BsaJCCG_.js +96 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BtXGzlpP.js +20 -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/C3xJX0nD.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CANX9QXL.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CAPx0Bfm.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CP9M7pei.js +39 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CWuDkrMZ.js +436 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/ChlxSwqI.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cj4nZbtb.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/ClzkJBWk.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CpbA3HU7.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D8ZGoCPm.js +3 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DMJzr1NB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BdfTHw61.js → DNJnBfHs.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{keKYsoph.js → DUtlYNuP.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DVxjPOJB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DmGM9V9Q.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DoEId1MK.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DthpwYR_.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DyIcJj6J.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/SiegjVo0.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BfHVnyNT.js → WEyXQRi6.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/gBp1tBnA.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/xQhUoIl9.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.Y-sSoz5q.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CvxVp0Cu.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.0Fm6E-5B.js +4 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1.DB-0vkHb.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.vaUePh5k.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/11.7i7ljNVT.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/13.9qy3WtZv.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{2.C8HLK8mj.js → 2.Drwwdm7A.js} +267 -111
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.CLvg3QcJ.js → 3.D3X_-Wan.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.BQhDtXUI.js → 4.C9TqY3tA.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.iRw6HCWX.js +39 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{6.uBV1Lhat.js → 6.fqfYR7dB.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.C7gMM-gk.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.C4v1w-oS.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.DbHcSiMn.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 +74 -0
- lightly_studio/models/dataset.py +1 -2
- lightly_studio/models/metadata.py +1 -1
- lightly_studio/models/sample.py +9 -2
- lightly_studio/models/settings.py +5 -0
- lightly_studio/resolvers/caption_resolver.py +80 -0
- lightly_studio/resolvers/dataset_resolver.py +6 -11
- 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/sample_resolver.py +1 -0
- lightly_studio/resolvers/samples_filter.py +18 -10
- lightly_studio/resolvers/settings_resolver.py +3 -0
- lightly_studio/resolvers/twodim_embedding_resolver.py +29 -0
- lightly_studio/selection/__init__.py +1 -0
- lightly_studio/selection/mundig.py +41 -0
- lightly_studio/type_definitions.py +2 -0
- lightly_studio-0.4.0.dist-info/METADATA +78 -0
- {lightly_studio-0.3.3.dist-info → lightly_studio-0.4.0.dist-info}/RECORD +96 -88
- 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/selection/README.md +0 -6
- lightly_studio-0.3.3.dist-info/METADATA +0 -814
- /lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{11.CWG1ehzT.js → 12.CWG1ehzT.js} +0 -0
- {lightly_studio-0.3.3.dist-info → lightly_studio-0.4.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BrNKoXwc.js","./CWj6FrbW.js","./C3xJX0nD.js","./DIeogL5L.js","./CAPx0Bfm.js","./DoEId1MK.js","./xQhUoIl9.js","./DmGM9V9Q.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Pk=Object.defineProperty;var kk=Object.getPrototypeOf;var Tk=Reflect.get;var Vb=e=>{throw TypeError(e)};var Ek=(e,t,n)=>t in e?Pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $=(e,t,n)=>Ek(e,typeof t!="symbol"?t+"":t,n),lg=(e,t,n)=>t.has(e)||Vb("Cannot "+n);var _=(e,t,n)=>(lg(e,t,"read from private field"),n?n.call(e):t.get(e)),z=(e,t,n)=>t.has(e)?Vb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Be=(e,t,n,i)=>(lg(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Pt=(e,t,n)=>(lg(e,t,"access private method"),n);var Hb=(e,t,n)=>Tk(kk(e),n,t);import"./CWj6FrbW.js";import{o as ps,g as ea}from"./D8ZGoCPm.js";import{I as Ik,b3 as Ok,bf as Nk,z as Gn,L as Rg,aQ as Rk,v as b0,bg as Wb,N as Mk,O as Lk,P as Mg,Q as Kd,U as Ub,aq as cg,ao as Lg,X as Gb,C as _0,A as Od,H as Kb,G as qb,as as Xb,d as Dk,V as y0,x as w0,W as Nd,bh as Fk,aL as Bk,bi as zk,E as x0,bj as Vk,_ as Hk,R as Wk,K as S0,y as Uk,bk as Gk,bl as Kk,a5 as A0,h as Dr,bm as qk,D as C0,ah as Xk,n as St,bn as P0,S as Bs,aM as Ff,a6 as k0,bo as Yk,aN as Yb,m as En,o as ra,al as bt,bd as Zb,g as f,Z as M,ap as zs,p as ct,a as ut,c as q,s as at,r as G,f as L,b as E,bp as T0,t as Mt,ab as Sn,u as be,w as en,am as te,e as Bf,bc as Zk,aO as jb,aP as jk,bq as Qk,br as E0,q as pd,$ as Jk}from"./C3xJX0nD.js";import{d as $k,e as Qb,f as tT,s as fe,c as eT,m as nT,u as rT}from"./CpbA3HU7.js";import{i as vt,a as Ur,s as qt,b as vd,m as md}from"./DmGM9V9Q.js";import{h as Jb,p as iT,q as oT,r as sT,g as Gr,a as Lt,e as rr,i as vu,S as aT,s as Ln,t as us,b as qn,o as Rd,k as Ui,c as At,u as zf,j as bo,v as lT,w as cT}from"./DthpwYR_.js";import{b as uT,d as Cr,a as A,c as K,f as J,t as Te}from"./CAPx0Bfm.js";import{o as je,d as Zi,e as ao}from"./SiegjVo0.js";import{p as k,r as xt,s as Et,b as Dn,c as kt}from"./xQhUoIl9.js";import{P as I0,c as Mr}from"./gBp1tBnA.js";import{a as dT,u as Gi}from"./BOmrKuMn.js";import{u as fT}from"./ClzkJBWk.js";import{y as hT,c as gT}from"./BaFFwDFr.js";import{p as Ki}from"./DUtlYNuP.js";import"./69_IOA4Y.js";import{s as lt}from"./DoEId1MK.js";import{r as na}from"./ChlxSwqI.js";import{Q as pT,k as vT,u as mu,l as mT,n as bT,m as _T,o as yT,i as _p,g as O0,p as yp,q as wT,s as xT,c as N0,h as ST}from"./DyIcJj6J.js";import{i as R0}from"./Cj4nZbtb.js";import{u as M0}from"./DMJzr1NB.js";import{S as AT,s as CT,x as $b,e as L0}from"./CANX9QXL.js";import{_ as t_}from"./C1FmrZbK.js";const PT=[];function D0(e,t=!1,n=!1){return Md(e,new Map,"",PT,null,n)}function Md(e,t,n,i,s=null,a=!1){if(typeof e=="object"&&e!==null){var l=t.get(e);if(l!==void 0)return l;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(Ik(e)){var c=Array(e.length);t.set(e,c),s!==null&&t.set(s,c);for(var d=0;d<e.length;d+=1){var h=e[d];d in e&&(c[d]=Md(h,t,n,i,null,a))}return c}if(Ok(e)===Nk){c={},t.set(e,c),s!==null&&t.set(s,c);for(var p in e)c[p]=Md(e[p],t,n,i,null,a);return c}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON=="function"&&!a)return Md(e.toJSON(),t,n,i,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}const ug=0,bd=1,dg=2;function e_(e,t,n,i,s){Gn&&Rg();var a=e,l=Rk(),c=Dk,d=Ub,h,p,g,v=l?Lg(void 0):Gb(void 0,!1,!1),b=l?Lg(void 0):Gb(void 0,!1,!1),y=!1;function w(C,T){y=!0,T&&(Kb(x),qb(x),Xb(c));try{C===bd&&i&&(p?y0(p):p=w0(()=>i(a,v))),C!==ug&&h&&Nd(h,()=>h=null),C!==bd&&p&&Nd(p,()=>p=null),C!==dg&&g&&Nd(g,()=>g=null)}finally{T&&(Xb(null),qb(null),Kb(null),Fk||Bk())}}var x=b0(()=>{if(d===(d=t()))return;let C=Gn&&Wb(d)===(a.data===Mk);if(C&&(a=Lk(),Mg(a),Kd(!1),C=!0),Wb(d)){var T=d;y=!1,T.then(R=>{T===d&&(cg(v,R),w(bd,!0))},R=>{if(T===d)throw cg(b,R),w(dg,!0),b.v}),Gn||_0(()=>{y||w(ug,!0)})}else cg(v,d),w(bd,!1);return C&&Kd(!0),()=>d=Ub});Gn&&(a=Od)}function kT(e,t,n,i,s,a){let l=Gn;Gn&&Rg();var c,d,h=null;Gn&&Od.nodeType===zk&&(h=Od,Rg());var p=Gn?Od:e,g;b0(()=>{const v=t()||null;var b=Vk;v!==c&&(g&&(v===null?Nd(g,()=>{g=null,d=null}):v===d?y0(g):(Uk(g),Qb(!1))),v&&v!==d&&(g=w0(()=>{if(h=Gn?h:document.createElementNS(b,v),uT(h,h),i){Gn&&$k(v)&&h.append(document.createComment(""));var y=Gn?Hk(h):h.appendChild(Wk());Gn&&(y===null?Kd(!1):Mg(y)),i(h,y)}S0.nodes_end=h,p.before(h)})),c=v,c&&(d=c),Qb(!0))},x0),l&&(Kd(!0),Mg(p))}const TT=()=>performance.now(),fi={tick:e=>requestAnimationFrame(e),now:()=>TT(),tasks:new Set};function F0(){const e=fi.now();fi.tasks.forEach(t=>{t.c(e)||(fi.tasks.delete(t),t.f())}),fi.tasks.size!==0&&fi.tick(F0)}function ET(e){let t;return fi.tasks.size===0&&fi.tick(F0),{promise:new Promise(n=>{fi.tasks.add(t={c:e,f:n})}),abort(){fi.tasks.delete(t)}}}function _d(e,t){C0(()=>{e.dispatchEvent(new CustomEvent(t))})}function IT(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function n_(e){const t={},n=e.split(";");for(const i of n){const[s,a]=i.split(":");if(!s||a===void 0)break;const l=IT(s.trim());t[l]=a.trim()}return t}const OT=e=>e;function wp(e,t,n,i){var s=(e&qk)!==0,a="both",l,c=t.inert,d=t.style.overflow,h,p;function g(){return C0(()=>l??(l=n()(t,(i==null?void 0:i())??{},{direction:a})))}var v={is_global:s,in(){t.inert=c,_d(t,"introstart"),h=Dg(t,g(),p,1,()=>{_d(t,"introend"),h==null||h.abort(),h=l=void 0,t.style.overflow=d})},out(x){t.inert=!0,_d(t,"outrostart"),p=Dg(t,g(),h,0,()=>{_d(t,"outroend"),x==null||x()})},stop:()=>{h==null||h.abort(),p==null||p.abort()}},b=S0;if((b.transitions??(b.transitions=[])).push(v),tT){var y=s;if(!y){for(var w=b.parent;w&&w.f&x0;)for(;(w=w.parent)&&!(w.f&Gk););y=!w||(w.f&Kk)!==0}y&&A0(()=>{Dr(()=>v.in())})}}function Dg(e,t,n,i,s){var a=i===1;if(Xk(t)){var l,c=!1;return _0(()=>{if(!c){var x=t({direction:a?"in":"out"});l=Dg(e,x,n,i,s)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return s(),{abort:St,deactivate:St,reset:St,t:()=>i};const{delay:d=0,css:h,tick:p,easing:g=OT}=t;var v=[];if(a&&n===void 0&&(p&&p(0,1),h)){var b=n_(h(0,1));v.push(b,b)}var y=()=>1-i,w=e.animate(v,{duration:d,fill:"forwards"});return w.onfinish=()=>{w.cancel();var x=(n==null?void 0:n.t())??1-i;n==null||n.abort();var C=i-x,T=t.duration*Math.abs(C),R=[];if(T>0){var O=!1;if(h)for(var B=Math.ceil(T/16.666666666666668),V=0;V<=B;V+=1){var N=x+C*g(V/B),H=n_(h(N,1-N));R.push(H),O||(O=H.overflow==="hidden")}O&&(e.style.overflow="hidden"),y=()=>{var X=w.currentTime;return x+C*g(X/T)},p&&ET(()=>{if(w.playState!=="running")return!1;var X=y();return p(X,1-X),!0})}w=e.animate(R,{duration:T,fill:"forwards"}),w.onfinish=()=>{y=()=>i,p==null||p(i,1-i),s()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=St)},deactivate:()=>{s=St},reset:()=>{i===0&&(p==null||p(1,0))},t:()=>y()}}function B0(e,t,n=t){var i=new WeakSet;P0(e,"input",async s=>{var a=s?e.defaultValue:e.value;if(a=fg(e)?hg(a):a,n(a),Bs!==null&&i.add(Bs),await Ff(),a!==(a=t())){var l=e.selectionStart,c=e.selectionEnd;e.value=a??"",c!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(c,e.value.length))}}),(Gn&&e.defaultValue!==e.value||Dr(t)==null&&e.value)&&(n(fg(e)?hg(e.value):e.value),Bs!==null&&i.add(Bs)),k0(()=>{var s=t();if(e===document.activeElement){var a=Yk??Bs;if(i.has(a))return}fg(e)&&s===hg(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function fg(e){var t=e.type;return t==="number"||t==="range"}function hg(e){return e===""?null:+e}function fz(e,t,n=t){P0(e,"change",()=>{n(e.files)}),Gn&&e.files&&n(e.files),k0(()=>{e.files=t()})}var Fi,Yo,pa,lf,z0;const cf=class cf{constructor(t){z(this,lf);z(this,Fi,new WeakMap);z(this,Yo);z(this,pa);Be(this,pa,t)}observe(t,n){var i=_(this,Fi).get(t)||new Set;return i.add(n),_(this,Fi).set(t,i),Pt(this,lf,z0).call(this).observe(t,_(this,pa)),()=>{var s=_(this,Fi).get(t);s.delete(n),s.size===0&&(_(this,Fi).delete(t),_(this,Yo).unobserve(t))}}};Fi=new WeakMap,Yo=new WeakMap,pa=new WeakMap,lf=new WeakSet,z0=function(){return _(this,Yo)??Be(this,Yo,new ResizeObserver(t=>{for(var n of t){cf.entries.set(n.target,n);for(var i of _(this,Fi).get(n.target)||[])i(n)}}))},$(cf,"entries",new WeakMap);let Fg=cf;var NT=new Fg({box:"border-box"});function gg(e,t,n){var i=NT.observe(e,()=>n(e[t]));A0(()=>(Dr(()=>n(e[t])),i))}var RT=class extends pT{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Jb()},t)}getOptimisticResult(e){return e.behavior=Jb(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var y,w;const{state:n}=e,i=super.createResult(e,t),{isFetching:s,isRefetching:a,isError:l,isRefetchError:c}=i,d=(w=(y=n.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:w.direction,h=l&&d==="forward",p=s&&d==="forward",g=l&&d==="backward",v=s&&d==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:oT(t,n.data),hasPreviousPage:iT(t,n.data),isFetchNextPageError:h,isFetchingNextPage:p,isFetchPreviousPageError:g,isFetchingPreviousPage:v,isRefetchError:c&&!h&&!g,isRefetching:a&&!p&&!v}}},Bi,zi,Un,ai,gi,Ld,Bg,m0,MT=(m0=class extends AT{constructor(n,i){super();z(this,gi);z(this,Bi);z(this,zi);z(this,Un);z(this,ai);Be(this,Bi,n),this.setOptions(i),this.bindMethods(),Pt(this,gi,Ld).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=_(this,Bi).defaultMutationOptions(n),CT(this.options,i)||_(this,Bi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Un),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&$b(i.mutationKey)!==$b(this.options.mutationKey)?this.reset():((s=_(this,Un))==null?void 0:s.state.status)==="pending"&&_(this,Un).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Un))==null||n.removeObserver(this)}onMutationUpdate(n){Pt(this,gi,Ld).call(this),Pt(this,gi,Bg).call(this,n)}getCurrentResult(){return _(this,zi)}reset(){var n;(n=_(this,Un))==null||n.removeObserver(this),Be(this,Un,void 0),Pt(this,gi,Ld).call(this),Pt(this,gi,Bg).call(this)}mutate(n,i){var s;return Be(this,ai,i),(s=_(this,Un))==null||s.removeObserver(this),Be(this,Un,_(this,Bi).getMutationCache().build(_(this,Bi),this.options)),_(this,Un).addObserver(this),_(this,Un).execute(n)}},Bi=new WeakMap,zi=new WeakMap,Un=new WeakMap,ai=new WeakMap,gi=new WeakSet,Ld=function(){var i;const n=((i=_(this,Un))==null?void 0:i.state)??sT();Be(this,zi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Bg=function(n){L0.batch(()=>{var i,s,a,l,c,d,h,p;if(_(this,ai)&&this.hasListeners()){const g=_(this,zi).variables,v=_(this,zi).context;(n==null?void 0:n.type)==="success"?((s=(i=_(this,ai)).onSuccess)==null||s.call(i,n.data,g,v),(l=(a=_(this,ai)).onSettled)==null||l.call(a,n.data,null,g,v)):(n==null?void 0:n.type)==="error"&&((d=(c=_(this,ai)).onError)==null||d.call(c,n.error,g,v),(p=(h=_(this,ai)).onSettled)==null||p.call(h,void 0,n.error,g,v))}this.listeners.forEach(g=>{g(_(this,zi))})})},m0);function V0(e,t){return vT(e,RT)}function LT(e,t){const n=mu(),i=mT(e)?e:Yb(e),s=new MT(n,En(i));let a;i.subscribe(d=>{a=(h,p)=>{s.mutate(h,p).catch(bT)},s.setOptions(d)});const l=Yb(s.getCurrentResult(),d=>s.subscribe(L0.batchCalls(h=>d(h)))),{subscribe:c}=ra(l,d=>({...d,mutate:a,mutateAsync:d.mutate}));return{subscribe:c}}var Nr,Rr,li,uf,xr,Zs,Dd;const gv=class gv extends Map{constructor(n){super();z(this,xr);z(this,Nr,new Map);z(this,Rr,bt(0));z(this,li,bt(0));z(this,uf,Zb||-1);if(n){for(var[i,s]of n)super.set(i,s);_(this,li).v=super.size}}has(n){var i=_(this,Nr),s=i.get(n);if(s===void 0){var a=super.get(n);if(a!==void 0)s=Pt(this,xr,Zs).call(this,0),i.set(n,s);else return f(_(this,Rr)),!1}return f(s),!0}forEach(n,i){Pt(this,xr,Dd).call(this),super.forEach(n,i)}get(n){var i=_(this,Nr),s=i.get(n);if(s===void 0){var a=super.get(n);if(a!==void 0)s=Pt(this,xr,Zs).call(this,0),i.set(n,s);else{f(_(this,Rr));return}}return f(s),super.get(n)}set(n,i){var g;var s=_(this,Nr),a=s.get(n),l=super.get(n),c=super.set(n,i),d=_(this,Rr);if(a===void 0)a=Pt(this,xr,Zs).call(this,0),s.set(n,a),M(_(this,li),super.size),zs(d);else if(l!==i){zs(a);var h=d.reactions===null?null:new Set(d.reactions),p=h===null||!((g=a.reactions)!=null&&g.every(v=>h.has(v)));p&&zs(d)}return c}delete(n){var i=_(this,Nr),s=i.get(n),a=super.delete(n);return s!==void 0&&(i.delete(n),M(_(this,li),super.size),M(s,-1),zs(_(this,Rr))),a}clear(){if(super.size!==0){super.clear();var n=_(this,Nr);M(_(this,li),0);for(var i of n.values())M(i,-1);zs(_(this,Rr)),n.clear()}}keys(){return f(_(this,Rr)),super.keys()}values(){return Pt(this,xr,Dd).call(this),super.values()}entries(){return Pt(this,xr,Dd).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(_(this,li)),super.size}};Nr=new WeakMap,Rr=new WeakMap,li=new WeakMap,uf=new WeakMap,xr=new WeakSet,Zs=function(n){return Zb===_(this,uf)?bt(n):Lg(n)},Dd=function(){f(_(this,Rr));var n=_(this,Nr);if(_(this,li).v!==n.size){for(var i of Hb(gv.prototype,this,"keys").call(this))if(!n.has(i)){var s=Pt(this,xr,Zs).call(this,0);n.set(i,s)}}for([,s]of _(this,Nr))f(s)};let ia=gv;/**
|
|
3
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* ISC License
|
|
6
|
+
*
|
|
7
|
+
* 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.
|
|
8
|
+
*
|
|
9
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
11
|
+
* copyright notice and this permission notice appear in all copies.
|
|
12
|
+
*
|
|
13
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
14
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
15
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
16
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
17
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
18
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
19
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
*
|
|
21
|
+
*/const DT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var FT=Cr("<svg><!><!></svg>");function bn(e,t){ct(t,!0);const n=k(t,"color",3,"currentColor"),i=k(t,"size",3,24),s=k(t,"strokeWidth",3,2),a=k(t,"absoluteStrokeWidth",3,!1),l=k(t,"iconNode",19,()=>[]),c=xt(t,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]),d=Gr(),[h,p]=d;var g=FT();Lt(g,y=>({...DT,...c,width:i(),height:i(),stroke:n(),"stroke-width":y,class:["lucide-icon lucide",t.name&&`lucide-${t.name}`,t.class]}),[()=>a()?Number(s())*24/Number(i()):s()]);var v=q(g);rr(v,17,l,vu,(y,w)=>{var x=E(()=>T0(f(w),2));let C=()=>f(x)[0],T=()=>f(x)[1];var R=K(),O=L(R);kT(O,C,!0,(B,V)=>{Lt(B,N=>({...N}),[()=>`${C()}`=="button"?p({...T()},[{attribute_name:"formaction"}]):`${C()}`=="form"?p({...T()},[{attribute_name:"action"}]):`${C()}`=="a"?p({...T()},[{attribute_name:"href",lang_attribute_name:"hreflang"}]):{...T()}])}),A(y,R)});var b=at(v);lt(b,()=>t.children??St),G(g),A(e,g),ut()}function xp(e,t){ct(t,!0);/**
|
|
22
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* ISC License
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
27
|
+
*
|
|
28
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
29
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
30
|
+
* copyright notice and this permission notice appear in all copies.
|
|
31
|
+
*
|
|
32
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
33
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
34
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
35
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
36
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
37
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
38
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
39
|
+
*
|
|
40
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M20 6 9 17l-5-5"}]];bn(e,Et({name:"check"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function Vf(e,t){ct(t,!0);/**
|
|
41
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* ISC License
|
|
44
|
+
*
|
|
45
|
+
* 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.
|
|
46
|
+
*
|
|
47
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
48
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
49
|
+
* copyright notice and this permission notice appear in all copies.
|
|
50
|
+
*
|
|
51
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
52
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
53
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
54
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
55
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
56
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
57
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
58
|
+
*
|
|
59
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"m6 9 6 6 6-6"}]];bn(e,Et({name:"chevron-down"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function BT(e,t){ct(t,!0);/**
|
|
60
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* ISC License
|
|
63
|
+
*
|
|
64
|
+
* 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.
|
|
65
|
+
*
|
|
66
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
67
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
68
|
+
* copyright notice and this permission notice appear in all copies.
|
|
69
|
+
*
|
|
70
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
71
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
72
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
73
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
74
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
75
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
76
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
77
|
+
*
|
|
78
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"m18 15-6-6-6 6"}]];bn(e,Et({name:"chevron-up"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function zT(e,t){ct(t,!0);/**
|
|
79
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* ISC License
|
|
82
|
+
*
|
|
83
|
+
* 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.
|
|
84
|
+
*
|
|
85
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
86
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
87
|
+
* copyright notice and this permission notice appear in all copies.
|
|
88
|
+
*
|
|
89
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
90
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
91
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
92
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
93
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
94
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
95
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
96
|
+
*
|
|
97
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"m7 15 5 5 5-5"}],["path",{d:"m7 9 5-5 5 5"}]];bn(e,Et({name:"chevrons-up-down"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function VT(e,t){ct(t,!0);/**
|
|
98
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* ISC License
|
|
101
|
+
*
|
|
102
|
+
* 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.
|
|
103
|
+
*
|
|
104
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
105
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
106
|
+
* copyright notice and this permission notice appear in all copies.
|
|
107
|
+
*
|
|
108
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
109
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
110
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
111
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
112
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
113
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
114
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
115
|
+
*
|
|
116
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["polyline",{points:"7 10 12 15 17 10"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3"}]];bn(e,Et({name:"download"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function HT(e,t){ct(t,!0);/**
|
|
117
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* ISC License
|
|
120
|
+
*
|
|
121
|
+
* 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.
|
|
122
|
+
*
|
|
123
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
124
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
125
|
+
* copyright notice and this permission notice appear in all copies.
|
|
126
|
+
*
|
|
127
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
128
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
129
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
130
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
131
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
132
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
133
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
134
|
+
*
|
|
135
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]];bn(e,Et({name:"eye-off"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function WT(e,t){ct(t,!0);/**
|
|
136
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* ISC License
|
|
139
|
+
*
|
|
140
|
+
* 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.
|
|
141
|
+
*
|
|
142
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
143
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
144
|
+
* copyright notice and this permission notice appear in all copies.
|
|
145
|
+
*
|
|
146
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
147
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
148
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
149
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
150
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
151
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
152
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
153
|
+
*
|
|
154
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];bn(e,Et({name:"eye"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function Vs(e,t){ct(t,!0);/**
|
|
155
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* ISC License
|
|
158
|
+
*
|
|
159
|
+
* 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.
|
|
160
|
+
*
|
|
161
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
162
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
163
|
+
* copyright notice and this permission notice appear in all copies.
|
|
164
|
+
*
|
|
165
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
166
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
167
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
168
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
169
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
170
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
171
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
172
|
+
*
|
|
173
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];bn(e,Et({name:"info"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function UT(e,t){ct(t,!0);/**
|
|
174
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* ISC License
|
|
177
|
+
*
|
|
178
|
+
* 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.
|
|
179
|
+
*
|
|
180
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
181
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
182
|
+
* copyright notice and this permission notice appear in all copies.
|
|
183
|
+
*
|
|
184
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
185
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
186
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
187
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
188
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
189
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
190
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
191
|
+
*
|
|
192
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];bn(e,Et({name:"loader-circle"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function pg(e,t){ct(t,!0);/**
|
|
193
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* ISC License
|
|
196
|
+
*
|
|
197
|
+
* 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.
|
|
198
|
+
*
|
|
199
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
200
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
201
|
+
* copyright notice and this permission notice appear in all copies.
|
|
202
|
+
*
|
|
203
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
204
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
205
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
206
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
207
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
208
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
209
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
210
|
+
*
|
|
211
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]];bn(e,Et({name:"network"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function GT(e,t){ct(t,!0);/**
|
|
212
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* ISC License
|
|
215
|
+
*
|
|
216
|
+
* 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.
|
|
217
|
+
*
|
|
218
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
219
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
220
|
+
* copyright notice and this permission notice appear in all copies.
|
|
221
|
+
*
|
|
222
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
223
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
224
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
225
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
226
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
227
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
228
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
229
|
+
*
|
|
230
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];bn(e,Et({name:"pencil"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function r_(e,t){ct(t,!0);/**
|
|
231
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* ISC License
|
|
234
|
+
*
|
|
235
|
+
* 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.
|
|
236
|
+
*
|
|
237
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
238
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
239
|
+
* copyright notice and this permission notice appear in all copies.
|
|
240
|
+
*
|
|
241
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
242
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
243
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
244
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
245
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
246
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
247
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
248
|
+
*
|
|
249
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["polygon",{points:"6 3 20 12 6 21 6 3"}]];bn(e,Et({name:"play"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function KT(e,t){ct(t,!0);/**
|
|
250
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* ISC License
|
|
253
|
+
*
|
|
254
|
+
* 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.
|
|
255
|
+
*
|
|
256
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
257
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
258
|
+
* copyright notice and this permission notice appear in all copies.
|
|
259
|
+
*
|
|
260
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
261
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
262
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
263
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
264
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
265
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
266
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
267
|
+
*
|
|
268
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["circle",{cx:"11",cy:"11",r:"8"}],["path",{d:"m21 21-4.3-4.3"}]];bn(e,Et({name:"search"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function qT(e,t){ct(t,!0);/**
|
|
269
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* ISC License
|
|
272
|
+
*
|
|
273
|
+
* 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.
|
|
274
|
+
*
|
|
275
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
276
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
277
|
+
* copyright notice and this permission notice appear in all copies.
|
|
278
|
+
*
|
|
279
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
280
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
281
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
282
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
283
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
284
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
285
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
286
|
+
*
|
|
287
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];bn(e,Et({name:"settings"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function XT(e,t){ct(t,!0);/**
|
|
288
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
289
|
+
*
|
|
290
|
+
* ISC License
|
|
291
|
+
*
|
|
292
|
+
* 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.
|
|
293
|
+
*
|
|
294
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
295
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
296
|
+
* copyright notice and this permission notice appear in all copies.
|
|
297
|
+
*
|
|
298
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
299
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
300
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
301
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
302
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
303
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
304
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
305
|
+
*
|
|
306
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor"}]];bn(e,Et({name:"tags"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function YT(e,t){ct(t,!0);/**
|
|
307
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* ISC License
|
|
310
|
+
*
|
|
311
|
+
* 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.
|
|
312
|
+
*
|
|
313
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
314
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
315
|
+
* copyright notice and this permission notice appear in all copies.
|
|
316
|
+
*
|
|
317
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
318
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
319
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
320
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
321
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
322
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
323
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
324
|
+
*
|
|
325
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];bn(e,Et({name:"trash-2"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function ZT(e,t){ct(t,!0);/**
|
|
326
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
327
|
+
*
|
|
328
|
+
* ISC License
|
|
329
|
+
*
|
|
330
|
+
* 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.
|
|
331
|
+
*
|
|
332
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
333
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
334
|
+
* copyright notice and this permission notice appear in all copies.
|
|
335
|
+
*
|
|
336
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
337
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
338
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
339
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
340
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
341
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
342
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
343
|
+
*
|
|
344
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["polyline",{points:"17 8 12 3 7 8"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15"}]];bn(e,Et({name:"upload"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}function Sp(e,t){ct(t,!0);/**
|
|
345
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
346
|
+
*
|
|
347
|
+
* ISC License
|
|
348
|
+
*
|
|
349
|
+
* 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.
|
|
350
|
+
*
|
|
351
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
352
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
353
|
+
* copyright notice and this permission notice appear in all copies.
|
|
354
|
+
*
|
|
355
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
356
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
357
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
358
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
359
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
360
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
361
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
362
|
+
*
|
|
363
|
+
*/let n=xt(t,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];bn(e,Et({name:"x"},()=>n,{get iconNode(){return i},children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}})),ut()}/**
|
|
364
|
+
* @license @lucide/svelte v0.482.0 - ISC
|
|
365
|
+
*
|
|
366
|
+
* ISC License
|
|
367
|
+
*
|
|
368
|
+
* 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.
|
|
369
|
+
*
|
|
370
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
371
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
372
|
+
* copyright notice and this permission notice appear in all copies.
|
|
373
|
+
*
|
|
374
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
375
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
376
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
377
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
378
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
379
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
380
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
381
|
+
*
|
|
382
|
+
*/const jT=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));var QT=J('<div class="relative rounded border border-red-400 bg-red-100 px-4 py-3 text-red-700" role="alert"><strong class="block font-bold"> </strong> <span class="block"><!></span></div>');function JT(e,t){var n=QT(),i=q(n),s=q(i,!0);G(i);var a=at(i,2),l=q(a);lt(l,()=>t.children),G(a),G(n),Mt(()=>fe(s,t.title)),A(e,n)}function $T(e=100){let t;return n=>{clearTimeout(t),t=setTimeout(n,e)}}function tE(e=200){let t,n;return(i,s)=>a=>{t&&(Math.abs(a-t)>i?(s.fast(),n!==void 0&&(clearTimeout(n),n=void 0),n=setTimeout(()=>{s.slow(),n=void 0},e)):n===void 0&&s.slow()),t=a}}const zg={ceil:(e,t)=>Math.ceil(e/t)*t,floor:(e,t)=>~~(e/t)*t},eE=(e,t,n,i,s,a)=>{const l=[],c=zg.floor(a/t*i,i),d=c>s?c-s:0,h=c>0&&d>=0?d:c,g=Math.min(e,zg.ceil((a+n)/t*i,i))+s,v=g<e?g:e;for(let b=h;b<v;b++)l.push(b);return l},gz=(e,t,n,i,s)=>{const a=[],l=~~(s/t),c=l>i?l-i:0,d=c>=0?c:l,p=Math.min(e,~~((s+n)/t))+i,g=p<e?p:e;for(let v=d;v<g;v++)a.push(v);return a},i_=(e,t)=>~~(e/t),nE=$T(),rE=tE();var iE=J("<div><!></div>"),oE=J("<div><!> <div></div> <!></div>");function H0(e,t){ct(t,!0);let n=k(t,"width",3,"100%"),i=k(t,"overScan",3,1),s=k(t,"marginLeft",3,0),a=k(t,"marginTop",3,0),l=k(t,"scrollPosition",15,0),c=k(t,"scrollBehavior",3,"auto"),d=k(t,"getKey",3,ot=>ot),h=xt(t,["$$slots","$$events","$$legacy","itemCount","itemHeight","itemWidth","height","width","overScan","marginLeft","marginTop","scrollPosition","scrollBehavior","getKey","columnCount","onscroll","header","item","placeholder","footer"]),p=bt(void 0),g=bt(Sn(l())),v=bt(0),b=bt(0),y=bt(0),w=bt(Sn([])),x=!1,C=!1,T=bt(!1);function R(ot,st=c()){B(i_(ot,f(X))*t.itemHeight+a()+f(v),st)}function O(ot,st=c()){B(ot,st)}const B=(ot,st=c())=>{f(p)&&(x=!0,f(p).scrollTo({top:ot,behavior:st}),x=!1)},V=ot=>{f(p)&&!x&&!C&&(x=!0,f(p).scrollTo({top:ot,behavior:c()}),x=!1)},N=ot=>{const st=i_(ot,f(X)),wt=ot%f(X);return{rowIndex:st,columnIndex:wt,style:`position: absolute; transform: translate3d(${wt*t.itemWidth+s()}px, ${st*t.itemHeight+a()}px, 0px); height: ${t.itemHeight}px; width: ${t.itemWidth}px; will-change: transform;`}},H=ot=>{C=!0,x||(M(g,Math.max(0,ot.currentTarget.scrollTop-f(v)),!0),l(ot.currentTarget.scrollTop),f(U)(f(g))),nE(()=>{C=!1})};let X=E(()=>t.columnCount?t.columnCount:Math.max(~~((f(b)-s()-(f(b)-f(y)))/t.itemWidth),1)),tt=E(()=>zg.ceil(t.itemCount,f(X))*t.itemHeight/f(X)),et=E(()=>f(X)*i());be(()=>{(f(b)||f(X))&&M(w,eE(t.itemCount,t.itemHeight,t.height,f(X),f(et),f(g)),!0)}),be(()=>{f(p)&&V(l())});let U=E(()=>rE(t.height,{fast:()=>{M(T,!0)},slow:()=>{M(T,!1)}}));var nt={scrollToIndex:R,scrollToPosition:O},Z=oE(),Q=ot=>{var st;H(ot),(st=t.onscroll)==null||st.call(t,ot)};Lt(Z,ot=>({onscroll:Q,...h,[aT]:ot}),[()=>({position:"relative",overflow:"auto",height:`${t.height??""}px`,width:n()})]);var rt=q(Z);{var dt=ot=>{var st=iE(),wt=q(st);lt(wt,()=>t.header),G(st),gg(st,"offsetHeight",It=>M(v,It)),A(ot,st)};vt(rt,ot=>{t.header&&ot(dt)})}var ft=at(rt,2);let yt;rr(ft,21,()=>f(w),ot=>d()(ot),(ot,st)=>{const wt=E(()=>{const{rowIndex:ye,columnIndex:Rt,style:Xt}=N(f(st));return{rowIndex:ye,columnIndex:Rt,style:Xt}});var It=K(),Kt=L(It);{var _e=ye=>{var Rt=K(),Xt=L(Rt);lt(Xt,()=>t.item,()=>({index:f(st),rowIndex:f(wt).rowIndex,columnIndex:f(wt).columnIndex,style:f(wt).style})),A(ye,Rt)},ze=ye=>{var Rt=K(),Xt=L(Rt);lt(Xt,()=>t.placeholder,()=>({index:f(st),rowIndex:f(wt).rowIndex,columnIndex:f(wt).columnIndex,style:f(wt).style})),A(ye,Rt)};vt(Kt,ye=>{!f(T)||!t.placeholder?ye(_e):ye(ze,!1)})}A(ot,It)}),G(ft);var mt=at(ft,2);return lt(mt,()=>t.footer??St),G(Z),Dn(Z,ot=>M(p,ot),()=>f(p)),Mt(ot=>yt=Ln(ft,"",yt,ot),[()=>({height:`${f(tt)??""}px`,width:"100%"})]),gg(Z,"offsetWidth",ot=>M(b,ot)),gg(Z,"clientWidth",ot=>M(y,ot)),A(e,Z),ut(nt)}const W0=({datasetId:e})=>{const t=LT(_T());return t.subscribe(()=>{}),{updateAnnotations:i=>new Promise((s,a)=>{En(t).mutate({path:{dataset_id:e},body:i},{onSuccess:()=>{s()},onError:l=>{a(l)}})})}},sE=(...e)=>{const t=yT(...e),n=en(!1),i=V0({...t,getNextPageParam:d=>d.nextCursor||void 0}),s=mu(),a=()=>{s.invalidateQueries({queryKey:t.queryKey}),s.invalidateQueries({queryKey:_p({path:{dataset_id:l}}).queryKey})},l=e[0].path.dataset_id,{updateAnnotations:c}=W0({datasetId:l});return{annotations:i,refresh:a,isPending:n,updateAnnotations:async d=>{try{n.set(!0),await c(d),a(),us.success("Annotations updated successfully")}catch(h){us.error("Failed to update annotations:"+h.message)}finally{n.set(!1)}}}};var aE=J('<div role="status"><svg aria-hidden="true" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg> <span class="sr-only">Loading...</span></div>');function U0(e,t){const n=k(t,"size",3,"medium"),i=k(t,"align",3,"center"),s={small:"h-4 w-4",medium:"h-6 w-6",large:"h-8 w-8"},a={left:"text-start",center:"text-center",right:"text-end"};var l=aE(),c=q(l);te(2),G(l),Mt(()=>qn(c,0,s[n()]+" "+a[i()]+" spinner inline animate-spin text-gray-200 dark:text-gray-600","svelte-uqfq9v")),A(e,l)}function lE(e){return typeof e=="function"}function cE(e){return e!==null&&typeof e=="object"}const uE=["string","number","bigint","boolean"];function Vg(e){return e==null||uE.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Vg(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const oa=Symbol("box"),Ap=Symbol("is-writable");function dE(e){return cE(e)&&oa in e}function fE(e){return F.isBox(e)&&Ap in e}function F(e){let t=bt(Sn(e));return{[oa]:!0,[Ap]:!0,get current(){return f(t)},set current(n){M(t,n,!0)}}}function hE(e,t){const n=E(e);return t?{[oa]:!0,[Ap]:!0,get current(){return f(n)},set current(i){t(i)}}:{[oa]:!0,get current(){return e()}}}function gE(e){return F.isBox(e)?e:lE(e)?F.with(e):F(e)}function pE(e){return Object.entries(e).reduce((t,[n,i])=>F.isBox(i)?(F.isWritableBox(i)?Object.defineProperty(t,n,{get(){return i.current},set(s){i.current=s}}):Object.defineProperty(t,n,{get(){return i.current}}),t):Object.assign(t,{[n]:i}),{})}function vE(e){return F.isWritableBox(e)?{[oa]:!0,get current(){return e.current}}:e}F.from=gE;F.with=hE;F.flatten=pE;F.readonly=vE;F.isBox=dE;F.isWritableBox=fE;function G0(...e){return function(t){var n;for(const i of e)if(i){if(t.defaultPrevented)return;typeof i=="function"?i.call(this,t):(n=i.current)==null||n.call(this,t)}}}var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q0={},o_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mE=/\n/g,bE=/^\s*/,_E=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yE=/^:\s*/,wE=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xE=/^[;\s]*/,SE=/^\s+|\s+$/g,AE=`
|
|
383
|
+
`,s_="/",a_="*",lo="",CE="comment",PE="declaration",kE=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function s(y){var w=y.match(mE);w&&(n+=w.length);var x=y.lastIndexOf(AE);i=~x?y.length-x:i+y.length}function a(){var y={line:n,column:i};return function(w){return w.position=new l(y),h(),w}}function l(y){this.start=y,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function c(y){var w=new Error(t.source+":"+n+":"+i+": "+y);if(w.reason=y,w.filename=t.source,w.line=n,w.column=i,w.source=e,!t.silent)throw w}function d(y){var w=y.exec(e);if(w){var x=w[0];return s(x),e=e.slice(x.length),w}}function h(){d(bE)}function p(y){var w;for(y=y||[];w=g();)w!==!1&&y.push(w);return y}function g(){var y=a();if(!(s_!=e.charAt(0)||a_!=e.charAt(1))){for(var w=2;lo!=e.charAt(w)&&(a_!=e.charAt(w)||s_!=e.charAt(w+1));)++w;if(w+=2,lo===e.charAt(w-1))return c("End of comment missing");var x=e.slice(2,w-2);return i+=2,s(x),e=e.slice(w),i+=2,y({type:CE,comment:x})}}function v(){var y=a(),w=d(_E);if(w){if(g(),!d(yE))return c("property missing ':'");var x=d(wE),C=y({type:PE,property:l_(w[0].replace(o_,lo)),value:x?l_(x[0].replace(o_,lo)):lo});return d(xE),C}}function b(){var y=[];p(y);for(var w;w=v();)w!==!1&&(y.push(w),p(y));return y}return h(),b()};function l_(e){return e?e.replace(SE,lo):lo}var TE=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q0,"__esModule",{value:!0});var c_=q0.default=IE,EE=TE(kE);function IE(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,EE.default)(e),s=typeof t=="function";return i.forEach(function(a){if(a.type==="declaration"){var l=a.property,c=a.value;s?t(l,c,a):c&&(n=n||{},n[l]=c)}}),n}const OE=c_.default||c_,NE=/\d/,RE=["-","_","/","."];function ME(e=""){if(!NE.test(e))return e!==e.toLowerCase()}function LE(e){const t=[];let n="",i,s;for(const a of e){const l=RE.includes(a);if(l===!0){t.push(n),n="",i=void 0;continue}const c=ME(a);if(s===!1){if(i===!1&&c===!0){t.push(n),n=a,i=c;continue}if(i===!0&&c===!1&&n.length>1){const d=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=d+a,i=c;continue}}n+=a,i=c,s=l}return t.push(n),t}function X0(e){return e?LE(e).map(t=>FE(t)).join(""):""}function DE(e){return BE(X0(e||""))}function FE(e){return e?e[0].toUpperCase()+e.slice(1):""}function BE(e){return e?e[0].toLowerCase()+e.slice(1):""}function js(e){if(!e)return{};const t={};function n(i,s){if(i.startsWith("-moz-")||i.startsWith("-webkit-")||i.startsWith("-ms-")||i.startsWith("-o-")){t[X0(i)]=s;return}if(i.startsWith("--")){t[i]=s;return}t[DE(i)]=s}return OE(e,n),t}function hi(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function zE(e,t){const n=RegExp(e,"g");return i=>{if(typeof i!="string")throw new TypeError(`expected an argument of type string, but got ${typeof i}`);return i.match(n)?i.replace(n,t):i}}const VE=zE(/[A-Z]/,e=>`-${e.toLowerCase()}`);function HE(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${VE(t)}: ${e[t]};`).join(`
|
|
384
|
+
`)}function Cp(e={}){return HE(e).replace(`
|
|
385
|
+
`," ")}const Y0={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},WE=Cp(Y0);function UE(e){var t;return e.length>2&&e.startsWith("on")&&e[2]===((t=e[2])==null?void 0:t.toLowerCase())}function Wt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const i=e[n];for(const s in i){const a=t[s],l=i[s],c=typeof a=="function",d=typeof l=="function";if(c&&UE(s)){const h=a,p=l;t[s]=G0(h,p)}else if(c&&d)t[s]=hi(a,l);else if(s==="class"){const h=Vg(a),p=Vg(l);h&&p?t[s]=Rd(a,l):h?t[s]=Rd(a):p&&(t[s]=Rd(l))}else if(s==="style"){const h=typeof a=="object",p=typeof l=="object",g=typeof a=="string",v=typeof l=="string";if(h&&p)t[s]={...a,...l};else if(h&&v){const b=js(l);t[s]={...a,...b}}else if(g&&p){const b=js(a);t[s]={...b,...l}}else if(g&&v){const b=js(a),y=js(l);t[s]={...b,...y}}else h?t[s]=a:p?t[s]=l:g?t[s]=a:v&&(t[s]=l)}else t[s]=l!==void 0?l:a}}return typeof t.style=="object"&&(t.style=Cp(t.style).replaceAll(`
|
|
386
|
+
`," ")),t.hidden!==!0&&(t.hidden=void 0,delete t.hidden),t.disabled!==!0&&(t.disabled=void 0,delete t.disabled),t}const Z0=typeof window<"u"?window:void 0;function GE(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}var Zo,va;class KE{constructor(t={}){z(this,Zo);z(this,va);const{window:n=Z0,document:i=n==null?void 0:n.document}=t;n!==void 0&&(Be(this,Zo,i),Be(this,va,eT(s=>{const a=je(n,"focusin",s),l=je(n,"focusout",s);return()=>{a(),l()}})))}get current(){var t;return(t=_(this,va))==null||t.call(this),_(this,Zo)?GE(_(this,Zo)):null}}Zo=new WeakMap,va=new WeakMap;new KE;function qE(e){return typeof e=="function"}function XE(e,t){switch(e){case"post":be(t);break;case"pre":Bf(t);break}}function j0(e,t,n,i={}){const{lazy:s=!1}=i;let a=!s,l=Array.isArray(e)?[]:void 0;XE(t,()=>{const c=Array.isArray(e)?e.map(h=>h()):e();if(!a){a=!0,l=c;return}const d=Dr(()=>n(c,l));return l=c,d})}function he(e,t,n){j0(e,"post",t,n)}function YE(e,t,n){j0(e,"pre",t,n)}he.pre=YE;function ZE(e){return qE(e)?e():e}var ci;class jE{constructor(t,n={box:"border-box"}){z(this,ci,bt(Sn({width:0,height:0})));var s,a;const i=n.window??Z0;M(_(this,ci),{width:((s=n.initialSize)==null?void 0:s.width)??0,height:((a=n.initialSize)==null?void 0:a.height)??0},!0),be(()=>{if(!i)return;const l=ZE(t);if(!l)return;const c=new i.ResizeObserver(d=>{for(const h of d){const p=n.box==="content-box"?h.contentBoxSize:h.borderBoxSize,g=Array.isArray(p)?p:[p];f(_(this,ci)).width=g.reduce((v,b)=>Math.max(v,b.inlineSize),0),f(_(this,ci)).height=g.reduce((v,b)=>Math.max(v,b.blockSize),0)}});return c.observe(l),()=>{c.disconnect()}})}get current(){return f(_(this,ci))}get width(){return f(_(this,ci)).width}get height(){return f(_(this,ci)).height}}ci=new WeakMap;var ma,ba;class Q0{constructor(t){z(this,ma,bt(void 0));z(this,ba);be(()=>{M(_(this,ma),_(this,ba),!0),Be(this,ba,t())})}get current(){return f(_(this,ma))}}ma=new WeakMap,ba=new WeakMap;var _a,ui;class An{constructor(t){z(this,_a);z(this,ui);Be(this,_a,t),Be(this,ui,Symbol(t))}get key(){return _(this,ui)}exists(){return Zk(_(this,ui))}get(){const t=jb(_(this,ui));if(t===void 0)throw new Error(`Context "${_(this,_a)}" not found`);return t}getOr(t){const n=jb(_(this,ui));return n===void 0?t:n}set(t){return jk(_(this,ui),t)}}_a=new WeakMap,ui=new WeakMap;function Pp(e){be(()=>()=>{e()})}function jt({id:e,ref:t,deps:n=()=>!0,onRefChange:i,getRootNode:s}){he([()=>e.current,n],([a])=>{const l=(s==null?void 0:s())??document,c=l==null?void 0:l.getElementById(a);c?t.current=c:t.current=null,i==null||i(t.current)}),Pp(()=>{t.current=null,i==null||i(null)})}function bu(e,t){return setTimeout(t,e)}function tr(e){Ff().then(e)}function kp(e){be(()=>Dr(()=>e()))}function ji(e){return e?"open":"closed"}function QE(e){return e?"checked":"unchecked"}function Tp(e){return e?"true":"false"}function _u(e){return e?"true":"false"}function Xn(e){return e?"":void 0}function J0(e){return e?"true":"false"}function $0(e){return e?"true":"false"}function ty(e,t){return t?"mixed":e?"true":"false"}function pz(e){return e}function JE(e){return e?"true":void 0}function vz(e){return e}function $E(e){return e?"":void 0}function tI(e){return e?"":void 0}function eI(e){return e?!0:void 0}function Ep(e){return e?!0:void 0}function nI(e){return e?!0:void 0}const wr="ArrowDown",yu="ArrowLeft",wu="ArrowRight",hr="ArrowUp",vs="End",Vr="Enter",rI="Escape",ms="Home",ey="PageDown",ny="PageUp",Fr=" ",Hg="Tab",iI="p",oI="n",sI="j",aI="k";function lI(e){return window.getComputedStyle(e).getPropertyValue("direction")}function cI(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?yu:wu,vertical:wr}[t]}function uI(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?wu:yu,vertical:hr}[t]}function dI(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:cI(e,t),prevKey:uI(e,t)}}const Hf=typeof document<"u",Wg=fI();function fI(){var e,t;return Hf&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ug(e){return e instanceof HTMLElement}function ry(e){return e instanceof Element}function iy(e){return e instanceof Element||e instanceof SVGElement}function hI(e){return e!==null}function gI(e){return e instanceof HTMLInputElement&&"select"in e}function pI(e,t){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vI(e){const t=F(null);function n(){if(!Hf)return[];const l=document.getElementById(e.rootNodeId.current);return l?e.candidateSelector?Array.from(l.querySelectorAll(e.candidateSelector)):e.candidateAttr?Array.from(l.querySelectorAll(`[${e.candidateAttr}]:not([data-disabled])`)):[]:[]}function i(){var c;const l=n();l.length&&((c=l[0])==null||c.focus())}function s(l,c,d=!1){var R;const h=document.getElementById(e.rootNodeId.current);if(!h||!l)return;const p=n();if(!p.length)return;const g=p.indexOf(l),v=lI(h),{nextKey:b,prevKey:y}=dI(v,e.orientation.current),w=e.loop.current,x={[b]:g+1,[y]:g-1,[ms]:0,[vs]:p.length-1};if(d){const O=b===wr?wu:wr,B=y===hr?yu:hr;x[O]=g+1,x[B]=g-1}let C=x[c.key];if(C===void 0)return;c.preventDefault(),C<0&&w?C=p.length-1:C===p.length&&w&&(C=0);const T=p[C];if(T)return T.focus(),t.current=T.id,(R=e.onCandidateFocus)==null||R.call(e,T),T}function a(l){const c=n(),d=t.current!==null;return l&&!d&&c[0]===l?(t.current=l.id,0):(l==null?void 0:l.id)===t.current?0:-1}return{setCurrentTabStopId(l){t.current=l},getTabIndex:a,handleKeydown:s,focusFirstCandidate:i,currentTabStopId:t}}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Qt(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}function ge(){}function mI(e,t){const n=F(e);function i(a){return t[n.current][a]??n.current}return{state:n,dispatch:a=>{n.current=i(a)}}}function bI(e,t){let n=bt(Sn({})),i=bt("none");const s=e.current?"mounted":"unmounted";let a=bt(null);const l=new Q0(()=>e.current);he([()=>t.current,()=>e.current],([v,b])=>{!v||!b||tr(()=>{M(a,document.getElementById(v),!0)})});const{state:c,dispatch:d}=mI(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});he(()=>e.current,v=>{if(f(a)||M(a,document.getElementById(t.current),!0),!f(a)||!(v!==l.current))return;const y=f(i),w=yd(f(a));v?d("MOUNT"):w==="none"||f(n).display==="none"?d("UNMOUNT"):d(l&&y!==w?"ANIMATION_OUT":"UNMOUNT")});function h(v){if(f(a)||M(a,document.getElementById(t.current),!0),!f(a))return;const b=yd(f(a)),y=b.includes(v.animationName)||b==="none";v.target===f(a)&&y&&d("ANIMATION_END")}function p(v){f(a)||M(a,document.getElementById(t.current),!0),f(a)&&v.target===f(a)&&M(i,yd(f(a)),!0)}he(()=>c.current,()=>{if(f(a)||M(a,document.getElementById(t.current),!0),!f(a))return;const v=yd(f(a));M(i,c.current==="mounted"?v:"none",!0)}),he(()=>f(a),v=>{if(v)return M(n,getComputedStyle(v),!0),hi(je(v,"animationstart",p),je(v,"animationcancel",h),je(v,"animationend",h))});const g=E(()=>["mounted","unmountSuspended"].includes(c.current));return{get current(){return f(g)}}}function yd(e){return e&&getComputedStyle(e).animationName||"none"}function Wf(e,t){ct(t,!0);const n=bI(F.with(()=>t.present),F.with(()=>t.id));var i=K(),s=L(i);{var a=l=>{var c=K(),d=L(c);lt(d,()=>t.presence??St,()=>({present:n})),A(l,c)};vt(s,l=>{(t.forceMount||t.present||n.current)&&l(a)})}A(e,i),ut()}function _I(e){return{content:`data-${e}-content`,trigger:`data-${e}-trigger`,overlay:`data-${e}-overlay`,title:`data-${e}-title`,description:`data-${e}-description`,close:`data-${e}-close`,cancel:`data-${e}-cancel`,action:`data-${e}-action`}}var ya,wa,xa,Sa,Aa,Ca,Pa,ka,Ta,Ea;class yI{constructor(t){$(this,"opts");z(this,ya,bt(null));z(this,wa,bt(null));z(this,xa,bt(null));z(this,Sa,bt(void 0));z(this,Aa,bt(void 0));z(this,Ca,bt(void 0));z(this,Pa,bt(void 0));z(this,ka,bt(null));z(this,Ta,E(()=>_I(this.opts.variant.current)));z(this,Ea,E(()=>({"data-state":ji(this.opts.open.current)})));this.opts=t,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return f(_(this,ya))}set triggerNode(t){M(_(this,ya),t,!0)}get contentNode(){return f(_(this,wa))}set contentNode(t){M(_(this,wa),t,!0)}get descriptionNode(){return f(_(this,xa))}set descriptionNode(t){M(_(this,xa),t,!0)}get contentId(){return f(_(this,Sa))}set contentId(t){M(_(this,Sa),t,!0)}get titleId(){return f(_(this,Aa))}set titleId(t){M(_(this,Aa),t,!0)}get triggerId(){return f(_(this,Ca))}set triggerId(t){M(_(this,Ca),t,!0)}get descriptionId(){return f(_(this,Pa))}set descriptionId(t){M(_(this,Pa),t,!0)}get cancelNode(){return f(_(this,ka))}set cancelNode(t){M(_(this,ka),t,!0)}get attrs(){return f(_(this,Ta))}set attrs(t){M(_(this,Ta),t)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return f(_(this,Ea))}set sharedProps(t){M(_(this,Ea),t)}}ya=new WeakMap,wa=new WeakMap,xa=new WeakMap,Sa=new WeakMap,Aa=new WeakMap,Ca=new WeakMap,Pa=new WeakMap,ka=new WeakMap,Ta=new WeakMap,Ea=new WeakMap;var Ia;class wI{constructor(t,n){$(this,"opts");$(this,"root");z(this,Ia,E(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":_u(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.attrs.trigger]:"",onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps})));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.triggerNode=i,this.root.triggerId=i==null?void 0:i.id}}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleOpen()}onkeydown(t){this.opts.disabled.current||(t.key===Fr||t.key===Vr)&&(t.preventDefault(),this.root.handleOpen())}get props(){return f(_(this,Ia))}set props(t){M(_(this,Ia),t)}}Ia=new WeakMap;var df,Oa;class xI{constructor(t,n){$(this,"opts");$(this,"root");z(this,df,E(()=>this.root.attrs[this.opts.variant.current]));z(this,Oa,E(()=>({id:this.opts.id.current,[f(_(this,df))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=t,this.root=n,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),jt({...t,deps:()=>this.root.opts.open.current})}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Fr||t.key===Vr)&&(t.preventDefault(),this.root.handleClose())}get props(){return f(_(this,Oa))}set props(t){M(_(this,Oa),t)}}df=new WeakMap,Oa=new WeakMap;var Na;class SI{constructor(t,n){$(this,"opts");$(this,"root");z(this,Na,E(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps})));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.titleId=i==null?void 0:i.id},deps:()=>this.root.opts.open.current})}get props(){return f(_(this,Na))}set props(t){M(_(this,Na),t)}}Na=new WeakMap;var Ra;class AI{constructor(t,n){$(this,"opts");$(this,"root");z(this,Ra,E(()=>({id:this.opts.id.current,[this.root.attrs.description]:"",...this.root.sharedProps})));this.opts=t,this.root=n,jt({...t,deps:()=>this.root.opts.open.current,onRefChange:i=>{this.root.descriptionNode=i,this.root.descriptionId=i==null?void 0:i.id}})}get props(){return f(_(this,Ra))}set props(t){M(_(this,Ra),t)}}Ra=new WeakMap;var Ma,La;class CI{constructor(t,n){$(this,"opts");$(this,"root");z(this,Ma,E(()=>({open:this.root.opts.open.current})));z(this,La,E(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=t,this.root=n,jt({...t,deps:()=>this.root.opts.open.current,onRefChange:i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id}})}get snippetProps(){return f(_(this,Ma))}set snippetProps(t){M(_(this,Ma),t)}get props(){return f(_(this,La))}set props(t){M(_(this,La),t)}}Ma=new WeakMap,La=new WeakMap;var Da,Fa;class PI{constructor(t,n){$(this,"opts");$(this,"root");z(this,Da,E(()=>({open:this.root.opts.open.current})));z(this,Fa,E(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=t,this.root=n,jt({...t,deps:()=>this.root.opts.open.current})}get snippetProps(){return f(_(this,Da))}set snippetProps(t){M(_(this,Da),t)}get props(){return f(_(this,Fa))}set props(t){M(_(this,Fa),t)}}Da=new WeakMap,Fa=new WeakMap;const xo=new An("Dialog.Root");function kI(e){return xo.set(new yI(e))}function TI(e){return new wI(e,xo.get())}function EI(e){return new SI(e,xo.get())}function II(e){return new CI(e,xo.get())}function OI(e){return new PI(e,xo.get())}function NI(e){return new AI(e,xo.get())}function RI(e){return new xI(e,xo.get())}var MI=J("<div><!></div>");function LI(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"level",3,2),a=xt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const l=EI({id:F.with(()=>n()),level:F.with(()=>s()),ref:F.with(()=>i(),v=>i(v))}),c=E(()=>Wt(a,l.props));var d=K(),h=L(d);{var p=v=>{var b=K(),y=L(b);lt(y,()=>t.child,()=>({props:f(c)})),A(v,b)},g=v=>{var b=MI();Lt(b,()=>({...f(c)}));var y=q(b);lt(y,()=>t.children??St),G(b),A(v,b)};vt(h,v=>{t.child?v(p):v(g,!1)})}A(e,d),ut()}function DI(e,t){var n=K(),i=L(n);Ui(i,()=>t.children,s=>{var a=K(),l=L(a);lt(l,()=>t.children??St),A(s,a)}),A(e,n)}function xu(e,t){ct(t,!0);let n=k(t,"to",3,"body");const i=Qk();let s=E(a);function a(){if(!Hf||t.disabled)return null;let g=null;return typeof n()=="string"?g=document.querySelector(n()):(n()instanceof HTMLElement||n()instanceof DocumentFragment)&&(g=n()),g}let l;function c(){l&&(rT(l),l=null)}he([()=>f(s),()=>t.disabled],([g,v])=>{if(!g||v){c();return}return l=nT(DI,{target:g,props:{children:t.children},context:i}),()=>{c()}});var d=K(),h=L(d);{var p=g=>{var v=K(),b=L(v);lt(b,()=>t.children??St),A(g,v)};vt(h,g=>{t.disabled&&g(p)})}A(e,d),ut()}function oy(e,t,n,i){const s=Array.isArray(t)?t:[t];return s.forEach(a=>e.addEventListener(a,n,i)),()=>{s.forEach(a=>e.removeEventListener(a,n,i))}}class sy{constructor(t,n={bubbles:!0,cancelable:!0}){$(this,"eventName");$(this,"options");this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const i=this.createEvent(n);return t.dispatchEvent(i),i}listen(t,n,i){const s=a=>{n(a)};return je(t,this.eventName,s,i)}}function u_(e,t=500){let n=null;const i=(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...s)},t)};return i.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},i}function Ip(e,t){return e===t||e.contains(t)}function ay(e){return(e==null?void 0:e.ownerDocument)??document}function FI(e){if(!e)return null;for(const t of e.childNodes)if(t.nodeType!==Node.COMMENT_NODE)return t;return null}function BI(e,t){const{clientX:n,clientY:i}=e,s=t.getBoundingClientRect();return n<s.left||n>s.right||i<s.top||i>s.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var jo,fo,Vi,Qo,Jo,Hi,Ba,za,di,ff,gs,ly,hf,$o,gf,pf,vf,mf,Va,cy,bf,_f;class zI{constructor(t){z(this,gs);$(this,"opts");z(this,jo);z(this,fo);z(this,Vi,{pointerdown:!1});z(this,Qo,!1);z(this,Jo,!1);$(this,"node",F(null));z(this,Hi);z(this,Ba);z(this,za,bt(null));z(this,di,ge);z(this,ff,t=>{t.defaultPrevented||this.currNode&&tr(()=>{var n,i;!this.currNode||_(this,mf).call(this,t.target)||t.target&&!_(this,Jo)&&((i=(n=_(this,Ba)).current)==null||i.call(n,t))})});z(this,hf,t=>{let n=t;n.defaultPrevented&&(n=d_(t)),_(this,jo).current(t)});z(this,$o,u_(t=>{if(!this.currNode){_(this,di).call(this);return}const n=this.opts.isValidEvent.current(t,this.currNode)||UI(t,this.currNode);if(!_(this,Qo)||Pt(this,gs,cy).call(this)||!n){_(this,di).call(this);return}let i=t;if(i.defaultPrevented&&(i=d_(i)),_(this,fo).current!=="close"&&_(this,fo).current!=="defer-otherwise-close"){_(this,di).call(this);return}t.pointerType==="touch"?(_(this,di).call(this),Be(this,di,oy(_(this,Hi),"click",_(this,hf),{once:!0}))):_(this,jo).current(i)},10));z(this,gf,t=>{_(this,Vi)[t.type]=!0});z(this,pf,t=>{_(this,Vi)[t.type]=!1});z(this,vf,()=>{this.node.current&&Be(this,Qo,WI(this.node.current))});z(this,mf,t=>this.node.current?Ip(this.node.current,t):!1);z(this,Va,u_(()=>{for(const t in _(this,Vi))_(this,Vi)[t]=!1;Be(this,Qo,!1)},20));z(this,bf,()=>{Be(this,Jo,!0)});z(this,_f,()=>{Be(this,Jo,!1)});$(this,"props",{onfocuscapture:_(this,bf),onblurcapture:_(this,_f)});this.opts=t,jt({id:t.id,ref:this.node,deps:()=>t.enabled.current,onRefChange:s=>{this.currNode=s}}),Be(this,fo,t.interactOutsideBehavior),Be(this,jo,t.onInteractOutside),Be(this,Ba,t.onFocusOutside),be(()=>{Be(this,Hi,ay(this.currNode))});let n=ge;const i=()=>{_(this,Va).call(this),globalThis.bitsDismissableLayers.delete(this),_(this,$o).destroy(),n()};he([()=>this.opts.enabled.current,()=>this.currNode],([s,a])=>{if(!(!s||!a))return bu(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,_(this,fo)),n(),n=Pt(this,gs,ly).call(this))}),i}),Pp(()=>{_(this,Va).destroy(),globalThis.bitsDismissableLayers.delete(this),_(this,$o).destroy(),_(this,di).call(this),n()})}get currNode(){return f(_(this,za))}set currNode(t){M(_(this,za),t,!0)}}jo=new WeakMap,fo=new WeakMap,Vi=new WeakMap,Qo=new WeakMap,Jo=new WeakMap,Hi=new WeakMap,Ba=new WeakMap,za=new WeakMap,di=new WeakMap,ff=new WeakMap,gs=new WeakSet,ly=function(){return hi(je(_(this,Hi),"pointerdown",hi(_(this,gf),_(this,vf)),{capture:!0}),je(_(this,Hi),"pointerdown",hi(_(this,pf),_(this,$o))),je(_(this,Hi),"focusin",_(this,ff)))},hf=new WeakMap,$o=new WeakMap,gf=new WeakMap,pf=new WeakMap,vf=new WeakMap,mf=new WeakMap,Va=new WeakMap,cy=function(){return Object.values(_(this,Vi)).some(Boolean)},bf=new WeakMap,_f=new WeakMap;function VI(e){return new zI(e)}function HI(e){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function WI(e){const t=[...globalThis.bitsDismissableLayers],n=HI(t);if(n)return n[0].node.current===e;const[i]=t[0];return i.node.current===e}function UI(e,t){if("button"in e&&e.button>0)return!1;const n=e.target;return ry(n)?ay(n).documentElement.contains(n)&&!Ip(t,n)&&BI(e,t):!1}function d_(e){const t=e.currentTarget,n=e.target;let i;e instanceof PointerEvent?i=new PointerEvent(e.type,e):i=new PointerEvent("pointerdown",e);let s=!1;return new Proxy(i,{get:(l,c)=>c==="currentTarget"?t:c==="target"?n:c==="preventDefault"?()=>{s=!0,typeof l.preventDefault=="function"&&l.preventDefault()}:c==="defaultPrevented"?s:c in l?l[c]:e[c]})}function uy(e,t){ct(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),i=k(t,"onInteractOutside",3,ge),s=k(t,"onFocusOutside",3,ge),a=k(t,"isValidEvent",3,()=>!1);const l=VI({id:F.with(()=>t.id),interactOutsideBehavior:F.with(()=>n()),onInteractOutside:F.with(()=>i()),enabled:F.with(()=>t.enabled),onFocusOutside:F.with(()=>s()),isValidEvent:F.with(()=>a())});var c=K(),d=L(c);lt(d,()=>t.children??St,()=>({props:l.props})),A(e,c),ut()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var yf,wf;class GI{constructor(t){$(this,"opts");z(this,yf,()=>je(document,"keydown",_(this,wf),{passive:!1}));z(this,wf,t=>{if(t.key!==rI||!qI(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const i=this.opts.escapeKeydownBehavior.current;i!=="close"&&i!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)});this.opts=t;let n=ge;he(()=>t.enabled.current,i=>(i&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=_(this,yf).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}}yf=new WeakMap,wf=new WeakMap;function KI(e){return new GI(e)}function qI(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([s,{current:a}])=>a==="close"||a==="ignore");if(n)return n[0]===e;const[i]=t[0];return i===e}function dy(e,t){ct(t,!0);let n=k(t,"escapeKeydownBehavior",3,"close"),i=k(t,"onEscapeKeydown",3,ge);KI({escapeKeydownBehavior:F.with(()=>n()),onEscapeKeydown:F.with(()=>i()),enabled:F.with(()=>t.enabled)});var s=K(),a=L(s);lt(a,()=>t.children??St),A(e,s),ut()}const Ei=F([]);function XI(){return{add(e){const t=Ei.current[0];t&&e.id!==t.id&&t.pause(),Ei.current=f_(Ei.current,e),Ei.current.unshift(e)},remove(e){var t;Ei.current=f_(Ei.current,e),(t=Ei.current[0])==null||t.resume()},get current(){return Ei.current}}}function YI(){let e=bt(!1),t=bt(!1);return{id:Qt(),get paused(){return f(e)},get isHandlingFocus(){return f(t)},set isHandlingFocus(n){M(t,n,!0)},pause(){M(e,!0)},resume(){M(e,!1)}}}function f_(e,t){return[...e].filter(n=>n.id!==t.id)}function ZI(e){return e.filter(t=>t.tagName!=="A")}function Mi(e,{select:t=!1}={}){if(!(e&&e.focus)||document.activeElement===e)return;const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gI(e)&&t&&e.select()}function jI(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Mi(i,{select:t}),document.activeElement!==n)return!0}function h_(e,t){for(const n of e)if(!pI(n,t))return n}function fy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function QI(e){const t=fy(e),n=h_(t,e),i=h_(t.reverse(),e);return[n,i]}/*!
|
|
387
|
+
* tabbable 6.2.0
|
|
388
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
389
|
+
*/var JI=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$I=JI.join(","),hy=typeof Element>"u",qd=hy?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xd=!hy&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},tO=function e(t,n){var i;n===void 0&&(n=!0);var s=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),a=s===""||s==="true",l=a||n&&t&&e(t.parentNode);return l},eO=function(t){var n,i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return i===""||i==="true"},nO=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},rO=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||eO(t))&&!nO(t)?0:t.tabIndex},gy=function(t){return t.tagName==="INPUT"},iO=function(t){return gy(t)&&t.type==="hidden"},oO=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return n},sO=function(t,n){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===n)return t[i]},aO=function(t){if(!t.name)return!0;var n=t.form||Xd(t),i=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=i(window.CSS.escape(t.name));else try{s=i(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var a=sO(s,t.form);return!a||a===t},lO=function(t){return gy(t)&&t.type==="radio"},cO=function(t){return lO(t)&&!aO(t)},uO=function(t){var n,i=t&&Xd(t),s=(n=i)===null||n===void 0?void 0:n.host,a=!1;if(i&&i!==t){var l,c,d;for(a=!!((l=s)!==null&&l!==void 0&&(c=l.ownerDocument)!==null&&c!==void 0&&c.contains(s)||t!=null&&(d=t.ownerDocument)!==null&&d!==void 0&&d.contains(t));!a&&s;){var h,p,g;i=Xd(s),s=(h=i)===null||h===void 0?void 0:h.host,a=!!((p=s)!==null&&p!==void 0&&(g=p.ownerDocument)!==null&&g!==void 0&&g.contains(s))}}return a},g_=function(t){var n=t.getBoundingClientRect(),i=n.width,s=n.height;return i===0&&s===0},dO=function(t,n){var i=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=qd.call(t,"details>summary:first-of-type"),l=a?t.parentElement:t;if(qd.call(l,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof s=="function"){for(var c=t;t;){var d=t.parentElement,h=Xd(t);if(d&&!d.shadowRoot&&s(d)===!0)return g_(t);t.assignedSlot?t=t.assignedSlot:!d&&h!==t.ownerDocument?t=h.host:t=d}t=c}if(uO(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return g_(t);return!1},fO=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var i=0;i<n.children.length;i++){var s=n.children.item(i);if(s.tagName==="LEGEND")return qd.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},hO=function(t,n){return!(n.disabled||tO(n)||iO(n)||dO(n,t)||oO(n)||fO(n))},gO=function(t,n){return!(cO(n)||rO(n)<0||!hO(t,n))},pO=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qd.call(t,$I)===!1?!1:gO(n,t)};const vO=new sy("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),mO=new sy("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),bO=new An("FocusScope");function _O({id:e,loop:t,enabled:n,onOpenAutoFocus:i,onCloseAutoFocus:s,forceMount:a}){const l=XI(),c=YI(),d=F(null),h=bO.getOr({ignoreCloseAutoFocus:!1});let p=null;jt({id:e,ref:d,deps:()=>n.current});function g(C){if(!(c.paused||!d.current||c.isHandlingFocus)){c.isHandlingFocus=!0;try{const T=C.target;if(!Ug(T))return;const R=d.current.contains(T);if(C.type==="focusin")if(R)p=T;else{if(h.ignoreCloseAutoFocus)return;Mi(p,{select:!0})}else C.type==="focusout"&&!R&&!h.ignoreCloseAutoFocus&&Mi(p,{select:!0})}finally{c.isHandlingFocus=!1}}}function v(C){if(!p||!d.current)return;let T=!1;for(const R of C){if(R.type==="childList"&&R.removedNodes.length>0)for(const O of R.removedNodes){if(O===p){T=!0;break}if(O.nodeType===Node.ELEMENT_NODE&&O.contains(p)){T=!0;break}}if(T)break}T&&d.current&&!d.current.contains(document.activeElement)&&Mi(d.current)}he([()=>d.current,()=>n.current],([C,T])=>{if(!C||!T)return;const R=hi(je(document,"focusin",g),je(document,"focusout",g)),O=new MutationObserver(v);return O.observe(C,{childList:!0,subtree:!0,attributes:!1}),()=>{R(),O.disconnect()}}),he([()=>a.current,()=>d.current],([C,T])=>{if(C)return;const R=document.activeElement;return b(T,R),()=>{T&&y(R)}}),he([()=>a.current,()=>d.current,()=>n.current],([C,T])=>{if(!C)return;const R=document.activeElement;return b(T,R),()=>{T&&y(R)}});function b(C,T){if(C||(C=document.getElementById(e.current)),!C||!n.current)return;if(l.add(c),!C.contains(T)){const O=vO.createEvent();i.current(O),O.defaultPrevented||tr(()=>{if(!C)return;jI(ZI(fy(C)),{select:!0})||Mi(C)})}}function y(C){var O;const T=mO.createEvent();(O=s.current)==null||O.call(s,T);const R=h.ignoreCloseAutoFocus;bu(0,()=>{!T.defaultPrevented&&C&&!R&&Mi(pO(C)?C:document.body,{select:!0}),l.remove(c)})}function w(C){if(!n.current||!t.current&&!n.current||c.paused)return;const T=C.key===Hg&&!C.ctrlKey&&!C.altKey&&!C.metaKey,R=document.activeElement;if(!(T&&R))return;const O=d.current;if(!O)return;const[B,V]=QI(O);B&&V?!C.shiftKey&&R===V?(C.preventDefault(),t.current&&Mi(B,{select:!0})):C.shiftKey&&R===B&&(C.preventDefault(),t.current&&Mi(V,{select:!0})):R===O&&C.preventDefault()}const x=E(()=>({id:e.current,tabindex:-1,onkeydown:w}));return{get props(){return f(x)}}}function py(e,t){ct(t,!0);let n=k(t,"trapFocus",3,!1),i=k(t,"loop",3,!1),s=k(t,"onCloseAutoFocus",3,ge),a=k(t,"onOpenAutoFocus",3,ge),l=k(t,"forceMount",3,!1);const c=_O({enabled:F.with(()=>n()),loop:F.with(()=>i()),onCloseAutoFocus:F.with(()=>s()),onOpenAutoFocus:F.with(()=>a()),id:F.with(()=>t.id),forceMount:F.with(()=>l())});var d=K(),h=L(d);lt(h,()=>t.focusScope??St,()=>({props:c.props})),A(e,d),ut()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var ts,Ha,xf,vy,Sf,Wa;class yO{constructor(t){z(this,xf);$(this,"opts");z(this,ts,ge);z(this,Ha,F(null));z(this,Sf,t=>{const n=_(this,Ha).current,i=t.target;!Ug(n)||!Ug(i)||!this.opts.enabled.current||!SO(this)||!Ip(n,i)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&Be(this,ts,xO(n)))});z(this,Wa,()=>{_(this,ts).call(this),Be(this,ts,ge)});this.opts=t,jt({id:t.id,ref:_(this,Ha),deps:()=>this.opts.enabled.current});let n=ge;he(()=>this.opts.enabled.current,i=>(i&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=Pt(this,xf,vy).call(this)),()=>{n(),_(this,Wa).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}ts=new WeakMap,Ha=new WeakMap,xf=new WeakSet,vy=function(){return hi(je(document,"pointerdown",_(this,Sf)),je(document,"pointerup",G0(_(this,Wa),this.opts.onPointerUp.current)))},Sf=new WeakMap,Wa=new WeakMap;function wO(e){return new yO(e)}const p_=e=>e.style.userSelect||e.style.webkitUserSelect;function xO(e){const t=document.body,n=p_(t),i=p_(e);return wd(t,"none"),wd(e,"text"),()=>{wd(t,n),wd(e,i)}}function wd(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function SO(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function my(e,t){ct(t,!0);let n=k(t,"preventOverflowTextSelection",3,!0),i=k(t,"onPointerDown",3,ge),s=k(t,"onPointerUp",3,ge);wO({id:F.with(()=>t.id),onPointerDown:F.with(()=>i()),onPointerUp:F.with(()=>s()),enabled:F.with(()=>t.enabled&&n())});var a=K(),l=L(a);lt(l,()=>t.children??St),A(e,a),ut()}function AO(e){let t=0,n=bt(void 0),i;function s(){t-=1,i&&t<=0&&(i(),M(n,void 0),i=void 0)}return(...a)=>(t+=1,f(n)===void 0&&(i=E0(()=>{M(n,e(...a),!0)})),be(()=>()=>{s()}),f(n))}const CO=AO(()=>{const e=new ia,t=E(()=>{for(const a of e.values())if(a)return!0;return!1});let n=bt(null),i=null;function s(){Hf&&(document.body.setAttribute("style",f(n)??""),document.body.style.removeProperty("--scrollbar-width"),Wg&&(i==null||i()))}return be(()=>{const a=f(t);return Dr(()=>{if(!a)return;M(n,document.body.getAttribute("style"),!0);const l=getComputedStyle(document.body),c=window.innerWidth-document.documentElement.clientWidth,h={padding:Number.parseInt(l.paddingRight??"0",10)+c,margin:Number.parseInt(l.marginRight??"0",10)};c>0&&(document.body.style.paddingRight=`${h.padding}px`,document.body.style.marginRight=`${h.margin}px`,document.body.style.setProperty("--scrollbar-width",`${c}px`),document.body.style.overflow="hidden"),Wg&&(i=oy(document,"touchmove",p=>{p.target===document.documentElement&&(p.touches.length>1||p.preventDefault())},{passive:!1})),tr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),be(()=>()=>{i==null||i()}),{get map(){return e},resetBodyStyle:s}});function PO(e,t=()=>null){const n=Qt(),i=CO();if(!i)return;const s=E(t);i.map.set(n,e??!1);const a=F.with(()=>i.map.get(n)??!1,l=>i.map.set(n,l));return be(()=>()=>{i.map.delete(n),!kO(i.map)&&(f(s)===null?requestAnimationFrame(()=>i.resetBodyStyle()):bu(f(s),()=>i.resetBodyStyle()))}),a}function kO(e){for(const[t,n]of e)if(n)return!0;return!1}function Yd(e,t){ct(t,!0);let n=k(t,"preventScroll",3,!0),i=k(t,"restoreScrollDelay",3,null);PO(n(),()=>i()),ut()}function TO({forceMount:e,present:t,trapFocus:n,open:i}){return e?i&&n:t&&n&&i}var EO=J("<div><!></div>");function by(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"forceMount",3,!1),s=k(t,"ref",15,null),a=xt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const l=OI({id:F.with(()=>n()),ref:F.with(()=>s(),d=>s(d))}),c=E(()=>Wt(a,l.props));{const d=p=>{var g=K(),v=L(g);{var b=w=>{var x=K(),C=L(x);{let T=E(()=>({props:Wt(f(c)),...l.snippetProps}));lt(C,()=>t.child,()=>f(T))}A(w,x)},y=w=>{var x=EO();Lt(x,T=>({...T}),[()=>Wt(f(c))]);var C=q(x);lt(C,()=>t.children??St,()=>l.snippetProps),G(x),A(w,x)};vt(v,w=>{t.child?w(b):w(y,!1)})}A(p,g)};let h=E(()=>l.root.opts.open.current||i());Wf(e,{get id(){return n()},get present(){return f(h)},presence:d,$$slots:{presence:!0}})}ut()}var IO=J("<button><!></button>");function OO(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"disabled",3,!1),a=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const l=TI({id:F.with(()=>n()),ref:F.with(()=>i(),w=>i(w)),disabled:F.with(()=>!!s())}),c=E(()=>Wt(a,l.props)),d=Gr(),[h,p]=d;var g=K(),v=L(g);{var b=w=>{var x=K(),C=L(x);lt(C,()=>t.child,()=>({props:f(c)})),A(w,x)},y=w=>{var x=IO();Lt(x,T=>({...T}),[()=>p({...f(c)},[{attribute_name:"formaction"}])]);var C=q(x);lt(C,()=>t.children??St),G(x),A(w,x)};vt(v,w=>{t.child?w(b):w(y,!1)})}A(e,g),ut()}var NO=J("<div><!></div>");function RO(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const a=NI({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=NO();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}function MO(e,t){return e>=0&&e<t.length}function LO(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function DO(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function FO(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let s=t+n;return i?s=(s%e.length+e.length)%e.length:s=Math.max(0,Math.min(s,e.length-1)),e[s]}function BO(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let s=t-n;return i?s=(s%e.length+e.length)%e.length:s=Math.max(0,Math.min(s,e.length-1)),e[s]}function Op(e,t,n){const i=t.toLowerCase();if(i.endsWith(" ")){const g=i.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(g)).length<=1)return Op(e,g,n);const b=n==null?void 0:n.toLowerCase();if(b&&b.startsWith(g)&&b.charAt(g.length)===" "&&t.trim()===g)return n;const y=e.filter(w=>w.toLowerCase().startsWith(i));if(y.length>0){const w=n?e.indexOf(n):-1;return v_(y,Math.max(w,0)).find(T=>T!==n)||n}}const a=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=a.toLowerCase(),c=n?e.indexOf(n):-1;let d=v_(e,Math.max(c,0));a.length===1&&(d=d.filter(g=>g!==n));const p=d.find(g=>g==null?void 0:g.toLowerCase().startsWith(l));return p!==n?p:void 0}function v_(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const zO="data-checkbox-root";var Ua,Ga,Ka,qa,Gg,Xa,Ya;class VO{constructor(t,n=null){z(this,qa);$(this,"opts");$(this,"group");z(this,Ua,E(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current));z(this,Ga,E(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current));z(this,Ka,E(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current));z(this,Xa,E(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));z(this,Ya,E(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":ty(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":J0(this.trueRequired),"data-disabled":Xn(this.trueDisabled),"data-state":WO(this.opts.checked.current,this.opts.indeterminate.current),[zO]:"",onclick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,this.group=n,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),jt(t),he.pre([()=>{var i;return D0((i=this.group)==null?void 0:i.opts.value.current)},()=>this.opts.value.current],([i,s])=>{!i||!s||(this.opts.checked.current=i.includes(s))}),he.pre(()=>this.opts.checked.current,i=>{var s,a;this.group&&(i?(s=this.group)==null||s.addValue(this.opts.value.current):(a=this.group)==null||a.removeValue(this.opts.value.current))})}get trueName(){return f(_(this,Ua))}set trueName(t){M(_(this,Ua),t)}get trueRequired(){return f(_(this,Ga))}set trueRequired(t){M(_(this,Ga),t)}get trueDisabled(){return f(_(this,Ka))}set trueDisabled(t){M(_(this,Ka),t)}onkeydown(t){this.opts.disabled.current||(t.key===Vr&&t.preventDefault(),t.key===Fr&&(t.preventDefault(),Pt(this,qa,Gg).call(this)))}onclick(t){this.opts.disabled.current||Pt(this,qa,Gg).call(this)}get snippetProps(){return f(_(this,Xa))}set snippetProps(t){M(_(this,Xa),t)}get props(){return f(_(this,Ya))}set props(t){M(_(this,Ya),t)}}Ua=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakSet,Gg=function(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current},Xa=new WeakMap,Ya=new WeakMap;var Za,ja,Qa;class HO{constructor(t){$(this,"root");z(this,Za,E(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current));z(this,ja,E(()=>!!this.root.trueName));z(this,Qa,E(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current})));this.root=t}get trueChecked(){return f(_(this,Za))}set trueChecked(t){M(_(this,Za),t)}get shouldRender(){return f(_(this,ja))}set shouldRender(t){M(_(this,ja),t)}get props(){return f(_(this,Qa))}set props(t){M(_(this,Qa),t)}}Za=new WeakMap,ja=new WeakMap,Qa=new WeakMap;function WO(e,t){return t?"indeterminate":e?"checked":"unchecked"}const UO=new An("Checkbox.Group"),_y=new An("Checkbox.Root");function GO(e,t){return _y.set(new VO(e,t))}function KO(){return new HO(_y.get())}var qO=J("<input/>"),XO=J("<input/>");function Np(e,t){ct(t,!0);let n=k(t,"value",15),i=xt(t,["$$slots","$$events","$$legacy","value"]);const s=E(()=>Wt(i,{"aria-hidden":"true",tabindex:-1,style:WE}));var a=K(),l=L(a);{var c=h=>{var p=qO();Lt(p,()=>({...f(s),value:n()}),void 0,void 0,void 0,!0),A(h,p)},d=h=>{var p=XO();Lt(p,()=>({...f(s)}),void 0,void 0,void 0,!0),B0(p,n),A(h,p)};vt(l,h=>{f(s).type==="checkbox"?h(c):h(d,!1)})}A(e,a),ut()}function YO(e,t){ct(t,!1);const n=KO();R0();var i=K(),s=L(i);{var a=l=>{Np(l,Et(()=>n.props))};vt(s,l=>{n.shouldRender&&l(a)})}A(e,i),ut()}var ZO=J("<button><!></button>"),jO=J("<!> <!>",1);function QO(e,t){ct(t,!0);let n=k(t,"checked",15,!1),i=k(t,"ref",15,null),s=k(t,"disabled",3,!1),a=k(t,"required",3,!1),l=k(t,"name",3,void 0),c=k(t,"value",3,"on"),d=k(t,"id",19,Qt),h=k(t,"indeterminate",15,!1),p=k(t,"type",3,"button"),g=xt(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type"]);const v=UO.getOr(null);v&&c()&&(v.opts.value.current.includes(c())?n(!0):n(!1)),he.pre(()=>c(),()=>{v&&c()&&(v.opts.value.current.includes(c())?n(!0):n(!1))});const b=GO({checked:F.with(()=>n(),N=>{var H;n(N),(H=t.onCheckedChange)==null||H.call(t,N)}),disabled:F.with(()=>s()??!1),required:F.with(()=>a()),name:F.with(()=>l()),value:F.with(()=>c()),id:F.with(()=>d()),ref:F.with(()=>i(),N=>i(N)),indeterminate:F.with(()=>h(),N=>{var H;h(N),(H=t.onIndeterminateChange)==null||H.call(t,N)}),type:F.with(()=>p())},v),y=E(()=>Wt({...g},b.props)),w=Gr(),[x,C]=w;var T=jO(),R=L(T);{var O=N=>{var H=K(),X=L(H);{let tt=E(()=>({props:f(y),...b.snippetProps}));lt(X,()=>t.child,()=>f(tt))}A(N,H)},B=N=>{var H=ZO();Lt(H,tt=>({...tt}),[()=>C({...f(y)},[{attribute_name:"formaction"}])]);var X=q(H);lt(X,()=>t.children??St,()=>b.snippetProps),G(H),A(N,H)};vt(R,N=>{t.child?N(O):N(B,!1)})}var V=at(R,2);YO(V,{}),A(e,T),ut()}const JO="data-collapsible-root",$O="data-collapsible-content",tN="data-collapsible-trigger";var Ja,$a;class eN{constructor(t){$(this,"opts");z(this,Ja,bt(null));z(this,$a,E(()=>({id:this.opts.id.current,"data-state":ji(this.opts.open.current),"data-disabled":Xn(this.opts.disabled.current),[JO]:""})));this.opts=t,this.toggleOpen=this.toggleOpen.bind(this),jt(t)}get contentNode(){return f(_(this,Ja))}set contentNode(t){M(_(this,Ja),t,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}get props(){return f(_(this,$a))}set props(t){M(_(this,$a),t)}}Ja=new WeakMap,$a=new WeakMap;var es,ns,rs,is,tl,el,nl;class nN{constructor(t,n){$(this,"opts");$(this,"root");z(this,es);z(this,ns,bt(!1));z(this,rs,bt(0));z(this,is,bt(0));z(this,tl,E(()=>this.opts.forceMount.current||this.root.opts.open.current));z(this,el,E(()=>({open:this.root.opts.open.current})));z(this,nl,E(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":f(_(this,is))?`${f(_(this,is))}px`:void 0,"--bits-collapsible-content-width":f(_(this,rs))?`${f(_(this,rs))}px`:void 0},"data-state":ji(this.root.opts.open.current),"data-disabled":Xn(this.root.opts.disabled.current),[$O]:""})));this.opts=t,this.root=n,M(_(this,ns),n.opts.open.current,!0),jt({...t,deps:()=>this.present,onRefChange:i=>{this.root.contentNode=i}}),Bf(()=>{const i=requestAnimationFrame(()=>{M(_(this,ns),!1)});return()=>{cancelAnimationFrame(i)}}),he([()=>this.opts.ref.current,()=>this.present],([i])=>{i&&tr(()=>{if(!this.opts.ref.current)return;Be(this,es,_(this,es)||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName}),i.style.transitionDuration="0s",i.style.animationName="none";const s=i.getBoundingClientRect();if(M(_(this,is),s.height,!0),M(_(this,rs),s.width,!0),!f(_(this,ns))){const{animationName:a,transitionDuration:l}=_(this,es);i.style.transitionDuration=l,i.style.animationName=a}})})}get present(){return f(_(this,tl))}set present(t){M(_(this,tl),t)}get snippetProps(){return f(_(this,el))}set snippetProps(t){M(_(this,el),t)}get props(){return f(_(this,nl))}set props(t){M(_(this,nl),t)}}es=new WeakMap,ns=new WeakMap,rs=new WeakMap,is=new WeakMap,tl=new WeakMap,el=new WeakMap,nl=new WeakMap;var ho,rl;class rN{constructor(t,n){$(this,"opts");$(this,"root");z(this,ho,E(()=>this.opts.disabled.current||this.root.opts.disabled.current));z(this,rl,E(()=>{var t;return{id:this.opts.id.current,type:"button",disabled:f(_(this,ho)),"aria-controls":(t=this.root.contentNode)==null?void 0:t.id,"aria-expanded":_u(this.root.opts.open.current),"data-state":ji(this.root.opts.open.current),"data-disabled":Xn(f(_(this,ho))),[tN]:"",onclick:this.onclick,onkeydown:this.onkeydown}}));this.opts=t,this.root=n,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),jt(t)}onclick(t){if(!f(_(this,ho))){if(t.button!==0)return t.preventDefault();this.root.toggleOpen()}}onkeydown(t){f(_(this,ho))||(t.key===Fr||t.key===Vr)&&(t.preventDefault(),this.root.toggleOpen())}get props(){return f(_(this,rl))}set props(t){M(_(this,rl),t)}}ho=new WeakMap,rl=new WeakMap;const Rp=new An("Collapsible.Root");function iN(e){return Rp.set(new eN(e))}function oN(e){return new rN(e,Rp.get())}function sN(e){return new nN(e,Rp.get())}var aN=J("<div><!></div>");function lN(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"open",15,!1),a=k(t,"disabled",3,!1),l=k(t,"onOpenChange",3,ge),c=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange"]);const d=iN({open:F.with(()=>s(),y=>{s(y),l()(y)}),disabled:F.with(()=>a()),id:F.with(()=>n()),ref:F.with(()=>i(),y=>i(y))}),h=E(()=>Wt(c,d.props));var p=K(),g=L(p);{var v=y=>{var w=K(),x=L(w);lt(x,()=>t.child,()=>({props:f(h)})),A(y,w)},b=y=>{var w=aN();Lt(w,()=>({...f(h)}));var x=q(w);lt(x,()=>t.children??St),G(w),A(y,w)};vt(g,y=>{t.child?y(v):y(b,!1)})}A(e,p),ut()}var cN=J("<div><!></div>");function uN(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"forceMount",3,!1),s=k(t,"id",19,Qt),a=xt(t,["$$slots","$$events","$$legacy","child","ref","forceMount","children","id"]);const l=sN({id:F.with(()=>s()),forceMount:F.with(()=>i()),ref:F.with(()=>n(),c=>n(c))});Wf(e,{forceMount:!0,get present(){return l.present},get id(){return s()},presence:(d,h)=>{let p=()=>h==null?void 0:h().present;const g=E(()=>Wt(a,l.props,{hidden:i()?void 0:!p().current}));var v=K(),b=L(v);{var y=x=>{var C=K(),T=L(C);{let R=E(()=>({...l.snippetProps,props:f(g)}));lt(T,()=>t.child,()=>f(R))}A(x,C)},w=x=>{var C=cN();Lt(C,()=>({...f(g)}));var T=q(C);lt(T,()=>t.children??St),G(C),A(x,C)};vt(b,x=>{t.child?x(y):x(w,!1)})}A(d,v)},$$slots:{presence:!0}}),ut()}var dN=J("<button><!></button>");function fN(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=k(t,"disabled",3,!1),a=xt(t,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const l=oN({id:F.with(()=>i()),ref:F.with(()=>n(),w=>n(w)),disabled:F.with(()=>s())}),c=E(()=>Wt(a,l.props)),d=Gr(),[h,p]=d;var g=K(),v=L(g);{var b=w=>{var x=K(),C=L(x);lt(C,()=>t.child,()=>({props:f(c)})),A(w,x)},y=w=>{var x=dN();Lt(x,T=>({...T}),[()=>p({...f(c)},[{attribute_name:"formaction"}])]);var C=q(x);lt(C,()=>t.children??St),G(x),A(w,x)};vt(v,w=>{t.child?w(b):w(y,!1)})}A(e,g),ut()}const hN=["top","right","bottom","left"],qi=Math.min,er=Math.max,Zd=Math.round,xd=Math.floor,Br=e=>({x:e,y:e}),gN={left:"right",right:"left",bottom:"top",top:"bottom"},pN={start:"end",end:"start"};function Kg(e,t,n){return er(e,qi(t,n))}function pi(e,t){return typeof e=="function"?e(t):e}function vi(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function Mp(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function Xi(e){return["top","bottom"].includes(vi(e))?"y":"x"}function Dp(e){return Mp(Xi(e))}function vN(e,t,n){n===void 0&&(n=!1);const i=bs(e),s=Dp(e),a=Lp(s);let l=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=jd(l)),[l,jd(l)]}function mN(e){const t=jd(e);return[qg(e),t,qg(t)]}function qg(e){return e.replace(/start|end/g,t=>pN[t])}function bN(e,t,n){const i=["left","right"],s=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?a:l;default:return[]}}function _N(e,t,n,i){const s=bs(e);let a=bN(vi(e),n==="start",i);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(qg)))),a}function jd(e){return e.replace(/left|right|bottom|top/g,t=>gN[t])}function yN(e){return{top:0,right:0,bottom:0,left:0,...e}}function yy(e){return typeof e!="number"?yN(e):{top:e,right:e,bottom:e,left:e}}function Qd(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function m_(e,t,n){let{reference:i,floating:s}=e;const a=Xi(t),l=Dp(t),c=Lp(l),d=vi(t),h=a==="y",p=i.x+i.width/2-s.width/2,g=i.y+i.height/2-s.height/2,v=i[c]/2-s[c]/2;let b;switch(d){case"top":b={x:p,y:i.y-s.height};break;case"bottom":b={x:p,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:g};break;case"left":b={x:i.x-s.width,y:g};break;default:b={x:i.x,y:i.y}}switch(bs(t)){case"start":b[l]-=v*(n&&h?-1:1);break;case"end":b[l]+=v*(n&&h?-1:1);break}return b}const wN=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:g}=m_(h,i,d),v=i,b={},y=0;for(let w=0;w<c.length;w++){const{name:x,fn:C}=c[w],{x:T,y:R,data:O,reset:B}=await C({x:p,y:g,initialPlacement:i,placement:v,strategy:s,middlewareData:b,rects:h,platform:l,elements:{reference:e,floating:t}});p=T??p,g=R??g,b={...b,[x]:{...b[x],...O}},B&&y<=50&&(y++,typeof B=="object"&&(B.placement&&(v=B.placement),B.rects&&(h=B.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:p,y:g}=m_(h,v,d)),w=-1)}return{x:p,y:g,placement:v,strategy:s,middlewareData:b}};async function sa(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:a,rects:l,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=pi(t,e),y=yy(b),x=c[v?g==="floating"?"reference":"floating":g],C=Qd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:d})),T=g==="floating"?{x:i,y:s,width:l.floating.width,height:l.floating.height}:l.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),O=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},B=Qd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:R,strategy:d}):T);return{top:(C.top-B.top+y.top)/O.y,bottom:(B.bottom-C.bottom+y.bottom)/O.y,left:(C.left-B.left+y.left)/O.x,right:(B.right-C.right+y.right)/O.x}}const xN=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:a,platform:l,elements:c,middlewareData:d}=t,{element:h,padding:p=0}=pi(e,t)||{};if(h==null)return{};const g=yy(p),v={x:n,y:i},b=Dp(s),y=Lp(b),w=await l.getDimensions(h),x=b==="y",C=x?"top":"left",T=x?"bottom":"right",R=x?"clientHeight":"clientWidth",O=a.reference[y]+a.reference[b]-v[b]-a.floating[y],B=v[b]-a.reference[b],V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let N=V?V[R]:0;(!N||!await(l.isElement==null?void 0:l.isElement(V)))&&(N=c.floating[R]||a.floating[y]);const H=O/2-B/2,X=N/2-w[y]/2-1,tt=qi(g[C],X),et=qi(g[T],X),U=tt,nt=N-w[y]-et,Z=N/2-w[y]/2+H,Q=Kg(U,Z,nt),rt=!d.arrow&&bs(s)!=null&&Z!==Q&&a.reference[y]/2-(Z<U?tt:et)-w[y]/2<0,dt=rt?Z<U?Z-U:Z-nt:0;return{[b]:v[b]+dt,data:{[b]:Q,centerOffset:Z-Q-dt,...rt&&{alignmentOffset:dt}},reset:rt}}}),SN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=pi(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const C=vi(s),T=Xi(c),R=vi(c)===c,O=await(d.isRTL==null?void 0:d.isRTL(h.floating)),B=v||(R||!w?[jd(c)]:mN(c)),V=y!=="none";!v&&V&&B.push(..._N(c,w,y,O));const N=[c,...B],H=await sa(t,x),X=[];let tt=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&X.push(H[C]),g){const Z=vN(s,l,O);X.push(H[Z[0]],H[Z[1]])}if(tt=[...tt,{placement:s,overflows:X}],!X.every(Z=>Z<=0)){var et,U;const Z=(((et=a.flip)==null?void 0:et.index)||0)+1,Q=N[Z];if(Q)return{data:{index:Z,overflows:tt},reset:{placement:Q}};let rt=(U=tt.filter(dt=>dt.overflows[0]<=0).sort((dt,ft)=>dt.overflows[1]-ft.overflows[1])[0])==null?void 0:U.placement;if(!rt)switch(b){case"bestFit":{var nt;const dt=(nt=tt.filter(ft=>{if(V){const yt=Xi(ft.placement);return yt===T||yt==="y"}return!0}).map(ft=>[ft.placement,ft.overflows.filter(yt=>yt>0).reduce((yt,mt)=>yt+mt,0)]).sort((ft,yt)=>ft[1]-yt[1])[0])==null?void 0:nt[0];dt&&(rt=dt);break}case"initialPlacement":rt=c;break}if(s!==rt)return{reset:{placement:rt}}}return{}}}};function b_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function __(e){return hN.some(t=>e[t]>=0)}const AN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=pi(e,t);switch(i){case"referenceHidden":{const a=await sa(t,{...s,elementContext:"reference"}),l=b_(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:__(l)}}}case"escaped":{const a=await sa(t,{...s,altBoundary:!0}),l=b_(a,n.floating);return{data:{escapedOffsets:l,escaped:__(l)}}}default:return{}}}}};async function CN(e,t){const{placement:n,platform:i,elements:s}=e,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),l=vi(n),c=bs(n),d=Xi(n)==="y",h=["left","top"].includes(l)?-1:1,p=a&&d?-1:1,g=pi(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof y=="number"&&(b=c==="end"?y*-1:y),d?{x:b*p,y:v*h}:{x:v*h,y:b*p}}const PN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:a,placement:l,middlewareData:c}=t,d=await CN(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:l}}}}},kN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:C,y:T}=x;return{x:C,y:T}}},...d}=pi(e,t),h={x:n,y:i},p=await sa(t,d),g=Xi(vi(s)),v=Mp(g);let b=h[v],y=h[g];if(a){const x=v==="y"?"top":"left",C=v==="y"?"bottom":"right",T=b+p[x],R=b-p[C];b=Kg(T,b,R)}if(l){const x=g==="y"?"top":"left",C=g==="y"?"bottom":"right",T=y+p[x],R=y-p[C];y=Kg(T,y,R)}const w=c.fn({...t,[v]:b,[g]:y});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[v]:a,[g]:l}}}}}},TN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=pi(e,t),p={x:n,y:i},g=Xi(s),v=Mp(g);let b=p[v],y=p[g];const w=pi(c,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(d){const R=v==="y"?"height":"width",O=a.reference[v]-a.floating[R]+x.mainAxis,B=a.reference[v]+a.reference[R]-x.mainAxis;b<O?b=O:b>B&&(b=B)}if(h){var C,T;const R=v==="y"?"width":"height",O=["top","left"].includes(vi(s)),B=a.reference[g]-a.floating[R]+(O&&((C=l.offset)==null?void 0:C[g])||0)+(O?0:x.crossAxis),V=a.reference[g]+a.reference[R]+(O?0:((T=l.offset)==null?void 0:T[g])||0)-(O?x.crossAxis:0);y<B?y=B:y>V&&(y=V)}return{[v]:b,[g]:y}}}},EN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:a,platform:l,elements:c}=t,{apply:d=()=>{},...h}=pi(e,t),p=await sa(t,h),g=vi(s),v=bs(s),b=Xi(s)==="y",{width:y,height:w}=a.floating;let x,C;g==="top"||g==="bottom"?(x=g,C=v===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(C=g,x=v==="end"?"top":"bottom");const T=w-p.top-p.bottom,R=y-p.left-p.right,O=qi(w-p[x],T),B=qi(y-p[C],R),V=!t.middlewareData.shift;let N=O,H=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=R),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(N=T),V&&!v){const tt=er(p.left,0),et=er(p.right,0),U=er(p.top,0),nt=er(p.bottom,0);b?H=y-2*(tt!==0||et!==0?tt+et:er(p.left,p.right)):N=w-2*(U!==0||nt!==0?U+nt:er(p.top,p.bottom))}await d({...t,availableWidth:H,availableHeight:N});const X=await l.getDimensions(c.floating);return y!==X.width||w!==X.height?{reset:{rects:!0}}:{}}}};function Uf(){return typeof window<"u"}function _s(e){return wy(e)?(e.nodeName||"").toLowerCase():"#document"}function nr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kr(e){var t;return(t=(wy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wy(e){return Uf()?e instanceof Node||e instanceof nr(e).Node:!1}function Sr(e){return Uf()?e instanceof Element||e instanceof nr(e).Element:!1}function Hr(e){return Uf()?e instanceof HTMLElement||e instanceof nr(e).HTMLElement:!1}function y_(e){return!Uf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nr(e).ShadowRoot}function Su(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Ar(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function IN(e){return["table","td","th"].includes(_s(e))}function Gf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fp(e){const t=Bp(),n=Sr(e)?Ar(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function ON(e){let t=Yi(e);for(;Hr(t)&&!ds(t);){if(Fp(t))return t;if(Gf(t))return null;t=Yi(t)}return null}function Bp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ds(e){return["html","body","#document"].includes(_s(e))}function Ar(e){return nr(e).getComputedStyle(e)}function Kf(e){return Sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yi(e){if(_s(e)==="html")return e;const t=e.assignedSlot||e.parentNode||y_(e)&&e.host||Kr(e);return y_(t)?t.host:t}function xy(e){const t=Yi(e);return ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hr(t)&&Su(t)?t:xy(t)}function aa(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=xy(e),a=s===((i=e.ownerDocument)==null?void 0:i.body),l=nr(s);if(a){const c=Xg(l);return t.concat(l,l.visualViewport||[],Su(s)?s:[],c&&n?aa(c):[])}return t.concat(s,aa(s,[],n))}function Xg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sy(e){const t=Ar(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=Hr(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:i,c=Zd(n)!==a||Zd(i)!==l;return c&&(n=a,i=l),{width:n,height:i,$:c}}function zp(e){return Sr(e)?e:e.contextElement}function Wo(e){const t=zp(e);if(!Hr(t))return Br(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:a}=Sy(t);let l=(a?Zd(n.width):n.width)/i,c=(a?Zd(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const NN=Br(0);function Ay(e){const t=nr(e);return!Bp()||!t.visualViewport?NN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nr(e)?!1:t}function _o(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=zp(e);let l=Br(1);t&&(i?Sr(i)&&(l=Wo(i)):l=Wo(e));const c=RN(a,n,i)?Ay(a):Br(0);let d=(s.left+c.x)/l.x,h=(s.top+c.y)/l.y,p=s.width/l.x,g=s.height/l.y;if(a){const v=nr(a),b=i&&Sr(i)?nr(i):i;let y=v,w=Xg(y);for(;w&&i&&b!==y;){const x=Wo(w),C=w.getBoundingClientRect(),T=Ar(w),R=C.left+(w.clientLeft+parseFloat(T.paddingLeft))*x.x,O=C.top+(w.clientTop+parseFloat(T.paddingTop))*x.y;d*=x.x,h*=x.y,p*=x.x,g*=x.y,d+=R,h+=O,y=nr(w),w=Xg(y)}}return Qd({width:p,height:g,x:d,y:h})}function Vp(e,t){const n=Kf(e).scrollLeft;return t?t.left+n:_o(Kr(e)).left+n}function Cy(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-(n?0:Vp(e,i)),a=i.top+t.scrollTop;return{x:s,y:a}}function MN(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const a=s==="fixed",l=Kr(i),c=t?Gf(t.floating):!1;if(i===l||c&&a)return n;let d={scrollLeft:0,scrollTop:0},h=Br(1);const p=Br(0),g=Hr(i);if((g||!g&&!a)&&((_s(i)!=="body"||Su(l))&&(d=Kf(i)),Hr(i))){const b=_o(i);h=Wo(i),p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}const v=l&&!g&&!a?Cy(l,d,!0):Br(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+p.x+v.x,y:n.y*h.y-d.scrollTop*h.y+p.y+v.y}}function LN(e){return Array.from(e.getClientRects())}function DN(e){const t=Kr(e),n=Kf(e),i=e.ownerDocument.body,s=er(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=er(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+Vp(e);const c=-n.scrollTop;return Ar(i).direction==="rtl"&&(l+=er(t.clientWidth,i.clientWidth)-s),{width:s,height:a,x:l,y:c}}function FN(e,t){const n=nr(e),i=Kr(e),s=n.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,d=0;if(s){a=s.width,l=s.height;const h=Bp();(!h||h&&t==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}return{width:a,height:l,x:c,y:d}}function BN(e,t){const n=_o(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,a=Hr(e)?Wo(e):Br(1),l=e.clientWidth*a.x,c=e.clientHeight*a.y,d=s*a.x,h=i*a.y;return{width:l,height:c,x:d,y:h}}function w_(e,t,n){let i;if(t==="viewport")i=FN(e,n);else if(t==="document")i=DN(Kr(e));else if(Sr(t))i=BN(t,n);else{const s=Ay(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Qd(i)}function Py(e,t){const n=Yi(e);return n===t||!Sr(n)||ds(n)?!1:Ar(n).position==="fixed"||Py(n,t)}function zN(e,t){const n=t.get(e);if(n)return n;let i=aa(e,[],!1).filter(c=>Sr(c)&&_s(c)!=="body"),s=null;const a=Ar(e).position==="fixed";let l=a?Yi(e):e;for(;Sr(l)&&!ds(l);){const c=Ar(l),d=Fp(l);!d&&c.position==="fixed"&&(s=null),(a?!d&&!s:!d&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Su(l)&&!d&&Py(e,l))?i=i.filter(p=>p!==l):s=c,l=Yi(l)}return t.set(e,i),i}function VN(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=[...n==="clippingAncestors"?Gf(t)?[]:zN(t,this._c):[].concat(n),i],c=l[0],d=l.reduce((h,p)=>{const g=w_(t,p,s);return h.top=er(g.top,h.top),h.right=qi(g.right,h.right),h.bottom=qi(g.bottom,h.bottom),h.left=er(g.left,h.left),h},w_(t,c,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function HN(e){const{width:t,height:n}=Sy(e);return{width:t,height:n}}function WN(e,t,n){const i=Hr(t),s=Kr(t),a=n==="fixed",l=_o(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=Br(0);if(i||!i&&!a)if((_s(t)!=="body"||Su(s))&&(c=Kf(t)),i){const v=_o(t,!0,a,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else s&&(d.x=Vp(s));const h=s&&!i&&!a?Cy(s,c):Br(0),p=l.left+c.scrollLeft-d.x-h.x,g=l.top+c.scrollTop-d.y-h.y;return{x:p,y:g,width:l.width,height:l.height}}function vg(e){return Ar(e).position==="static"}function x_(e,t){if(!Hr(e)||Ar(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Kr(e)===n&&(n=n.ownerDocument.body),n}function ky(e,t){const n=nr(e);if(Gf(e))return n;if(!Hr(e)){let s=Yi(e);for(;s&&!ds(s);){if(Sr(s)&&!vg(s))return s;s=Yi(s)}return n}let i=x_(e,t);for(;i&&IN(i)&&vg(i);)i=x_(i,t);return i&&ds(i)&&vg(i)&&!Fp(i)?n:i||ON(e)||n}const UN=async function(e){const t=this.getOffsetParent||ky,n=this.getDimensions,i=await n(e.floating);return{reference:WN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function GN(e){return Ar(e).direction==="rtl"}const KN={convertOffsetParentRelativeRectToViewportRelativeRect:MN,getDocumentElement:Kr,getClippingRect:VN,getOffsetParent:ky,getElementRects:UN,getClientRects:LN,getDimensions:HN,getScale:Wo,isElement:Sr,isRTL:GN};function Ty(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qN(e,t){let n=null,i;const s=Kr(e);function a(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const h=e.getBoundingClientRect(),{left:p,top:g,width:v,height:b}=h;if(c||t(),!v||!b)return;const y=xd(g),w=xd(s.clientWidth-(p+v)),x=xd(s.clientHeight-(g+b)),C=xd(p),R={rootMargin:-y+"px "+-w+"px "+-x+"px "+-C+"px",threshold:er(0,qi(1,d))||1};let O=!0;function B(V){const N=V[0].intersectionRatio;if(N!==d){if(!O)return l();N?l(!1,N):i=setTimeout(()=>{l(!1,1e-7)},1e3)}N===1&&!Ty(h,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(B,{...R,root:s.ownerDocument})}catch{n=new IntersectionObserver(B,R)}n.observe(e)}return l(!0),a}function XN(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=zp(e),p=s||a?[...h?aa(h):[],...aa(t)]:[];p.forEach(C=>{s&&C.addEventListener("scroll",n,{passive:!0}),a&&C.addEventListener("resize",n)});const g=h&&c?qN(h,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(C=>{let[T]=C;T&&T.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=b)==null||R.observe(t)})),n()}),h&&!d&&b.observe(h),b.observe(t));let y,w=d?_o(e):null;d&&x();function x(){const C=_o(e);w&&!Ty(w,C)&&n(),w=C,y=requestAnimationFrame(x)}return n(),()=>{var C;p.forEach(T=>{s&&T.removeEventListener("scroll",n),a&&T.removeEventListener("resize",n)}),g==null||g(),(C=b)==null||C.disconnect(),b=null,d&&cancelAnimationFrame(y)}}const YN=PN,ZN=kN,jN=SN,QN=EN,JN=AN,$N=xN,tR=TN,eR=(e,t,n)=>{const i=new Map,s={platform:KN,...n},a={...s.platform,_c:i};return wN(e,t,{...s,platform:a})};function Hs(e){return typeof e=="function"?e():e}function Ey(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function S_(e,t){const n=Ey(e);return Math.round(t*n)/n}function A_(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function nR(e){const t=e.whileElementsMounted,n=E(()=>Hs(e.open)??!0),i=E(()=>Hs(e.middleware)),s=E(()=>Hs(e.transform)??!0),a=E(()=>Hs(e.placement)??"bottom"),l=E(()=>Hs(e.strategy)??"absolute"),c=e.reference;let d=bt(0),h=bt(0);const p=F(null);let g=bt(Sn(f(l))),v=bt(Sn(f(a))),b=bt(Sn({})),y=bt(!1);const w=E(()=>{const B={position:f(g),left:"0",top:"0"};if(!p.current)return B;const V=S_(p.current,f(d)),N=S_(p.current,f(h));return f(s)?{...B,transform:`translate(${V}px, ${N}px)`,...Ey(p.current)>=1.5&&{willChange:"transform"}}:{position:f(g),left:`${V}px`,top:`${N}px`}});let x;function C(){c.current===null||p.current===null||eR(c.current,p.current,{middleware:f(i),placement:f(a),strategy:f(l)}).then(B=>{M(d,B.x,!0),M(h,B.y,!0),M(g,B.strategy,!0),M(v,B.placement,!0),M(b,B.middlewareData,!0),M(y,!0)})}function T(){typeof x=="function"&&(x(),x=void 0)}function R(){if(T(),t===void 0){C();return}c.current===null||p.current===null||(x=t(c.current,p.current,C))}function O(){f(n)||M(y,!1)}return be(C),be(R),be(O),be(()=>T),{floating:p,reference:c,get strategy(){return f(g)},get placement(){return f(v)},get middlewareData(){return f(b)},get isPositioned(){return f(y)},get floatingStyles(){return f(w)},get update(){return C}}}const rR={top:"bottom",right:"left",bottom:"top",left:"right"};class iR{constructor(){$(this,"anchorNode",F(null));$(this,"customAnchorNode",F(null));$(this,"triggerNode",F(null));be(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}var il,Af,ol,Cf,sl,Pf,al,ll,cl,ul,dl,fl,hl,gl,pl,vl,ml,bl,_l,yl,wl,xl,Sl,Al;class oR{constructor(t,n){$(this,"opts");$(this,"root");$(this,"contentRef",F(null));$(this,"wrapperRef",F(null));$(this,"arrowRef",F(null));$(this,"arrowId",F(Qt()));z(this,il,E(()=>{if(typeof this.opts.style=="string")return js(this.opts.style);if(!this.opts.style)return{}}));z(this,Af);z(this,ol,new jE(()=>this.arrowRef.current??void 0));z(this,Cf,E(()=>{var t;return((t=_(this,ol))==null?void 0:t.width)??0}));z(this,sl,E(()=>{var t;return((t=_(this,ol))==null?void 0:t.height)??0}));z(this,Pf,E(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));z(this,al,E(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));z(this,ll,E(()=>f(_(this,al)).length>0));z(this,cl,E(()=>({padding:this.opts.collisionPadding.current,boundary:f(_(this,al)).filter(hI),altBoundary:this.hasExplicitBoundaries})));z(this,ul,bt(void 0));z(this,dl,bt(void 0));z(this,fl,bt(void 0));z(this,hl,bt(void 0));z(this,gl,E(()=>[YN({mainAxis:this.opts.sideOffset.current+f(_(this,sl)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&ZN({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tR():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&jN({...this.detectOverflowOptions}),QN({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:s,height:a}=t.reference;M(_(this,ul),n,!0),M(_(this,dl),i,!0),M(_(this,fl),s,!0),M(_(this,hl),a,!0)}}),this.arrowRef.current&&$N({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),dR({arrowWidth:f(_(this,Cf)),arrowHeight:f(_(this,sl))}),this.opts.hideWhenDetached.current&&JN({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));$(this,"floating");z(this,pl,E(()=>fR(this.floating.placement)));z(this,vl,E(()=>hR(this.floating.placement)));z(this,ml,E(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));z(this,bl,E(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));z(this,_l,E(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));z(this,yl,bt());z(this,wl,E(()=>rR[this.placedSide]));z(this,xl,E(()=>{var t,n,i;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${f(_(this,ul))}px`,"--bits-floating-available-height":`${f(_(this,dl))}px`,"--bits-floating-anchor-width":`${f(_(this,fl))}px`,"--bits-floating-anchor-height":`${f(_(this,hl))}px`,...((i=this.floating.middlewareData.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...f(_(this,il))},dir:this.opts.dir.current}}));z(this,Sl,E(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Cp({...f(_(this,il))})})));z(this,Al,E(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),he(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),jt({id:this.opts.wrapperId,ref:this.wrapperRef,deps:()=>this.opts.enabled.current}),jt({id:this.opts.id,ref:this.contentRef,deps:()=>this.opts.enabled.current}),this.floating=nR({strategy:()=>this.opts.strategy.current,placement:()=>f(_(this,Pf)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>{var a;return XN(...i,{animationFrame:((a=_(this,Af))==null?void 0:a.current)==="always"})},open:()=>this.opts.enabled.current}),be(()=>{var i;this.floating.isPositioned&&((i=this.opts.onPlaced)==null||i.current())}),he(()=>this.contentRef.current,i=>{i&&(this.contentZIndex=window.getComputedStyle(i).zIndex)}),be(()=>{this.floating.floating.current=this.wrapperRef.current})}get hasExplicitBoundaries(){return f(_(this,ll))}set hasExplicitBoundaries(t){M(_(this,ll),t)}get detectOverflowOptions(){return f(_(this,cl))}set detectOverflowOptions(t){M(_(this,cl),t)}get middleware(){return f(_(this,gl))}set middleware(t){M(_(this,gl),t)}get placedSide(){return f(_(this,pl))}set placedSide(t){M(_(this,pl),t)}get placedAlign(){return f(_(this,vl))}set placedAlign(t){M(_(this,vl),t)}get arrowX(){return f(_(this,ml))}set arrowX(t){M(_(this,ml),t)}get arrowY(){return f(_(this,bl))}set arrowY(t){M(_(this,bl),t)}get cannotCenterArrow(){return f(_(this,_l))}set cannotCenterArrow(t){M(_(this,_l),t)}get contentZIndex(){return f(_(this,yl))}set contentZIndex(t){M(_(this,yl),t,!0)}get arrowBaseSide(){return f(_(this,wl))}set arrowBaseSide(t){M(_(this,wl),t)}get wrapperProps(){return f(_(this,xl))}set wrapperProps(t){M(_(this,xl),t)}get props(){return f(_(this,Sl))}set props(t){M(_(this,Sl),t)}get arrowStyle(){return f(_(this,Al))}set arrowStyle(t){M(_(this,Al),t)}}il=new WeakMap,Af=new WeakMap,ol=new WeakMap,Cf=new WeakMap,sl=new WeakMap,Pf=new WeakMap,al=new WeakMap,ll=new WeakMap,cl=new WeakMap,ul=new WeakMap,dl=new WeakMap,fl=new WeakMap,hl=new WeakMap,gl=new WeakMap,pl=new WeakMap,vl=new WeakMap,ml=new WeakMap,bl=new WeakMap,_l=new WeakMap,yl=new WeakMap,wl=new WeakMap,xl=new WeakMap,Sl=new WeakMap,Al=new WeakMap;class sR{constructor(t,n){$(this,"opts");$(this,"root");$(this,"ref",F(null));this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=F.from(t.virtualEl.current):jt({id:t.id,ref:this.ref,onRefChange:i=>{n.triggerNode.current=i}})}}const Hp=new An("Floating.Root"),aR=new An("Floating.Content");function lR(){return Hp.set(new iR)}function cR(e){return aR.set(new oR(e,Hp.get()))}function uR(e){return new sR(e,Hp.get())}function dR(e){return{name:"transformOrigin",options:e,fn(t){var x,C,T;const{placement:n,rects:i,middlewareData:s}=t,l=((x=s.arrow)==null?void 0:x.centerOffset)!==0,c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[h,p]=Wp(n),g={start:"0%",center:"50%",end:"100%"}[p],v=(((C=s.arrow)==null?void 0:C.x)??0)+c/2,b=(((T=s.arrow)==null?void 0:T.y)??0)+d/2;let y="",w="";return h==="bottom"?(y=l?g:`${v}px`,w=`${-d}px`):h==="top"?(y=l?g:`${v}px`,w=`${i.floating.height+d}px`):h==="right"?(y=`${-d}px`,w=l?g:`${b}px`):h==="left"&&(y=`${i.floating.width+d}px`,w=l?g:`${b}px`),{data:{x:y,y:w}}}}}function Wp(e){const[t,n="center"]=e.split("-");return[t,n]}function fR(e){return Wp(e)[0]}function hR(e){return Wp(e)[1]}function Iy(e,t){ct(t,!0),lR();var n=K(),i=L(n);lt(i,()=>t.children??St),A(e,n),ut()}function Oy(e,t=1e4,n=ge){let i=null,s=bt(Sn(e));function a(){return window.setTimeout(()=>{M(s,e,!0),n(e)},t)}return be(()=>()=>{i&&clearTimeout(i)}),F.with(()=>f(s),l=>{M(s,l,!0),n(l),i&&clearTimeout(i),i=a()})}function gR(e){const t=Oy("",1e3),n=(e==null?void 0:e.onMatch)??(l=>l.focus()),i=(e==null?void 0:e.getCurrentItem)??(()=>document.activeElement);function s(l,c){var b,y;if(!c.length)return;t.current=t.current+l;const d=i(),h=((y=(b=c.find(w=>w===d))==null?void 0:b.textContent)==null?void 0:y.trim())??"",p=c.map(w=>{var x;return((x=w.textContent)==null?void 0:x.trim())??""}),g=Op(p,t.current,h),v=c.find(w=>{var x;return((x=w.textContent)==null?void 0:x.trim())===g});return v&&n(v),v}function a(){t.current=""}return{search:t,handleTypeaheadSearch:s,resetTypeahead:a}}function pR(e){const t=Oy("",1e3),n=E(()=>e.candidateValues());function i(a){if(!e.enabled||!f(n).length)return;t.current=t.current+a;const l=e.getCurrentItem(),c=f(n).find(g=>g===l)??"",d=f(n).map(g=>g??""),h=Op(d,t.current,c),p=f(n).find(g=>g===h);return p&&e.onMatch(p),p}function s(){t.current=""}return{search:t,handleTypeaheadSearch:i,resetTypeahead:s}}const vR=[wr,ny,ms],mR=[hr,ey,vs],bR=[...vR,...mR];var Cl,Pl,kl,Tl,El,Il,Ol,Nl,Rl,Ml;class Ny{constructor(t){$(this,"opts");z(this,Cl,bt(!1));z(this,Pl,bt(""));z(this,kl,bt(null));z(this,Tl,bt(null));z(this,El,bt(null));z(this,Il,bt(""));z(this,Ol,bt(null));z(this,Nl,E(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));z(this,Rl,E(()=>{if(this.highlightedNode)return this.highlightedNode.id}));z(this,Ml,E(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));$(this,"isUsingKeyboard",!1);$(this,"isCombobox",!1);$(this,"bitsAttrs");this.opts=t,this.isCombobox=t.isCombobox,this.bitsAttrs=HR(this),Bf(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return f(_(this,Cl))}set touchedInput(t){M(_(this,Cl),t,!0)}get inputValue(){return f(_(this,Pl))}set inputValue(t){M(_(this,Pl),t,!0)}get inputNode(){return f(_(this,kl))}set inputNode(t){M(_(this,kl),t,!0)}get contentNode(){return f(_(this,Tl))}set contentNode(t){M(_(this,Tl),t,!0)}get triggerNode(){return f(_(this,El))}set triggerNode(t){M(_(this,El),t,!0)}get valueId(){return f(_(this,Il))}set valueId(t){M(_(this,Il),t,!0)}get highlightedNode(){return f(_(this,Ol))}set highlightedNode(t){M(_(this,Ol),t,!0)}get highlightedValue(){return f(_(this,Nl))}set highlightedValue(t){M(_(this,Nl),t)}get highlightedId(){return f(_(this,Rl))}set highlightedId(t){M(_(this,Rl),t)}get highlightedLabel(){return f(_(this,Ml))}set highlightedLabel(t){M(_(this,Ml),t)}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.bitsAttrs.item}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(){this.setHighlightedNode(null);const t=this.getCandidateNodes();t.length&&this.setHighlightedNode(t[0])}getNodeByValue(t){return this.getCandidateNodes().find(i=>i.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Cl=new WeakMap,Pl=new WeakMap,kl=new WeakMap,Tl=new WeakMap,El=new WeakMap,Il=new WeakMap,Ol=new WeakMap,Nl=new WeakMap,Rl=new WeakMap,Ml=new WeakMap;var Ll,Dl,Fl,Bl;class _R extends Ny{constructor(n){super(n);$(this,"opts");$(this,"isMulti",!1);z(this,Ll,E(()=>this.opts.value.current!==""));z(this,Dl,E(()=>{var i;return this.opts.items.current.length?((i=this.opts.items.current.find(s=>s.value===this.opts.value.current))==null?void 0:i.label)??"":""}));z(this,Fl,E(()=>this.opts.items.current.length?this.opts.items.current.filter(i=>!i.disabled).map(i=>i.label):[]));z(this,Bl,E(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=n,be(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),he(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return f(_(this,Ll))}set hasValue(n){M(_(this,Ll),n)}get currentLabel(){return f(_(this,Dl))}set currentLabel(n){M(_(this,Dl),n)}get candidateLabels(){return f(_(this,Fl))}set candidateLabels(n){M(_(this,Fl),n)}get dataTypeaheadEnabled(){return f(_(this,Bl))}set dataTypeaheadEnabled(n){M(_(this,Bl),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i=n){this.opts.value.current=this.includesItem(n)?"":n,this.inputValue=i}setInitialHighlightedNode(){tr(()=>{if(this.highlightedNode&&document.contains(this.highlightedNode))return;if(this.opts.value.current!==""){const i=this.getNodeByValue(this.opts.value.current);if(i){this.setHighlightedNode(i,!0);return}}const n=this.getCandidateNodes()[0];n&&this.setHighlightedNode(n,!0)})}}Ll=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,Bl=new WeakMap;var zl;class yR extends Ny{constructor(n){super(n);$(this,"opts");$(this,"isMulti",!0);z(this,zl,E(()=>this.opts.value.current.length>0));this.opts=n,be(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),he(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return f(_(this,zl))}set hasValue(n){M(_(this,zl),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i=n){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(s=>s!==n):this.opts.value.current=[...this.opts.value.current,n],this.inputValue=i}setInitialHighlightedNode(){tr(()=>{if(this.highlightedNode&&document.contains(this.highlightedNode))return;if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const i=this.getNodeByValue(this.opts.value.current[0]);if(i){this.setHighlightedNode(i,!0);return}}const n=this.getCandidateNodes()[0];n&&this.setHighlightedNode(n,!0)})}}zl=new WeakMap;var go,os,Wr,Ry,Yg,Zg,Vl;class wR{constructor(t,n){z(this,Wr);$(this,"opts");$(this,"root");z(this,go);z(this,os);z(this,Vl,E(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":_u(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":ji(this.root.opts.open.current),"data-disabled":Xn(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.bitsAttrs.trigger]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup})));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.triggerNode=i}}),Be(this,go,gR({getCurrentItem:()=>this.root.highlightedNode,onMatch:i=>{this.root.setHighlightedNode(i)}})),Be(this,os,pR({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:i=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(a=>a.label===i);s&&(this.root.opts.value.current=s.value)},enabled:!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===hr||t.key===wr)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Vr||t.key===Fr||t.key===wr||t.key===hr)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){_(this,os).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const l=this.root.getCandidateNodes();if(!l.length)return;if(t.key===wr){const c=l[0];this.root.setHighlightedNode(c)}else if(t.key===hr){const c=l[l.length-1];this.root.setHighlightedNode(c)}return}if(t.key===Hg){this.root.handleClose();return}if((t.key===Vr||t.key===Fr&&_(this,go).search.current==="")&&!t.isComposing&&(t.preventDefault(),Pt(this,Wr,Zg).call(this)))return;if(t.key===hr&&t.altKey&&this.root.handleClose(),bR.includes(t.key)){t.preventDefault();const l=this.root.getCandidateNodes(),c=this.root.highlightedNode,d=c?l.indexOf(c):-1,h=this.root.opts.loop.current;let p;if(t.key===wr?p=LO(l,d,h):t.key===hr?p=DO(l,d,h):t.key===ey?p=FO(l,d,10,h):t.key===ny?p=BO(l,d,10,h):t.key===ms?p=l[0]:t.key===vs&&(p=l[l.length-1]),!p)return;this.root.setHighlightedNode(p);return}const n=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1,s=t.key===Fr,a=this.root.getCandidateNodes();if(t.key!==Hg){if(!n&&(i||s)){!_(this,go).handleTypeaheadSearch(t.key,a)&&s&&(t.preventDefault(),Pt(this,Wr,Zg).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const n=t.target;n!=null&&n.hasPointerCapture(t.pointerId)&&(n==null||n.releasePointerCapture(t.pointerId)),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?Pt(this,Wr,Yg).call(this,t):this.root.handleClose())}onpointerup(t){t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?Pt(this,Wr,Yg).call(this,t):this.root.handleClose())}get props(){return f(_(this,Vl))}set props(t){M(_(this,Vl),t)}}go=new WeakMap,os=new WeakMap,Wr=new WeakSet,Ry=function(){this.root.opts.open.current=!0,_(this,os).resetTypeahead(),_(this,go).resetTypeahead()},Yg=function(t){Pt(this,Wr,Ry).call(this)},Zg=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Vl=new WeakMap;var Hl,Wl,kf,Ul,Gl;class xR{constructor(t,n){$(this,"opts");$(this,"root");z(this,Hl,bt(null));z(this,Wl,bt(!1));z(this,kf,E(()=>{const t=this.root.isCombobox?"--bits-combobox":"--bits-select";return{[`${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`${t}-content-available-width`]:"var(--bits-floating-available-width)",[`${t}-content-available-height`]:"var(--bits-floating-available-height)",[`${t}-anchor-width`]:" var(--bits-floating-anchor-width)",[`${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}));$(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});$(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});$(this,"onOpenAutoFocus",t=>{t.preventDefault()});$(this,"onCloseAutoFocus",t=>{t.preventDefault()});z(this,Ul,E(()=>({open:this.root.opts.open.current})));z(this,Gl,E(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":ji(this.root.opts.open.current),[this.root.bitsAttrs.content]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...f(_(this,kf))},onpointermove:this.onpointermove})));$(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}});this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.contentNode=i},deps:()=>this.root.opts.open.current}),Pp(()=>{this.root.contentNode=null,this.isPositioned=!1}),he(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}get viewportNode(){return f(_(this,Hl))}set viewportNode(t){M(_(this,Hl),t,!0)}get isPositioned(){return f(_(this,Wl))}set isPositioned(t){M(_(this,Wl),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get snippetProps(){return f(_(this,Ul))}set snippetProps(t){M(_(this,Ul),t)}get props(){return f(_(this,Gl))}set props(t){M(_(this,Gl),t)}}Hl=new WeakMap,Wl=new WeakMap,kf=new WeakMap,Ul=new WeakMap,Gl=new WeakMap;var Kl,ql,Xl,Yl,Zl;class SR{constructor(t,n){$(this,"opts");$(this,"root");z(this,Kl,E(()=>this.root.includesItem(this.opts.value.current)));z(this,ql,E(()=>this.root.highlightedValue===this.opts.value.current));$(this,"prevHighlighted",new Q0(()=>this.isHighlighted));z(this,Xl,bt(!1));z(this,Yl,E(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));z(this,Zl,E(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Xn(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.bitsAttrs.item]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup})));this.opts=t,this.root=n,jt({...t,deps:()=>this.mounted}),he([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),he(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}get isSelected(){return f(_(this,Kl))}set isSelected(t){M(_(this,Kl),t)}get isHighlighted(){return f(_(this,ql))}set isHighlighted(t){M(_(this,ql),t)}get mounted(){return f(_(this,Xl))}set mounted(t){M(_(this,Xl),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return f(_(this,Yl))}set snippetProps(t){M(_(this,Yl),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!Wg){je(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return f(_(this,Zl))}set props(t){M(_(this,Zl),t)}}Kl=new WeakMap,ql=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,Zl=new WeakMap;var jl,Ql;class AR{constructor(t,n){$(this,"opts");$(this,"root");z(this,jl,bt(null));z(this,Ql,E(()=>{var t;return{id:this.opts.id.current,role:"group",[this.root.bitsAttrs.group]:"","aria-labelledby":((t=this.labelNode)==null?void 0:t.id)??void 0}}));this.opts=t,this.root=n,jt(t)}get labelNode(){return f(_(this,jl))}set labelNode(t){M(_(this,jl),t,!0)}get props(){return f(_(this,Ql))}set props(t){M(_(this,Ql),t)}}jl=new WeakMap,Ql=new WeakMap;var Jl;class CR{constructor(t,n){$(this,"opts");$(this,"group");z(this,Jl,E(()=>({id:this.opts.id.current,[this.group.root.bitsAttrs["group-label"]]:""})));this.opts=t,this.group=n,jt({...t,onRefChange:i=>{n.labelNode=i}})}get props(){return f(_(this,Jl))}set props(t){M(_(this,Jl),t)}}Jl=new WeakMap;var $l,tc;class PR{constructor(t,n){$(this,"opts");$(this,"root");z(this,$l,E(()=>this.root.opts.name.current!==""));z(this,tc,E(()=>({disabled:Ep(this.root.opts.disabled.current),required:nI(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}get shouldRender(){return f(_(this,$l))}set shouldRender(t){M(_(this,$l),t)}onfocus(t){var n,i;t.preventDefault(),this.root.isCombobox?(i=this.root.inputNode)==null||i.focus():(n=this.root.triggerNode)==null||n.focus()}get props(){return f(_(this,tc))}set props(t){M(_(this,tc),t)}}$l=new WeakMap,tc=new WeakMap;var ec,nc;class kR{constructor(t,n){$(this,"opts");$(this,"content");$(this,"root");z(this,ec,bt(0));z(this,nc,E(()=>({id:this.opts.id.current,role:"presentation",[this.root.bitsAttrs.viewport]:"",style:{position:"relative",flex:1,overflow:"auto"}})));this.opts=t,this.content=n,this.root=n.root,jt({...t,onRefChange:i=>{this.content.viewportNode=i},deps:()=>this.root.opts.open.current})}get prevScrollTop(){return f(_(this,ec))}set prevScrollTop(t){M(_(this,ec),t,!0)}get props(){return f(_(this,nc))}set props(t){M(_(this,nc),t)}}ec=new WeakMap,nc=new WeakMap;var rc,ic;class My{constructor(t,n){$(this,"opts");$(this,"content");$(this,"root");$(this,"autoScrollTimer",null);$(this,"userScrollTimer",-1);$(this,"isUserScrolling",!1);$(this,"onAutoScroll",ge);z(this,rc,bt(!1));z(this,ic,E(()=>({id:this.opts.id.current,"aria-hidden":JE(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave})));this.opts=t,this.content=n,this.root=n.root,jt({...t,deps:()=>this.mounted}),he([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),be(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}get mounted(){return f(_(this,rc))}set mounted(t){M(_(this,rc),t,!0)}handleUserScroll(){window.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=window.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(window.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const n=i=>{this.onAutoScroll(),this.autoScrollTimer=window.setTimeout(()=>n(i+1),this.opts.delay.current(i))};this.autoScrollTimer=window.setTimeout(()=>n(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}get props(){return f(_(this,ic))}set props(t){M(_(this,ic),t)}}rc=new WeakMap,ic=new WeakMap;var oc,sc;class TR{constructor(t){$(this,"scrollButtonState");$(this,"content");$(this,"root");z(this,oc,bt(!1));$(this,"scrollIntoViewTimer",null);$(this,"handleScroll",(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.content.viewportNode)return;const n=this.content.viewportNode.scrollHeight-this.content.viewportNode.clientHeight,i=Number.parseInt(getComputedStyle(this.content.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.content.viewportNode.scrollTop)<n-i});$(this,"handleAutoScroll",()=>{const t=this.content.viewportNode,n=this.root.highlightedNode;!t||!n||(t.scrollTop=t.scrollTop+n.offsetHeight)});z(this,sc,E(()=>({...this.scrollButtonState.props,[this.root.bitsAttrs["scroll-down-button"]]:""})));this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,he([()=>this.content.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.content.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),je(this.content.viewportNode,"scroll",()=>this.handleScroll())}),he(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=bu(5,()=>{const n=this.root.highlightedNode;n==null||n.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}get canScrollDown(){return f(_(this,oc))}set canScrollDown(t){M(_(this,oc),t,!0)}get props(){return f(_(this,sc))}set props(t){M(_(this,sc),t)}}oc=new WeakMap,sc=new WeakMap;var ac,lc;class ER{constructor(t){$(this,"scrollButtonState");$(this,"content");$(this,"root");z(this,ac,bt(!1));$(this,"handleScroll",(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.content.viewportNode)return;const n=Number.parseInt(getComputedStyle(this.content.viewportNode).paddingTop,10);this.canScrollUp=this.content.viewportNode.scrollTop-n>.1});$(this,"handleAutoScroll",()=>{!this.content.viewportNode||!this.root.highlightedNode||(this.content.viewportNode.scrollTop=this.content.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)});z(this,lc,E(()=>({...this.scrollButtonState.props,[this.root.bitsAttrs["scroll-up-button"]]:""})));this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,he([()=>this.content.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.content.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),je(this.content.viewportNode,"scroll",()=>this.handleScroll())})}get canScrollUp(){return f(_(this,ac))}set canScrollUp(t){M(_(this,ac),t,!0)}get props(){return f(_(this,lc))}set props(t){M(_(this,lc),t)}}ac=new WeakMap,lc=new WeakMap;const ys=new An("Select.Root | Combobox.Root"),Ly=new An("Select.Group | Combobox.Group"),qf=new An("Select.Content | Combobox.Content");function IR(e){const{type:t,...n}=e,i=t==="single"?new _R(n):new yR(n);return ys.set(i)}function OR(e){return qf.set(new xR(e,ys.get()))}function NR(e){return new wR(e,ys.get())}function RR(e){return new SR(e,ys.get())}function MR(e){return new kR(e,qf.get())}function LR(e){return new ER(new My(e,qf.get()))}function DR(e){return new TR(new My(e,qf.get()))}function FR(e){return Ly.set(new AR(e,ys.get()))}function BR(e){return new CR(e,Ly.get())}function zR(e){return new PR(e,ys.get())}const VR=["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"];function HR(e){const t=e.isCombobox,n={};for(const i of VR)n[i]=t?`data-combobox-${i}`:`data-select-${i}`;return n}function C_(e,t){ct(t,!0);let n=k(t,"value",15,"");const i=zR({value:F.with(()=>n())});var s=K(),a=L(s);{var l=c=>{Np(c,Et(()=>i.props,{get value(){return n()},set value(d){n(d)}}))};vt(a,c=>{i.shouldRender&&c(l)})}A(e,s),ut()}function Dy(e,t){ct(t,!0),uR({id:F.with(()=>t.id),virtualEl:F.with(()=>t.virtualEl)});var n=K(),i=L(n);lt(i,()=>t.children??St),A(e,n),ut()}function WR(e,t){ct(t,!0);let n=k(t,"side",3,"bottom"),i=k(t,"sideOffset",3,0),s=k(t,"align",3,"center"),a=k(t,"alignOffset",3,0),l=k(t,"arrowPadding",3,0),c=k(t,"avoidCollisions",3,!0),d=k(t,"collisionBoundary",19,()=>[]),h=k(t,"collisionPadding",3,0),p=k(t,"hideWhenDetached",3,!1),g=k(t,"onPlaced",3,()=>{}),v=k(t,"sticky",3,"partial"),b=k(t,"updatePositionStrategy",3,"optimized"),y=k(t,"strategy",3,"fixed"),w=k(t,"dir",3,"ltr"),x=k(t,"style",19,()=>({})),C=k(t,"wrapperId",19,Qt),T=k(t,"customAnchor",3,null);const R=cR({side:F.with(()=>n()),sideOffset:F.with(()=>i()),align:F.with(()=>s()),alignOffset:F.with(()=>a()),id:F.with(()=>t.id),arrowPadding:F.with(()=>l()),avoidCollisions:F.with(()=>c()),collisionBoundary:F.with(()=>d()),collisionPadding:F.with(()=>h()),hideWhenDetached:F.with(()=>p()),onPlaced:F.with(()=>g()),sticky:F.with(()=>v()),updatePositionStrategy:F.with(()=>b()),strategy:F.with(()=>y()),dir:F.with(()=>w()),style:F.with(()=>x()),enabled:F.with(()=>t.enabled),wrapperId:F.with(()=>C()),customAnchor:F.with(()=>T())}),O=E(()=>Wt(R.wrapperProps,{style:{pointerEvents:"auto"}}));var B=K(),V=L(B);lt(V,()=>t.content??St,()=>({props:R.props,wrapperProps:f(O)})),A(e,B),ut()}function UR(e,t){ct(t,!0),ps(()=>{var s;(s=t.onPlaced)==null||s.call(t)});var n=K(),i=L(n);lt(i,()=>t.content??St,()=>({props:{},wrapperProps:{}})),A(e,n),ut()}function GR(e,t){let n=k(t,"isStatic",3,!1),i=xt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var s=K(),a=L(s);{var l=d=>{UR(d,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},c=d=>{WR(d,Et({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};vt(a,d=>{n()?d(l):d(c,!1)})}A(e,s)}var KR=J("<!> <!>",1);function Fy(e,t){ct(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),i=k(t,"trapFocus",3,!0),s=k(t,"isValidEvent",3,()=>!1),a=k(t,"customAnchor",3,null),l=k(t,"isStatic",3,!1),c=xt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);GR(e,{get isStatic(){return l()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get enabled(){return t.enabled},content:(h,p)=>{let g=()=>p==null?void 0:p().props,v=()=>p==null?void 0:p().wrapperProps;var b=KR(),y=L(b);{var w=T=>{Yd(T,{get preventScroll(){return t.preventScroll}})},x=T=>{var R=K(),O=L(R);{var B=V=>{Yd(V,{get preventScroll(){return t.preventScroll}})};vt(O,V=>{t.forceMount||V(B)},!0)}A(T,R)};vt(y,T=>{t.forceMount&&t.enabled?T(w):T(x,!1)})}var C=at(y,2);{const T=(O,B)=>{let V=()=>B==null?void 0:B().props;dy(O,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},children:(N,H)=>{uy(N,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return s()},get enabled(){return t.enabled},children:(tt,et)=>{let U=()=>et==null?void 0:et().props;my(tt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},children:(nt,Z)=>{var Q=K(),rt=L(Q);{let dt=E(()=>({props:Wt(c,g(),U(),V(),{style:{pointerEvents:"auto"}}),wrapperProps:v()}));lt(rt,()=>t.popper??St,()=>f(dt))}A(nt,Q)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let R=E(()=>t.enabled&&i());py(C,{get id(){return t.id},get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get trapFocus(){return f(R)},get forceMount(){return t.forceMount},focusScope:T,$$slots:{focusScope:!0}})}A(h,b)},$$slots:{content:!0}}),ut()}function By(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),i=k(t,"trapFocus",3,!0),s=k(t,"isValidEvent",3,()=>!1),a=k(t,"customAnchor",3,null),l=k(t,"isStatic",3,!1),c=xt(t,["$$slots","$$events","$$legacy","popper","present","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic"]);Wf(e,Et({get id(){return t.id},get present(){return t.present}},()=>c,{presence:h=>{Fy(h,Et({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return l()},get enabled(){return t.present},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return s()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1},()=>c))},$$slots:{presence:!0}}))}function zy(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),i=k(t,"trapFocus",3,!0),s=k(t,"isValidEvent",3,()=>!1),a=k(t,"customAnchor",3,null),l=k(t,"isStatic",3,!1),c=xt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Fy(e,Et({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return l()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return s()},get onFocusOutside(){return t.onFocusOutside}},()=>c,{forceMount:!0}))}var qR=J("<div><div><!></div></div>"),XR=J("<div><div><!></div></div>");function YR(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"forceMount",3,!1),a=k(t,"side",3,"bottom"),l=k(t,"onInteractOutside",3,ge),c=k(t,"onEscapeKeydown",3,ge),d=k(t,"preventScroll",3,!1),h=xt(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const p=OR({id:F.with(()=>n()),ref:F.with(()=>i(),x=>i(x)),onInteractOutside:F.with(()=>l()),onEscapeKeydown:F.with(()=>c())}),g=E(()=>Wt(h,p.props));var v=K(),b=L(v);{var y=x=>{zy(x,Et(()=>f(g),()=>p.popperProps,{get side(){return a()},get enabled(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return d()},forceMount:!0,popper:(T,R)=>{let O=()=>R==null?void 0:R().props,B=()=>R==null?void 0:R().wrapperProps;const V=E(()=>Wt(O(),{style:p.props.style}));var N=K(),H=L(N);{var X=et=>{var U=K(),nt=L(U);{let Z=E(()=>({props:f(V),wrapperProps:B(),...p.snippetProps}));lt(nt,()=>t.child,()=>f(Z))}A(et,U)},tt=et=>{var U=qR();Lt(U,()=>({...B()}));var nt=q(U);Lt(nt,()=>({...f(V)}));var Z=q(nt);lt(Z,()=>t.children??St),G(nt),G(U),A(et,U)};vt(H,et=>{t.child?et(X):et(tt,!1)})}A(T,N)},$$slots:{popper:!0}}))},w=x=>{var C=K(),T=L(C);{var R=O=>{By(O,Et(()=>f(g),()=>p.popperProps,{get side(){return a()},get present(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return d()},forceMount:!1,popper:(V,N)=>{let H=()=>N==null?void 0:N().props,X=()=>N==null?void 0:N().wrapperProps;const tt=E(()=>Wt(H(),{style:p.props.style}));var et=K(),U=L(et);{var nt=Q=>{var rt=K(),dt=L(rt);{let ft=E(()=>({props:f(tt),wrapperProps:X(),...p.snippetProps}));lt(dt,()=>t.child,()=>f(ft))}A(Q,rt)},Z=Q=>{var rt=XR();Lt(rt,()=>({...X()}));var dt=q(rt);Lt(dt,()=>({...f(tt)}));var ft=q(dt);lt(ft,()=>t.children??St),G(dt),G(rt),A(Q,rt)};vt(U,Q=>{t.child?Q(nt):Q(Z,!1)})}A(V,et)},$$slots:{popper:!0}}))};vt(T,O=>{s()||O(R)},!0)}A(x,C)};vt(b,x=>{s()?x(y):x(w,!1)})}A(e,v),ut()}function Up(e,t){ct(t,!0);let n=k(t,"mounted",15,!1),i=k(t,"onMountedChange",3,ge);kp(()=>(n(!0),i()(!0),()=>{n(!1),i()(!1)})),ut()}var ZR=J("<div><!></div>"),jR=J("<!> <!>",1);function QR(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"label",19,()=>t.value),a=k(t,"disabled",3,!1),l=k(t,"onHighlight",3,ge),c=k(t,"onUnhighlight",3,ge),d=xt(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const h=RR({id:F.with(()=>n()),ref:F.with(()=>i(),x=>i(x)),value:F.with(()=>t.value),disabled:F.with(()=>a()),label:F.with(()=>s()),onHighlight:F.with(()=>l()),onUnhighlight:F.with(()=>c())}),p=E(()=>Wt(d,h.props));var g=jR(),v=L(g);{var b=x=>{var C=K(),T=L(C);{let R=E(()=>({props:f(p),...h.snippetProps}));lt(T,()=>t.child,()=>f(R))}A(x,C)},y=x=>{var C=ZR();Lt(C,()=>({...f(p)}));var T=q(C);lt(T,()=>t.children??St,()=>h.snippetProps),G(C),A(x,C)};vt(v,x=>{t.child?x(b):x(y,!1)})}var w=at(v,2);Up(w,{get mounted(){return h.mounted},set mounted(x){h.mounted=x}}),A(e,g),ut()}var JR=J("<div><!></div>");function $R(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=FR({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=JR();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var t3=J("<div><!></div>");function e3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","child","children"]);const a=BR({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=t3();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var n3=J("<div><!></div>");function r3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=MR({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=n3();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var i3=J("<div><!></div>"),o3=J("<!> <!>",1);function s3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"delay",3,()=>50),a=xt(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=DR({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g)),delay:F.with(()=>s())}),c=E(()=>Wt(a,l.props));var d=K(),h=L(d);{var p=g=>{var v=o3(),b=L(v);Up(b,{get mounted(){return l.scrollButtonState.mounted},set mounted(C){l.scrollButtonState.mounted=C}});var y=at(b,2);{var w=C=>{var T=K(),R=L(T);lt(R,()=>t.child,()=>({props:a})),A(C,T)},x=C=>{var T=i3();Lt(T,()=>({...f(c)}));var R=q(T);lt(R,()=>t.children??St),G(T),A(C,T)};vt(y,C=>{t.child?C(w):C(x,!1)})}A(g,v)};vt(h,g=>{l.canScrollDown&&g(p)})}A(e,d),ut()}var a3=J("<div><!></div>"),l3=J("<!> <!>",1);function c3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"delay",3,()=>50),a=xt(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=LR({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g)),delay:F.with(()=>s())}),c=E(()=>Wt(a,l.props));var d=K(),h=L(d);{var p=g=>{var v=l3(),b=L(v);Up(b,{get mounted(){return l.scrollButtonState.mounted},set mounted(C){l.scrollButtonState.mounted=C}});var y=at(b,2);{var w=C=>{var T=K(),R=L(T);lt(R,()=>t.child,()=>({props:a})),A(C,T)},x=C=>{var T=a3();Lt(T,()=>({...f(c)}));var R=q(T);lt(R,()=>t.children??St),G(T),A(C,T)};vt(y,C=>{t.child?C(w):C(x,!1)})}A(g,v)};vt(h,g=>{l.canScrollUp&&g(p)})}A(e,d),ut()}function u3(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function d3(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}var Vy={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */(function(e,t){(function(n,i){e.exports=i(n)})(Lr,function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var i=function(s){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var a=String(s),l=a.length,c=-1,d,h="",p=a.charCodeAt(0);++c<l;){if(d=a.charCodeAt(c),d==0){h+="�";continue}if(d>=1&&d<=31||d==127||c==0&&d>=48&&d<=57||c==1&&d>=48&&d<=57&&p==45){h+="\\"+d.toString(16)+" ";continue}if(c==0&&l==1&&d==45){h+="\\"+a.charAt(c);continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){h+=a.charAt(c);continue}h+="\\"+a.charAt(c)}return h};return n.CSS||(n.CSS={}),n.CSS.escape=i,i})})(Vy);var f3=Vy.exports;const Hy=K0(f3),h3="data-command-root",g3="data-command-list",p3="data-command-input",v3="data-command-empty",Wy="data-command-group",Uy="data-command-group-items",Gy="data-command-group-heading",Ky="data-command-item",m3="data-command-input-label",co="data-value",Ws=`[${Wy}]`,mg=`[${Uy}]`,b3=`[${Gy}]`,qy=`[${Ky}]`,bg=`${qy}:not([aria-disabled="true"])`,So=new An("Command.Root"),_3=new An("Command.List"),Au=new An("Command.Group"),P_={search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}};var ss,cc,uc,dc,fc,hc,gc,ce,Xy,Fd,jg,Bd,zd,Vd,zo,Yy,Qg,Jg,$g,pc;class y3{constructor(t){z(this,ce);$(this,"opts");z(this,ss,!1);$(this,"sortAfterTick",!1);$(this,"sortAndFilterAfterTick",!1);$(this,"allItems",new Set);$(this,"allGroups",new Map);$(this,"allIds",new Map);z(this,cc,bt(0));z(this,uc,bt(null));z(this,dc,bt(null));z(this,fc,bt(null));z(this,hc,bt(P_));z(this,gc,bt(Sn(P_)));z(this,pc,E(()=>({id:this.opts.id.current,role:"application",[h3]:"",tabindex:-1,onkeydown:this.onkeydown})));this.opts=t;const n={...this._commandState,value:this.opts.value.current??""};this._commandState=n,this.commandState=n,jt(t),this.onkeydown=this.onkeydown.bind(this)}get key(){return f(_(this,cc))}set key(t){M(_(this,cc),t,!0)}get viewportNode(){return f(_(this,uc))}set viewportNode(t){M(_(this,uc),t,!0)}get inputNode(){return f(_(this,dc))}set inputNode(t){M(_(this,dc),t,!0)}get labelNode(){return f(_(this,fc))}set labelNode(t){M(_(this,fc),t,!0)}get commandState(){return f(_(this,hc))}set commandState(t){M(_(this,hc),t)}get _commandState(){return f(_(this,gc))}set _commandState(t){M(_(this,gc),t,!0)}setState(t,n,i){Object.is(this._commandState[t],n)||(this._commandState[t]=n,t==="search"?(Pt(this,ce,Vd).call(this),Pt(this,ce,Bd).call(this)):t==="value"&&(i||Pt(this,ce,Yy).call(this)),Pt(this,ce,Fd).call(this))}setValue(t,n){t!==this.opts.value.current&&t===""&&tr(()=>{this.key++}),this.setState("value",t,n),this.opts.value.current=t}getValidItems(){const t=this.opts.ref.current;return t?Array.from(t.querySelectorAll(bg)).filter(i=>!!i):[]}updateSelectedToIndex(t){const i=this.getValidItems()[t];i&&this.setValue(i.getAttribute(co)??"")}updateSelectedByItem(t){const n=Pt(this,ce,zo).call(this),i=this.getValidItems(),s=i.findIndex(l=>l===n);let a=i[s+t];this.opts.loop.current&&(a=s+t<0?i[i.length-1]:s+t===i.length?i[0]:i[s+t]),a&&this.setValue(a.getAttribute(co)??"")}updateSelectedByGroup(t){const n=Pt(this,ce,zo).call(this);let i=n==null?void 0:n.closest(Ws),s;for(;i&&!s;)i=t>0?u3(i,Ws):d3(i,Ws),s=i==null?void 0:i.querySelector(bg);s?this.setValue(s.getAttribute(co)??""):this.updateSelectedByItem(t)}registerValue(t,n){var i;return t&&t===((i=this.allIds.get(t))==null?void 0:i.value)||this.allIds.set(t,{value:t,keywords:n}),this._commandState.filtered.items.set(t,Pt(this,ce,jg).call(this,t,n)),this.sortAfterTick||(this.sortAfterTick=!0,tr(()=>{Pt(this,ce,Bd).call(this),this.sortAfterTick=!1})),()=>{this.allIds.delete(t)}}registerItem(t,n){return this.allItems.add(t),n&&(this.allGroups.has(n)?this.allGroups.get(n).add(t):this.allGroups.set(n,new Set([t]))),this.sortAndFilterAfterTick||(this.sortAndFilterAfterTick=!0,tr(()=>{Pt(this,ce,Vd).call(this),Pt(this,ce,Bd).call(this),this.sortAndFilterAfterTick=!1})),Pt(this,ce,Fd).call(this),()=>{const i=Pt(this,ce,zo).call(this);this.allIds.delete(t),this.allItems.delete(t),this.commandState.filtered.items.delete(t),Pt(this,ce,Vd).call(this),(i==null?void 0:i.getAttribute("id"))===t&&Pt(this,ce,zd).call(this),Pt(this,ce,Fd).call(this)}}registerGroup(t){return this.allGroups.has(t)||this.allGroups.set(t,new Set),()=>{this.allIds.delete(t),this.allGroups.delete(t)}}onkeydown(t){switch(t.key){case oI:case sI:{this.opts.vimBindings.current&&t.ctrlKey&&Pt(this,ce,Jg).call(this,t);break}case wr:Pt(this,ce,Jg).call(this,t);break;case iI:case aI:{this.opts.vimBindings.current&&t.ctrlKey&&Pt(this,ce,$g).call(this,t);break}case hr:Pt(this,ce,$g).call(this,t);break;case ms:t.preventDefault(),this.updateSelectedToIndex(0);break;case vs:t.preventDefault(),Pt(this,ce,Qg).call(this);break;case Vr:if(!t.isComposing&&t.keyCode!==229){t.preventDefault();const n=Pt(this,ce,zo).call(this);n&&(n==null||n.click())}}}get props(){return f(_(this,pc))}set props(t){M(_(this,pc),t)}}ss=new WeakMap,cc=new WeakMap,uc=new WeakMap,dc=new WeakMap,fc=new WeakMap,hc=new WeakMap,gc=new WeakMap,ce=new WeakSet,Xy=function(){return D0(this._commandState)},Fd=function(){_(this,ss)||(Be(this,ss,!0),tr(()=>{var i,s;Be(this,ss,!1);const t=Pt(this,ce,Xy).call(this);!Object.is(this.commandState,t)&&(this.commandState=t,(s=(i=this.opts.onStateChange)==null?void 0:i.current)==null||s.call(i,t))}))},jg=function(t,n){const i=this.opts.filter.current??Qy;return t?i(t,this._commandState.search,n):0},Bd=function(){var l;if(!this._commandState.search||this.opts.shouldFilter.current===!1){Pt(this,ce,zd).call(this);return}const t=this._commandState.filtered.items,n=[];for(const c of this._commandState.filtered.groups){const d=this.allGroups.get(c);let h=0;if(!d){n.push([c,h]);continue}for(const p of d){const g=t.get(p);h=Math.max(g??0,h)}n.push([c,h])}const i=this.viewportNode,s=this.getValidItems().sort((c,d)=>{const h=c.getAttribute("data-value"),p=d.getAttribute("data-value"),g=t.get(h)??0;return(t.get(p)??0)-g});for(const c of s){const d=c.closest(mg);if(d){const h=c.parentElement===d?c:c.closest(`${mg} > *`);h&&d.appendChild(h)}else{const h=c.parentElement===i?c:c.closest(`${mg} > *`);h&&(i==null||i.appendChild(h))}}const a=n.sort((c,d)=>d[1]-c[1]);for(const c of a){const d=i==null?void 0:i.querySelector(`${Ws}[${co}="${Hy(c[0])}"]`);(l=d==null?void 0:d.parentElement)==null||l.appendChild(d)}Pt(this,ce,zd).call(this)},zd=function(){tr(()=>{const t=this.getValidItems().find(i=>i.getAttribute("aria-disabled")!=="true"),n=t==null?void 0:t.getAttribute(co);this.setValue(n||"")})},Vd=function(){var n,i;if(!this._commandState.search||this.opts.shouldFilter.current===!1){this._commandState.filtered.count=this.allItems.size;return}this._commandState.filtered.groups=new Set;let t=0;for(const s of this.allItems){const a=((n=this.allIds.get(s))==null?void 0:n.value)??"",l=((i=this.allIds.get(s))==null?void 0:i.keywords)??[],c=Pt(this,ce,jg).call(this,a,l);this._commandState.filtered.items.set(s,c),c>0&&t++}for(const[s,a]of this.allGroups)for(const l of a){const c=this._commandState.filtered.items.get(l);if(c&&c>0){this._commandState.filtered.groups.add(s);break}}this._commandState.filtered.count=t},zo=function(){const t=this.opts.ref.current;if(!t)return;const n=t.querySelector(`${bg}[data-selected]`);if(n)return n},Yy=function(){tr(()=>{var s,a,l,c;const t=Pt(this,ce,zo).call(this);if(!t)return;const n=(s=t.parentElement)==null?void 0:s.parentElement;if(!n)return;const i=FI(n);if(i&&((a=i.dataset)==null?void 0:a.value)===((l=t.dataset)==null?void 0:l.value)){const d=(c=t==null?void 0:t.closest(Ws))==null?void 0:c.querySelector(b3);d==null||d.scrollIntoView({block:"nearest"});return}t.scrollIntoView({block:"nearest"})})},Qg=function(){return this.updateSelectedToIndex(this.getValidItems().length-1)},Jg=function(t){t.preventDefault(),t.metaKey?Pt(this,ce,Qg).call(this):t.altKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(1)},$g=function(t){t.preventDefault(),t.metaKey?this.updateSelectedToIndex(0):t.altKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(-1)},pc=new WeakMap;var vc,mc,bc;class w3{constructor(t,n){$(this,"opts");$(this,"root");z(this,vc,!0);z(this,mc,E(()=>this.root._commandState.filtered.count===0&&_(this,vc)===!1||this.opts.forceMount.current));z(this,bc,E(()=>({id:this.opts.id.current,role:"presentation",[v3]:""})));this.opts=t,this.root=n,Bf(()=>{Be(this,vc,!1)}),jt({...t,deps:()=>this.shouldRender})}get shouldRender(){return f(_(this,mc))}set shouldRender(t){M(_(this,mc),t)}get props(){return f(_(this,bc))}set props(t){M(_(this,bc),t)}}vc=new WeakMap,mc=new WeakMap,bc=new WeakMap;var _c,yc,wc,xc;class x3{constructor(t,n){$(this,"opts");$(this,"root");z(this,_c,bt(null));z(this,yc,bt(""));z(this,wc,E(()=>this.opts.forceMount.current||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search?!0:this.root._commandState.filtered.groups.has(this.trueValue)));z(this,xc,E(()=>({id:this.opts.id.current,role:"presentation",hidden:this.shouldRender?void 0:!0,"data-value":this.trueValue,[Wy]:""})));this.opts=t,this.root=n,this.trueValue=t.value.current??t.id.current,jt({...t,deps:()=>this.shouldRender}),he(()=>this.trueValue,()=>this.root.registerGroup(this.trueValue)),be(()=>this.opts.value.current?(this.trueValue=this.opts.value.current,this.root.registerValue(this.opts.value.current)):this.headingNode&&this.headingNode.textContent?(this.trueValue=this.headingNode.textContent.trim().toLowerCase(),this.root.registerValue(this.trueValue)):(this.trueValue=`-----${this.opts.id.current}`,this.root.registerValue(this.trueValue)))}get headingNode(){return f(_(this,_c))}set headingNode(t){M(_(this,_c),t,!0)}get trueValue(){return f(_(this,yc))}set trueValue(t){M(_(this,yc),t,!0)}get shouldRender(){return f(_(this,wc))}set shouldRender(t){M(_(this,wc),t)}get props(){return f(_(this,xc))}set props(t){M(_(this,xc),t)}}_c=new WeakMap,yc=new WeakMap,wc=new WeakMap,xc=new WeakMap;var Sc;class S3{constructor(t,n){$(this,"opts");$(this,"group");z(this,Sc,E(()=>({id:this.opts.id.current,[Gy]:""})));this.opts=t,this.group=n,jt({...t,onRefChange:i=>{this.group.headingNode=i}})}get props(){return f(_(this,Sc))}set props(t){M(_(this,Sc),t)}}Sc=new WeakMap;var Ac;class A3{constructor(t,n){$(this,"opts");$(this,"group");z(this,Ac,E(()=>{var t;return{id:this.opts.id.current,role:"group",[Uy]:"","aria-labelledby":((t=this.group.headingNode)==null?void 0:t.id)??void 0}}));this.opts=t,this.group=n,jt(t)}get props(){return f(_(this,Ac))}set props(t){M(_(this,Ac),t)}}Ac=new WeakMap;var Tf,Cc;class C3{constructor(t,n){$(this,"opts");$(this,"root");z(this,Tf,E(()=>{var n;const t=(n=this.root.viewportNode)==null?void 0:n.querySelector(`${qy}[${co}="${Hy(this.root.opts.value.current)}"]`);if(t)return(t==null?void 0:t.getAttribute("id"))??void 0}));z(this,Cc,E(()=>{var t,n;return{id:this.opts.id.current,type:"text",[p3]:"",autocomplete:"off",autocorrect:"off",spellcheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":_u(!0),"aria-controls":((t=this.root.viewportNode)==null?void 0:t.id)??void 0,"aria-labelledby":((n=this.root.labelNode)==null?void 0:n.id)??void 0,"aria-activedescendant":f(_(this,Tf))}}));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.inputNode=i}}),he(()=>this.opts.ref.current,()=>{const i=this.opts.ref.current;i&&this.opts.autofocus.current&&bu(10,()=>i.focus())}),he(()=>this.opts.value.current,()=>{this.root.commandState.search!==this.opts.value.current&&this.root.setState("search",this.opts.value.current)})}get props(){return f(_(this,Cc))}set props(t){M(_(this,Cc),t)}}Tf=new WeakMap,Cc=new WeakMap;var po,Ef,Pc,kc,Tc,wo,Zy,tp,Ec;class P3{constructor(t,n){z(this,wo);$(this,"opts");$(this,"root");z(this,po,null);z(this,Ef,E(()=>{var t;return this.opts.forceMount.current||((t=_(this,po))==null?void 0:t.opts.forceMount.current)===!0}));z(this,Pc,bt(""));z(this,kc,E(()=>{if(this.opts.ref.current,f(_(this,Ef))||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search)return!0;const t=this.root.commandState.filtered.items.get(this.trueValue);return t===void 0?!1:t>0}));z(this,Tc,E(()=>this.root.opts.value.current===this.trueValue&&this.trueValue!==""));z(this,Ec,E(()=>({id:this.opts.id.current,"aria-disabled":Tp(this.opts.disabled.current),"aria-selected":$0(this.isSelected),"data-disabled":Xn(this.opts.disabled.current),"data-selected":tI(this.isSelected),"data-value":this.trueValue,[Ky]:"",role:"option",onpointermove:this.onpointermove,onclick:this.onclick})));this.opts=t,this.root=n,Be(this,po,Au.getOr(null)),this.trueValue=t.value.current,jt({...t,deps:()=>!!this.root.commandState.search}),he([()=>this.trueValue,()=>{var i;return(i=_(this,po))==null?void 0:i.trueValue},()=>this.opts.forceMount.current],()=>{var i;if(!this.opts.forceMount.current)return this.root.registerItem(this.trueValue,(i=_(this,po))==null?void 0:i.trueValue)}),he([()=>this.opts.value.current,()=>this.opts.ref.current],()=>{var i,s;!this.opts.value.current&&((i=this.opts.ref.current)!=null&&i.textContent)&&(this.trueValue=this.opts.ref.current.textContent.trim()),this.root.registerValue(this.trueValue,t.keywords.current.map(a=>a.trim())),(s=this.opts.ref.current)==null||s.setAttribute(co,this.trueValue)}),this.onclick=this.onclick.bind(this),this.onpointermove=this.onpointermove.bind(this)}get trueValue(){return f(_(this,Pc))}set trueValue(t){M(_(this,Pc),t,!0)}get shouldRender(){return f(_(this,kc))}set shouldRender(t){M(_(this,kc),t)}get isSelected(){return f(_(this,Tc))}set isSelected(t){M(_(this,Tc),t)}onpointermove(t){this.opts.disabled.current||this.root.opts.disablePointerSelection.current||Pt(this,wo,tp).call(this)}onclick(t){this.opts.disabled.current||Pt(this,wo,Zy).call(this)}get props(){return f(_(this,Ec))}set props(t){M(_(this,Ec),t)}}po=new WeakMap,Ef=new WeakMap,Pc=new WeakMap,kc=new WeakMap,Tc=new WeakMap,wo=new WeakSet,Zy=function(){var t;this.opts.disabled.current||(Pt(this,wo,tp).call(this),(t=this.opts.onSelect)==null||t.current())},tp=function(){this.opts.disabled.current||this.root.setValue(this.trueValue,!0)},Ec=new WeakMap;var Ic;class k3{constructor(t,n){$(this,"opts");$(this,"root");z(this,Ic,E(()=>({id:this.opts.id.current,role:"listbox","aria-label":this.opts.ariaLabel.current,[g3]:""})));this.opts=t,this.root=n,jt(t)}get props(){return f(_(this,Ic))}set props(t){M(_(this,Ic),t)}}Ic=new WeakMap;var Oc;class T3{constructor(t,n){$(this,"opts");$(this,"root");z(this,Oc,E(()=>{var t;return{id:this.opts.id.current,[m3]:"",for:(t=this.opts.for)==null?void 0:t.current,style:Y0}}));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.labelNode=i}})}get props(){return f(_(this,Oc))}set props(t){M(_(this,Oc),t)}}Oc=new WeakMap;function E3(e){return So.set(new y3(e))}function I3(e){return new w3(e,So.get())}function O3(e){const t=Au.getOr(null);return new P3({...e,group:t},So.get())}function N3(e){return Au.set(new x3(e,So.get()))}function R3(e){return new S3(e,Au.get())}function M3(e){return new A3(e,Au.get())}function L3(e){return new C3(e,So.get())}function D3(e){return _3.set(new k3(e,So.get()))}function F3(e){return new T3(e,So.get())}var B3=J("<label><!></label>");function z3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","children"]);const a=F3({id:F.with(()=>n()),ref:F.with(()=>i(),h=>i(h))}),l=E(()=>Wt(s,a.props));var c=B3();Lt(c,()=>({...f(l)}));var d=q(c);lt(d,()=>t.children??St),G(c),A(e,c),ut()}var V3=J("<!> <!>",1),H3=J("<div><!> <!></div>");function W3(e,t){ct(t,!0);const n=tt=>{z3(tt,{children:(et,U)=>{te();var nt=Te();Mt(()=>fe(nt,g())),A(et,nt)},$$slots:{default:!0}})};let i=k(t,"id",19,Qt),s=k(t,"ref",15,null),a=k(t,"value",15,""),l=k(t,"onValueChange",3,ge),c=k(t,"onStateChange",3,ge),d=k(t,"loop",3,!1),h=k(t,"shouldFilter",3,!0),p=k(t,"filter",3,Qy),g=k(t,"label",3,""),v=k(t,"vimBindings",3,!0),b=k(t,"disablePointerSelection",3,!1),y=xt(t,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","onStateChange","loop","shouldFilter","filter","label","vimBindings","disablePointerSelection","children","child"]);const w=E3({id:F.with(()=>i()),ref:F.with(()=>s(),tt=>s(tt)),filter:F.with(()=>p()),shouldFilter:F.with(()=>h()),loop:F.with(()=>d()),value:F.with(()=>a(),tt=>{a()!==tt&&(a(tt),l()(tt))}),vimBindings:F.with(()=>v()),disablePointerSelection:F.with(()=>b()),onStateChange:F.with(()=>c())}),x=tt=>w.updateSelectedToIndex(tt),C=tt=>w.updateSelectedByGroup(tt),T=tt=>w.updateSelectedByItem(tt),R=()=>w.getValidItems(),O=E(()=>Wt(y,w.props));var B={updateSelectedToIndex:x,updateSelectedByGroup:C,updateSelectedByItem:T,getValidItems:R},V=K(),N=L(V);{var H=tt=>{var et=V3(),U=L(et);n(U);var nt=at(U,2);lt(nt,()=>t.child,()=>({props:f(O)})),A(tt,et)},X=tt=>{var et=H3();Lt(et,()=>({...f(O)}));var U=q(et);n(U);var nt=at(U,2);lt(nt,()=>t.children??St),G(et),A(tt,et)};vt(N,tt=>{t.child?tt(H):tt(X,!1)})}return A(e,V),ut(B)}var U3=J("<div><!></div>");function G3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"forceMount",3,!1),a=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child","forceMount"]);const l=I3({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g)),forceMount:F.with(()=>s())}),c=E(()=>Wt(l.props,a));var d=K(),h=L(d);{var p=g=>{var v=K(),b=L(v);{var y=x=>{var C=K(),T=L(C);lt(T,()=>t.child,()=>({props:f(c)})),A(x,C)},w=x=>{var C=U3();Lt(C,()=>({...f(c)}));var T=q(C);lt(T,()=>t.children??St),G(C),A(x,C)};vt(b,x=>{t.child?x(y):x(w,!1)})}A(g,v)};vt(h,g=>{l.shouldRender&&g(p)})}A(e,d),ut()}var K3=J("<div><!></div>");function q3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"value",3,""),a=k(t,"forceMount",3,!1),l=xt(t,["$$slots","$$events","$$legacy","id","ref","value","forceMount","children","child"]);const c=N3({id:F.with(()=>n()),ref:F.with(()=>i(),b=>i(b)),forceMount:F.with(()=>a()),value:F.with(()=>s())}),d=E(()=>Wt(l,c.props));var h=K(),p=L(h);{var g=b=>{var y=K(),w=L(y);lt(w,()=>t.child,()=>({props:f(d)})),A(b,y)},v=b=>{var y=K3();Lt(y,()=>({...f(d)}));var w=q(y);lt(w,()=>t.children??St),G(y),A(b,y)};vt(p,b=>{t.child?b(g):b(v,!1)})}A(e,h),ut()}var X3=J("<div><!></div>");function Y3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=R3({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=X3();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var Z3=J("<div><!></div>"),j3=J('<div style="display: contents;"><!></div>');function Q3(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=M3({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=j3(),d=q(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=Z3();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}G(c),A(e,c),ut()}var J3=J("<input/>");function $3(e,t){ct(t,!0);let n=k(t,"value",15,""),i=k(t,"autofocus",3,!1),s=k(t,"id",19,Qt),a=k(t,"ref",15,null),l=xt(t,["$$slots","$$events","$$legacy","value","autofocus","id","ref","child"]);const c=L3({id:F.with(()=>s()),ref:F.with(()=>a(),b=>a(b)),value:F.with(()=>n(),b=>{n(b)}),autofocus:F.with(()=>i()??!1)}),d=E(()=>Wt(l,c.props));var h=K(),p=L(h);{var g=b=>{var y=K(),w=L(y);lt(w,()=>t.child,()=>({props:f(d)})),A(b,y)},v=b=>{var y=J3();Lt(y,()=>({...f(d)}),void 0,void 0,void 0,!0),B0(y,n),A(b,y)};vt(p,b=>{t.child?b(g):b(v,!1)})}A(e,h),ut()}var tM=J("<div><!></div>"),eM=J('<div style="display: contents;" data-item-wrapper=""><!></div>');function nM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"value",3,""),a=k(t,"disabled",3,!1),l=k(t,"onSelect",3,ge),c=k(t,"forceMount",3,!1),d=k(t,"keywords",19,()=>[]),h=xt(t,["$$slots","$$events","$$legacy","id","ref","value","disabled","children","child","onSelect","forceMount","keywords"]);const p=O3({id:F.with(()=>n()),ref:F.with(()=>i(),y=>i(y)),value:F.with(()=>s()),disabled:F.with(()=>a()),onSelect:F.with(()=>l()),forceMount:F.with(()=>c()),keywords:F.with(()=>d())}),g=E(()=>Wt(h,p.props));var v=K(),b=L(v);Ui(b,()=>p.root.key,y=>{var w=eM(),x=q(w);{var C=T=>{var R=K(),O=L(R);{var B=N=>{var H=K(),X=L(H);lt(X,()=>t.child,()=>({props:f(g)})),A(N,H)},V=N=>{var H=tM();Lt(H,()=>({...f(g)}));var X=q(H);lt(X,()=>t.children??St),G(H),A(N,H)};vt(O,N=>{t.child?N(B):N(V,!1)})}A(T,R)};vt(x,T=>{p.shouldRender&&T(C)})}G(w),Mt(()=>At(w,"data-value",p.trueValue)),A(y,w)}),A(e,v),ut()}var rM=J("<div><!></div>");function iM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","id","ref","child","children","aria-label"]);const a=D3({id:F.with(()=>n()),ref:F.with(()=>i(),h=>i(h)),ariaLabel:F.with(()=>t["aria-label"]??"Suggestions...")}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);Ui(d,()=>a.root._commandState.search==="",h=>{var p=K(),g=L(p);{var v=y=>{var w=K(),x=L(w);lt(x,()=>t.child,()=>({props:f(l)})),A(y,w)},b=y=>{var w=rM();Lt(w,()=>({...f(l)}));var x=q(w);lt(x,()=>t.children??St),G(w),A(y,w)};vt(g,y=>{t.child?y(v):y(b,!1)})}A(h,p)}),A(e,c),ut()}const k_=1,oM=.9,sM=.8,aM=.17,_g=.1,yg=.999,lM=.9999,cM=.99,uM=/[\\/_+.#"@[({&]/,dM=/[\\/_+.#"@[({&]/g,fM=/[\s-]/,jy=/[\s-]/g;function ep(e,t,n,i,s,a,l){if(a===t.length)return s===e.length?k_:cM;const c=`${s},${a}`;if(l[c]!==void 0)return l[c];const d=i.charAt(a);let h=n.indexOf(d,s),p=0,g,v,b,y;for(;h>=0;)g=ep(e,t,n,i,h+1,a+1,l),g>p&&(h===s?g*=k_:uM.test(e.charAt(h-1))?(g*=sM,b=e.slice(s,h-1).match(dM),b&&s>0&&(g*=yg**b.length)):fM.test(e.charAt(h-1))?(g*=oM,y=e.slice(s,h-1).match(jy),y&&s>0&&(g*=yg**y.length)):(g*=aM,s>0&&(g*=yg**(h-s))),e.charAt(h)!==t.charAt(a)&&(g*=lM)),(g<_g&&n.charAt(h-1)===i.charAt(a+1)||i.charAt(a+1)===i.charAt(a)&&n.charAt(h-1)!==i.charAt(a))&&(v=ep(e,t,n,i,h+1,a+2,l),v*_g>g&&(g=v*_g)),g>p&&(p=g),h=n.indexOf(d,h+1);return l[c]=p,p}function T_(e){return e.toLowerCase().replace(jy," ")}function Qy(e,t,n){return e=n&&n.length>0?`${`${e} ${n==null?void 0:n.join(" ")}`}`:e,ep(e,t,T_(e),T_(t),0,0,{})}var Nc,Rc;class hM{constructor(t){$(this,"opts");z(this,Nc,bt(null));z(this,Rc,bt(null));this.opts=t}get contentNode(){return f(_(this,Nc))}set contentNode(t){M(_(this,Nc),t,!0)}get triggerNode(){return f(_(this,Rc))}set triggerNode(t){M(_(this,Rc),t,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}}Nc=new WeakMap,Rc=new WeakMap;var If,Jy,Mc;class gM{constructor(t,n){z(this,If);$(this,"opts");$(this,"root");z(this,Mc,E(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":_u(this.root.opts.open.current),"data-state":ji(this.root.opts.open.current),"aria-controls":Pt(this,If,Jy).call(this),"data-popover-trigger":"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick})));this.opts=t,this.root=n,jt({...t,onRefChange:i=>{this.root.triggerNode=i}}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button===0&&this.root.toggleOpen()}onkeydown(t){this.opts.disabled.current||(t.key===Vr||t.key===Fr)&&(t.preventDefault(),this.root.toggleOpen())}get props(){return f(_(this,Mc))}set props(t){M(_(this,Mc),t)}}If=new WeakSet,Jy=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},Mc=new WeakMap;var Lc,Dc;class pM{constructor(t,n){$(this,"opts");$(this,"root");$(this,"onInteractOutside",t=>{this.opts.onInteractOutside.current(t),!(t.defaultPrevented||!ry(t.target)||t.target.closest("[data-popover-trigger]")===this.root.triggerNode)&&this.root.handleClose()});$(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});$(this,"onCloseAutoFocus",t=>{var n;this.opts.onCloseAutoFocus.current(t),!t.defaultPrevented&&(t.preventDefault(),(n=this.root.triggerNode)==null||n.focus())});z(this,Lc,E(()=>({open:this.root.opts.open.current})));z(this,Dc,E(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ji(this.root.opts.open.current),"data-popover-content":"",style:{pointerEvents:"auto"}})));$(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=t,this.root=n,jt({...t,deps:()=>this.root.opts.open.current,onRefChange:i=>{this.root.contentNode=i}})}get snippetProps(){return f(_(this,Lc))}set snippetProps(t){M(_(this,Lc),t)}get props(){return f(_(this,Dc))}set props(t){M(_(this,Dc),t)}}Lc=new WeakMap,Dc=new WeakMap;const Gp=new An("Popover.Root");function vM(e){return Gp.set(new hM(e))}function mM(e){return new gM(e,Gp.get())}function bM(e){return new pM(e,Gp.get())}var _M=J("<div><div><!></div></div>"),yM=J("<div><div><!></div></div>");function wM(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=k(t,"forceMount",3,!1),a=k(t,"onCloseAutoFocus",3,ge),l=k(t,"onEscapeKeydown",3,ge),c=k(t,"onInteractOutside",3,ge),d=k(t,"trapFocus",3,!0),h=k(t,"preventScroll",3,!1),p=xt(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll"]);const g=bM({id:F.with(()=>i()),ref:F.with(()=>n(),C=>n(C)),onInteractOutside:F.with(()=>c()),onEscapeKeydown:F.with(()=>l()),onCloseAutoFocus:F.with(()=>a())}),v=E(()=>Wt(p,g.props));var b=K(),y=L(b);{var w=C=>{zy(C,Et(()=>f(v),()=>g.popperProps,{get enabled(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return d()},get preventScroll(){return h()},loop:!0,forceMount:!0,popper:(R,O)=>{let B=()=>O==null?void 0:O().props,V=()=>O==null?void 0:O().wrapperProps;const N=E(()=>Wt(B(),{style:A_("popover")}));var H=K(),X=L(H);{var tt=U=>{var nt=K(),Z=L(nt);{let Q=E(()=>({props:f(N),wrapperProps:V(),...g.snippetProps}));lt(Z,()=>t.child,()=>f(Q))}A(U,nt)},et=U=>{var nt=_M();Lt(nt,()=>({...V()}));var Z=q(nt);Lt(Z,()=>({...f(N)}));var Q=q(Z);lt(Q,()=>t.children??St),G(Z),G(nt),A(U,nt)};vt(X,U=>{t.child?U(tt):U(et,!1)})}A(R,H)},$$slots:{popper:!0}}))},x=C=>{var T=K(),R=L(T);{var O=B=>{By(B,Et(()=>f(v),()=>g.popperProps,{get present(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return d()},get preventScroll(){return h()},loop:!0,forceMount:!1,popper:(N,H)=>{let X=()=>H==null?void 0:H().props,tt=()=>H==null?void 0:H().wrapperProps;const et=E(()=>Wt(X(),{style:A_("popover")}));var U=K(),nt=L(U);{var Z=rt=>{var dt=K(),ft=L(dt);{let yt=E(()=>({props:f(et),wrapperProps:tt(),...g.snippetProps}));lt(ft,()=>t.child,()=>f(yt))}A(rt,dt)},Q=rt=>{var dt=yM();Lt(dt,()=>({...tt()}));var ft=q(dt);Lt(ft,()=>({...f(et)}));var yt=q(ft);lt(yt,()=>t.children??St),G(ft),G(dt),A(rt,dt)};vt(nt,rt=>{t.child?rt(Z):rt(Q,!1)})}A(N,U)},$$slots:{popper:!0}}))};vt(R,B=>{s()||B(O)},!0)}A(C,T)};vt(y,C=>{s()?C(w):C(x,!1)})}A(e,b),ut()}var xM=J("<button><!></button>");function SM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled"]);const c=mM({id:F.with(()=>n()),ref:F.with(()=>i(),v=>i(v)),disabled:F.with(()=>!!a())}),d=E(()=>Wt(l,c.props,{type:s()})),h=Gr(),[p,g]=h;Dy(e,{get id(){return n()},children:(v,b)=>{var y=K(),w=L(y);{var x=T=>{var R=K(),O=L(R);lt(O,()=>t.child,()=>({props:f(d)})),A(T,R)},C=T=>{var R=xM();Lt(R,B=>({...B}),[()=>g({...f(d)},[{attribute_name:"formaction"}])]);var O=q(R);lt(O,()=>t.children??St),G(R),A(T,R)};vt(w,T=>{t.child?T(x):T(C,!1)})}A(v,y)},$$slots:{default:!0}}),ut()}function AM(e,t){ct(t,!0);let n=k(t,"open",15,!1),i=k(t,"onOpenChange",3,ge);kI({variant:F.with(()=>"dialog"),open:F.with(()=>n(),l=>{n(l),i()(l)})});var s=K(),a=L(s);lt(a,()=>t.children??St),A(e,s),ut()}var CM=J("<button><!></button>");function $y(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"disabled",3,!1),a=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const l=RI({variant:F.with(()=>"close"),id:F.with(()=>n()),ref:F.with(()=>i(),w=>i(w)),disabled:F.with(()=>!!s())}),c=E(()=>Wt(a,l.props)),d=Gr(),[h,p]=d;var g=K(),v=L(g);{var b=w=>{var x=K(),C=L(x);lt(C,()=>t.child,()=>({props:f(c)})),A(w,x)},y=w=>{var x=CM();Lt(x,T=>({...T}),[()=>p({...f(c)},[{attribute_name:"formaction"}])]);var C=q(x);lt(C,()=>t.children??St),G(x),A(w,x)};vt(v,w=>{t.child?w(b):w(y,!1)})}A(e,g),ut()}var PM=J("<!> <!>",1),kM=J("<!> <div><!></div>",1);function tw(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"forceMount",3,!1),a=k(t,"onCloseAutoFocus",3,ge),l=k(t,"onOpenAutoFocus",3,ge),c=k(t,"onEscapeKeydown",3,ge),d=k(t,"onInteractOutside",3,ge),h=k(t,"trapFocus",3,!0),p=k(t,"preventScroll",3,!0),g=k(t,"restoreScrollDelay",3,null),v=xt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const b=II({id:F.with(()=>n()),ref:F.with(()=>i(),w=>i(w))}),y=E(()=>Wt(v,b.props));{const w=C=>{{const T=(O,B)=>{let V=()=>B==null?void 0:B().props;dy(O,Et(()=>f(y),{get enabled(){return b.root.opts.open.current},onEscapeKeydown:N=>{c()(N),!N.defaultPrevented&&b.root.handleClose()},children:(N,H)=>{uy(N,Et(()=>f(y),{get enabled(){return b.root.opts.open.current},onInteractOutside:X=>{d()(X),!X.defaultPrevented&&b.root.handleClose()},children:(X,tt)=>{my(X,Et(()=>f(y),{get enabled(){return b.root.opts.open.current},children:(et,U)=>{var nt=K(),Z=L(nt);{var Q=dt=>{var ft=PM(),yt=L(ft);{var mt=st=>{Yd(st,{get preventScroll(){return p()},get restoreScrollDelay(){return g()}})};vt(yt,st=>{b.root.opts.open.current&&st(mt)})}var ot=at(yt,2);{let st=E(()=>({props:Wt(f(y),V()),...b.snippetProps}));lt(ot,()=>t.child,()=>f(st))}A(dt,ft)},rt=dt=>{var ft=kM(),yt=L(ft);Yd(yt,{get preventScroll(){return p()}});var mt=at(yt,2);Lt(mt,st=>({...st}),[()=>Wt(f(y),V())]);var ot=q(mt);lt(ot,()=>t.children??St),G(mt),A(dt,ft)};vt(Z,dt=>{t.child?dt(Q):dt(rt,!1)})}A(et,nt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let R=E(()=>TO({forceMount:s(),present:b.root.opts.open.current,trapFocus:h(),open:b.root.opts.open.current}));py(C,{loop:!0,get trapFocus(){return f(R)},get onOpenAutoFocus(){return l()},get id(){return n()},onCloseAutoFocus:O=>{var B;a()(O),!O.defaultPrevented&&((B=b.root.triggerNode)==null||B.focus())},focusScope:T,$$slots:{focusScope:!0}})}};let x=E(()=>b.root.opts.open.current||s());Wf(e,Et(()=>f(y),{get forceMount(){return s()},get present(){return f(x)},presence:w,$$slots:{presence:!0}}))}ut()}const TM="data-label-root";var Fc;class EM{constructor(t){$(this,"opts");z(this,Fc,E(()=>({id:this.opts.id.current,[TM]:"",onmousedown:this.onmousedown})));this.opts=t,this.onmousedown=this.onmousedown.bind(this),jt(t)}onmousedown(t){t.detail>1&&t.preventDefault()}get props(){return f(_(this,Fc))}set props(t){M(_(this,Fc),t)}}Fc=new WeakMap;function IM(e){return new EM(e)}var OM=J("<label><!></label>");function NM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const a=IM({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props,{for:t.for}));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=OM();Lt(v,()=>({...f(l),for:t.for}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}function RM(e,t){ct(t,!0);let n=k(t,"open",15,!1),i=k(t,"onOpenChange",3,ge);vM({open:F.with(()=>n(),s=>{n(s),i()(s)})}),Iy(e,{children:(s,a)=>{var l=K(),c=L(l);lt(c,()=>t.children??St),A(s,l)},$$slots:{default:!0}}),ut()}var MM=J("<!> <!>",1);function LM(e,t){ct(t,!0);let n=k(t,"value",15),i=k(t,"onValueChange",3,ge),s=k(t,"name",3,""),a=k(t,"disabled",3,!1),l=k(t,"open",15,!1),c=k(t,"onOpenChange",3,ge),d=k(t,"loop",3,!1),h=k(t,"scrollAlignment",3,"nearest"),p=k(t,"required",3,!1),g=k(t,"items",19,()=>[]),v=k(t,"allowDeselect",3,!1);function b(){n()===void 0&&n(t.type==="single"?"":[])}b(),he.pre(()=>n(),()=>{b()});const y=IR({type:t.type,value:F.with(()=>n(),O=>{n(O),i()(O)}),disabled:F.with(()=>a()),required:F.with(()=>p()),open:F.with(()=>l(),O=>{l(O),c()(O)}),loop:F.with(()=>d()),scrollAlignment:F.with(()=>h()),name:F.with(()=>s()),isCombobox:!1,items:F.with(()=>g()),allowDeselect:F.with(()=>v())});var w=MM(),x=L(w);Iy(x,{children:(O,B)=>{var V=K(),N=L(V);lt(N,()=>t.children??St),A(O,V)},$$slots:{default:!0}});var C=at(x,2);{var T=O=>{var B=K(),V=L(B);{var N=H=>{var X=K(),tt=L(X);rr(tt,17,()=>y.opts.value.current,vu,(et,U)=>{C_(et,{get value(){return f(U)}})}),A(H,X)};vt(V,H=>{y.opts.value.current.length&&H(N)})}A(O,B)},R=O=>{C_(O,{get value(){return y.opts.value.current},set value(B){y.opts.value.current=B}})};vt(C,O=>{Array.isArray(y.opts.value.current)?O(T):O(R,!1)})}A(e,w),ut()}var DM=J("<button><!></button>");function FM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=xt(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=NR({id:F.with(()=>n()),ref:F.with(()=>i(),b=>i(b))}),c=E(()=>Wt(a,l.props,{type:s()})),d=Gr(),[h,p]=d;var g=K(),v=L(g);kt(v,()=>Dy,(b,y)=>{y(b,{get id(){return n()},children:(w,x)=>{var C=K(),T=L(C);{var R=B=>{var V=K(),N=L(V);lt(N,()=>t.child,()=>({props:f(c)})),A(B,V)},O=B=>{var V=DM();Lt(V,H=>({...H}),[()=>p({...f(c)},[{attribute_name:"formaction"}])]);var N=q(V);lt(N,()=>t.children??St),G(V),A(B,V)};vt(T,B=>{t.child?B(R):B(O,!1)})}A(w,C)},$$slots:{default:!0}})}),A(e,g),ut()}function BM(e,t,n){const i={position:"absolute"};return e==="lr"?(i.left=`${t}%`,i.right=`${n}%`):e==="rl"?(i.right=`${t}%`,i.left=`${n}%`):e==="bt"?(i.bottom=`${t}%`,i.top=`${n}%`):(i.top=`${t}%`,i.bottom=`${n}%`),i}function ew(e,t){const n={position:"absolute"};return e==="lr"?(n.left=`${t}%`,n.translate="-50% 0"):e==="rl"?(n.right=`${t}%`,n.translate="50% 0"):e==="bt"?(n.bottom=`${t}%`,n.translate="0 50%"):(n.top=`${t}%`,n.translate="0 -50%"),n}function nw(e,t,n){const i={position:"absolute"};return e==="lr"?(i.left=`${t}%`,i.translate=`${n}% 0`):e==="rl"?(i.right=`${t}%`,i.translate=`${-n}% 0`):e==="bt"?(i.bottom=`${t}%`,i.translate=`0 ${-n}%`):(i.top=`${t}%`,i.translate=`0 ${n}%`),i}function Uo(e,t,n,i){const s=(e-(Number.isNaN(t)?0:t))%i;let a=Math.abs(s)*2>=i?e+Math.sign(s)*(i-Math.abs(s)):e-s;Number.isNaN(t)?!Number.isNaN(n)&&a>n&&(a=Math.floor(n/i)*i):a<t?a=t:!Number.isNaN(n)&&a>n&&(a=t+Math.floor((n-t)/i)*i);const l=i.toString(),c=l.indexOf("."),d=c>=0?l.length-c:0;if(d>0){const h=10**d;a=Math.round(a*h)/h}return a}function Kp(e,t,n=!0){const[i,s]=e,[a,l]=t,c=(l-a)/(s-i);return d=>{const h=a+c*(d-i);return n?h>Math.max(a,l)?Math.max(a,l):h<Math.min(a,l)?Math.min(a,l):h:h}}const zM="data-slider-root",Jd="data-slider-thumb",VM="data-slider-range",rw="data-slider-tick";var Bc,zc,Of,Vc;class iw{constructor(t){$(this,"opts");z(this,Bc,bt(!1));z(this,zc,E(()=>this.opts.orientation.current==="horizontal"?this.opts.dir.current==="rtl"?"rl":"lr":this.opts.dir.current==="rtl"?"tb":"bt"));z(this,Of,E(()=>{if(!this.opts.disabled.current)return this.opts.orientation.current==="horizontal"?"pan-y":"pan-x"}));$(this,"getAllThumbs",()=>{const t=this.opts.ref.current;return t?Array.from(t.querySelectorAll(`[${Jd}]`)):[]});$(this,"getThumbScale",()=>{var d,h;if(this.opts.thumbPositioning.current==="exact")return[0,100];const t=this.opts.orientation.current==="vertical",n=this.getAllThumbs()[0],i=t?n==null?void 0:n.offsetHeight:n==null?void 0:n.offsetWidth;if(i===void 0||Number.isNaN(i)||i===0)return[0,100];const s=t?(d=this.opts.ref.current)==null?void 0:d.offsetHeight:(h=this.opts.ref.current)==null?void 0:h.offsetWidth;if(s===void 0||Number.isNaN(s)||s===0)return[0,100];const a=i/2/s*100,l=a,c=100-a;return[l,c]});$(this,"getPositionFromValue",t=>{const n=this.getThumbScale();return Kp([this.opts.min.current,this.opts.max.current],n)(t)});z(this,Vc,E(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":Xn(this.opts.disabled.current),style:{touchAction:f(_(this,Of))},[zM]:""})));this.opts=t,jt(t)}get isActive(){return f(_(this,Bc))}set isActive(t){M(_(this,Bc),t,!0)}get direction(){return f(_(this,zc))}set direction(t){M(_(this,zc),t)}isThumbActive(t){return this.isActive}get props(){return f(_(this,Vc))}set props(t){M(_(this,Vc),t)}}Bc=new WeakMap,zc=new WeakMap,Of=new WeakMap,Vc=new WeakMap;var Hc,Wc,Uc,Gc,Kc;class HM extends iw{constructor(n){super(n);$(this,"opts");$(this,"isMulti",!1);$(this,"updateValue",n=>{this.opts.value.current=Uo(n,this.opts.min.current,this.opts.max.current,this.opts.step.current)});$(this,"handlePointerMove",n=>{if(!this.isActive||this.opts.disabled.current)return;n.preventDefault(),n.stopPropagation();const i=this.opts.ref.current,s=this.getAllThumbs()[0];if(!i||!s)return;s.focus();const{left:a,right:l,top:c,bottom:d}=i.getBoundingClientRect();this.direction==="lr"?this.applyPosition({clientXY:n.clientX,start:a,end:l}):this.direction==="rl"?this.applyPosition({clientXY:n.clientX,start:l,end:a}):this.direction==="bt"?this.applyPosition({clientXY:n.clientY,start:d,end:c}):this.direction==="tb"&&this.applyPosition({clientXY:n.clientY,start:c,end:d})});$(this,"handlePointerDown",n=>{if(n.button!==0||this.opts.disabled.current)return;const i=this.opts.ref.current,s=this.getAllThumbs()[0];if(!s||!i)return;const a=n.target;!iy(a)||!i.contains(a)||(n.preventDefault(),s.focus(),this.isActive=!0,this.handlePointerMove(n))});$(this,"handlePointerUp",()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Dr(()=>this.opts.value.current)),this.isActive=!1)});z(this,Hc,E(()=>{const n=this.opts.value.current;return Array.from({length:1},()=>{const i=n,s=this.getPositionFromValue(i),a=ew(this.direction,s);return{role:"slider","aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":i,"aria-disabled":Tp(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":i,tabindex:this.opts.disabled.current?-1:0,style:a,[Jd]:""}})}));z(this,Wc,E(()=>this.thumbsPropsArr.map((n,i)=>i)));z(this,Uc,E(()=>{const n=this.opts.max.current,i=this.opts.min.current,s=this.opts.step.current,a=n-i;let l=Math.ceil(a/s);a%s==0&&l++;const c=this.opts.value.current;return Array.from({length:l},(d,h)=>{const p=h*s,g=Kp([0,(l-1)*s],this.getThumbScale()),v=h===0,b=h===l-1,y=v?0:b?-100:-50,w=nw(this.direction,g(p),y),x=i+h*s,C=x<=c;return{"data-disabled":Xn(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":C?"":void 0,"data-value":x,style:w,[rw]:""}})}));z(this,Gc,E(()=>this.ticksPropsArr.map((n,i)=>i)));z(this,Kc,E(()=>({ticks:this.ticksRenderArr,thumbs:this.thumbsRenderArr})));this.opts=n,kp(()=>hi(je(document,"pointerdown",this.handlePointerDown),je(document,"pointerup",this.handlePointerUp),je(document,"pointermove",this.handlePointerMove),je(document,"pointerleave",this.handlePointerUp))),he([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([i,s,a,l])=>{const c=h=>Uo(h,s,a,i)===h,d=h=>Uo(h,s,a,i);c(l)||(this.opts.value.current=d(l))})}applyPosition({clientXY:n,start:i,end:s}){const a=this.opts.min.current,l=this.opts.max.current,d=(n-i)/(s-i)*(l-a)+a;if(d<a)this.updateValue(a);else if(d>l)this.updateValue(l);else{const h=this.opts.step.current,p=Math.floor((d-a)/h),g=a+p*h+h/2,v=a+(p+1)*h+h/2,b=d>=g&&d<v?(p+1)*h+a:p*h+a;b<=l&&this.updateValue(b)}}get thumbsPropsArr(){return f(_(this,Hc))}set thumbsPropsArr(n){M(_(this,Hc),n)}get thumbsRenderArr(){return f(_(this,Wc))}set thumbsRenderArr(n){M(_(this,Wc),n)}get ticksPropsArr(){return f(_(this,Uc))}set ticksPropsArr(n){M(_(this,Uc),n)}get ticksRenderArr(){return f(_(this,Gc))}set ticksRenderArr(n){M(_(this,Gc),n)}get snippetProps(){return f(_(this,Kc))}set snippetProps(n){M(_(this,Kc),n)}}Hc=new WeakMap,Wc=new WeakMap,Uc=new WeakMap,Gc=new WeakMap,Kc=new WeakMap;var qc,Xc,Nf,Yc,Zc,jc,Qc,Jc;class WM extends iw{constructor(n){super(n);$(this,"opts");$(this,"isMulti",!0);z(this,qc,bt(null));z(this,Xc,bt(0));z(this,Nf,n=>{const i=this.getAllThumbs();if(!i.length)return;for(const c of i)c.blur();const s=i.map(c=>{if(this.opts.orientation.current==="horizontal"){const{left:d,right:h}=c.getBoundingClientRect();return Math.abs(n.clientX-(d+h)/2)}else{const{top:d,bottom:h}=c.getBoundingClientRect();return Math.abs(n.clientY-(d+h)/2)}}),a=i[s.indexOf(Math.min(...s))],l=i.indexOf(a);return{node:a,idx:l}});$(this,"handlePointerMove",n=>{if(!this.isActive||this.opts.disabled.current)return;n.preventDefault(),n.stopPropagation();const i=this.opts.ref.current,s=this.activeThumb;if(!i||!s)return;s.node.focus();const{left:a,right:l,top:c,bottom:d}=i.getBoundingClientRect(),h=this.direction;h==="lr"?this.applyPosition({clientXY:n.clientX,activeThumbIdx:s.idx,start:a,end:l}):h==="rl"?this.applyPosition({clientXY:n.clientX,activeThumbIdx:s.idx,start:l,end:a}):h==="bt"?this.applyPosition({clientXY:n.clientY,activeThumbIdx:s.idx,start:d,end:c}):h==="tb"&&this.applyPosition({clientXY:n.clientY,activeThumbIdx:s.idx,start:c,end:d})});$(this,"handlePointerDown",n=>{if(n.button!==0||this.opts.disabled.current)return;const i=this.opts.ref.current,s=_(this,Nf).call(this,n);if(!s||!i)return;const a=n.target;!iy(a)||!i.contains(a)||(n.preventDefault(),this.activeThumb=s,s.node.focus(),this.isActive=!0,this.handlePointerMove(n))});$(this,"handlePointerUp",()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Dr(()=>this.opts.value.current)),this.isActive=!1)});$(this,"getAllThumbs",()=>{const n=this.opts.ref.current;return n?Array.from(n.querySelectorAll(`[${Jd}]`)):[]});$(this,"updateValue",(n,i)=>{const s=this.opts.value.current;if(!s.length){this.opts.value.current.push(n);return}if(s[i]===n)return;const l=[...s];if(!MO(i,l))return;const c=l[i]>n?-1:1,d=()=>{var y;const v=i+c;l[i]=l[v],l[v]=n;const b=this.getAllThumbs();b.length&&((y=b[v])==null||y.focus(),this.activeThumb={node:b[v],idx:v})};if(this.opts.autoSort.current&&(c===-1&&n<l[i-1]||c===1&&n>l[i+1])){d(),this.opts.value.current=l;return}const h=this.opts.min.current,p=this.opts.max.current,g=this.opts.step.current;l[i]=Uo(n,h,p,g),this.opts.value.current=l});z(this,Yc,E(()=>{const n=this.opts.value.current;return Array.from({length:n.length||1},(i,s)=>{const a=Dr(()=>this.currentThumbIdx);a<n.length&&Dr(()=>{this.currentThumbIdx=a+1});const l=n[s],c=this.getPositionFromValue(l??0),d=ew(this.direction,c);return{role:"slider","aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":l,"aria-disabled":Tp(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":l,tabindex:this.opts.disabled.current?-1:0,style:d,[Jd]:""}})}));z(this,Zc,E(()=>this.thumbsPropsArr.map((n,i)=>i)));z(this,jc,E(()=>{const n=this.opts.max.current,i=this.opts.min.current,s=this.opts.step.current,a=n-i;let l=Math.ceil(a/s);a%s==0&&l++;const c=this.opts.value.current;return Array.from({length:l},(d,h)=>{const p=h*s,g=Kp([0,(l-1)*s],this.getThumbScale()),v=h===0,b=h===l-1,y=v?0:b?-100:-50,w=nw(this.direction,g(p),y),x=i+h*s,C=c.length===1?x<=c[0]:c[0]<=x&&x<=c[c.length-1];return{"data-disabled":Xn(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":C?"":void 0,"data-value":x,style:w,[rw]:""}})}));z(this,Qc,E(()=>this.ticksPropsArr.map((n,i)=>i)));z(this,Jc,E(()=>({ticks:this.ticksRenderArr,thumbs:this.thumbsRenderArr})));this.opts=n,kp(()=>hi(je(document,"pointerdown",this.handlePointerDown),je(document,"pointerup",this.handlePointerUp),je(document,"pointermove",this.handlePointerMove),je(document,"pointerleave",this.handlePointerUp))),he([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([i,s,a,l])=>{const c=h=>Uo(h,s,a,i)===h,d=h=>Uo(h,s,a,i);l.some(h=>!c(h))&&(this.opts.value.current=l.map(d))})}get activeThumb(){return f(_(this,qc))}set activeThumb(n){M(_(this,qc),n,!0)}get currentThumbIdx(){return f(_(this,Xc))}set currentThumbIdx(n){M(_(this,Xc),n,!0)}isThumbActive(n){var i;return this.isActive&&((i=this.activeThumb)==null?void 0:i.idx)===n}applyPosition({clientXY:n,activeThumbIdx:i,start:s,end:a}){const l=this.opts.min.current,c=this.opts.max.current,h=(n-s)/(a-s)*(c-l)+l;if(h<l)this.updateValue(l,i);else if(h>c)this.updateValue(c,i);else{const p=this.opts.step.current,g=Math.floor((h-l)/p),v=l+g*p+p/2,b=l+(g+1)*p+p/2,y=h>=v&&h<b?(g+1)*p+l:g*p+l;y<=c&&this.updateValue(y,i)}}get thumbsPropsArr(){return f(_(this,Yc))}set thumbsPropsArr(n){M(_(this,Yc),n)}get thumbsRenderArr(){return f(_(this,Zc))}set thumbsRenderArr(n){M(_(this,Zc),n)}get ticksPropsArr(){return f(_(this,jc))}set ticksPropsArr(n){M(_(this,jc),n)}get ticksRenderArr(){return f(_(this,Qc))}set ticksRenderArr(n){M(_(this,Qc),n)}get snippetProps(){return f(_(this,Jc))}set snippetProps(n){M(_(this,Jc),n)}}qc=new WeakMap,Xc=new WeakMap,Nf=new WeakMap,Yc=new WeakMap,Zc=new WeakMap,jc=new WeakMap,Qc=new WeakMap,Jc=new WeakMap;const UM=[yu,wu,hr,wr,ms,vs];var $c,tu;class GM{constructor(t,n){$(this,"opts");$(this,"root");z(this,$c,E(()=>{const t=Array.isArray(this.root.opts.value.current)&&this.root.opts.value.current.length>1?this.root.getPositionFromValue(Math.min(...this.root.opts.value.current)??0):0,n=Array.isArray(this.root.opts.value.current)?100-this.root.getPositionFromValue(Math.max(...this.root.opts.value.current)??0):100-this.root.getPositionFromValue(this.root.opts.value.current);return{position:"absolute",...BM(this.root.direction,t,n)}}));z(this,tu,E(()=>({id:this.opts.id.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Xn(this.root.opts.disabled.current),style:this.rangeStyles,[VM]:""})));this.opts=t,this.root=n,jt(t)}get rangeStyles(){return f(_(this,$c))}set rangeStyles(t){M(_(this,$c),t)}get props(){return f(_(this,tu))}set props(t){M(_(this,tu),t)}}$c=new WeakMap,tu=new WeakMap;var Rf,wn,Mn,eu;class KM{constructor(t,n){z(this,wn);$(this,"opts");$(this,"root");z(this,Rf,E(()=>this.root.opts.disabled.current||this.opts.disabled.current));z(this,eu,E(()=>({...this.root.thumbsPropsArr[this.opts.index.current],id:this.opts.id.current,onkeydown:this.onkeydown,"data-active":this.root.isThumbActive(this.opts.index.current)?"":void 0})));this.opts=t,this.root=n,jt(t),this.onkeydown=this.onkeydown.bind(this)}onkeydown(t){if(f(_(this,Rf)))return;const n=this.opts.ref.current;if(!n)return;const i=this.root.getAllThumbs();if(!i.length)return;const s=i.indexOf(n);if(this.root.isMulti&&(this.root.currentThumbIdx=s),!UM.includes(t.key))return;t.preventDefault();const a=this.root.opts.min.current,l=this.root.opts.max.current,c=this.root.opts.value.current,d=Array.isArray(c)?c[s]:c,h=this.root.opts.orientation.current,p=this.root.direction,g=this.root.opts.step.current;switch(t.key){case ms:Pt(this,wn,Mn).call(this,a);break;case vs:Pt(this,wn,Mn).call(this,l);break;case yu:if(h!=="horizontal")break;if(t.metaKey){const v=p==="rl"?l:a;Pt(this,wn,Mn).call(this,v)}else p==="rl"&&d<l?Pt(this,wn,Mn).call(this,d+g):p==="lr"&&d>a&&Pt(this,wn,Mn).call(this,d-g);break;case wu:if(h!=="horizontal")break;if(t.metaKey){const v=p==="rl"?a:l;Pt(this,wn,Mn).call(this,v)}else p==="rl"&&d>a?Pt(this,wn,Mn).call(this,d-g):p==="lr"&&d<l&&Pt(this,wn,Mn).call(this,d+g);break;case hr:if(t.metaKey){const v=p==="tb"?a:l;Pt(this,wn,Mn).call(this,v)}else p==="tb"&&d>a?Pt(this,wn,Mn).call(this,d-g):p!=="tb"&&d<l&&Pt(this,wn,Mn).call(this,d+g);break;case wr:if(t.metaKey){const v=p==="tb"?l:a;Pt(this,wn,Mn).call(this,v)}else p==="tb"&&d<l?Pt(this,wn,Mn).call(this,d+g):p!=="tb"&&d>a&&Pt(this,wn,Mn).call(this,d-g);break}this.root.opts.onValueCommit.current(this.root.opts.value.current)}get props(){return f(_(this,eu))}set props(t){M(_(this,eu),t)}}Rf=new WeakMap,wn=new WeakSet,Mn=function(t){this.root.isMulti?this.root.updateValue(t,this.opts.index.current):this.root.updateValue(t)},eu=new WeakMap;const qp=new An("Slider.Root");function qM(e){const{type:t,...n}=e,i=t==="single"?new HM(n):new WM(n);return qp.set(i)}function XM(e){return new GM(e,qp.get())}function YM(e){return new KM(e,qp.get())}var ZM=J("<span><!></span>");function jM(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"value",15),a=k(t,"onValueChange",3,ge),l=k(t,"onValueCommit",3,ge),c=k(t,"disabled",3,!1),d=k(t,"min",3,0),h=k(t,"max",3,100),p=k(t,"step",3,1),g=k(t,"dir",3,"ltr"),v=k(t,"autoSort",3,!0),b=k(t,"orientation",3,"horizontal"),y=k(t,"thumbPositioning",3,"contain"),w=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","value","type","onValueChange","onValueCommit","disabled","min","max","step","dir","autoSort","orientation","thumbPositioning"]);function x(){s()===void 0&&s(t.type==="single"?0:[])}x(),he.pre(()=>s(),()=>{x()});const C=qM({id:F.with(()=>n()),ref:F.with(()=>i(),N=>i(N)),value:F.with(()=>s(),N=>{s(N),a()(N)}),onValueCommit:F.with(()=>l()),disabled:F.with(()=>c()),min:F.with(()=>d()),max:F.with(()=>h()),step:F.with(()=>p()),dir:F.with(()=>g()),autoSort:F.with(()=>v()),orientation:F.with(()=>b()),thumbPositioning:F.with(()=>y()),type:t.type}),T=E(()=>Wt(w,C.props));var R=K(),O=L(R);{var B=N=>{var H=K(),X=L(H);{let tt=E(()=>({props:f(T),...C.snippetProps}));lt(X,()=>t.child,()=>f(tt))}A(N,H)},V=N=>{var H=ZM();Lt(H,()=>({...f(T)}));var X=q(H);lt(X,()=>t.children??St,()=>C.snippetProps),G(H),A(N,H)};vt(O,N=>{t.child?N(B):N(V,!1)})}A(e,R),ut()}var QM=J("<span><!></span>");function JM(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=xt(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const a=XM({id:F.with(()=>i()),ref:F.with(()=>n(),g=>n(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=QM();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var $M=J("<span><!></span>");function t5(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=k(t,"disabled",3,!1),a=xt(t,["$$slots","$$events","$$legacy","children","child","ref","id","index","disabled"]);const l=YM({id:F.with(()=>i()),ref:F.with(()=>n(),v=>n(v)),index:F.with(()=>t.index),disabled:F.with(()=>s())}),c=E(()=>Wt(a,l.props));var d=K(),h=L(d);{var p=v=>{var b=K(),y=L(b);{let w=E(()=>({active:l.root.isThumbActive(l.opts.index.current),props:f(c)}));lt(y,()=>t.child,()=>f(w))}A(v,b)},g=v=>{var b=$M();Lt(b,()=>({...f(c)}));var y=q(b);{let w=E(()=>({active:l.root.isThumbActive(l.opts.index.current)}));lt(y,()=>t.children??St,()=>f(w))}G(b),A(v,b)};vt(h,v=>{t.child?v(p):v(g,!1)})}A(e,d),ut()}const e5="data-switch-root",n5="data-switch-thumb";var nu,np,ru,iu,ou;class r5{constructor(t){z(this,nu);$(this,"opts");z(this,ru,E(()=>({"data-disabled":Xn(this.opts.disabled.current),"data-state":QE(this.opts.checked.current),"data-required":$E(this.opts.required.current)})));z(this,iu,E(()=>({checked:this.opts.checked.current})));z(this,ou,E(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Ep(this.opts.disabled.current),"aria-checked":ty(this.opts.checked.current,!1),"aria-required":J0(this.opts.required.current),[e5]:"",onclick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,jt(t),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}onkeydown(t){!(t.key===Vr||t.key===Fr)||this.opts.disabled.current||(t.preventDefault(),Pt(this,nu,np).call(this))}onclick(t){this.opts.disabled.current||Pt(this,nu,np).call(this)}get sharedProps(){return f(_(this,ru))}set sharedProps(t){M(_(this,ru),t)}get snippetProps(){return f(_(this,iu))}set snippetProps(t){M(_(this,iu),t)}get props(){return f(_(this,ou))}set props(t){M(_(this,ou),t)}}nu=new WeakSet,np=function(){this.opts.checked.current=!this.opts.checked.current},ru=new WeakMap,iu=new WeakMap,ou=new WeakMap;var su,au;class i5{constructor(t){$(this,"root");z(this,su,E(()=>this.root.opts.name.current!==void 0));z(this,au,E(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=t}get shouldRender(){return f(_(this,su))}set shouldRender(t){M(_(this,su),t)}get props(){return f(_(this,au))}set props(t){M(_(this,au),t)}}su=new WeakMap,au=new WeakMap;var lu,cu;class o5{constructor(t,n){$(this,"opts");$(this,"root");z(this,lu,E(()=>({checked:this.root.opts.checked.current})));z(this,cu,E(()=>({...this.root.sharedProps,id:this.opts.id.current,[n5]:""})));this.opts=t,this.root=n,jt(t)}get snippetProps(){return f(_(this,lu))}set snippetProps(t){M(_(this,lu),t)}get props(){return f(_(this,cu))}set props(t){M(_(this,cu),t)}}lu=new WeakMap,cu=new WeakMap;const Xp=new An("Switch.Root");function s5(e){return Xp.set(new r5(e))}function a5(){return new i5(Xp.get())}function l5(e){return new o5(e,Xp.get())}function c5(e,t){ct(t,!1);const n=a5();R0();var i=K(),s=L(i);{var a=l=>{Np(l,Et(()=>n.props))};vt(s,l=>{n.shouldRender&&l(a)})}A(e,i),ut()}var u5=J("<button><!></button>"),d5=J("<!> <!>",1);function f5(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=k(t,"disabled",3,!1),a=k(t,"required",3,!1),l=k(t,"checked",15,!1),c=k(t,"value",3,"on"),d=k(t,"name",3,void 0),h=k(t,"type",3,"button"),p=k(t,"onCheckedChange",3,ge),g=xt(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]);const v=s5({checked:F.with(()=>l(),V=>{var N;l(V),(N=p())==null||N(V)}),disabled:F.with(()=>s()??!1),required:F.with(()=>a()),value:F.with(()=>c()),name:F.with(()=>d()),id:F.with(()=>i()),ref:F.with(()=>n(),V=>n(V))}),b=E(()=>Wt(g,v.props,{type:h()})),y=Gr(),[w,x]=y;var C=d5(),T=L(C);{var R=V=>{var N=K(),H=L(N);{let X=E(()=>({props:f(b),...v.snippetProps}));lt(H,()=>t.child,()=>f(X))}A(V,N)},O=V=>{var N=u5();Lt(N,X=>({...X}),[()=>x({...f(b)},[{attribute_name:"formaction"}])]);var H=q(N);lt(H,()=>t.children??St,()=>v.snippetProps),G(N),A(V,N)};vt(T,V=>{t.child?V(R):V(O,!1)})}var B=at(T,2);c5(B,{}),A(e,C),ut()}var h5=J("<span><!></span>");function g5(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"id",19,Qt),s=xt(t,["$$slots","$$events","$$legacy","child","children","ref","id"]);const a=l5({id:F.with(()=>i()),ref:F.with(()=>n(),g=>n(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);{let y=E(()=>({props:f(l),...a.snippetProps}));lt(b,()=>t.child,()=>f(y))}A(g,v)},p=g=>{var v=h5();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St,()=>a.snippetProps),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}const p5="data-tabs-root",v5="data-tabs-list",ow="data-tabs-trigger",m5="data-tabs-content";var uu,du;class b5{constructor(t){$(this,"opts");$(this,"rovingFocusGroup");z(this,uu,bt(Sn([])));$(this,"valueToTriggerId",new ia);$(this,"valueToContentId",new ia);z(this,du,E(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[p5]:""})));this.opts=t,jt(t),this.rovingFocusGroup=vI({candidateAttr:ow,rootNodeId:this.opts.id,loop:this.opts.loop,orientation:this.opts.orientation})}get triggerIds(){return f(_(this,uu))}set triggerIds(t){M(_(this,uu),t,!0)}registerTrigger(t,n){return this.triggerIds.push(t),this.valueToTriggerId.set(n,t),()=>{this.triggerIds=this.triggerIds.filter(i=>i!==t),this.valueToTriggerId.delete(n)}}registerContent(t,n){return this.valueToContentId.set(n,t),()=>{this.valueToContentId.delete(n)}}setValue(t){this.opts.value.current=t}get props(){return f(_(this,du))}set props(t){M(_(this,du),t)}}uu=new WeakMap,du=new WeakMap;var Mf,fu;class _5{constructor(t,n){$(this,"opts");$(this,"root");z(this,Mf,E(()=>this.root.opts.disabled.current));z(this,fu,E(()=>({id:this.opts.id.current,role:"tablist","aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[v5]:"","data-disabled":Xn(f(_(this,Mf)))})));this.opts=t,this.root=n,jt(t)}get props(){return f(_(this,fu))}set props(t){M(_(this,fu),t)}}Mf=new WeakMap,fu=new WeakMap;var as,Wi,ls,Lf,cs,Hd,hu;class y5{constructor(t,n){z(this,cs);$(this,"opts");$(this,"root");z(this,as,E(()=>this.root.opts.value.current===this.opts.value.current));z(this,Wi,E(()=>this.opts.disabled.current||this.root.opts.disabled.current));z(this,ls,bt(0));z(this,Lf,E(()=>this.root.valueToContentId.get(this.opts.value.current)));z(this,hu,E(()=>({id:this.opts.id.current,role:"tab","data-state":sw(f(_(this,as))),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Xn(f(_(this,Wi))),"aria-selected":$0(f(_(this,as))),"aria-controls":f(_(this,Lf)),[ow]:"",disabled:Ep(f(_(this,Wi))),tabindex:f(_(this,ls)),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown})));this.opts=t,this.root=n,jt(t),he([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerTrigger(i,s)),be(()=>{this.root.triggerIds.length,f(_(this,as))||!this.root.opts.value.current?M(_(this,ls),0):M(_(this,ls),-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onfocus(t){this.root.opts.activationMode.current!=="automatic"||f(_(this,Wi))||Pt(this,cs,Hd).call(this)}onclick(t){f(_(this,Wi))||Pt(this,cs,Hd).call(this)}onkeydown(t){if(!f(_(this,Wi))){if(t.key===Fr||t.key===Vr){t.preventDefault(),Pt(this,cs,Hd).call(this);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}get props(){return f(_(this,hu))}set props(t){M(_(this,hu),t)}}as=new WeakMap,Wi=new WeakMap,ls=new WeakMap,Lf=new WeakMap,cs=new WeakSet,Hd=function(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)},hu=new WeakMap;var gu,Df,pu;class w5{constructor(t,n){$(this,"opts");$(this,"root");z(this,gu,E(()=>this.root.opts.value.current===this.opts.value.current));z(this,Df,E(()=>this.root.valueToTriggerId.get(this.opts.value.current)));z(this,pu,E(()=>({id:this.opts.id.current,role:"tabpanel",hidden:eI(!f(_(this,gu))),tabindex:0,"data-value":this.opts.value.current,"data-state":sw(f(_(this,gu))),"aria-labelledby":f(_(this,Df)),[m5]:""})));this.opts=t,this.root=n,jt(t),he([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerContent(i,s))}get props(){return f(_(this,pu))}set props(t){M(_(this,pu),t)}}gu=new WeakMap,Df=new WeakMap,pu=new WeakMap;const Xf=new An("Tabs.Root");function x5(e){return Xf.set(new b5(e))}function S5(e){return new y5(e,Xf.get())}function A5(e){return new _5(e,Xf.get())}function C5(e){return new w5(e,Xf.get())}function sw(e){return e?"active":"inactive"}var P5=J("<div><!></div>");function k5(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=k(t,"value",15,""),a=k(t,"onValueChange",3,ge),l=k(t,"orientation",3,"horizontal"),c=k(t,"loop",3,!0),d=k(t,"activationMode",3,"automatic"),h=k(t,"disabled",3,!1),p=xt(t,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","orientation","loop","activationMode","disabled","children","child"]);const g=x5({id:F.with(()=>n()),value:F.with(()=>s(),C=>{s(C),a()(C)}),orientation:F.with(()=>l()),loop:F.with(()=>c()),activationMode:F.with(()=>d()),disabled:F.with(()=>h()),ref:F.with(()=>i(),C=>i(C))}),v=E(()=>Wt(p,g.props));var b=K(),y=L(b);{var w=C=>{var T=K(),R=L(T);lt(R,()=>t.child,()=>({props:f(v)})),A(C,T)},x=C=>{var T=P5();Lt(T,()=>({...f(v)}));var R=q(T);lt(R,()=>t.children??St),G(T),A(C,T)};vt(y,C=>{t.child?C(w):C(x,!1)})}A(e,b),ut()}var T5=J("<div><!></div>");function E5(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","children","child","id","ref","value"]);const a=C5({value:F.with(()=>t.value),id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=T5();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var I5=J("<div><!></div>");function O5(e,t){ct(t,!0);let n=k(t,"id",19,Qt),i=k(t,"ref",15,null),s=xt(t,["$$slots","$$events","$$legacy","child","children","id","ref"]);const a=A5({id:F.with(()=>n()),ref:F.with(()=>i(),g=>i(g))}),l=E(()=>Wt(s,a.props));var c=K(),d=L(c);{var h=g=>{var v=K(),b=L(v);lt(b,()=>t.child,()=>({props:f(l)})),A(g,v)},p=g=>{var v=I5();Lt(v,()=>({...f(l)}));var b=q(v);lt(b,()=>t.children??St),G(v),A(g,v)};vt(d,g=>{t.child?g(h):g(p,!1)})}A(e,c),ut()}var N5=J("<button><!></button>");function R5(e,t){ct(t,!0);let n=k(t,"disabled",3,!1),i=k(t,"id",19,Qt),s=k(t,"type",3,"button"),a=k(t,"ref",15,null),l=xt(t,["$$slots","$$events","$$legacy","child","children","disabled","id","type","value","ref"]);const c=S5({id:F.with(()=>i()),disabled:F.with(()=>n()??!1),value:F.with(()=>t.value),ref:F.with(()=>a(),x=>a(x))}),d=E(()=>Wt(l,c.props,{type:s()})),h=Gr(),[p,g]=h;var v=K(),b=L(v);{var y=x=>{var C=K(),T=L(C);lt(T,()=>t.child,()=>({props:f(d)})),A(x,C)},w=x=>{var C=N5();Lt(C,R=>({...R}),[()=>g({...f(d)},[{attribute_name:"formaction"}])]);var T=q(C);lt(T,()=>t.children??St),G(C),A(x,C)};vt(b,x=>{t.child?x(y):x(w,!1)})}A(e,v),ut()}const Yp="-",M5=e=>{const t=D5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{const c=l.split(Yp);return c[0]===""&&c.length!==1&&c.shift(),aw(c,t)||L5(l)},getConflictingClassGroupIds:(l,c)=>{const d=n[l]||[];return c&&i[l]?[...d,...i[l]]:d}}},aw=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?aw(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Yp);return(l=t.validators.find(({validator:c})=>c(a)))==null?void 0:l.classGroupId},E_=/^\[(.+)\]$/,L5=e=>{if(E_.test(e)){const t=E_.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},D5=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return B5(Object.entries(e.classGroups),n).forEach(([a,l])=>{rp(l,i,a,t)}),i},rp=(e,t,n,i)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:I_(t,s);a.classGroupId=n;return}if(typeof s=="function"){if(F5(s)){rp(s(i),t,n,i);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,l])=>{rp(l,I_(t,a),n,i)})})},I_=(e,t)=>{let n=e;return t.split(Yp).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},F5=e=>e.isThemeGetter,B5=(e,t)=>t?e.map(([n,i])=>{const s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,c])=>[t+l,c])):a);return[n,s]}):e,z5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const s=(a,l)=>{n.set(a,l),t++,t>e&&(t=0,i=n,n=new Map)};return{get(a){let l=n.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return s(a,l),l},set(a,l){n.has(a)?n.set(a,l):s(a,l)}}},lw="!",V5=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,s=t[0],a=t.length,l=c=>{const d=[];let h=0,p=0,g;for(let x=0;x<c.length;x++){let C=c[x];if(h===0){if(C===s&&(i||c.slice(x,x+a)===t)){d.push(c.slice(p,x)),p=x+a;continue}if(C==="/"){g=x;continue}}C==="["?h++:C==="]"&&h--}const v=d.length===0?c:c.substring(p),b=v.startsWith(lw),y=b?v.substring(1):v,w=g&&g>p?g-p:void 0;return{modifiers:d,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},H5=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},W5=e=>({cache:z5(e.cacheSize),parseClassName:V5(e),...M5(e)}),U5=/\s+/,G5=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(U5);let c="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{modifiers:p,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:b}=n(h);let y=!!b,w=i(y?v.substring(0,b):v);if(!w){if(!y){c=h+(c.length>0?" "+c:c);continue}if(w=i(v),!w){c=h+(c.length>0?" "+c:c);continue}y=!1}const x=H5(p).join(":"),C=g?x+lw:x,T=C+w;if(a.includes(T))continue;a.push(T);const R=s(w,y);for(let O=0;O<R.length;++O){const B=R[O];a.push(C+B)}c=h+(c.length>0?" "+c:c)}return c};function K5(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=cw(t))&&(i&&(i+=" "),i+=n);return i}const cw=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=cw(e[i]))&&(n&&(n+=" "),n+=t);return n};function q5(e,...t){let n,i,s,a=l;function l(d){const h=t.reduce((p,g)=>g(p),e());return n=W5(h),i=n.cache.get,s=n.cache.set,a=c,c(d)}function c(d){const h=i(d);if(h)return h;const p=G5(d,n);return s(d,p),p}return function(){return a(K5.apply(null,arguments))}}const Ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},uw=/^\[(?:([a-z-]+):)?(.+)\]$/i,X5=/^\d+\/\d+$/,Y5=new Set(["px","full","screen"]),Z5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j5=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Q5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=e=>Go(e)||Y5.has(e)||X5.test(e),Ii=e=>ws(e,"length",aL),Go=e=>!!e&&!Number.isNaN(Number(e)),wg=e=>ws(e,"number",Go),Us=e=>!!e&&Number.isInteger(Number(e)),tL=e=>e.endsWith("%")&&Go(e.slice(0,-1)),oe=e=>uw.test(e),Oi=e=>Z5.test(e),eL=new Set(["length","size","percentage"]),nL=e=>ws(e,eL,dw),rL=e=>ws(e,"position",dw),iL=new Set(["image","url"]),oL=e=>ws(e,iL,cL),sL=e=>ws(e,"",lL),Gs=()=>!0,ws=(e,t,n)=>{const i=uw.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},aL=e=>j5.test(e)&&!Q5.test(e),dw=()=>!1,lL=e=>J5.test(e),cL=e=>$5.test(e),uL=()=>{const e=Ye("colors"),t=Ye("spacing"),n=Ye("blur"),i=Ye("brightness"),s=Ye("borderColor"),a=Ye("borderRadius"),l=Ye("borderSpacing"),c=Ye("borderWidth"),d=Ye("contrast"),h=Ye("grayscale"),p=Ye("hueRotate"),g=Ye("invert"),v=Ye("gap"),b=Ye("gradientColorStops"),y=Ye("gradientColorStopPositions"),w=Ye("inset"),x=Ye("margin"),C=Ye("opacity"),T=Ye("padding"),R=Ye("saturate"),O=Ye("scale"),B=Ye("sepia"),V=Ye("skew"),N=Ye("space"),H=Ye("translate"),X=()=>["auto","contain","none"],tt=()=>["auto","hidden","clip","visible","scroll"],et=()=>["auto",oe,t],U=()=>[oe,t],nt=()=>["",ri,Ii],Z=()=>["auto",Go,oe],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],rt=()=>["solid","dashed","dotted","double","none"],dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ft=()=>["start","end","center","between","around","evenly","stretch"],yt=()=>["","0",oe],mt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[Go,oe];return{cacheSize:500,separator:":",theme:{colors:[Gs],spacing:[ri,Ii],blur:["none","",Oi,oe],brightness:ot(),borderColor:[e],borderRadius:["none","","full",Oi,oe],borderSpacing:U(),borderWidth:nt(),contrast:ot(),grayscale:yt(),hueRotate:ot(),invert:yt(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[tL,Ii],inset:et(),margin:et(),opacity:ot(),padding:U(),saturate:ot(),scale:ot(),sepia:yt(),skew:ot(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Oi]}],"break-after":[{"break-after":mt()}],"break-before":[{"break-before":mt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),oe]}],overflow:[{overflow:tt()}],"overflow-x":[{"overflow-x":tt()}],"overflow-y":[{"overflow-y":tt()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Us,oe]}],basis:[{basis:et()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:yt()}],shrink:[{shrink:yt()}],order:[{order:["first","last","none",Us,oe]}],"grid-cols":[{"grid-cols":[Gs]}],"col-start-end":[{col:["auto",{span:["full",Us,oe]},oe]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Gs]}],"row-start-end":[{row:["auto",{span:[Us,oe]},oe]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ft()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ft(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ft(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[Oi]},Oi]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Oi,Ii]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wg]}],"font-family":[{font:[Gs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Go,wg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ri,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...rt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ri,Ii]}],"underline-offset":[{"underline-offset":["auto",ri,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),rL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...rt(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:rt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...rt()]}],"outline-offset":[{"outline-offset":[ri,oe]}],"outline-w":[{outline:[ri,Ii]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:nt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[ri,Ii]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oi,sL]}],"shadow-color":[{shadow:[Gs]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...dt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":dt()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Oi,oe]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[R]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Us,oe]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ri,Ii,wg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},dL=q5(uL);function ee(...e){return dL(Rd(e))}function fL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"value",15,""),s=xt(t,["$$slots","$$events","$$legacy","ref","value","class"]);var a=K(),l=L(a);{let c=E(()=>ee("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t.class));kt(l,()=>W3,(d,h)=>{h(d,Et({get class(){return f(c)}},()=>s,{get value(){return i()},set value(p){i(p)},get ref(){return n()},set ref(p){n(p)}}))})}A(e,a),ut()}function fw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("text-lg font-semibold leading-none tracking-tight",t.class));kt(a,()=>LI,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}var hL=J("<div><!></div>");function gL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=hL();Lt(s,l=>({class:l,...i}),[()=>ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t.class)]);var a=q(s);lt(a,()=>t.children??St),G(s),Dn(s,l=>n(l),()=>n()),A(e,s),ut()}var pL=J("<div><!></div>");function hw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=pL();Lt(s,l=>({class:l,...i}),[()=>ee("flex flex-col space-y-1.5 text-center sm:text-left",t.class)]);var a=q(s);lt(a,()=>t.children??St),G(s),Dn(s,l=>n(l),()=>n()),A(e,s),ut()}function gw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t.class));kt(a,()=>by,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}var vL=J('<!> <span class="sr-only">Close</span>',1),mL=J("<!> <!>",1),bL=J("<!> <!>",1);function pw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","portalProps","children"]);var s=K(),a=L(s);kt(a,()=>mw,(l,c)=>{c(l,Et(()=>t.portalProps,{children:(d,h)=>{var p=bL(),g=L(p);kt(g,()=>gw,(b,y)=>{y(b,{})});var v=at(g,2);{let b=E(()=>ee("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t.class));kt(v,()=>tw,(y,w)=>{w(y,Et({get class(){return f(b)}},()=>i,{get ref(){return n()},set ref(x){n(x)},children:(x,C)=>{var T=mL(),R=L(T);lt(R,()=>t.children??St);var O=at(R,2);kt(O,()=>$y,(B,V)=>{V(B,{class:"ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:(N,H)=>{var X=vL(),tt=L(X);Sp(tt,{class:"size-4"}),te(2),A(N,X)},$$slots:{default:!0}})}),A(x,T)},$$slots:{default:!0}}))})}A(d,p)},$$slots:{default:!0}}))}),A(e,s),ut()}function _L(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("text-muted-foreground text-sm",t.class));kt(a,()=>RO,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}const vw=AM,yL=OO,mw=xu;function wL(e,t){ct(t,!0),k(t,"ref",11,null);let n=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=K(),s=L(i);{let a=E(()=>ee("py-6 text-center text-sm",t.class));kt(s,()=>G3,(l,c)=>{c(l,Et({get class(){return f(a)}},()=>n))})}A(e,i),ut()}var xL=J("<!> <!>",1);function SL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","children","heading","value"]);var s=K(),a=L(s);{let l=E(()=>ee("text-foreground overflow-hidden p-1",t.class)),c=E(()=>t.value??t.heading??`----${Qt()}`);kt(a,()=>q3,(d,h)=>{h(d,Et({get class(){return f(l)},get value(){return f(c)}},()=>i,{get ref(){return n()},set ref(p){n(p)},children:(p,g)=>{var v=xL(),b=L(v);{var y=x=>{var C=K(),T=L(C);kt(T,()=>Y3,(R,O)=>{O(R,{class:"text-muted-foreground px-2 py-1.5 text-xs font-medium",children:(B,V)=>{te();var N=Te();Mt(()=>fe(N,t.heading)),A(B,N)},$$slots:{default:!0}})}),A(x,C)};vt(b,x=>{t.heading&&x(y)})}var w=at(b,2);kt(w,()=>Q3,(x,C)=>{C(x,{get children(){return t.children}})}),A(p,v)},$$slots:{default:!0}}))})}A(e,s),ut()}function AL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t.class));kt(a,()=>nM,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}var CL=J('<div class="flex items-center border-b px-2" data-command-input-wrapper=""><!> <!></div>');function PL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"value",15,""),s=xt(t,["$$slots","$$events","$$legacy","ref","class","value"]);var a=CL(),l=q(a);KT(l,{class:"mr-2 size-4 shrink-0 opacity-50"});var c=at(l,2);{let d=E(()=>ee("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t.class));kt(c,()=>$3,(h,p)=>{p(h,Et({get class(){return f(d)}},()=>s,{get ref(){return n()},set ref(g){n(g)},get value(){return i()},set value(g){i(g)}}))})}G(a),A(e,a),ut()}function kL(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("max-h-[300px] overflow-y-auto overflow-x-hidden",t.class));kt(a,()=>iM,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}function Zp(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"sideOffset",3,4),s=k(t,"align",3,"center"),a=xt(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);var l=K(),c=L(l);kt(c,()=>xu,(d,h)=>{h(d,Et(()=>t.portalProps,{children:(p,g)=>{var v=K(),b=L(v);{let y=E(()=>ee("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",t.class));kt(b,()=>wM,(w,x)=>{x(w,Et({get sideOffset(){return i()},get align(){return s()},get class(){return f(y)}},()=>a,{get ref(){return n()},set ref(C){n(C)}}))})}A(p,v)},$$slots:{default:!0}}))}),A(e,l),ut()}const jp=RM,Qp=SM;var O_=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wn=e=>!e||typeof e!="object"||Object.keys(e).length===0,TL=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function bw(e,t){e.forEach(function(n){Array.isArray(n)?bw(n,t):t.push(n)})}function _w(e){let t=[];return bw(e,t),t}var yw=(...e)=>_w(e).filter(Boolean),ww=(e,t)=>{let n={},i=Object.keys(e),s=Object.keys(t);for(let a of i)if(s.includes(a)){let l=e[a],c=t[a];Array.isArray(l)||Array.isArray(c)?n[a]=yw(c,l):typeof l=="object"&&typeof c=="object"?n[a]=ww(l,c):n[a]=c+" "+l}else n[a]=e[a];for(let a of s)i.includes(a)||(n[a]=t[a]);return n},N_=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const Jp="-",EL=e=>{const t=OL(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{const c=l.split(Jp);return c[0]===""&&c.length!==1&&c.shift(),xw(c,t)||IL(l)},getConflictingClassGroupIds:(l,c)=>{const d=n[l]||[];return c&&i[l]?[...d,...i[l]]:d}}},xw=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?xw(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Jp);return(l=t.validators.find(({validator:c})=>c(a)))==null?void 0:l.classGroupId},R_=/^\[(.+)\]$/,IL=e=>{if(R_.test(e)){const t=R_.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},OL=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return RL(Object.entries(e.classGroups),n).forEach(([a,l])=>{ip(l,i,a,t)}),i},ip=(e,t,n,i)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:M_(t,s);a.classGroupId=n;return}if(typeof s=="function"){if(NL(s)){ip(s(i),t,n,i);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,l])=>{ip(l,M_(t,a),n,i)})})},M_=(e,t)=>{let n=e;return t.split(Jp).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},NL=e=>e.isThemeGetter,RL=(e,t)=>t?e.map(([n,i])=>{const s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,c])=>[t+l,c])):a);return[n,s]}):e,ML=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const s=(a,l)=>{n.set(a,l),t++,t>e&&(t=0,i=n,n=new Map)};return{get(a){let l=n.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return s(a,l),l},set(a,l){n.has(a)?n.set(a,l):s(a,l)}}},Sw="!",LL=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,s=t[0],a=t.length,l=c=>{const d=[];let h=0,p=0,g;for(let x=0;x<c.length;x++){let C=c[x];if(h===0){if(C===s&&(i||c.slice(x,x+a)===t)){d.push(c.slice(p,x)),p=x+a;continue}if(C==="/"){g=x;continue}}C==="["?h++:C==="]"&&h--}const v=d.length===0?c:c.substring(p),b=v.startsWith(Sw),y=b?v.substring(1):v,w=g&&g>p?g-p:void 0;return{modifiers:d,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},DL=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},FL=e=>({cache:ML(e.cacheSize),parseClassName:LL(e),...EL(e)}),BL=/\s+/,zL=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(BL);let c="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{modifiers:p,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:b}=n(h);let y=!!b,w=i(y?v.substring(0,b):v);if(!w){if(!y){c=h+(c.length>0?" "+c:c);continue}if(w=i(v),!w){c=h+(c.length>0?" "+c:c);continue}y=!1}const x=DL(p).join(":"),C=g?x+Sw:x,T=C+w;if(a.includes(T))continue;a.push(T);const R=s(w,y);for(let O=0;O<R.length;++O){const B=R[O];a.push(C+B)}c=h+(c.length>0?" "+c:c)}return c};function VL(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Aw(t))&&(i&&(i+=" "),i+=n);return i}const Aw=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Aw(e[i]))&&(n&&(n+=" "),n+=t);return n};function op(e,...t){let n,i,s,a=l;function l(d){const h=t.reduce((p,g)=>g(p),e());return n=FL(h),i=n.cache.get,s=n.cache.set,a=c,c(d)}function c(d){const h=i(d);if(h)return h;const p=zL(d,n);return s(d,p),p}return function(){return a(VL.apply(null,arguments))}}const Ze=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Cw=/^\[(?:([a-z-]+):)?(.+)\]$/i,HL=/^\d+\/\d+$/,WL=new Set(["px","full","screen"]),UL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,KL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=e=>Ko(e)||WL.has(e)||HL.test(e),Ni=e=>xs(e,"length",eD),Ko=e=>!!e&&!Number.isNaN(Number(e)),xg=e=>xs(e,"number",Ko),Ks=e=>!!e&&Number.isInteger(Number(e)),YL=e=>e.endsWith("%")&&Ko(e.slice(0,-1)),se=e=>Cw.test(e),Ri=e=>UL.test(e),ZL=new Set(["length","size","percentage"]),jL=e=>xs(e,ZL,Pw),QL=e=>xs(e,"position",Pw),JL=new Set(["image","url"]),$L=e=>xs(e,JL,rD),tD=e=>xs(e,"",nD),qs=()=>!0,xs=(e,t,n)=>{const i=Cw.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},eD=e=>GL.test(e)&&!KL.test(e),Pw=()=>!1,nD=e=>qL.test(e),rD=e=>XL.test(e),sp=()=>{const e=Ze("colors"),t=Ze("spacing"),n=Ze("blur"),i=Ze("brightness"),s=Ze("borderColor"),a=Ze("borderRadius"),l=Ze("borderSpacing"),c=Ze("borderWidth"),d=Ze("contrast"),h=Ze("grayscale"),p=Ze("hueRotate"),g=Ze("invert"),v=Ze("gap"),b=Ze("gradientColorStops"),y=Ze("gradientColorStopPositions"),w=Ze("inset"),x=Ze("margin"),C=Ze("opacity"),T=Ze("padding"),R=Ze("saturate"),O=Ze("scale"),B=Ze("sepia"),V=Ze("skew"),N=Ze("space"),H=Ze("translate"),X=()=>["auto","contain","none"],tt=()=>["auto","hidden","clip","visible","scroll"],et=()=>["auto",se,t],U=()=>[se,t],nt=()=>["",ii,Ni],Z=()=>["auto",Ko,se],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],rt=()=>["solid","dashed","dotted","double","none"],dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ft=()=>["start","end","center","between","around","evenly","stretch"],yt=()=>["","0",se],mt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[Ko,se];return{cacheSize:500,separator:":",theme:{colors:[qs],spacing:[ii,Ni],blur:["none","",Ri,se],brightness:ot(),borderColor:[e],borderRadius:["none","","full",Ri,se],borderSpacing:U(),borderWidth:nt(),contrast:ot(),grayscale:yt(),hueRotate:ot(),invert:yt(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[YL,Ni],inset:et(),margin:et(),opacity:ot(),padding:U(),saturate:ot(),scale:ot(),sepia:yt(),skew:ot(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",se]}],container:["container"],columns:[{columns:[Ri]}],"break-after":[{"break-after":mt()}],"break-before":[{"break-before":mt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),se]}],overflow:[{overflow:tt()}],"overflow-x":[{"overflow-x":tt()}],"overflow-y":[{"overflow-y":tt()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ks,se]}],basis:[{basis:et()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",se]}],grow:[{grow:yt()}],shrink:[{shrink:yt()}],order:[{order:["first","last","none",Ks,se]}],"grid-cols":[{"grid-cols":[qs]}],"col-start-end":[{col:["auto",{span:["full",Ks,se]},se]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[qs]}],"row-start-end":[{row:["auto",{span:[Ks,se]},se]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",se]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ft()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ft(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ft(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",se,t]}],"min-w":[{"min-w":[se,t,"min","max","fit"]}],"max-w":[{"max-w":[se,t,"none","full","min","max","fit","prose",{screen:[Ri]},Ri]}],h:[{h:[se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ri,Ni]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xg]}],"font-family":[{font:[qs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",se]}],"line-clamp":[{"line-clamp":["none",Ko,xg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ii,se]}],"list-image":[{"list-image":["none",se]}],"list-style-type":[{list:["none","disc","decimal",se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...rt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ii,Ni]}],"underline-offset":[{"underline-offset":["auto",ii,se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),QL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$L]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...rt(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:rt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...rt()]}],"outline-offset":[{"outline-offset":[ii,se]}],"outline-w":[{outline:[ii,Ni]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:nt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[ii,Ni]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ri,tD]}],"shadow-color":[{shadow:[qs]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...dt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":dt()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ri,se]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[R]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",se]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",se]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Ks,se]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ii,Ni,xg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},iD=(e,{cacheSize:t,prefix:n,separator:i,experimentalParseClassName:s,extend:a={},override:l={}})=>{Qs(e,"cacheSize",t),Qs(e,"prefix",n),Qs(e,"separator",i),Qs(e,"experimentalParseClassName",s);for(const c in l)oD(e[c],l[c]);for(const c in a)sD(e[c],a[c]);return e},Qs=(e,t,n)=>{n!==void 0&&(e[t]=n)},oD=(e,t)=>{if(t)for(const n in t)Qs(e,n,t[n])},sD=(e,t)=>{if(t)for(const n in t){const i=t[n];i!==void 0&&(e[n]=(e[n]||[]).concat(i))}},aD=(e,...t)=>typeof e=="function"?op(sp,e,...t):op(()=>iD(sp(),e),...t),lD=op(sp);var cD={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},kw=e=>e||void 0,la=(...e)=>kw(_w(e).filter(Boolean).join(" ")),Sg=null,si={},ap=!1,Xs=(...e)=>t=>t.twMerge?((!Sg||ap)&&(ap=!1,Sg=Wn(si)?lD:aD({...si,extend:{theme:si.theme,classGroups:si.classGroups,conflictingClassGroupModifiers:si.conflictingClassGroupModifiers,conflictingClassGroups:si.conflictingClassGroups,...si.extend}})),kw(Sg(la(e)))):la(e),L_=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=la(e[n],t[n]):e[n]=t[n];return e},$p=(e,t)=>{let{extend:n=null,slots:i={},variants:s={},compoundVariants:a=[],compoundSlots:l=[],defaultVariants:c={}}=e,d={...cD,...t},h=n!=null&&n.base?la(n.base,e==null?void 0:e.base):e==null?void 0:e.base,p=n!=null&&n.variants&&!Wn(n.variants)?ww(s,n.variants):s,g=n!=null&&n.defaultVariants&&!Wn(n.defaultVariants)?{...n.defaultVariants,...c}:c;!Wn(d.twMergeConfig)&&!TL(d.twMergeConfig,si)&&(ap=!0,si=d.twMergeConfig);let v=Wn(n==null?void 0:n.slots),b=Wn(i)?{}:{base:la(e==null?void 0:e.base,v&&(n==null?void 0:n.base)),...i},y=v?b:L_({...n==null?void 0:n.slots},Wn(b)?{base:e==null?void 0:e.base}:b),w=Wn(n==null?void 0:n.compoundVariants)?a:yw(n==null?void 0:n.compoundVariants,a),x=T=>{if(Wn(p)&&Wn(i)&&v)return Xs(h,T==null?void 0:T.class,T==null?void 0:T.className)(d);if(w&&!Array.isArray(w))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let R=(U,nt,Z=[],Q)=>{let rt=Z;if(typeof nt=="string")rt=rt.concat(N_(nt).split(" ").map(dt=>`${U}:${dt}`));else if(Array.isArray(nt))rt=rt.concat(nt.reduce((dt,ft)=>dt.concat(`${U}:${ft}`),[]));else if(typeof nt=="object"&&typeof Q=="string"){for(let dt in nt)if(nt.hasOwnProperty(dt)&&dt===Q){let ft=nt[dt];if(ft&&typeof ft=="string"){let yt=N_(ft);rt[Q]?rt[Q]=rt[Q].concat(yt.split(" ").map(mt=>`${U}:${mt}`)):rt[Q]=yt.split(" ").map(mt=>`${U}:${mt}`)}else Array.isArray(ft)&&ft.length>0&&(rt[Q]=ft.reduce((yt,mt)=>yt.concat(`${U}:${mt}`),[]))}}return rt},O=(U,nt=p,Z=null,Q=null)=>{var rt;let dt=nt[U];if(!dt||Wn(dt))return null;let ft=(rt=Q==null?void 0:Q[U])!=null?rt:T==null?void 0:T[U];if(ft===null)return null;let yt=O_(ft),mt=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,ot=g==null?void 0:g[U],st=[];if(typeof yt=="object"&&mt)for(let[Kt,_e]of Object.entries(yt)){let ze=dt[_e];if(Kt==="initial"){ot=_e;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Kt)||(st=R(Kt,ze,st,Z))}let wt=yt!=null&&typeof yt!="object"?yt:O_(ot),It=dt[wt||"false"];return typeof st=="object"&&typeof Z=="string"&&st[Z]?L_(st,It):st.length>0?(st.push(It),Z==="base"?st.join(" "):st):It},B=()=>p?Object.keys(p).map(U=>O(U,p)):null,V=(U,nt)=>{if(!p||typeof p!="object")return null;let Z=new Array;for(let Q in p){let rt=O(Q,p,U,nt),dt=U==="base"&&typeof rt=="string"?rt:rt&&rt[U];dt&&(Z[Z.length]=dt)}return Z},N={};for(let U in T)T[U]!==void 0&&(N[U]=T[U]);let H=(U,nt)=>{var Z;let Q=typeof(T==null?void 0:T[U])=="object"?{[U]:(Z=T[U])==null?void 0:Z.initial}:{};return{...g,...N,...Q,...nt}},X=(U=[],nt)=>{let Z=[];for(let{class:Q,className:rt,...dt}of U){let ft=!0;for(let[yt,mt]of Object.entries(dt)){let ot=H(yt,nt)[yt];if(Array.isArray(mt)){if(!mt.includes(ot)){ft=!1;break}}else{let st=wt=>wt==null||wt===!1;if(st(mt)&&st(ot))continue;if(ot!==mt){ft=!1;break}}}ft&&(Q&&Z.push(Q),rt&&Z.push(rt))}return Z},tt=U=>{let nt=X(w,U);if(!Array.isArray(nt))return nt;let Z={};for(let Q of nt)if(typeof Q=="string"&&(Z.base=Xs(Z.base,Q)(d)),typeof Q=="object")for(let[rt,dt]of Object.entries(Q))Z[rt]=Xs(Z[rt],dt)(d);return Z},et=U=>{if(l.length<1)return null;let nt={};for(let{slots:Z=[],class:Q,className:rt,...dt}of l){if(!Wn(dt)){let ft=!0;for(let yt of Object.keys(dt)){let mt=H(yt,U)[yt];if(mt===void 0||(Array.isArray(dt[yt])?!dt[yt].includes(mt):dt[yt]!==mt)){ft=!1;break}}if(!ft)continue}for(let ft of Z)nt[ft]=nt[ft]||[],nt[ft].push([Q,rt])}return nt};if(!Wn(i)||!v){let U={};if(typeof y=="object"&&!Wn(y))for(let nt of Object.keys(y))U[nt]=Z=>{var Q,rt;return Xs(y[nt],V(nt,Z),((Q=tt(Z))!=null?Q:[])[nt],((rt=et(Z))!=null?rt:[])[nt],Z==null?void 0:Z.class,Z==null?void 0:Z.className)(d)};return U}return Xs(h,B(),X(w),T==null?void 0:T.class,T==null?void 0:T.className)(d)},C=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return x.variantKeys=C(),x.extend=n,x.base=h,x.slots=y,x.variants=p,x.defaultVariants=g,x.compoundSlots=l,x.compoundVariants=w,x};const D_=$p({base:"ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border-input bg-background hover:bg-accent hover:text-accent-foreground border",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}});var uD=J("<a><!></a>"),dD=J("<button><!></button>");function xn(e,t){ct(t,!0);let n=k(t,"variant",3,"default"),i=k(t,"size",3,"default"),s=k(t,"ref",15,null),a=k(t,"href",3,void 0),l=k(t,"type",3,"button"),c=xt(t,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","children"]);const d=Gr(),[h,p]=d;var g=K(),v=L(g);{var b=w=>{var x=uD();Lt(x,T=>({...T}),[()=>p({class:ee(D_({variant:n(),size:i()}),t.class),href:a(),...c},[{attribute_name:"href",lang_attribute_name:"hreflang"}])]);var C=q(x);lt(C,()=>t.children??St),G(x),Dn(x,T=>s(T),()=>s()),A(w,x)},y=w=>{var x=dD();Lt(x,T=>({...T}),[()=>p({class:ee(D_({variant:n(),size:i()}),t.class),type:l(),...c},[{attribute_name:"formaction"}])]);var C=q(x);lt(C,()=>t.children??St),G(x),Dn(x,T=>s(T),()=>s()),A(w,x)};vt(v,w=>{a()?w(b):w(y,!1)})}A(e,g),ut()}const fD=(e,t)=>{const n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.setAttribute("download",e),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(n)},Bo=en({}),Sd=en(0),tv=()=>({customLabelColorsStore:Bo,colorVersion:Sd,getCustomColor:a=>En(Bo)[a],setCustomColor:(a,l,c=1)=>{Bo.update(d=>({...d,[a]:{color:l,alpha:c}})),Sd.update(d=>d+1)},hasCustomColor:a=>!!En(Bo)[a],deleteCustomColor:a=>{Bo.update(l=>{const{[a]:c,...d}=l;return d}),Sd.update(l=>l+1)},clearCustomColors:()=>{Bo.set({}),Sd.update(a=>a+1)}}),Di=(e,t=1)=>{t=Math.max(0,Math.min(t,1));const{getCustomColor:n,hasCustomColor:i}=tv();if(i(e)){const x=n(e);if(x)return((T,R)=>{const O=parseInt(T.slice(1,3),16),B=parseInt(T.slice(3,5),16),V=parseInt(T.slice(5,7),16);return{color:`rgba(${O}, ${B}, ${V}, ${R})`,contrastColor:`rgba(${255-O}, ${255-B}, ${255-V}, ${R})`}})(x.color,x.alpha*t)}const s=["rgba(255, 0, 0, alpha)","rgba(0, 255, 0, alpha)","rgba(0, 0, 255, alpha)","rgba(255, 255, 0, alpha)","rgba(255, 0, 255, alpha)","rgba(0, 255, 255, alpha)","rgba(128, 0, 0, alpha)","rgba(0, 128, 0, alpha)","rgba(0, 0, 128, alpha)","rgba(128, 128, 0, alpha)","rgba(128, 0, 128, alpha)","rgba(0, 128, 128, alpha)","rgba(192, 192, 192, alpha)","rgba(128, 128, 128, alpha)","rgba(255, 165, 0, alpha)","rgba(255, 20, 147, alpha)","rgba(75, 0, 130, alpha)","rgba(255, 105, 180, alpha)","rgba(0, 255, 127, alpha)","rgba(255, 215, 0, alpha)","rgba(255, 69, 0, alpha)"];let a;const l=s.length-1;if(a=Array.from(e).reduce((x,C)=>(x<<5)-x+C.charCodeAt(0),0),a=Math.abs(a)%l+1,a>=1&&a<=l)return{color:s[a-1].replace("alpha",t.toString()),contrastColor:`rgba(${255-Math.round(parseInt(s[a-1].split(",")[0].split("(")[1])*(t/255))}, ${255-Math.round(parseInt(s[a-1].split(",")[1]))}, ${255-Math.round(parseInt(s[a-1].split(",")[2]))}, ${t})`};const c=(a*30+20)%256,d=(a*60+100)%256,h=(a*90+150)%256,p=Math.max(c,d,h),g=Math.min(c,d,h);if(p-g===0)return{color:`rgba(255, 255, 255, ${t})`,contrastColor:`rgba(0, 0, 0, ${t})`};const b=255/p,y=`rgba(${Math.round(c*b)}, ${Math.round(d*b)}, ${Math.round(h*b)}, ${t})`,w=`rgba(${255-Math.round(c*b)}, ${255-Math.round(d*b)}, ${255-Math.round(h*b)}, ${t})`;return{color:y,contrastColor:w}},Tw="en-US",lp=e=>new Intl.NumberFormat(Tw,{}).format(e).toString(),hD=(e,t=3,n=0)=>new Intl.NumberFormat(Tw,{maximumFractionDigits:t,minimumFractionDigits:n}).format(e).toString(),Js=e=>{if(e==null)return"null";if(typeof e=="string")return e;if(typeof e=="number")return Number.isInteger(e)?lp(e):hD(e);if(typeof e=="boolean")return e?"true":"false";if(Array.isArray(e))return e.length===0?"[]":e.length<=3&&e.every(t=>typeof t!="object"||t===null)?`[${e.map(t=>Js(t)).join(", ")}]`:`[${e.map(n=>Js(n)).join(", ")}]`;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){const t=e,n=Object.keys(t);return n.length===0?"{}":n.length<=3&&n.every(s=>{const a=t[s];return typeof a!="object"||a===null||Array.isArray(a)})?`{${n.map(a=>`${a}: ${Js(t[a])}`).join(", ")}}`:`{
|
|
390
|
+
${n.map(s=>{const a=Js(t[s]);return`${s}: ${a}`}).join(`
|
|
391
|
+
`)}
|
|
392
|
+
}`}return String(e)};var gD=J(" <!>",1),pD=J('<div class="flex items-center space-x-4"><!> <!></div>'),vD=J("<!> ",1),mD=J("<!> <!>",1),bD=J("<!> <!>",1),_D=J("<!> <!>",1);function ev(e,t){ct(t,!0);let n=bt(!1),i=bt(null);function s(){M(n,!1),Ff().then(()=>{f(i).focus()})}let a=k(t,"name",3,"items"),l=k(t,"label",3,"Select an item"),c=k(t,"selectedItem",15,void 0),d=k(t,"placeholder",3,"Search an item..."),h=k(t,"className",3,""),p=k(t,"disabled",3,!1),g=k(t,"isLoading",3,!1),v=bt("");const b=E(()=>{var R;return(R=c())==null?void 0:R.value}),y=R=>{var O;c(R),(O=t.onSelect)==null||O.call(t,R),s()},w=R=>{const O={value:R,label:R};t.items.push(O),y(O)},x=R=>{R.key==="Enter"&&f(v)&&(w(f(v)),M(v,""),R.preventDefault()),R.stopPropagation()};var C=K(),T=L(C);kt(T,()=>jp,(R,O)=>{O(R,{get open(){return f(n)},set open(B){M(n,B,!0)},children:(B,V)=>{var N=_D(),H=L(N);{const tt=(et,U)=>{let nt=()=>U==null?void 0:U().props;var Z=pD(),Q=q(Z);{let ft=E(()=>ee("w-[200px] justify-between",h()));xn(Q,Et(nt,{variant:"secondary",get disabled(){return p()},get class(){return f(ft)},role:"combobox",get"aria-expanded"(){return f(n)},"data-testid":"select-list-trigger",children:(yt,mt)=>{te();var ot=gD(),st=L(ot),wt=at(st);zT(wt,{class:"opacity-50"}),Mt(()=>{var It;return fe(st,`${(((It=c())==null?void 0:It.label)||l())??""} `)}),A(yt,ot)},$$slots:{default:!0}}))}var rt=at(Q,2);{var dt=ft=>{UT(ft,{class:"mr-2 h-4 w-4 animate-spin"})};vt(rt,ft=>{g()&&ft(dt)})}G(Z),A(et,Z)};kt(H,()=>Qp,(et,U)=>{U(et,{get ref(){return f(i)},set ref(nt){M(i,nt,!0)},child:tt,$$slots:{child:!0}})})}var X=at(H,2);kt(X,()=>Zp,(tt,et)=>{et(tt,{class:"w-[200px] p-0",children:(U,nt)=>{var Z=K(),Q=L(Z);kt(Q,()=>fL,(rt,dt)=>{dt(rt,{children:(ft,yt)=>{var mt=bD(),ot=L(mt);kt(ot,()=>PL,(wt,It)=>{It(wt,{get placeholder(){return d()},onkeydown:x,"data-testid":"select-list-input",get value(){return f(v)},set value(Kt){M(v,Kt,!0)}})});var st=at(ot,2);kt(st,()=>kL,(wt,It)=>{It(wt,{class:"dark:[color-scheme:dark]",children:(Kt,_e)=>{var ze=mD(),ye=L(ze);kt(ye,()=>wL,(Xt,pe)=>{pe(Xt,{children:(ve,Gt)=>{var ue=K(),Ee=L(ue);{var Ke=Ft=>{var Ne=K(),ae=L(Ne);lt(ae,()=>t.notFound,()=>({inputValue:f(v)||""})),A(Ft,Ne)},Ot=Ft=>{var Ne=Te("Item not found");A(Ft,Ne)};vt(Ee,Ft=>{t.notFound?Ft(Ke):Ft(Ot,!1)})}A(ve,ue)},$$slots:{default:!0}})});var Rt=at(ye,2);kt(Rt,()=>SL,(Xt,pe)=>{pe(Xt,{get value(){return a()},children:(ve,Gt)=>{var ue=K(),Ee=L(ue);rr(Ee,17,()=>t.items,Ke=>Ke.value,(Ke,Ot)=>{var Ft=K(),Ne=L(Ft);kt(Ne,()=>AL,(ae,we)=>{we(ae,{get value(){return f(Ot).value},onSelect:()=>y(f(Ot)),children:(xe,zt)=>{var ne=vD(),re=L(ne);{let Me=E(()=>ee(f(b)!==f(Ot).value&&"text-transparent"));xp(re,{get class(){return f(Me)}})}var on=at(re);Mt(()=>fe(on,` ${f(Ot).label??""}`)),A(xe,ne)},$$slots:{default:!0}})}),A(Ke,Ft)}),A(ve,ue)},$$slots:{default:!0}})}),A(Kt,ze)},$$slots:{default:!0}})}),A(ft,mt)},$$slots:{default:!0}})}),A(U,Z)},$$slots:{default:!0}})}),A(B,N)},$$slots:{default:!0}})}),A(e,C),ut()}const nv=()=>O0(yp());var yD=J('<div class="text-md m-2">Press Enter to create a new <span class="font-semibold"> </span> label.</div>'),wD=J('<div class="text-md m-2">Type to create a new label.</div>');function rv(e,t){ct(t,!0);var n=K(),i=L(n);{var s=l=>{var c=yD(),d=at(q(c)),h=q(d);G(d),te(),G(c),Mt(()=>fe(h,`"${t.label??""}"`)),A(l,c)},a=l=>{var c=wD();A(l,c)};vt(i,l=>{t.label.length>0?l(s):l(a,!1)})}A(e,n),ut()}const iv=e=>e.map(n=>{const i=n.annotation_label_name;return{value:i,label:i}}).sort((n,i)=>n.label.localeCompare(i.label));var xD=J('<div class="flex flex-col space-y-4"><div class="text-md mb-2">You can edit labels for multiple annotations at once.</div> <!></div>'),SD=J('<div class="flex h-full min-h-0 flex-col space-y-4 overflow-hidden dark:[color-scheme:dark]"><!></div>');function AD(e,t){ct(t,!0);const n=()=>qt(a,"$result",i),[i,s]=Ur(),a=nv(),l=E(()=>iv(n().data||[]));Ow(e,{className:"h-full",children:(c,d)=>{Nw(c,{className:"h-full flex flex-col",children:(h,p)=>{var g=SD(),v=q(g);{let b=E(()=>`Selected annotations: ${t.selectedAnnotations.length}`);ca(v,{get title(){return f(b)},children:(y,w)=>{var x=xD(),C=at(q(x),2);ev(C,{get items(){return f(l)},name:"annotation-label",placeholder:"Select or create a label",label:"Select a label",get onSelect(){return t.onSelect},get isLoading(){return t.isLoading},get disabled(){return t.disabled},notFound:(R,O)=>{let B=()=>O==null?void 0:O().inputValue;rv(R,{get label(){return B()}})},$$slots:{notFound:!0}}),G(x),A(y,x)}})}G(g),A(h,g)},$$slots:{default:!0}})},$$slots:{default:!0}}),ut(),s()}const F_=new Map,Ew=e=>{const t=dT(e,{position:0,filterHash:""});return{initialize:()=>{F_.get(e)||(t.set({position:0,filterHash:""}),F_.set(e,!0))},savePosition:(a,l)=>{t.set({position:a,filterHash:l})},getRestoredPosition:a=>{const l=En(t);return l.filterHash===a?l.position:0}}};function CD(e,t){const n=e.currentTarget.dataset.annotationId;t(n)}function PD(e,t){const n=e.currentTarget.dataset.annotationId,i=e.currentTarget.dataset.sampleId,s=e.currentTarget.dataset.index;ea(na.toSampleWithAnnotation({sampleId:i,annotationId:n,datasetId:t.dataset_id,annotationIndex:Number(s)}))}function kD(e,t){if(e.key==="Enter"||e.key===" "){e.preventDefault();const n=e.currentTarget.dataset.annotationId;t(n)}}var TD=J(`<div class="flex h-full flex-1 items-center justify-center"><div class="text-center text-muted-foreground"><div class="mb-2 text-lg font-medium">No annotations found</div> <div class="text-sm">This dataset doesn't contain any annotations.</div></div></div>`),ED=J('<div data-testid="annotation-grid-item" role="button" tabindex="0"><div class="absolute right-7 top-1 z-10"><!></div> <!></div>'),ID=J('<div class="flex justify-center p-4"><!></div>'),OD=J("<!> <!>",1),ND=J('<div class="min-w-[250px] max-w-[30%] flex-1"><!></div>'),RD=J('<div class="flex h-full flex-1" data-testid="annotations-grid"><div class="viewport flex-1"><!></div> <!></div>');function mz(e,t){ct(t,!0);const n=()=>qt(v,"$showAnnotationTextLabelsStore",h),i=()=>qt(t.selectedAnnotationFilterIds,"$selectedAnnotationFilterIds",h),s=()=>qt(g,"$tagsSelected",h),a=()=>qt(f(H),"$infiniteAnnotations",h),l=()=>qt(Q,"$pickedAnnotationIds",h),c=()=>qt(b,"$isEditingMode",h),d=()=>qt(f(tt),"$isPending",h),[h,p]=Ur(),{tagsSelected:g}=M0({dataset_id:t.dataset_id,kind:["annotation"]}),{showAnnotationTextLabelsStore:v}=zf(),{isEditingMode:b}=Ki.data.globalStorage;let y=E(n);const{getDatasetVersion:w,setAnnotationsTotalCount:x}=Gi();let C=bt("");const{initialize:T,savePosition:R,getRestoredPosition:O}=Ew("annotations_scroll");ps(async()=>{T(),M(C,await w(t.dataset_id),!0)});let B=bt(null);const V=E(()=>({path:{dataset_id:t.dataset_id},query:{annotation_label_ids:i().length>0?i():void 0,tag_ids:s().size>0?Array.from(s()):void 0}})),N=E(()=>sE(f(V))),H=E(()=>f(N).annotations),X=E(()=>f(N).updateAnnotations),tt=E(()=>f(N).isPending);let et=E(()=>i().join(",")+Array.from(s()).join(","));const U=E(()=>f(et)),nt=E(()=>O(f(U)));function Z(Rt){const Xt=Rt.target.scrollTop;R(Xt,f(U))}be(()=>{f(H).subscribe(Rt=>{Rt.isSuccess&&Rt.data.pages.length>0&&x(Rt.data.pages[0].total_count)})});const{selectedSampleAnnotationCropIds:Q,toggleSampleAnnotationCropSelection:rt,clearSelectedSampleAnnotationCrops:dt}=Gi(),ft=16;function yt(Rt){Rt&&rt(Rt)}const mt=E(()=>{var Rt;return((Rt=a().data)==null?void 0:Rt.pages.flatMap(Xt=>Xt.data))||[]});function ot(){a().hasNextPage&&a().fetchNextPage()}const st=E(()=>f(mt).filter(Rt=>l().has(Rt.annotation_id))),wt=async Rt=>{await f(X)(f(st).map(Xt=>({annotation_id:Xt.annotation_id,label_name:Rt.value,dataset_id:t.dataset_id}))),dt()};let It=bt(600);be(()=>{if(!f(B))return;const Rt=new ResizeObserver(Xt=>{for(const pe of Xt)M(It,pe.contentRect.height,!0)});return Rt.observe(f(B)),()=>{Rt.disconnect()}});var Kt=K(),_e=L(Kt);{var ze=Rt=>{var Xt=TD();A(Rt,Xt)},ye=Rt=>{var Xt=RD(),pe=q(Xt),ve=q(pe);Ui(ve,()=>f(et),Ee=>{{const Ke=(xe,zt)=>{let ne=()=>zt==null?void 0:zt().index,re=()=>zt==null?void 0:zt().style;var on=K(),Me=L(on);Ui(Me,()=>a().dataUpdatedAt,Ie=>{var Je=K(),sn=L(Je);{var an=Ue=>{var Ce=ED();Ce.__click=[CD,yt],Ce.__dblclick=[PD,t],Ce.__keydown=[kD,yt];var Ve=q(Ce),un=q(Ve);{let $t=E(()=>l().has(f(mt)[ne()].annotation_id));tx(un,{onSelect:()=>{},get isSelected(){return f($t)}})}G(Ve);var Dt=at(Ve,2);{let $t=E(()=>l().has(f(mt)[ne()].annotation_id));VD(Dt,{get annotation(){return f(mt)[ne()]},get width(){return t.itemWidth},get height(){return t.itemHeight},get cachedDatasetVersion(){return f(C)},get showLabel(){return f(y)},get selected(){return f($t)}})}G(Ce),Mt(()=>{Ln(Ce,re()),At(Ce,"data-annotation-id",f(mt)[ne()].annotation_id),At(Ce,"data-sample-id",f(mt)[ne()].sample.sample_id),At(Ce,"data-index",ne()),At(Ce,"aria-label",`Edit annotation: ${f(mt)[ne()].annotation_id}`)}),A(Ue,Ce)};vt(sn,Ue=>{f(mt)[ne()]&&Ue(an)})}A(Ie,Je)}),A(xe,on)},Ot=xe=>{var zt=OD(),ne=L(zt);Ui(ne,()=>f(mt).length,Me=>{zw(Me,{onIntersect:ot})});var re=at(ne,2);{var on=Me=>{var Ie=ID(),Je=q(Ie);U0(Je,{}),G(Ie),A(Me,Ie)};vt(re,Me=>{a().isFetchingNextPage&&Me(on)})}A(xe,zt)};let Ft=E(()=>{var xe;return(xe=f(mt))==null?void 0:xe.length}),Ne=E(()=>t.itemHeight+ft),ae=E(()=>t.itemWidth+ft),we=E(()=>f(mt).length>0?f(nt):0);H0(Ee,{get itemCount(){return f(Ft)},get itemHeight(){return f(Ne)},get itemWidth(){return f(ae)},get height(){return f(It)},get scrollPosition(){return f(we)},onscroll:Z,class:"overflow-none overflow-y-auto dark:[color-scheme:dark]",get style(){return`--sample-width: ${t.itemWidth??""}px; --sample-height: ${t.itemHeight??""}px;`},item:Ke,footer:Ot,$$slots:{item:!0,footer:!0}})}}),G(pe);var Gt=at(pe,2);{var ue=Ee=>{var Ke=ND(),Ot=q(Ke);{let Ft=E(()=>f(st).length===0);AD(Ot,{get selectedAnnotations(){return f(st)},get disabled(){return f(Ft)},get isLoading(){return d()},onSelect:wt})}G(Ke),A(Ee,Ke)};vt(Gt,Ee=>{c()&&Ee(ue)})}G(Xt),Dn(Xt,Ee=>M(B,Ee),()=>f(B)),A(Rt,Xt)};vt(_e,Rt=>{a().isFetched&&f(mt).length===0?Rt(ze):Rt(ye,!1)})}A(e,Kt),ut(),p()}Zi(["click","dblclick","keydown"]);function B_(e){return e.annotation_type==="object_detection"}function MD(e){return e.annotation_type==="instance_segmentation"}function bz(e){return e.annotation_type==="classification"}function $d(e){if(B_(e)||MD(e)){const t={...B_(e)?e.object_detection_details:e.instance_segmentation_details};return{x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height)}}else throw new Error(`Annotation type is not supported for bounding box extraction: ${e.annotation_type}`)}const LD=(e,t)=>{const n=$d(e),i=$d(t),s=n.height*n.width;return i.height*i.width-s},_z=e=>e.annotations===void 0?[]:e.annotations.filter(t=>t.annotation_type!=="classification").sort(LD),z_=en(!1);function Iw(){const{settingsStore:e}=zf(),t=ra(e,i=>i.key_hide_annotations||"v");return{isHidden:z_,handleKeyEvent:i=>{if(i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement)return;let s;t.subscribe(l=>{s=l})(),i.key===s&&z_.set(i.type==="keydown")}}}var DD=J('<div class="annotation-label flex items-center justify-between text-sm text-white svelte-112wvhq"><span class="truncate text-sm"> </span></div>'),FD=Cr("<svg><!></svg>"),BD=J("<div><div><!> <!></div></div>"),zD=J('<div class="crop flex items-center justify-center rounded-lg bg-black svelte-112wvhq"><div class="text-xs text-gray-400">Loading...</div></div>');function VD(e,t){var mt,ot;ct(t,!0);const n=()=>qt(b,"$customLabelColorsStore",s),i=()=>qt(v,"$isHidden",s),[s,a]=Ur();let l=k(t,"cachedDatasetVersion",3,""),c=k(t,"showLabel",3,!0),d=k(t,"selected",3,!1);const h=20,p=t.annotation.sample,{getDatasetVersion:g}=Gi(),{isHidden:v}=Iw(),{customLabelColorsStore:b}=tv();let y=bt(Sn(l())),w=bt(!!l());if(ps(async()=>{!l()&&t.annotation.annotation_id&&(M(y,await g(t.annotation.annotation_id.split("-")[0]),!0),M(w,!0))}),!t.annotation.object_detection_details&&!t.annotation.instance_segmentation_details)throw new Error("Unsupported annotation: Only annotations with object_detection_details or instance_segmentation_details are supported. Please check the annotation data.");const{width:x,height:C,x:T,y:R}=$d(t.annotation),O=(ot=(mt=t.annotation)==null?void 0:mt.instance_segmentation_details)==null?void 0:ot.segmentation_mask,B=E(()=>Math.min(t.width/(x+h*2),t.height/(C+h*2)));function V(){return-(T-h)*f(B)+(t.width-(x+h*2)*f(B))/2}function N(){return-(R-h)*f(B)+(t.height-(C+h*2)*f(B))/2}let H=t.annotation.annotation_label.annotation_label_name;const X=E(()=>{var st;return((st=n()[H])==null?void 0:st.color)??Di(H,1).color}),tt=E(()=>{var st;return(st=n()[H])==null||st.color,Di(H,.4).color}),et=E(()=>{var st;return((st=n()[H])==null?void 0:st.alpha)??.4}),U=!!O,nt=E(V),Z=E(N),Q=E(()=>`${I0}/sample/${p.sample_id}${f(y)?`?v=${f(y)}`:""}`);var rt=K(),dt=L(rt);{var ft=st=>{var wt=BD();let It;var Kt=q(wt);let _e;var ze=q(Kt);{var ye=pe=>{var ve=DD(),Gt=q(ve),ue=q(Gt,!0);G(Gt),G(ve),Mt(Ee=>{Ln(ve,Ee),fe(ue,H)},[()=>`background-color: ${f(tt)??Di(H,.4).color};`]),A(pe,ve)};vt(ze,pe=>{c()&&pe(ye)})}var Rt=at(ze,2);{var Xt=pe=>{var ve=FD(),Gt=q(ve);$w(Gt,{get segmentation(){return O},get width(){return p.width},get colorFill(){return f(tt)},get opacity(){return f(et)}}),G(ve),Mt(()=>At(ve,"viewBox",`${T} ${R} ${x} ${C}`)),A(pe,ve)};vt(Rt,pe=>{U&&pe(Xt)})}G(Kt),G(wt),Mt((pe,ve,Gt)=>{It=qn(wt,1,"crop rounded-lg bg-black svelte-112wvhq",null,It,pe),Ln(wt,`
|
|
393
|
+
width: ${t.width}px;
|
|
394
|
+
height: ${t.height}px;
|
|
395
|
+
background-image: url("${f(Q)}");
|
|
396
|
+
background-position: ${f(nt)}px ${f(Z)}px;
|
|
397
|
+
background-size: ${p.width*f(B)}px ${p.height*f(B)}px;
|
|
398
|
+
background-repeat: no-repeat;
|
|
399
|
+
`),_e=qn(Kt,1,"annotation-box svelte-112wvhq",null,_e,ve),Ln(Kt,Gt)},[()=>({"annotation-selected":d()}),()=>({invisible:i()}),()=>`
|
|
400
|
+
left: ${(t.width-x*f(B))/2}px;
|
|
401
|
+
top: ${(t.height-C*f(B))/2}px;
|
|
402
|
+
width: ${x*f(B)}px;
|
|
403
|
+
height: ${C*f(B)}px;
|
|
404
|
+
border-color: ${U?"transparent":f(X)??Di(H).color};
|
|
405
|
+
background-color: ${U?"transparent":f(tt)??Di(H,.4).color};
|
|
406
|
+
border-style: solid;
|
|
407
|
+
|
|
408
|
+
`]),A(st,wt)},yt=st=>{var wt=zD();Mt(()=>Ln(wt,`width: ${t.width}px; height: ${t.height}px;`)),A(st,wt)};vt(dt,st=>{f(w)?st(ft):st(yt,!1)})}A(e,rt),ut(),a()}var HD=J("<div><!></div>");function Ow(e,t){ct(t,!0);var n=HD(),i=q(n);lt(i,()=>t.children),G(n),Mt(s=>qn(n,1,s),[()=>bo(ee("rounded-lg border border-gray-800 bg-black",t.className))]),A(e,n),ut()}var WD=J("<div><!></div>");function Nw(e,t){ct(t,!0);var n=WD(),i=q(n);lt(i,()=>t.children),G(n),Mt(s=>qn(n,1,s),[()=>bo(ee("p-4",t.className))]),A(e,n),ut()}var UD=J(`<span class="bg-secondary relative grow overflow-hidden rounded-full data-[orientation='horizontal']:h-2 data-[orientation='vertical']:h-full data-[orientation='horizontal']:w-full data-[orientation='vertical']:w-2"><!></span> <!>`,1);function GD(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"value",15),s=k(t,"orientation",3,"horizontal"),a=xt(t,["$$slots","$$events","$$legacy","ref","value","orientation","class"]);var l=K(),c=L(l);{const d=(p,g)=>{let v=()=>g==null?void 0:g().thumbs;var b=UD(),y=L(b),w=q(y);kt(w,()=>JM,(C,T)=>{T(C,{class:"bg-primary absolute data-[orientation='horizontal']:h-full data-[orientation='vertical']:w-full"})}),G(y);var x=at(y,2);rr(x,17,v,vu,(C,T)=>{var R=K(),O=L(R);kt(O,()=>t5,(B,V)=>{V(B,{get index(){return f(T)},class:"border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})}),A(C,R)}),Mt(()=>At(y,"data-orientation",s())),A(p,b)};let h=E(()=>ee("relative flex touch-none select-none items-center data-[orientation='vertical']:h-full data-[orientation='vertical']:min-h-44 data-[orientation='horizontal']:w-full data-[orientation='vertical']:w-auto data-[orientation='vertical']:flex-col",t.class));kt(c,()=>jM,(p,g)=>{g(p,Et({get orientation(){return s()},get class(){return f(h)}},()=>a,{get ref(){return n()},set ref(v){n(v)},get value(){return i()},set value(v){i(v)},children:d,$$slots:{default:!0}}))})}A(e,l),ut()}const KD=lN,qD=fN,XD=uN,YD=e=>e;function Rw(e){const t=e-1;return t*t*t+1}function V_(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function yz(e,{delay:t=0,duration:n=400,easing:i=YD}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:a=>`opacity: ${a*s}`}}function Mw(e,{delay:t=0,duration:n=400,easing:i=Rw,x:s=0,y:a=0,opacity:l=0}={}){const c=getComputedStyle(e),d=+c.opacity,h=c.transform==="none"?"":c.transform,p=d*(1-l),[g,v]=V_(s),[b,y]=V_(a);return{delay:t,duration:n,easing:i,css:(w,x)=>`
|
|
409
|
+
transform: ${h} translate(${(1-w)*g}${v}, ${(1-w)*b}${y});
|
|
410
|
+
opacity: ${d-p*x}`}}function ZD(e,{delay:t=0,duration:n=400,easing:i=Rw,axis:s="y"}={}){const a=getComputedStyle(e),l=+a.opacity,c=s==="y"?"height":"width",d=parseFloat(a[c]),h=s==="y"?["top","bottom"]:["left","right"],p=h.map(C=>`${C[0].toUpperCase()}${C.slice(1)}`),g=parseFloat(a[`padding${p[0]}`]),v=parseFloat(a[`padding${p[1]}`]),b=parseFloat(a[`margin${p[0]}`]),y=parseFloat(a[`margin${p[1]}`]),w=parseFloat(a[`border${p[0]}Width`]),x=parseFloat(a[`border${p[1]}Width`]);return{delay:t,duration:n,easing:i,css:C=>`overflow: hidden;opacity: ${Math.min(C*20,1)*l};${c}: ${C*d}px;padding-${h[0]}: ${C*g}px;padding-${h[1]}: ${C*v}px;margin-${h[0]}: ${C*b}px;margin-${h[1]}: ${C*y}px;border-${h[0]}-width: ${C*w}px;border-${h[1]}-width: ${C*x}px;min-${c}: 0`}}var jD=J('<h2 class="py-2 text-lg font-semibold"><div class="flex items-center justify-between"><div class="flex items-center space-x-2"><!> <span> </span></div> <div><!></div></div></h2>'),QD=J('<div class="mt-2"><!></div>'),JD=J("<!> <!>",1);function ca(e,t){let n=bt(!0);const i=168;KD(e,{get open(){return f(n)},set open(s){M(n,s,!0)},children:(s,a)=>{var l=JD(),c=L(l);qD(c,{class:"w-full",children:(h,p)=>{var g=jD(),v=q(g),b=q(v),y=q(b);{var w=O=>{var B=K(),V=L(B);kt(V,()=>t.icon,(N,H)=>{H(N,{})}),A(O,B)};vt(y,O=>{t.icon&&O(w)})}var x=at(y,2),C=q(x,!0);G(x),G(b);var T=at(b,2),R=q(T);{let O=E(()=>`transform: ${f(n)?"rotate(-180deg)":"rotate(0deg)"}`);Vf(R,{class:"transition-transform duration-168",get style(){return f(O)}})}G(T),G(v),G(g),Mt(()=>fe(C,t.title)),A(h,g)},$$slots:{default:!0}});var d=at(c,2);XD(d,{forceMount:!0,children:(h,p)=>{var g=K(),v=L(g);{var b=y=>{var w=QD(),x=q(w);lt(x,()=>t.children),G(w),wp(3,w,()=>ZD,()=>({duration:i})),A(y,w)};vt(v,y=>{f(n)&&y(b)})}A(h,g)},$$slots:{default:!0}}),A(s,l)},$$slots:{default:!0}})}function $D(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("py-1.5 pl-8 pr-2 text-sm font-semibold",t.class));kt(a,()=>e3,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}var tF=J('<span class="absolute left-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function cp(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var s=K(),a=L(s);{const l=(d,h)=>{let p=()=>h==null?void 0:h().selected,g=()=>h==null?void 0:h().highlighted;var v=tF(),b=L(v),y=q(b);{var w=R=>{xp(R,{class:"size-4"})};vt(y,R=>{p()&&R(w)})}G(b);var x=at(b,2);{var C=R=>{var O=K(),B=L(O);lt(B,()=>t.children,()=>({selected:p(),highlighted:g()})),A(R,O)},T=R=>{var O=Te();Mt(()=>fe(O,t.label||t.value)),A(R,O)};vt(x,R=>{t.children?R(C):R(T,!1)})}A(d,v)};let c=E(()=>ee("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class));kt(a,()=>QR,(d,h)=>{h(d,Et({get value(){return t.value},get class(){return f(c)}},()=>i,{get ref(){return n()},set ref(p){n(p)},children:l,$$slots:{default:!0}}))})}A(e,s),ut()}function eF(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("flex cursor-default items-center justify-center py-1",t.class));kt(a,()=>c3,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)},children:(h,p)=>{BT(h,{class:"size-4"})},$$slots:{default:!0}}))})}A(e,s),ut()}function nF(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("flex cursor-default items-center justify-center py-1",t.class));kt(a,()=>s3,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)},children:(h,p)=>{Vf(h,{class:"size-4"})},$$slots:{default:!0}}))})}A(e,s),ut()}var rF=J("<!> <!> <!>",1);function Lw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"sideOffset",3,4),s=xt(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children"]);var a=K(),l=L(a);kt(l,()=>xu,(c,d)=>{d(c,Et(()=>t.portalProps,{children:(h,p)=>{var g=K(),v=L(g);{let b=E(()=>ee("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t.class));kt(v,()=>YR,(y,w)=>{w(y,Et({get sideOffset(){return i()},get class(){return f(b)}},()=>s,{get ref(){return n()},set ref(x){n(x)},children:(x,C)=>{var T=rF(),R=L(T);eF(R,{});var O=at(R,2);{let V=E(()=>ee("h-[var(--bits-select-anchor-height)] w-full min-w-[var(--bits-select-anchor-width)] p-1"));kt(O,()=>r3,(N,H)=>{H(N,{get class(){return f(V)},children:(X,tt)=>{var et=K(),U=L(et);lt(U,()=>t.children??St),A(X,et)},$$slots:{default:!0}})})}var B=at(O,2);nF(B,{}),A(x,T)},$$slots:{default:!0}}))})}A(h,g)},$$slots:{default:!0}}))}),A(e,a),ut()}var iF=J("<!> <!>",1);function Dw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=K(),a=L(s);{let l=E(()=>ee("border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t.class));kt(a,()=>FM,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)},children:(h,p)=>{var g=iF(),v=L(g);lt(v,()=>t.children??St);var b=at(v,2);Vf(b,{class:"size-4 opacity-50"}),A(h,g)},$$slots:{default:!0}}))})}A(e,s),ut()}const Fw=LM,oF=$R;function H_(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",t.class));kt(a,()=>E5,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}function sF(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",t.class));kt(a,()=>O5,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}function W_(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",t.class));kt(a,()=>R5,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}const aF=k5,lF=$p({base:"[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}});var cF=J("<div><!></div>");function wz(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"variant",3,"default"),s=xt(t,["$$slots","$$events","$$legacy","ref","class","variant","children"]);var a=cF();Lt(a,c=>({class:c,...s,role:"alert"}),[()=>ee(lF({variant:i()}),t.class)]);var l=q(a);lt(l,()=>t.children??St),G(a),Dn(a,c=>n(c),()=>n()),A(e,a),ut()}function uF(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"class",7),s=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var a={get class(){return i()},set class(d){i(d)}},l=K(),c=L(l);{let d=E(()=>ee("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",i()));kt(c,()=>by,(h,p)=>{p(h,Et({get class(){return f(d)}},()=>s,{get ref(){return n()},set ref(g){n(g)}}))})}return A(e,l),ut(a)}const dF=$p({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}});var fF=J('<!> <span class="sr-only">Close</span>',1),hF=J("<!> <!>",1),gF=J("<!> <!>",1);function xz(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"side",3,"right"),s=xt(t,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);var a=K(),l=L(a);kt(l,()=>xu,(c,d)=>{d(c,Et(()=>t.portalProps,{children:(h,p)=>{var g=gF(),v=L(g);uF(v,{});var b=at(v,2);{let y=E(()=>ee(dF({side:i()}),t.class));kt(b,()=>tw,(w,x)=>{x(w,Et({get class(){return f(y)}},()=>s,{get ref(){return n()},set ref(C){n(C)},children:(C,T)=>{var R=hF(),O=L(R);lt(O,()=>t.children??St);var B=at(O,2);kt(B,()=>$y,(V,N)=>{N(V,{class:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:(H,X)=>{var tt=fF(),et=L(tt);Sp(et,{class:"size-4"}),te(2),A(H,tt)},$$slots:{default:!0}})}),A(C,R)},$$slots:{default:!0}}))})}A(h,g)},$$slots:{default:!0}}))}),A(e,a),ut()}var pF=J('<div class="size-3.5"></div>'),vF=J('<div class="flex size-4 items-center justify-center text-current"><!></div>');function Bw(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"checked",15,!1),s=k(t,"indeterminate",15,!1),a=xt(t,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var l=K(),c=L(l);{const d=(p,g)=>{let v=()=>g==null?void 0:g().checked,b=()=>g==null?void 0:g().indeterminate;var y=vF(),w=q(y);{var x=T=>{var R=K(),O=L(R);e_(O,()=>t_(()=>import("./BrNKoXwc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),null,(B,V)=>{var N=E(()=>{var{default:et}=f(V);return{Minus:et}}),H=E(()=>f(N).Minus),X=K(),tt=L(X);kt(tt,()=>f(H),(et,U)=>{U(et,{class:"size-3.5"})}),A(B,X)}),A(T,R)},C=T=>{var R=K(),O=L(R);{var B=N=>{var H=K(),X=L(H);e_(X,()=>t_(()=>Promise.resolve().then(()=>jT),void 0,import.meta.url),null,(tt,et)=>{var U=E(()=>{var{default:rt}=f(et);return{Check:rt}}),nt=E(()=>f(U).Check),Z=K(),Q=L(Z);kt(Q,()=>f(nt),(rt,dt)=>{dt(rt,{class:"size-3.5"})}),A(tt,Z)}),A(N,H)},V=N=>{var H=pF();A(N,H)};vt(O,N=>{v()?N(B):N(V,!1)},!0)}A(T,R)};vt(w,T=>{b()?T(x):T(C,!1)})}G(y),A(p,y)};let h=E(()=>ee("border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",t.class));kt(c,()=>QO,(p,g)=>{g(p,Et({get class(){return f(h)}},()=>a,{get ref(){return n()},set ref(v){n(v)},get checked(){return i()},set checked(v){i(v)},get indeterminate(){return s()},set indeterminate(v){s(v)},children:d,$$slots:{default:!0}}))})}A(e,l),ut()}function Vo(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=xt(t,["$$slots","$$events","$$legacy","ref","class"]);var s=K(),a=L(s);{let l=E(()=>ee("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class));kt(a,()=>NM,(c,d)=>{d(c,Et({get class(){return f(l)}},()=>i,{get ref(){return n()},set ref(h){n(h)}}))})}A(e,s),ut()}var mF=J('<div class="text-xs text-muted-foreground"> </div>'),bF=J('<div class="flex flex-col gap-2"><div class="flex gap-2"><!> <!></div> <!></div>');function _F(e,t){const n=k(t,"isChecked",3,!1);var i=bF(),s=q(i),a=q(s);{let h=E(()=>`${t.name}-label`);Bw(a,{get id(){return t.name},get"aria-labelledby"(){return f(h)},get checked(){return n()},get onCheckedChange(){return t.onCheckedChange}})}var l=at(a,2);{let h=E(()=>`${t.name}-label`);Vo(l,{get id(){return f(h)},get for(){return t.name},class:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70","data-testid":"tags-menu-label",children:(p,g)=>{te();var v=Te();Mt(()=>fe(v,t.label)),A(p,v)},$$slots:{default:!0}})}G(s);var c=at(s,2);{var d=h=>{var p=mF(),g=q(p,!0);G(p),Mt(()=>fe(g,t.helperText)),A(h,p)};vt(c,h=>{t.helperText&&h(d)})}G(i),A(e,i)}const Ad=en(!1);function ov(){return{error:en(null),isCreateClassifiersPanelOpen:Ad,openCreateClassifiersPanel:()=>Ad.set(!0),closeCreateClassifiersPanel:()=>{Ad.set(!1)},toggleCreateClassifiersPanel:()=>Ad.update(t=>!t)}}const Cd=en(!1),Ag=en(null),U_=en(null),G_=en(null),K_=en(null);function sv(){return{isRefineClassifiersPanelOpen:Cd,currentMode:Ag,currentClassifierName:U_,currentClassifierId:G_,currentClassifierClasses:K_,openRefineClassifiersPanel:(t,n,i,s)=>{Ag.set(t),Cd.set(!0),G_.set(n),U_.set(i),K_.set(s)},closeRefineClassifiersPanel:()=>{Ag.set(null),Cd.set(!1)},toggleRefineClassifiersPanel:()=>{Cd.update(t=>!t)}}}const{selectedSampleIds:yF}=Gi(),Cg=en(new Set);function wF(){const e=en(null),t=en(!1),n=async(h,p)=>{try{e.set(null);const g=await Mr.POST("/api/classifiers/{classifier_id}/save_classifier_to_file/{export_type}",{params:{path:{classifier_id:h,export_type:p}},responseType:"arraybuffer",headers:{Accept:"application/octet-stream"},parseAs:"blob"}),v=g.response.headers.get("content-disposition"),b=v==null?void 0:v.match(/filename="(.+)"/),y=(b==null?void 0:b[1])??`classifier_${h}.pkl`;if(!g.data)return e.set(new Error("No data received from the server")),Promise.reject("No data received from the server");fD(y,g.data)}catch(g){throw e.set(g),g}},i=async h=>{var v;e.set(null);const p=h.target,g=(v=p.files)==null?void 0:v[0];if(!g){e.set(new Error("No file selected"));return}try{const b=new FormData;b.append("file",g),await Mr.POST("/api/classifiers/load_classifier_from_buffer",{body:b,headers:{Accept:"application/json"}}),p.value=""}catch(b){throw e.set(b),b}},s=async(h,p)=>{try{e.set(null),await Mr.POST("/api/classifiers/{classifier_id}/update_annotations",{params:{path:{classifier_id:h}},body:p})}catch(g){throw e.set(g),g}},a=async h=>{try{e.set(null),await Mr.POST("/api/classifiers/{classifier_id}/train_classifier",{params:{path:{classifier_id:h}}})}catch(p){throw e.set(p),p}};async function l(){const h=En(yF),p=Array.from(h),g=Ki.params.dataset_id;e.set(null);try{const v=await Mr.POST("/api/classifiers/get_negative_samples",{body:{dataset_id:g.toString(),positive_sample_ids:p}});return v.data?{positiveSampleIds:p,negativeSampleIds:v.data.negative_sample_ids}:(e.set(new Error("Failed to prepare samples")),Promise.reject("Failed to prepare samples"))}catch(v){return e.set(v),Promise.reject(v)}}return{error:e,isLoading:t,classifiersSelected:Cg,saveClassifier:n,loadClassifier:i,updateAnnotations:s,trainClassifier:a,prepareSamples:l,classifierSelectionToggle:h=>{Cg.update(p=>(p.has(h)?p.delete(h):p.add(h),new Set([...p])))},clearClassifiersSelected:()=>{Cg.set(new Set)}}}const{classifiers:Pd,selectedSampleIds:q_,classifierSamples:X_,setClassifierSamples:Pg,toggleSampleSelection:Y_,clearSelectedSamples:kg}=Gi();function xF(){const e=wF(),t=en(null),n=en(!1),i=en(!1),{openRefineClassifiersPanel:s,closeRefineClassifiersPanel:a}=sv(),{toggleCreateClassifiersPanel:l,closeCreateClassifiersPanel:c}=ov(),d=()=>{En(n)||(t.set(null),n.set(!0),Mr.GET("/api/classifiers/get_all_classifiers").then(V=>{var N;(N=V.data)!=null&&N.classifiers?Pd.set(V.data.classifiers):Pd.set([])}).catch(V=>{t.set(V)}).finally(()=>{n.set(!1)}))};En(i)||(d(),i.set(!0));async function h(){t.set(null);const V=Ki.params.dataset_id;try{const N=await e.prepareSamples();Pg({positiveSampleIds:N.positiveSampleIds,negativeSampleIds:N.negativeSampleIds}),l(),ea(na.toClassifiers(V)),t.set(null)}catch(N){t.set(N)}}async function p(V){try{if(t.set(null),!V.dataset_id)throw new Error("Dataset ID is required");const N=await Mr.POST("/api/classifiers/create",{body:{name:V.name,class_list:V.class_list,dataset_id:V.dataset_id.toString()}});if(!N.data)return t.set(Error("Failed to create classifier.")),Promise.reject("Failed to create classifier.");const H=En(X_),X=H?[...H.positiveSampleIds,...H.negativeSampleIds]:[],tt=En(q_),et=Array.from(tt),U=X.filter(Z=>!tt.has(Z)),nt={annotations:{positive:et,negative:U}};return await e.updateAnnotations(N.data.classifier_id,nt),await e.trainClassifier(N.data.classifier_id),await b(N.data.classifier_id,V.dataset_id.toString(),V.class_list),s("temp",N.data.classifier_id,N.data.name,V.class_list),c(),N.data}catch(N){return t.set(N),Promise.reject(N)}}const g=async()=>{var V;try{n.set(!0),t.set(null);const N=Array.from(En(e.classifiersSelected));for(const H of N){const X=En(Pd).find(tt=>tt.classifier_id===H);if(X){const tt=((V=X.class_list)==null?void 0:V.map(et=>`${X.classifier_name}_${et}`))||[];await Mr.POST("/api/classifiers/{classifier_id}/run_on_dataset/{dataset_id}",{params:{path:{classifier_id:H,dataset_id:Ki.params.dataset_id}}}),us.success(`Classifier "${X.classifier_name}" completed successfully. New labels added: ${tt.join(", ")}. Annotations have been added to your dataset.`,{duration:1e4,closeButton:!0})}}n.set(!1)}catch(N){n.set(!1),t.set(N),us.error("Failed to run classifiers: "+N.message,{duration:1e4,closeButton:!0})}},v=async(V,N)=>{try{t.set(null),await Mr.POST("/api/classifiers/{classifier_id}/commit_temp_classifier",{params:{path:{classifier_id:V}}}),d()}catch(H){t.set(H);return}kg(),a(),ea(na.toSamples(N))},b=async(V,N,H)=>{var X;try{t.set(null);const tt=await Mr.GET("/api/classifiers/{classifier_id}/samples_to_refine",{params:{path:{classifier_id:V},query:{dataset_id:N}}});if(!((X=tt.data)!=null&&X.samples)){t.set(new Error("Failed to get samples for refinement."));return}const et=tt.data.samples,U=Object.keys(et);if(U.length!==2){t.set(new Error("Invalid samples response structure"));return}if(!H.every(Z=>U.includes(Z))){t.set(new Error(`Invalid class names. Expected classes: ${U.join(", ")}`));return}const nt={positiveSampleIds:et[H[0]]||[],negativeSampleIds:et[H[1]]||[]};nt.positiveSampleIds.forEach(Z=>{Y_(Z)}),Pg(nt)}catch(tt){return t.set(tt),Promise.reject(tt)}};async function y(V,N,H,X,tt){try{t.set(null),await b(N,tt,X),s("existing",N,H,X),ea(na.toClassifiers(tt))}catch(et){t.set(et)}}async function w(V,N,H){try{t.set(null);const X=En(X_),tt=X?[...X.positiveSampleIds,...X.negativeSampleIds]:[],et=En(q_),U=Array.from(et),nt=tt.filter(Q=>!et.has(Q)),Z={annotations:{positive:U,negative:nt}};kg(),await e.updateAnnotations(V,Z),await e.trainClassifier(V),await b(V,N,H)}catch(X){t.set(X)}}async function x(V,N,H,X){var tt;try{if(t.set(null),kg(),X){const U=(tt=(await hT({path:{classifier_id:V}})).data)==null?void 0:tt.samples;if(!U){t.set(new Error("No samples data received"));return}const nt=Object.keys(U);if(nt.length!==2){t.set(new Error("Invalid samples response structure"));return}if(!H.every(Q=>nt.includes(Q))){t.set(new Error(`Invalid class names. Expected classes: ${nt.join(", ")}`));return}const Z={positiveSampleIds:U[H[0]]||[],negativeSampleIds:U[H[1]]||[]};Z.positiveSampleIds.forEach(Q=>{Y_(Q)}),Pg(Z)}else await b(V,N,H)}catch(et){t.set(et)}}const C=async()=>{try{return t.set(null),await e.prepareSamples()}catch(V){throw t.set(V),V}},T=async(V,N)=>{try{t.set(null),await e.saveClassifier(V,N)}catch(H){throw t.set(H),H}},R=async V=>{try{t.set(null),await e.loadClassifier(V),d()}catch(N){throw t.set(N),N}},O=async(V,N)=>{try{t.set(null),await e.updateAnnotations(V,N)}catch(H){throw t.set(H),H}},B=async V=>{try{t.set(null),await e.trainClassifier(V)}catch(N){throw t.set(N),N}};return{classifiers:pd(Pd),createClassifier:p,loadClassifiers:d,classifiersSelected:pd(e.classifiersSelected),classifierSelectionToggle:e.classifierSelectionToggle,clearClassifiersSelected:e.clearClassifiersSelected,apply:g,saveClassifier:T,updateAnnotations:O,trainClassifier:B,commitTempClassifier:v,getSamplesToRefine:b,prepareSamples:C,loadClassifier:R,startCreateClassifier:h,isLoading:pd(n),startRefinment:y,showClassifierTrainingSamples:x,refineClassifier:w,error:pd(t)}}var SF=J('<div role="tooltip" id="tooltip"> </div>'),AF=J('<div class="relative inline-block" tabindex="0" role="button"><!> <!></div>');function Tg(e,t){ct(t,!0);let n=k(t,"position",3,"top"),i=bt(!1),s;function a(){if(!s)return{};switch(n()){case"top":return{bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"5px"};case"bottom":return{top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"5px"};case"left":return{right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"5px"};case"right":return{left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"5px"};default:return{bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"5px"}}}function l(){M(i,!0)}function c(){M(i,!1)}var d=AF(),h=q(d);lt(h,()=>t.children);var p=at(h,2);{var g=v=>{var b=SF(),y=q(b,!0);G(b),Mt((w,x)=>{qn(b,1,w),Ln(b,x),fe(y,t.content)},[()=>bo(ee("bg-popover text-popover-foreground absolute z-50 max-w-xs rounded-md px-3 py-1.5 text-xs shadow-md",t.class)),a]),wp(3,b,()=>Mw,()=>({y:n()==="top"?5:n()==="bottom"?-5:0,x:n()==="left"?5:n()==="right"?-5:0,duration:200})),A(v,b)};vt(p,v=>{f(i)&&t.content&&v(g)})}G(d),Dn(d,v=>s=v,()=>s),Mt(()=>At(d,"aria-describedby",f(i)?"tooltip":void 0)),ao("mouseenter",d,l),ao("mouseleave",d,c),ao("focusin",d,l),ao("focusout",d,c),ao("keydown",d,v=>v.key==="Escape"&&c()),A(e,d),ut()}var CF=J("<!> <span>Classifiers</span> <!>",1),PF=J("<!> <!>",1),kF=J("<!> Create New Classifier",1),TF=J('<p class="flex items-center gap-2 text-sm text-muted-foreground"><!> Select samples to create a classifier</p>'),EF=J('<p class="flex items-center gap-2 text-sm text-green-600"><!> </p>'),IF=J("<!> Load Classifier (.pkl)",1),OF=J('<div class="space-y-4"><div class="space-y-3"><div class="flex items-center gap-2"><h4 class="text-sm font-medium">Create New Classifier</h4> <!></div> <!> <!></div> <div class="space-y-3"><div class="flex items-center gap-2"><h4 class="text-sm font-medium">Load Existing Classifier</h4> <!></div> <div class="relative"><input title="Load Classifier" type="file" accept=".pkl" class="absolute inset-0 h-full w-full cursor-pointer opacity-0"/> <!></div></div></div>'),NF=J('<div class="flex items-center justify-between rounded-lg border p-3 transition-colors hover:bg-muted/50"><div class="flex min-w-0 flex-1 items-center gap-3"><!> <div class="min-w-0 flex-1"><p class="truncate text-sm font-medium"> </p></div></div> <div class="flex items-center gap-1"><!> <!></div></div>'),RF=J('<span class="mr-2 animate-spin">⏳</span> Running Classifiers...',1),MF=J("<!> Run Selected Classifiers",1),LF=J('<div class="rounded-lg bg-muted/50 p-4"><div class="flex items-start gap-2"><h4 class="mb-3 text-sm text-muted-foreground">Selected classifiers will be applied to your dataset</h4> <!></div> <!></div>'),DF=J('<div class="rounded-lg bg-muted/30 py-4 text-center"><!> <p class="text-sm text-muted-foreground">No classifiers selected</p></div>'),FF=J('<div class="max-h-48 space-y-2 overflow-y-auto dark:[color-scheme:dark]"></div> <div class="mt-4 border-t pt-4"><div class="mb-3 flex items-center gap-2"><h4 class="text-sm font-medium">Run Classifiers</h4> <span> </span></div> <!></div>',1),BF=J('<div class="py-8 text-center"><!> <p class="text-sm text-muted-foreground">No classifiers found</p> <p class="mt-1 text-xs text-muted-foreground">Create your first classifier to get started</p></div>'),zF=J("<!> <!> <!>",1),VF=J('<div class="border-t p-4"><!></div>'),HF=J('<div class="border-b"><div class="p-4 pb-0"><div class="flex items-center justify-between"><div><p class="text-sm text-muted-foreground">Create, manage, and run classifiers</p></div> <span class="inline-flex items-center rounded-full bg-secondary px-2 py-1 text-xs font-medium text-secondary-foreground"> </span></div></div> <!> <!></div>'),WF=J("<!> <!>",1),UF=J("<!> <!>",1),GF=J("<!> <!>",1),KF=J('<!> <div class="grid gap-4 py-4"><div class="space-y-2"><label for="exportType" class="text-sm font-medium">Select the export type for the classifier.</label> <!></div> <!></div>',1),qF=J("<!> <!>",1);function Sz(e,t){ct(t,!0);const n=()=>qt(O,"$isCreateClassifiersPanelOpen",w),i=()=>qt(B,"$isRefineClassifiersPanelOpen",w),s=()=>qt(mt,"$isDropdownOpen",w),a=()=>qt(rt,"$selectedSampleIds",w),l=()=>qt(N,"$classifiers",w),c=()=>qt(ot,"$activeTab",w),d=()=>qt(H,"$classifiersSelected",w),h=()=>qt(st,"$isApplyButtonEnabled",w),p=()=>qt(X,"$isLoading",w),g=()=>qt(V,"$error",w),v=()=>qt(ft,"$showExportDialog",w),b=()=>qt(dt,"$exportType",w),y=()=>qt(wt,"$triggerContent",w),[w,x]=Ur(),C=["sklearn","lightly"];let T=Ki.params.dataset_id;const R=mu(),{isCreateClassifiersPanelOpen:O}=ov(),{isRefineClassifiersPanelOpen:B}=sv(),{error:V,classifiers:N,classifiersSelected:H,isLoading:X,classifierSelectionToggle:tt,apply:et,saveClassifier:U,loadClassifier:nt,startRefinment:Z,startCreateClassifier:Q}=xF(),{selectedSampleIds:rt}=Gi(),dt=en("sklearn"),ft=en(!1),yt=en(null),mt=en(!1),ot=en("create"),st=ra([H,N],([Gt,ue])=>Gt.size>0&&ue.length>0),wt=ra(dt,Gt=>Gt||"Select export type");function It(Gt){yt.set(Gt),ft.set(!0)}function Kt(){const Gt=En(yt),ue=En(dt);Gt&&(U(Gt,ue),ft.set(!1),yt.set(null))}function _e(){R.invalidateQueries({queryKey:yp().queryKey}),R.invalidateQueries({queryKey:_p({path:{dataset_id:T}}).queryKey})}async function ze(){await et(),_e()}function ye(){Q(),mt.set(!1)}function Rt(Gt){nt(Gt),ot.set("manage")}be(()=>{(n()||i())&&mt.set(!1)});var Xt=qF(),pe=L(Xt);jp(pe,{get open(){return md(),s()},set open(Gt){vd(mt,Gt)},children:(Gt,ue)=>{var Ee=WF(),Ke=L(Ee);Qp(Ke,{children:(Ft,Ne)=>{{let ae=E(()=>s()||a().size>0?"ring-2 ring-ring":""),we=E(()=>n()||i());xn(Ft,{variant:"ghost",get class(){return`flex items-center space-x-2 ${f(ae)??""}`},get disabled(){return f(we)},children:(xe,zt)=>{var ne=CF(),re=L(ne);pg(re,{class:"size-4"});var on=at(re,4);Vf(on,{class:"size-4"}),A(xe,ne)},$$slots:{default:!0}})}},$$slots:{default:!0}});var Ot=at(Ke,2);Zp(Ot,{class:"w-[480px] p-0",children:(Ft,Ne)=>{var ae=HF(),we=q(ae),xe=q(we),zt=at(q(xe),2),ne=q(zt);G(zt),G(xe),G(we);var re=at(we,2);aF(re,{class:"mt-2 w-full",get value(){return md(),c()},set value(Ie){vd(ot,Ie)},children:(Ie,Je)=>{var sn=zF(),an=L(sn);sF(an,{class:"mx-4 mb-4 grid w-auto grid-cols-2 gap-0",children:(Ve,un)=>{var Dt=PF(),$t=L(Dt);W_($t,{value:"create",class:"flex items-center justify-center px-1 py-2 text-xs",children:(fn,ke)=>{te();var Yt=Te("Create");A(fn,Yt)},$$slots:{default:!0}});var Pe=at($t,2);W_(Pe,{value:"manage",class:"flex items-center justify-center px-1 py-2 text-xs",children:(fn,ke)=>{te();var Yt=Te("Manage & Run");A(fn,Yt)},$$slots:{default:!0}}),A(Ve,Dt)},$$slots:{default:!0}});var Ue=at(an,2);H_(Ue,{value:"create",class:"space-y-4 px-4 pb-4",children:(Ve,un)=>{var Dt=OF(),$t=q(Dt),Pe=q($t),fn=at(q(Pe),2);Tg(fn,{content:"Create a new classifier from selected samples",children:(Re,Ut)=>{Vs(Re,{class:"size-4 text-muted-foreground"})},$$slots:{default:!0}}),G(Pe);var ke=at(Pe,2);{let Re=E(()=>a().size===0);xn(ke,{variant:"default",class:"w-full",onclick:ye,get disabled(){return f(Re)},children:(Ut,$e)=>{var dn=kF(),kr=L(dn);pg(kr,{class:"mr-2 size-4"}),te(),A(Ut,dn)},$$slots:{default:!0}})}var Yt=at(ke,2);{var nn=Re=>{var Ut=TF(),$e=q(Ut);Vs($e,{class:"size-4"}),te(),G(Ut),A(Re,Ut)},Le=Re=>{var Ut=EF(),$e=q(Ut);Vs($e,{class:"size-4"});var dn=at($e);G(Ut),Mt(()=>fe(dn,` ${a().size??""} samples selected`)),A(Re,Ut)};vt(Yt,Re=>{a().size===0?Re(nn):Re(Le,!1)})}G($t);var De=at($t,2),Oe=q(De),hn=at(q(Oe),2);Tg(hn,{content:"Upload a previously saved classifier file",children:(Re,Ut)=>{Vs(Re,{class:"size-4 text-muted-foreground"})},$$slots:{default:!0}}),G(Oe);var gn=at(Oe,2),Fn=q(gn);Fn.__change=Rt;var gr=at(Fn,2);xn(gr,{variant:"outline",class:"w-full",children:(Re,Ut)=>{var $e=IF(),dn=L($e);ZT(dn,{class:"mr-2 size-4"}),te(),A(Re,$e)},$$slots:{default:!0}}),G(gn),G(De),G(Dt),A(Ve,Dt)},$$slots:{default:!0}});var Ce=at(Ue,2);H_(Ce,{value:"manage",class:"space-y-4 px-4 pb-4",children:(Ve,un)=>{var Dt=K(),$t=L(Dt);{var Pe=ke=>{var Yt=FF(),nn=L(Yt);rr(nn,5,l,Re=>Re.classifier_id,(Re,Ut)=>{var $e=NF(),dn=q($e),kr=q(dn);{let Pn=E(()=>d().has(f(Ut).classifier_id));_F(kr,{get name(){return f(Ut).classifier_id},get isChecked(){return f(Pn)},onCheckedChange:()=>tt(f(Ut).classifier_id)})}var pr=at(kr,2),Tr=q(pr),Qi=q(Tr,!0);G(Tr),G(pr),G(dn);var Xr=at(dn,2),bi=q(Xr);xn(bi,{variant:"ghost",size:"sm",title:"Edit classifier",onclick:()=>{Z("existing",f(Ut).classifier_id,f(Ut).classifier_name,f(Ut).class_list,T),mt.set(!1)},children:(Pn,In)=>{GT(Pn,{class:"size-4"})},$$slots:{default:!0}});var Cn=at(bi,2);xn(Cn,{variant:"ghost",size:"sm",title:"Download classifier",onclick:()=>It(f(Ut).classifier_id),children:(Pn,In)=>{VT(Pn,{class:"size-4"})},$$slots:{default:!0}}),G(Xr),G($e),Mt(()=>fe(Qi,f(Ut).classifier_name)),A(Re,$e)}),G(nn);var Le=at(nn,2),De=q(Le),Oe=at(q(De),2),hn=q(Oe);G(Oe),G(De);var gn=at(De,2);{var Fn=Re=>{var Ut=LF(),$e=q(Ut),dn=at(q($e),2);Tg(dn,{content:"The results will be added as new annotations to the dataset. New labels with the format 'classifier_class_name' will be created for each class of the classifier after a successful run.",children:(pr,Tr)=>{Vs(pr,{class:"mt-0.5 size-4 text-muted-foreground"})},$$slots:{default:!0}}),G($e);var kr=at($e,2);{let pr=E(()=>!h());xn(kr,{variant:"default",class:"w-full",get disabled(){return f(pr)},onclick:ze,children:(Tr,Qi)=>{var Xr=K(),bi=L(Xr);{var Cn=In=>{var _i=RF();te(),A(In,_i)},Pn=In=>{var _i=MF(),Qf=L(_i);r_(Qf,{class:"mr-2 size-4"}),te(),A(In,_i)};vt(bi,In=>{p()?In(Cn):In(Pn,!1)})}A(Tr,Xr)},$$slots:{default:!0}})}G(Ut),A(Re,Ut)},gr=Re=>{var Ut=DF(),$e=q(Ut);r_($e,{class:"mx-auto mb-2 size-8 text-muted-foreground"}),te(2),G(Ut),A(Re,Ut)};vt(gn,Re=>{d().size>0?Re(Fn):Re(gr,!1)})}G(Le),Mt(()=>{qn(Oe,1,`inline-flex items-center rounded-full px-2 py-1 text-xs font-medium ${d().size>0?"bg-primary text-primary-foreground":"bg-secondary text-secondary-foreground"}`),fe(hn,`${d().size??""} selected`)}),A(ke,Yt)},fn=ke=>{var Yt=BF(),nn=q(Yt);pg(nn,{class:"mx-auto mb-3 size-12 text-muted-foreground"}),te(4),G(Yt),A(ke,Yt)};vt($t,ke=>{l().length>0?ke(Pe):ke(fn,!1)})}A(Ve,Dt)},$$slots:{default:!0}}),A(Ie,sn)},$$slots:{default:!0}});var on=at(re,2);{var Me=Ie=>{var Je=VF(),sn=q(Je);JT(sn,{title:"Error occurred",children:(an,Ue)=>{te();var Ce=Te();Mt(()=>fe(Ce,g())),A(an,Ce)}}),G(Je),A(Ie,Je)};vt(on,Ie=>{g()&&Ie(Me)})}G(ae),Mt(()=>fe(ne,`${l().length??""} total`)),A(Ft,ae)},$$slots:{default:!0}}),A(Gt,Ee)},$$slots:{default:!0}});var ve=at(pe,2);vw(ve,{get open(){return md(),v()},set open(Gt){vd(ft,Gt)},children:(Gt,ue)=>{pw(Gt,{children:(Ee,Ke)=>{var Ot=KF(),Ft=L(Ot);hw(Ft,{children:(zt,ne)=>{fw(zt,{children:(re,on)=>{te();var Me=Te("Export Classifier");A(re,Me)},$$slots:{default:!0}})},$$slots:{default:!0}});var Ne=at(Ft,2),ae=q(Ne),we=at(q(ae),2);kt(we,()=>Fw,(zt,ne)=>{ne(zt,{type:"single",name:"exportType",get value(){return md(),b()},set value(re){vd(dt,re)},children:(re,on)=>{var Me=GF(),Ie=L(Me);kt(Ie,()=>Dw,(sn,an)=>{an(sn,{class:"w-full",children:(Ue,Ce)=>{te();var Ve=Te();Mt(()=>fe(Ve,y())),A(Ue,Ve)},$$slots:{default:!0}})});var Je=at(Ie,2);kt(Je,()=>Lw,(sn,an)=>{an(sn,{children:(Ue,Ce)=>{var Ve=K(),un=L(Ve);kt(un,()=>oF,(Dt,$t)=>{$t(Dt,{children:(Pe,fn)=>{var ke=UF(),Yt=L(ke);kt(Yt,()=>$D,(Le,De)=>{De(Le,{children:(Oe,hn)=>{te();var gn=Te("Export Types");A(Oe,gn)},$$slots:{default:!0}})});var nn=at(Yt,2);rr(nn,16,()=>C,Le=>Le,(Le,De)=>{var Oe=K(),hn=L(Oe);kt(hn,()=>cp,(gn,Fn)=>{Fn(gn,{get value(){return De},get label(){return De},children:(gr,Re)=>{te();var Ut=Te();Mt(()=>fe(Ut,De)),A(gr,Ut)},$$slots:{default:!0}})}),A(Le,Oe)}),A(Pe,ke)},$$slots:{default:!0}})}),A(Ue,Ve)},$$slots:{default:!0}})}),A(re,Me)},$$slots:{default:!0}})}),G(ae);var xe=at(ae,2);xn(xe,{class:"flex-1",onclick:()=>Kt(),children:(zt,ne)=>{te();var re=Te("Export");A(zt,re)},$$slots:{default:!0}}),G(Ne),A(Ee,Ot)},$$slots:{default:!0}})},$$slots:{default:!0}}),A(e,Xt),ut(),x()}Zi(["change"]);function Z_(e,t){ct(t,!0);let n=k(t,"ref",15,null),i=k(t,"checked",15,!1),s=xt(t,["$$slots","$$events","$$legacy","ref","checked","class"]);var a=K(),l=L(a);{let c=E(()=>ee("focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t.class));kt(l,()=>f5,(d,h)=>{h(d,Et({get class(){return f(c)}},()=>s,{get ref(){return n()},set ref(p){n(p)},get checked(){return i()},set checked(p){i(p)},children:(p,g)=>{var v=K(),b=L(v);{let y=E(()=>ee("bg-background pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"));kt(b,()=>g5,(w,x)=>{x(w,{get class(){return f(y)}})})}A(p,v)},$$slots:{default:!0}}))})}A(e,a),ut()}var XF=J("<!> <span>Settings</span>",1),YF=J("<!> <!>",1),ZF=(e,t)=>{e.preventDefault(),t("hideAnnotations")},jF=J('<span class="italic opacity-70">Press a key...</span>'),QF=J("<span> </span>"),JF=(e,t)=>{e.preventDefault(),t("goBack")},$F=J('<span class="italic opacity-70">Press a key...</span>'),t4=J("<span> </span>"),e4=J("<!> <!>",1),n4=J("<!> <!>",1),r4=J("<!> <!>",1),i4=J('<form><!> <div class="grid gap-4 py-4"><div class="space-y-4"><h3 class="text-lg font-medium text-foreground">Keyboard Shortcuts</h3> <div class="grid grid-cols-2 items-center gap-4"><!> <button id="hide-annotations" type="button" class="rounded-md border border-input bg-background p-2 text-left text-foreground"><!></button></div> <div class="grid grid-cols-2 items-center gap-4"><!> <button id="go-back" type="button" class="rounded-md border border-input bg-background p-2 text-left text-foreground"><!></button></div></div> <div class="space-y-4"><h3 class="text-lg font-medium text-foreground">Display Settings</h3> <div class="grid grid-cols-2 items-center gap-4"><!> <div class="relative"><!></div></div> <div class="grid grid-cols-2 items-center gap-4"><!> <!></div></div> <div class="space-y-4"><h3 class="text-lg font-medium text-foreground">Annotation Settings</h3> <div class="grid grid-cols-2 items-center gap-4"><!> <!></div></div></div> <!></form>'),o4=J("<!> <!>",1),s4=J("<!> <!>",1);function Az(e,t){ct(t,!0);const n=()=>qt(l,"$settingsStore",s),i=()=>qt(c,"$isLoadedStore",s),[s,a]=Ur(),{settingsStore:l,isLoadedStore:c,saveSettings:d}=zf();let h=bt(!1),p=bt(!1),g=bt(Sn({hideAnnotations:"v",goBack:"Escape"})),v=bt("contain"),b=bt(!0),y=bt(!1),w=!1;be(()=>{n()&&i()&&!w&&(M(g,{hideAnnotations:n().key_hide_annotations||"v",goBack:n().key_go_back||"Escape"},!0),M(v,n().grid_view_sample_rendering||"contain",!0),M(b,!!(n().show_annotation_text_labels??!0),!0),M(y,!!(n().show_sample_filenames??!1),!0),w=!0)});let x=bt(null);function C(X){M(h,X,!0),M(x,null)}function T(X){M(v,X,!0)}function R(X){X.preventDefault(),O()}async function O(){M(p,!0);try{await d({key_hide_annotations:f(g).hideAnnotations,key_go_back:f(g).goBack,grid_view_sample_rendering:f(v),show_annotation_text_labels:f(b),show_sample_filenames:f(y)}),C(!1)}catch(X){console.error("Error saving settings:",X)}finally{M(p,!1)}}const B=X=>{M(x,X,!0)},V=X=>{if(!f(x))return;X.preventDefault(),X.stopPropagation();let tt=X.key;tt===" "?tt="Space":tt.length===1&&/^[a-zA-Z]$/.test(tt)&&!X.getModifierState("CapsLock")&&(tt=tt.toLowerCase()),f(x)==="hideAnnotations"?f(g).hideAnnotations=tt:f(x)==="goBack"&&(f(g).goBack=tt),M(x,null)};var N=K();ao("keydown",Jk,V);var H=L(N);kt(H,()=>vw,(X,tt)=>{tt(X,{get open(){return f(h)},set open(et){M(h,et,!0)},children:(et,U)=>{var nt=s4(),Z=L(nt);kt(Z,()=>yL,(rt,dt)=>{dt(rt,{children:(ft,yt)=>{xn(ft,{variant:"outline",class:"gap-2",children:(mt,ot)=>{var st=XF(),wt=L(st);qT(wt,{class:"h-4 w-4"}),te(2),A(mt,st)},$$slots:{default:!0}})},$$slots:{default:!0}})});var Q=at(Z,2);kt(Q,()=>mw,(rt,dt)=>{dt(rt,{children:(ft,yt)=>{var mt=o4(),ot=L(mt);kt(ot,()=>gw,(wt,It)=>{It(wt,{})});var st=at(ot,2);kt(st,()=>pw,(wt,It)=>{It(wt,{class:"border-border bg-background sm:max-w-[500px]",children:(Kt,_e)=>{var ze=i4(),ye=q(ze);kt(ye,()=>hw,(Dt,$t)=>{$t(Dt,{children:(Pe,fn)=>{var ke=YF(),Yt=L(ke);kt(Yt,()=>fw,(Le,De)=>{De(Le,{class:"text-foreground",children:(Oe,hn)=>{te();var gn=Te("Settings");A(Oe,gn)},$$slots:{default:!0}})});var nn=at(Yt,2);kt(nn,()=>_L,(Le,De)=>{De(Le,{class:"text-foreground",children:(Oe,hn)=>{te();var gn=Te("Configure your application preferences.");A(Oe,gn)},$$slots:{default:!0}})}),A(Pe,ke)},$$slots:{default:!0}})});var Rt=at(ye,2),Xt=q(Rt),pe=at(q(Xt),2),ve=q(pe);Vo(ve,{for:"hide-annotations",class:"text-right text-foreground",children:(Dt,$t)=>{te();var Pe=Te("Hide Annotations");A(Dt,Pe)},$$slots:{default:!0}});var Gt=at(ve,2);Gt.__click=[ZF,B];var ue=q(Gt);{var Ee=Dt=>{var $t=jF();A(Dt,$t)},Ke=Dt=>{var $t=QF(),Pe=q($t,!0);G($t),Mt(()=>fe(Pe,f(g).hideAnnotations)),A(Dt,$t)};vt(ue,Dt=>{f(x)==="hideAnnotations"?Dt(Ee):Dt(Ke,!1)})}G(Gt),G(pe);var Ot=at(pe,2),Ft=q(Ot);Vo(Ft,{for:"go-back",class:"text-right text-foreground",children:(Dt,$t)=>{te();var Pe=Te("Go Back");A(Dt,Pe)},$$slots:{default:!0}});var Ne=at(Ft,2);Ne.__click=[JF,B];var ae=q(Ne);{var we=Dt=>{var $t=$F();A(Dt,$t)},xe=Dt=>{var $t=t4(),Pe=q($t,!0);G($t),Mt(()=>fe(Pe,f(g).goBack)),A(Dt,$t)};vt(ae,Dt=>{f(x)==="goBack"?Dt(we):Dt(xe,!1)})}G(Ne),G(Ot),G(Xt);var zt=at(Xt,2),ne=at(q(zt),2),re=q(ne);Vo(re,{for:"grid-view-rendering",class:"text-right text-foreground",children:(Dt,$t)=>{te();var Pe=Te("Grid View Rendering");A(Dt,Pe)},$$slots:{default:!0}});var on=at(re,2),Me=q(on);Fw(Me,{type:"single",get value(){return f(v)},onValueChange:T,children:(Dt,$t)=>{var Pe=n4(),fn=L(Pe);Dw(fn,{id:"grid-view-rendering",children:(Yt,nn)=>{te();var Le=Te();Mt(()=>fe(Le,f(v)==="cover"?"Cover":"Contain")),A(Yt,Le)},$$slots:{default:!0}});var ke=at(fn,2);Lw(ke,{children:(Yt,nn)=>{var Le=e4(),De=L(Le);cp(De,{value:"cover",children:(hn,gn)=>{te();var Fn=Te("Cover");A(hn,Fn)},$$slots:{default:!0}});var Oe=at(De,2);cp(Oe,{value:"contain",children:(hn,gn)=>{te();var Fn=Te("Contain");A(hn,Fn)},$$slots:{default:!0}}),A(Yt,Le)},$$slots:{default:!0}}),A(Dt,Pe)},$$slots:{default:!0}}),G(on),G(ne);var Ie=at(ne,2),Je=q(Ie);Vo(Je,{for:"show-sample-filenames",class:"text-right text-foreground",children:(Dt,$t)=>{te();var Pe=Te("Show filenames in grid view");A(Dt,Pe)},$$slots:{default:!0}});var sn=at(Je,2);Z_(sn,{id:"show-sample-filenames",get disabled(){return f(p)},get checked(){return f(y)},set checked(Dt){M(y,Dt,!0)}}),G(Ie),G(zt);var an=at(zt,2),Ue=at(q(an),2),Ce=q(Ue);Vo(Ce,{for:"show-annotation-text-labels",class:"text-right text-foreground",children:(Dt,$t)=>{te();var Pe=Te("Show Annotation Text Labels");A(Dt,Pe)},$$slots:{default:!0}});var Ve=at(Ce,2);Z_(Ve,{id:"show-annotation-text-labels",get disabled(){return f(p)},get checked(){return f(b)},set checked(Dt){M(b,Dt,!0)}}),G(Ue),G(an),G(Rt);var un=at(Rt,2);kt(un,()=>gL,(Dt,$t)=>{$t(Dt,{children:(Pe,fn)=>{var ke=r4(),Yt=L(ke);xn(Yt,{variant:"outline",type:"button",onclick:()=>C(!1),children:(Le,De)=>{te();var Oe=Te("Cancel");A(Le,Oe)},$$slots:{default:!0}});var nn=at(Yt,2);xn(nn,{type:"submit",get disabled(){return f(p)},children:(Le,De)=>{te();var Oe=Te();Mt(()=>fe(Oe,f(p)?"Saving...":"Save Changes")),A(Le,Oe)},$$slots:{default:!0}}),A(Pe,ke)},$$slots:{default:!0}})}),G(ze),ao("submit",ze,R),A(Kt,ze)},$$slots:{default:!0}})}),A(ft,mt)},$$slots:{default:!0}})}),A(et,nt)},$$slots:{default:!0}})}),A(e,N),ut(),a()}Zi(["click"]);var tf={exports:{}};/**
|
|
411
|
+
* @license
|
|
412
|
+
* Lodash <https://lodash.com/>
|
|
413
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
414
|
+
* Released under MIT license <https://lodash.com/license>
|
|
415
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
416
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
417
|
+
*/tf.exports;(function(e,t){(function(){var n,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",g=1,v=2,b=4,y=1,w=2,x=1,C=2,T=4,R=8,O=16,B=32,V=64,N=128,H=256,X=512,tt=30,et="...",U=800,nt=16,Z=1,Q=2,rt=3,dt=1/0,ft=9007199254740991,yt=17976931348623157e292,mt=NaN,ot=4294967295,st=ot-1,wt=ot>>>1,It=[["ary",N],["bind",x],["bindKey",C],["curry",R],["curryRight",O],["flip",X],["partial",B],["partialRight",V],["rearg",H]],Kt="[object Arguments]",_e="[object Array]",ze="[object AsyncFunction]",ye="[object Boolean]",Rt="[object Date]",Xt="[object DOMException]",pe="[object Error]",ve="[object Function]",Gt="[object GeneratorFunction]",ue="[object Map]",Ee="[object Number]",Ke="[object Null]",Ot="[object Object]",Ft="[object Promise]",Ne="[object Proxy]",ae="[object RegExp]",we="[object Set]",xe="[object String]",zt="[object Symbol]",ne="[object Undefined]",re="[object WeakMap]",on="[object WeakSet]",Me="[object ArrayBuffer]",Ie="[object DataView]",Je="[object Float32Array]",sn="[object Float64Array]",an="[object Int8Array]",Ue="[object Int16Array]",Ce="[object Int32Array]",Ve="[object Uint8Array]",un="[object Uint8ClampedArray]",Dt="[object Uint16Array]",$t="[object Uint32Array]",Pe=/\b__p \+= '';/g,fn=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yt=/&(?:amp|lt|gt|quot|#39);/g,nn=/[&<>"']/g,Le=RegExp(Yt.source),De=RegExp(nn.source),Oe=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,gn=/<%=([\s\S]+?)%>/g,Fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gr=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ut=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Ut.source),dn=/^\s+/,kr=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tr=/\{\n\/\* \[wrapped with (.+)\] \*/,Qi=/,? & /,Xr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bi=/[()=,{}\[\]\/\s]/,Cn=/\\(\\)?/g,Pn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,In=/\w*$/,_i=/^[-+]0x[0-9a-f]+$/i,Qf=/^0b[01]+$/i,gx=/^\[object .+?Constructor\]$/,px=/^0o[0-7]+$/i,vx=/^(?:0|[1-9]\d*)$/,mx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ku=/($^)/,bx=/['\n\r\u2028\u2029\\]/g,Tu="\\ud800-\\udfff",_x="\\u0300-\\u036f",yx="\\ufe20-\\ufe2f",wx="\\u20d0-\\u20ff",pv=_x+yx+wx,vv="\\u2700-\\u27bf",mv="a-z\\xdf-\\xf6\\xf8-\\xff",xx="\\xac\\xb1\\xd7\\xf7",Sx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ax="\\u2000-\\u206f",Cx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bv="A-Z\\xc0-\\xd6\\xd8-\\xde",_v="\\ufe0e\\ufe0f",yv=xx+Sx+Ax+Cx,Jf="['’]",Px="["+Tu+"]",wv="["+yv+"]",Eu="["+pv+"]",xv="\\d+",kx="["+vv+"]",Sv="["+mv+"]",Av="[^"+Tu+yv+xv+vv+mv+bv+"]",$f="\\ud83c[\\udffb-\\udfff]",Tx="(?:"+Eu+"|"+$f+")",Cv="[^"+Tu+"]",th="(?:\\ud83c[\\udde6-\\uddff]){2}",eh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+bv+"]",Pv="\\u200d",kv="(?:"+Sv+"|"+Av+")",Ex="(?:"+Ao+"|"+Av+")",Tv="(?:"+Jf+"(?:d|ll|m|re|s|t|ve))?",Ev="(?:"+Jf+"(?:D|LL|M|RE|S|T|VE))?",Iv=Tx+"?",Ov="["+_v+"]?",Ix="(?:"+Pv+"(?:"+[Cv,th,eh].join("|")+")"+Ov+Iv+")*",Ox="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nv=Ov+Iv+Ix,Rx="(?:"+[kx,th,eh].join("|")+")"+Nv,Mx="(?:"+[Cv+Eu+"?",Eu,th,eh,Px].join("|")+")",Lx=RegExp(Jf,"g"),Dx=RegExp(Eu,"g"),nh=RegExp($f+"(?="+$f+")|"+Mx+Nv,"g"),Fx=RegExp([Ao+"?"+Sv+"+"+Tv+"(?="+[wv,Ao,"$"].join("|")+")",Ex+"+"+Ev+"(?="+[wv,Ao+kv,"$"].join("|")+")",Ao+"?"+kv+"+"+Tv,Ao+"+"+Ev,Nx,Ox,xv,Rx].join("|"),"g"),Bx=RegExp("["+Pv+Tu+pv+_v+"]"),zx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hx=-1,Xe={};Xe[Je]=Xe[sn]=Xe[an]=Xe[Ue]=Xe[Ce]=Xe[Ve]=Xe[un]=Xe[Dt]=Xe[$t]=!0,Xe[Kt]=Xe[_e]=Xe[Me]=Xe[ye]=Xe[Ie]=Xe[Rt]=Xe[pe]=Xe[ve]=Xe[ue]=Xe[Ee]=Xe[Ot]=Xe[ae]=Xe[we]=Xe[xe]=Xe[re]=!1;var qe={};qe[Kt]=qe[_e]=qe[Me]=qe[Ie]=qe[ye]=qe[Rt]=qe[Je]=qe[sn]=qe[an]=qe[Ue]=qe[Ce]=qe[ue]=qe[Ee]=qe[Ot]=qe[ae]=qe[we]=qe[xe]=qe[zt]=qe[Ve]=qe[un]=qe[Dt]=qe[$t]=!0,qe[pe]=qe[ve]=qe[re]=!1;var Wx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ux={"&":"&","<":"<",">":">",'"':""","'":"'"},Gx={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qx=parseFloat,Xx=parseInt,Rv=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,Yx=typeof self=="object"&&self&&self.Object===Object&&self,_n=Rv||Yx||Function("return this")(),rh=t&&!t.nodeType&&t,Ji=rh&&!0&&e&&!e.nodeType&&e,Mv=Ji&&Ji.exports===rh,ih=Mv&&Rv.process,or=function(){try{var Y=Ji&&Ji.require&&Ji.require("util").types;return Y||ih&&ih.binding&&ih.binding("util")}catch{}}(),Lv=or&&or.isArrayBuffer,Dv=or&&or.isDate,Fv=or&&or.isMap,Bv=or&&or.isRegExp,zv=or&&or.isSet,Vv=or&&or.isTypedArray;function Yn(Y,ht,it){switch(it.length){case 0:return Y.call(ht);case 1:return Y.call(ht,it[0]);case 2:return Y.call(ht,it[0],it[1]);case 3:return Y.call(ht,it[0],it[1],it[2])}return Y.apply(ht,it)}function Zx(Y,ht,it,Tt){for(var Zt=-1,Fe=Y==null?0:Y.length;++Zt<Fe;){var pn=Y[Zt];ht(Tt,pn,it(pn),Y)}return Tt}function sr(Y,ht){for(var it=-1,Tt=Y==null?0:Y.length;++it<Tt&&ht(Y[it],it,Y)!==!1;);return Y}function jx(Y,ht){for(var it=Y==null?0:Y.length;it--&&ht(Y[it],it,Y)!==!1;);return Y}function Hv(Y,ht){for(var it=-1,Tt=Y==null?0:Y.length;++it<Tt;)if(!ht(Y[it],it,Y))return!1;return!0}function yi(Y,ht){for(var it=-1,Tt=Y==null?0:Y.length,Zt=0,Fe=[];++it<Tt;){var pn=Y[it];ht(pn,it,Y)&&(Fe[Zt++]=pn)}return Fe}function Iu(Y,ht){var it=Y==null?0:Y.length;return!!it&&Co(Y,ht,0)>-1}function oh(Y,ht,it){for(var Tt=-1,Zt=Y==null?0:Y.length;++Tt<Zt;)if(it(ht,Y[Tt]))return!0;return!1}function Qe(Y,ht){for(var it=-1,Tt=Y==null?0:Y.length,Zt=Array(Tt);++it<Tt;)Zt[it]=ht(Y[it],it,Y);return Zt}function wi(Y,ht){for(var it=-1,Tt=ht.length,Zt=Y.length;++it<Tt;)Y[Zt+it]=ht[it];return Y}function sh(Y,ht,it,Tt){var Zt=-1,Fe=Y==null?0:Y.length;for(Tt&&Fe&&(it=Y[++Zt]);++Zt<Fe;)it=ht(it,Y[Zt],Zt,Y);return it}function Qx(Y,ht,it,Tt){var Zt=Y==null?0:Y.length;for(Tt&&Zt&&(it=Y[--Zt]);Zt--;)it=ht(it,Y[Zt],Zt,Y);return it}function ah(Y,ht){for(var it=-1,Tt=Y==null?0:Y.length;++it<Tt;)if(ht(Y[it],it,Y))return!0;return!1}var Jx=lh("length");function $x(Y){return Y.split("")}function t1(Y){return Y.match(Xr)||[]}function Wv(Y,ht,it){var Tt;return it(Y,function(Zt,Fe,pn){if(ht(Zt,Fe,pn))return Tt=Fe,!1}),Tt}function Ou(Y,ht,it,Tt){for(var Zt=Y.length,Fe=it+(Tt?1:-1);Tt?Fe--:++Fe<Zt;)if(ht(Y[Fe],Fe,Y))return Fe;return-1}function Co(Y,ht,it){return ht===ht?f1(Y,ht,it):Ou(Y,Uv,it)}function e1(Y,ht,it,Tt){for(var Zt=it-1,Fe=Y.length;++Zt<Fe;)if(Tt(Y[Zt],ht))return Zt;return-1}function Uv(Y){return Y!==Y}function Gv(Y,ht){var it=Y==null?0:Y.length;return it?uh(Y,ht)/it:mt}function lh(Y){return function(ht){return ht==null?n:ht[Y]}}function ch(Y){return function(ht){return Y==null?n:Y[ht]}}function Kv(Y,ht,it,Tt,Zt){return Zt(Y,function(Fe,pn,Ge){it=Tt?(Tt=!1,Fe):ht(it,Fe,pn,Ge)}),it}function n1(Y,ht){var it=Y.length;for(Y.sort(ht);it--;)Y[it]=Y[it].value;return Y}function uh(Y,ht){for(var it,Tt=-1,Zt=Y.length;++Tt<Zt;){var Fe=ht(Y[Tt]);Fe!==n&&(it=it===n?Fe:it+Fe)}return it}function dh(Y,ht){for(var it=-1,Tt=Array(Y);++it<Y;)Tt[it]=ht(it);return Tt}function r1(Y,ht){return Qe(ht,function(it){return[it,Y[it]]})}function qv(Y){return Y&&Y.slice(0,jv(Y)+1).replace(dn,"")}function Zn(Y){return function(ht){return Y(ht)}}function fh(Y,ht){return Qe(ht,function(it){return Y[it]})}function Ss(Y,ht){return Y.has(ht)}function Xv(Y,ht){for(var it=-1,Tt=Y.length;++it<Tt&&Co(ht,Y[it],0)>-1;);return it}function Yv(Y,ht){for(var it=Y.length;it--&&Co(ht,Y[it],0)>-1;);return it}function i1(Y,ht){for(var it=Y.length,Tt=0;it--;)Y[it]===ht&&++Tt;return Tt}var o1=ch(Wx),s1=ch(Ux);function a1(Y){return"\\"+Kx[Y]}function l1(Y,ht){return Y==null?n:Y[ht]}function Po(Y){return Bx.test(Y)}function c1(Y){return zx.test(Y)}function u1(Y){for(var ht,it=[];!(ht=Y.next()).done;)it.push(ht.value);return it}function hh(Y){var ht=-1,it=Array(Y.size);return Y.forEach(function(Tt,Zt){it[++ht]=[Zt,Tt]}),it}function Zv(Y,ht){return function(it){return Y(ht(it))}}function xi(Y,ht){for(var it=-1,Tt=Y.length,Zt=0,Fe=[];++it<Tt;){var pn=Y[it];(pn===ht||pn===p)&&(Y[it]=p,Fe[Zt++]=it)}return Fe}function Nu(Y){var ht=-1,it=Array(Y.size);return Y.forEach(function(Tt){it[++ht]=Tt}),it}function d1(Y){var ht=-1,it=Array(Y.size);return Y.forEach(function(Tt){it[++ht]=[Tt,Tt]}),it}function f1(Y,ht,it){for(var Tt=it-1,Zt=Y.length;++Tt<Zt;)if(Y[Tt]===ht)return Tt;return-1}function h1(Y,ht,it){for(var Tt=it+1;Tt--;)if(Y[Tt]===ht)return Tt;return Tt}function ko(Y){return Po(Y)?p1(Y):Jx(Y)}function vr(Y){return Po(Y)?v1(Y):$x(Y)}function jv(Y){for(var ht=Y.length;ht--&&kr.test(Y.charAt(ht)););return ht}var g1=ch(Gx);function p1(Y){for(var ht=nh.lastIndex=0;nh.test(Y);)++ht;return ht}function v1(Y){return Y.match(nh)||[]}function m1(Y){return Y.match(Fx)||[]}var b1=function Y(ht){ht=ht==null?_n:To.defaults(_n.Object(),ht,To.pick(_n,Vx));var it=ht.Array,Tt=ht.Date,Zt=ht.Error,Fe=ht.Function,pn=ht.Math,Ge=ht.Object,gh=ht.RegExp,_1=ht.String,ar=ht.TypeError,Ru=it.prototype,y1=Fe.prototype,Eo=Ge.prototype,Mu=ht["__core-js_shared__"],Lu=y1.toString,We=Eo.hasOwnProperty,w1=0,Qv=function(){var r=/[^.]+$/.exec(Mu&&Mu.keys&&Mu.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Du=Eo.toString,x1=Lu.call(Ge),S1=_n._,A1=gh("^"+Lu.call(We).replace(Ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fu=Mv?ht.Buffer:n,Si=ht.Symbol,Bu=ht.Uint8Array,Jv=Fu?Fu.allocUnsafe:n,zu=Zv(Ge.getPrototypeOf,Ge),$v=Ge.create,tm=Eo.propertyIsEnumerable,Vu=Ru.splice,em=Si?Si.isConcatSpreadable:n,As=Si?Si.iterator:n,$i=Si?Si.toStringTag:n,Hu=function(){try{var r=io(Ge,"defineProperty");return r({},"",{}),r}catch{}}(),C1=ht.clearTimeout!==_n.clearTimeout&&ht.clearTimeout,P1=Tt&&Tt.now!==_n.Date.now&&Tt.now,k1=ht.setTimeout!==_n.setTimeout&&ht.setTimeout,Wu=pn.ceil,Uu=pn.floor,ph=Ge.getOwnPropertySymbols,T1=Fu?Fu.isBuffer:n,nm=ht.isFinite,E1=Ru.join,I1=Zv(Ge.keys,Ge),vn=pn.max,kn=pn.min,O1=Tt.now,N1=ht.parseInt,rm=pn.random,R1=Ru.reverse,vh=io(ht,"DataView"),Cs=io(ht,"Map"),mh=io(ht,"Promise"),Io=io(ht,"Set"),Ps=io(ht,"WeakMap"),ks=io(Ge,"create"),Gu=Ps&&new Ps,Oo={},M1=oo(vh),L1=oo(Cs),D1=oo(mh),F1=oo(Io),B1=oo(Ps),Ku=Si?Si.prototype:n,Ts=Ku?Ku.valueOf:n,im=Ku?Ku.toString:n;function P(r){if(rn(r)&&!Jt(r)&&!(r instanceof Se)){if(r instanceof lr)return r;if(We.call(r,"__wrapped__"))return ob(r)}return new lr(r)}var No=function(){function r(){}return function(o){if(!tn(o))return{};if($v)return $v(o);r.prototype=o;var u=new r;return r.prototype=n,u}}();function qu(){}function lr(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}P.templateSettings={escape:Oe,evaluate:hn,interpolate:gn,variable:"",imports:{_:P}},P.prototype=qu.prototype,P.prototype.constructor=P,lr.prototype=No(qu.prototype),lr.prototype.constructor=lr;function Se(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function z1(){var r=new Se(this.__wrapped__);return r.__actions__=Bn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Bn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Bn(this.__views__),r}function V1(){if(this.__filtered__){var r=new Se(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function H1(){var r=this.__wrapped__.value(),o=this.__dir__,u=Jt(r),m=o<0,S=u?r.length:0,I=$S(0,S,this.__views__),D=I.start,W=I.end,j=W-D,gt=m?W:D-1,pt=this.__iteratees__,_t=pt.length,Ct=0,Nt=kn(j,this.__takeCount__);if(!u||!m&&S==j&&Nt==j)return Tm(r,this.__actions__);var Vt=[];t:for(;j--&&Ct<Nt;){gt+=o;for(var le=-1,Ht=r[gt];++le<_t;){var me=pt[le],Ae=me.iteratee,Jn=me.type,Rn=Ae(Ht);if(Jn==Q)Ht=Rn;else if(!Rn){if(Jn==Z)continue t;break t}}Vt[Ct++]=Ht}return Vt}Se.prototype=No(qu.prototype),Se.prototype.constructor=Se;function to(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var m=r[o];this.set(m[0],m[1])}}function W1(){this.__data__=ks?ks(null):{},this.size=0}function U1(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function G1(r){var o=this.__data__;if(ks){var u=o[r];return u===d?n:u}return We.call(o,r)?o[r]:n}function K1(r){var o=this.__data__;return ks?o[r]!==n:We.call(o,r)}function q1(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=ks&&o===n?d:o,this}to.prototype.clear=W1,to.prototype.delete=U1,to.prototype.get=G1,to.prototype.has=K1,to.prototype.set=q1;function Yr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var m=r[o];this.set(m[0],m[1])}}function X1(){this.__data__=[],this.size=0}function Y1(r){var o=this.__data__,u=Xu(o,r);if(u<0)return!1;var m=o.length-1;return u==m?o.pop():Vu.call(o,u,1),--this.size,!0}function Z1(r){var o=this.__data__,u=Xu(o,r);return u<0?n:o[u][1]}function j1(r){return Xu(this.__data__,r)>-1}function Q1(r,o){var u=this.__data__,m=Xu(u,r);return m<0?(++this.size,u.push([r,o])):u[m][1]=o,this}Yr.prototype.clear=X1,Yr.prototype.delete=Y1,Yr.prototype.get=Z1,Yr.prototype.has=j1,Yr.prototype.set=Q1;function Zr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var m=r[o];this.set(m[0],m[1])}}function J1(){this.size=0,this.__data__={hash:new to,map:new(Cs||Yr),string:new to}}function $1(r){var o=od(this,r).delete(r);return this.size-=o?1:0,o}function tS(r){return od(this,r).get(r)}function eS(r){return od(this,r).has(r)}function nS(r,o){var u=od(this,r),m=u.size;return u.set(r,o),this.size+=u.size==m?0:1,this}Zr.prototype.clear=J1,Zr.prototype.delete=$1,Zr.prototype.get=tS,Zr.prototype.has=eS,Zr.prototype.set=nS;function eo(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Zr;++o<u;)this.add(r[o])}function rS(r){return this.__data__.set(r,d),this}function iS(r){return this.__data__.has(r)}eo.prototype.add=eo.prototype.push=rS,eo.prototype.has=iS;function mr(r){var o=this.__data__=new Yr(r);this.size=o.size}function oS(){this.__data__=new Yr,this.size=0}function sS(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function aS(r){return this.__data__.get(r)}function lS(r){return this.__data__.has(r)}function cS(r,o){var u=this.__data__;if(u instanceof Yr){var m=u.__data__;if(!Cs||m.length<s-1)return m.push([r,o]),this.size=++u.size,this;u=this.__data__=new Zr(m)}return u.set(r,o),this.size=u.size,this}mr.prototype.clear=oS,mr.prototype.delete=sS,mr.prototype.get=aS,mr.prototype.has=lS,mr.prototype.set=cS;function om(r,o){var u=Jt(r),m=!u&&so(r),S=!u&&!m&&Ti(r),I=!u&&!m&&!S&&Do(r),D=u||m||S||I,W=D?dh(r.length,_1):[],j=W.length;for(var gt in r)(o||We.call(r,gt))&&!(D&&(gt=="length"||S&&(gt=="offset"||gt=="parent")||I&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||$r(gt,j)))&&W.push(gt);return W}function sm(r){var o=r.length;return o?r[Th(0,o-1)]:n}function uS(r,o){return sd(Bn(r),no(o,0,r.length))}function dS(r){return sd(Bn(r))}function bh(r,o,u){(u!==n&&!br(r[o],u)||u===n&&!(o in r))&&jr(r,o,u)}function Es(r,o,u){var m=r[o];(!(We.call(r,o)&&br(m,u))||u===n&&!(o in r))&&jr(r,o,u)}function Xu(r,o){for(var u=r.length;u--;)if(br(r[u][0],o))return u;return-1}function fS(r,o,u,m){return Ai(r,function(S,I,D){o(m,S,u(S),D)}),m}function am(r,o){return r&&Ir(o,mn(o),r)}function hS(r,o){return r&&Ir(o,Vn(o),r)}function jr(r,o,u){o=="__proto__"&&Hu?Hu(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function _h(r,o){for(var u=-1,m=o.length,S=it(m),I=r==null;++u<m;)S[u]=I?n:$h(r,o[u]);return S}function no(r,o,u){return r===r&&(u!==n&&(r=r<=u?r:u),o!==n&&(r=r>=o?r:o)),r}function cr(r,o,u,m,S,I){var D,W=o&g,j=o&v,gt=o&b;if(u&&(D=S?u(r,m,S,I):u(r)),D!==n)return D;if(!tn(r))return r;var pt=Jt(r);if(pt){if(D=e2(r),!W)return Bn(r,D)}else{var _t=Tn(r),Ct=_t==ve||_t==Gt;if(Ti(r))return Om(r,W);if(_t==Ot||_t==Kt||Ct&&!S){if(D=j||Ct?{}:jm(r),!W)return j?GS(r,hS(D,r)):US(r,am(D,r))}else{if(!qe[_t])return S?r:{};D=n2(r,_t,W)}}I||(I=new mr);var Nt=I.get(r);if(Nt)return Nt;I.set(r,D),Cb(r)?r.forEach(function(Ht){D.add(cr(Ht,o,u,Ht,r,I))}):Sb(r)&&r.forEach(function(Ht,me){D.set(me,cr(Ht,o,u,me,r,I))});var Vt=gt?j?zh:Bh:j?Vn:mn,le=pt?n:Vt(r);return sr(le||r,function(Ht,me){le&&(me=Ht,Ht=r[me]),Es(D,me,cr(Ht,o,u,me,r,I))}),D}function gS(r){var o=mn(r);return function(u){return lm(u,r,o)}}function lm(r,o,u){var m=u.length;if(r==null)return!m;for(r=Ge(r);m--;){var S=u[m],I=o[S],D=r[S];if(D===n&&!(S in r)||!I(D))return!1}return!0}function cm(r,o,u){if(typeof r!="function")throw new ar(l);return Ds(function(){r.apply(n,u)},o)}function Is(r,o,u,m){var S=-1,I=Iu,D=!0,W=r.length,j=[],gt=o.length;if(!W)return j;u&&(o=Qe(o,Zn(u))),m?(I=oh,D=!1):o.length>=s&&(I=Ss,D=!1,o=new eo(o));t:for(;++S<W;){var pt=r[S],_t=u==null?pt:u(pt);if(pt=m||pt!==0?pt:0,D&&_t===_t){for(var Ct=gt;Ct--;)if(o[Ct]===_t)continue t;j.push(pt)}else I(o,_t,m)||j.push(pt)}return j}var Ai=Dm(Er),um=Dm(wh,!0);function pS(r,o){var u=!0;return Ai(r,function(m,S,I){return u=!!o(m,S,I),u}),u}function Yu(r,o,u){for(var m=-1,S=r.length;++m<S;){var I=r[m],D=o(I);if(D!=null&&(W===n?D===D&&!Qn(D):u(D,W)))var W=D,j=I}return j}function vS(r,o,u,m){var S=r.length;for(u=ie(u),u<0&&(u=-u>S?0:S+u),m=m===n||m>S?S:ie(m),m<0&&(m+=S),m=u>m?0:kb(m);u<m;)r[u++]=o;return r}function dm(r,o){var u=[];return Ai(r,function(m,S,I){o(m,S,I)&&u.push(m)}),u}function yn(r,o,u,m,S){var I=-1,D=r.length;for(u||(u=i2),S||(S=[]);++I<D;){var W=r[I];o>0&&u(W)?o>1?yn(W,o-1,u,m,S):wi(S,W):m||(S[S.length]=W)}return S}var yh=Fm(),fm=Fm(!0);function Er(r,o){return r&&yh(r,o,mn)}function wh(r,o){return r&&fm(r,o,mn)}function Zu(r,o){return yi(o,function(u){return ti(r[u])})}function ro(r,o){o=Pi(o,r);for(var u=0,m=o.length;r!=null&&u<m;)r=r[Or(o[u++])];return u&&u==m?r:n}function hm(r,o,u){var m=o(r);return Jt(r)?m:wi(m,u(r))}function On(r){return r==null?r===n?ne:Ke:$i&&$i in Ge(r)?JS(r):d2(r)}function xh(r,o){return r>o}function mS(r,o){return r!=null&&We.call(r,o)}function bS(r,o){return r!=null&&o in Ge(r)}function _S(r,o,u){return r>=kn(o,u)&&r<vn(o,u)}function Sh(r,o,u){for(var m=u?oh:Iu,S=r[0].length,I=r.length,D=I,W=it(I),j=1/0,gt=[];D--;){var pt=r[D];D&&o&&(pt=Qe(pt,Zn(o))),j=kn(pt.length,j),W[D]=!u&&(o||S>=120&&pt.length>=120)?new eo(D&&pt):n}pt=r[0];var _t=-1,Ct=W[0];t:for(;++_t<S&>.length<j;){var Nt=pt[_t],Vt=o?o(Nt):Nt;if(Nt=u||Nt!==0?Nt:0,!(Ct?Ss(Ct,Vt):m(gt,Vt,u))){for(D=I;--D;){var le=W[D];if(!(le?Ss(le,Vt):m(r[D],Vt,u)))continue t}Ct&&Ct.push(Vt),gt.push(Nt)}}return gt}function yS(r,o,u,m){return Er(r,function(S,I,D){o(m,u(S),I,D)}),m}function Os(r,o,u){o=Pi(o,r),r=tb(r,o);var m=r==null?r:r[Or(dr(o))];return m==null?n:Yn(m,r,u)}function gm(r){return rn(r)&&On(r)==Kt}function wS(r){return rn(r)&&On(r)==Me}function xS(r){return rn(r)&&On(r)==Rt}function Ns(r,o,u,m,S){return r===o?!0:r==null||o==null||!rn(r)&&!rn(o)?r!==r&&o!==o:SS(r,o,u,m,Ns,S)}function SS(r,o,u,m,S,I){var D=Jt(r),W=Jt(o),j=D?_e:Tn(r),gt=W?_e:Tn(o);j=j==Kt?Ot:j,gt=gt==Kt?Ot:gt;var pt=j==Ot,_t=gt==Ot,Ct=j==gt;if(Ct&&Ti(r)){if(!Ti(o))return!1;D=!0,pt=!1}if(Ct&&!pt)return I||(I=new mr),D||Do(r)?Xm(r,o,u,m,S,I):jS(r,o,j,u,m,S,I);if(!(u&y)){var Nt=pt&&We.call(r,"__wrapped__"),Vt=_t&&We.call(o,"__wrapped__");if(Nt||Vt){var le=Nt?r.value():r,Ht=Vt?o.value():o;return I||(I=new mr),S(le,Ht,u,m,I)}}return Ct?(I||(I=new mr),QS(r,o,u,m,S,I)):!1}function AS(r){return rn(r)&&Tn(r)==ue}function Ah(r,o,u,m){var S=u.length,I=S,D=!m;if(r==null)return!I;for(r=Ge(r);S--;){var W=u[S];if(D&&W[2]?W[1]!==r[W[0]]:!(W[0]in r))return!1}for(;++S<I;){W=u[S];var j=W[0],gt=r[j],pt=W[1];if(D&&W[2]){if(gt===n&&!(j in r))return!1}else{var _t=new mr;if(m)var Ct=m(gt,pt,j,r,o,_t);if(!(Ct===n?Ns(pt,gt,y|w,m,_t):Ct))return!1}}return!0}function pm(r){if(!tn(r)||s2(r))return!1;var o=ti(r)?A1:gx;return o.test(oo(r))}function CS(r){return rn(r)&&On(r)==ae}function PS(r){return rn(r)&&Tn(r)==we}function kS(r){return rn(r)&&fd(r.length)&&!!Xe[On(r)]}function vm(r){return typeof r=="function"?r:r==null?Hn:typeof r=="object"?Jt(r)?_m(r[0],r[1]):bm(r):Bb(r)}function Ch(r){if(!Ls(r))return I1(r);var o=[];for(var u in Ge(r))We.call(r,u)&&u!="constructor"&&o.push(u);return o}function TS(r){if(!tn(r))return u2(r);var o=Ls(r),u=[];for(var m in r)m=="constructor"&&(o||!We.call(r,m))||u.push(m);return u}function Ph(r,o){return r<o}function mm(r,o){var u=-1,m=zn(r)?it(r.length):[];return Ai(r,function(S,I,D){m[++u]=o(S,I,D)}),m}function bm(r){var o=Hh(r);return o.length==1&&o[0][2]?Jm(o[0][0],o[0][1]):function(u){return u===r||Ah(u,r,o)}}function _m(r,o){return Uh(r)&&Qm(o)?Jm(Or(r),o):function(u){var m=$h(u,r);return m===n&&m===o?tg(u,r):Ns(o,m,y|w)}}function ju(r,o,u,m,S){r!==o&&yh(o,function(I,D){if(S||(S=new mr),tn(I))ES(r,o,D,u,ju,m,S);else{var W=m?m(Kh(r,D),I,D+"",r,o,S):n;W===n&&(W=I),bh(r,D,W)}},Vn)}function ES(r,o,u,m,S,I,D){var W=Kh(r,u),j=Kh(o,u),gt=D.get(j);if(gt){bh(r,u,gt);return}var pt=I?I(W,j,u+"",r,o,D):n,_t=pt===n;if(_t){var Ct=Jt(j),Nt=!Ct&&Ti(j),Vt=!Ct&&!Nt&&Do(j);pt=j,Ct||Nt||Vt?Jt(W)?pt=W:ln(W)?pt=Bn(W):Nt?(_t=!1,pt=Om(j,!0)):Vt?(_t=!1,pt=Nm(j,!0)):pt=[]:Fs(j)||so(j)?(pt=W,so(W)?pt=Tb(W):(!tn(W)||ti(W))&&(pt=jm(j))):_t=!1}_t&&(D.set(j,pt),S(pt,j,m,I,D),D.delete(j)),bh(r,u,pt)}function ym(r,o){var u=r.length;if(u)return o+=o<0?u:0,$r(o,u)?r[o]:n}function wm(r,o,u){o.length?o=Qe(o,function(I){return Jt(I)?function(D){return ro(D,I.length===1?I[0]:I)}:I}):o=[Hn];var m=-1;o=Qe(o,Zn(Bt()));var S=mm(r,function(I,D,W){var j=Qe(o,function(gt){return gt(I)});return{criteria:j,index:++m,value:I}});return n1(S,function(I,D){return WS(I,D,u)})}function IS(r,o){return xm(r,o,function(u,m){return tg(r,m)})}function xm(r,o,u){for(var m=-1,S=o.length,I={};++m<S;){var D=o[m],W=ro(r,D);u(W,D)&&Rs(I,Pi(D,r),W)}return I}function OS(r){return function(o){return ro(o,r)}}function kh(r,o,u,m){var S=m?e1:Co,I=-1,D=o.length,W=r;for(r===o&&(o=Bn(o)),u&&(W=Qe(r,Zn(u)));++I<D;)for(var j=0,gt=o[I],pt=u?u(gt):gt;(j=S(W,pt,j,m))>-1;)W!==r&&Vu.call(W,j,1),Vu.call(r,j,1);return r}function Sm(r,o){for(var u=r?o.length:0,m=u-1;u--;){var S=o[u];if(u==m||S!==I){var I=S;$r(S)?Vu.call(r,S,1):Oh(r,S)}}return r}function Th(r,o){return r+Uu(rm()*(o-r+1))}function NS(r,o,u,m){for(var S=-1,I=vn(Wu((o-r)/(u||1)),0),D=it(I);I--;)D[m?I:++S]=r,r+=u;return D}function Eh(r,o){var u="";if(!r||o<1||o>ft)return u;do o%2&&(u+=r),o=Uu(o/2),o&&(r+=r);while(o);return u}function de(r,o){return qh($m(r,o,Hn),r+"")}function RS(r){return sm(Fo(r))}function MS(r,o){var u=Fo(r);return sd(u,no(o,0,u.length))}function Rs(r,o,u,m){if(!tn(r))return r;o=Pi(o,r);for(var S=-1,I=o.length,D=I-1,W=r;W!=null&&++S<I;){var j=Or(o[S]),gt=u;if(j==="__proto__"||j==="constructor"||j==="prototype")return r;if(S!=D){var pt=W[j];gt=m?m(pt,j,W):n,gt===n&&(gt=tn(pt)?pt:$r(o[S+1])?[]:{})}Es(W,j,gt),W=W[j]}return r}var Am=Gu?function(r,o){return Gu.set(r,o),r}:Hn,LS=Hu?function(r,o){return Hu(r,"toString",{configurable:!0,enumerable:!1,value:ng(o),writable:!0})}:Hn;function DS(r){return sd(Fo(r))}function ur(r,o,u){var m=-1,S=r.length;o<0&&(o=-o>S?0:S+o),u=u>S?S:u,u<0&&(u+=S),S=o>u?0:u-o>>>0,o>>>=0;for(var I=it(S);++m<S;)I[m]=r[m+o];return I}function FS(r,o){var u;return Ai(r,function(m,S,I){return u=o(m,S,I),!u}),!!u}function Qu(r,o,u){var m=0,S=r==null?m:r.length;if(typeof o=="number"&&o===o&&S<=wt){for(;m<S;){var I=m+S>>>1,D=r[I];D!==null&&!Qn(D)&&(u?D<=o:D<o)?m=I+1:S=I}return S}return Ih(r,o,Hn,u)}function Ih(r,o,u,m){var S=0,I=r==null?0:r.length;if(I===0)return 0;o=u(o);for(var D=o!==o,W=o===null,j=Qn(o),gt=o===n;S<I;){var pt=Uu((S+I)/2),_t=u(r[pt]),Ct=_t!==n,Nt=_t===null,Vt=_t===_t,le=Qn(_t);if(D)var Ht=m||Vt;else gt?Ht=Vt&&(m||Ct):W?Ht=Vt&&Ct&&(m||!Nt):j?Ht=Vt&&Ct&&!Nt&&(m||!le):Nt||le?Ht=!1:Ht=m?_t<=o:_t<o;Ht?S=pt+1:I=pt}return kn(I,st)}function Cm(r,o){for(var u=-1,m=r.length,S=0,I=[];++u<m;){var D=r[u],W=o?o(D):D;if(!u||!br(W,j)){var j=W;I[S++]=D===0?0:D}}return I}function Pm(r){return typeof r=="number"?r:Qn(r)?mt:+r}function jn(r){if(typeof r=="string")return r;if(Jt(r))return Qe(r,jn)+"";if(Qn(r))return im?im.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function Ci(r,o,u){var m=-1,S=Iu,I=r.length,D=!0,W=[],j=W;if(u)D=!1,S=oh;else if(I>=s){var gt=o?null:YS(r);if(gt)return Nu(gt);D=!1,S=Ss,j=new eo}else j=o?[]:W;t:for(;++m<I;){var pt=r[m],_t=o?o(pt):pt;if(pt=u||pt!==0?pt:0,D&&_t===_t){for(var Ct=j.length;Ct--;)if(j[Ct]===_t)continue t;o&&j.push(_t),W.push(pt)}else S(j,_t,u)||(j!==W&&j.push(_t),W.push(pt))}return W}function Oh(r,o){return o=Pi(o,r),r=tb(r,o),r==null||delete r[Or(dr(o))]}function km(r,o,u,m){return Rs(r,o,u(ro(r,o)),m)}function Ju(r,o,u,m){for(var S=r.length,I=m?S:-1;(m?I--:++I<S)&&o(r[I],I,r););return u?ur(r,m?0:I,m?I+1:S):ur(r,m?I+1:0,m?S:I)}function Tm(r,o){var u=r;return u instanceof Se&&(u=u.value()),sh(o,function(m,S){return S.func.apply(S.thisArg,wi([m],S.args))},u)}function Nh(r,o,u){var m=r.length;if(m<2)return m?Ci(r[0]):[];for(var S=-1,I=it(m);++S<m;)for(var D=r[S],W=-1;++W<m;)W!=S&&(I[S]=Is(I[S]||D,r[W],o,u));return Ci(yn(I,1),o,u)}function Em(r,o,u){for(var m=-1,S=r.length,I=o.length,D={};++m<S;){var W=m<I?o[m]:n;u(D,r[m],W)}return D}function Rh(r){return ln(r)?r:[]}function Mh(r){return typeof r=="function"?r:Hn}function Pi(r,o){return Jt(r)?r:Uh(r,o)?[r]:ib(He(r))}var BS=de;function ki(r,o,u){var m=r.length;return u=u===n?m:u,!o&&u>=m?r:ur(r,o,u)}var Im=C1||function(r){return _n.clearTimeout(r)};function Om(r,o){if(o)return r.slice();var u=r.length,m=Jv?Jv(u):new r.constructor(u);return r.copy(m),m}function Lh(r){var o=new r.constructor(r.byteLength);return new Bu(o).set(new Bu(r)),o}function zS(r,o){var u=o?Lh(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function VS(r){var o=new r.constructor(r.source,In.exec(r));return o.lastIndex=r.lastIndex,o}function HS(r){return Ts?Ge(Ts.call(r)):{}}function Nm(r,o){var u=o?Lh(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function Rm(r,o){if(r!==o){var u=r!==n,m=r===null,S=r===r,I=Qn(r),D=o!==n,W=o===null,j=o===o,gt=Qn(o);if(!W&&!gt&&!I&&r>o||I&&D&&j&&!W&&!gt||m&&D&&j||!u&&j||!S)return 1;if(!m&&!I&&!gt&&r<o||gt&&u&&S&&!m&&!I||W&&u&&S||!D&&S||!j)return-1}return 0}function WS(r,o,u){for(var m=-1,S=r.criteria,I=o.criteria,D=S.length,W=u.length;++m<D;){var j=Rm(S[m],I[m]);if(j){if(m>=W)return j;var gt=u[m];return j*(gt=="desc"?-1:1)}}return r.index-o.index}function Mm(r,o,u,m){for(var S=-1,I=r.length,D=u.length,W=-1,j=o.length,gt=vn(I-D,0),pt=it(j+gt),_t=!m;++W<j;)pt[W]=o[W];for(;++S<D;)(_t||S<I)&&(pt[u[S]]=r[S]);for(;gt--;)pt[W++]=r[S++];return pt}function Lm(r,o,u,m){for(var S=-1,I=r.length,D=-1,W=u.length,j=-1,gt=o.length,pt=vn(I-W,0),_t=it(pt+gt),Ct=!m;++S<pt;)_t[S]=r[S];for(var Nt=S;++j<gt;)_t[Nt+j]=o[j];for(;++D<W;)(Ct||S<I)&&(_t[Nt+u[D]]=r[S++]);return _t}function Bn(r,o){var u=-1,m=r.length;for(o||(o=it(m));++u<m;)o[u]=r[u];return o}function Ir(r,o,u,m){var S=!u;u||(u={});for(var I=-1,D=o.length;++I<D;){var W=o[I],j=m?m(u[W],r[W],W,u,r):n;j===n&&(j=r[W]),S?jr(u,W,j):Es(u,W,j)}return u}function US(r,o){return Ir(r,Wh(r),o)}function GS(r,o){return Ir(r,Ym(r),o)}function $u(r,o){return function(u,m){var S=Jt(u)?Zx:fS,I=o?o():{};return S(u,r,Bt(m,2),I)}}function Ro(r){return de(function(o,u){var m=-1,S=u.length,I=S>1?u[S-1]:n,D=S>2?u[2]:n;for(I=r.length>3&&typeof I=="function"?(S--,I):n,D&&Nn(u[0],u[1],D)&&(I=S<3?n:I,S=1),o=Ge(o);++m<S;){var W=u[m];W&&r(o,W,m,I)}return o})}function Dm(r,o){return function(u,m){if(u==null)return u;if(!zn(u))return r(u,m);for(var S=u.length,I=o?S:-1,D=Ge(u);(o?I--:++I<S)&&m(D[I],I,D)!==!1;);return u}}function Fm(r){return function(o,u,m){for(var S=-1,I=Ge(o),D=m(o),W=D.length;W--;){var j=D[r?W:++S];if(u(I[j],j,I)===!1)break}return o}}function KS(r,o,u){var m=o&x,S=Ms(r);function I(){var D=this&&this!==_n&&this instanceof I?S:r;return D.apply(m?u:this,arguments)}return I}function Bm(r){return function(o){o=He(o);var u=Po(o)?vr(o):n,m=u?u[0]:o.charAt(0),S=u?ki(u,1).join(""):o.slice(1);return m[r]()+S}}function Mo(r){return function(o){return sh(Db(Lb(o).replace(Lx,"")),r,"")}}function Ms(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=No(r.prototype),m=r.apply(u,o);return tn(m)?m:u}}function qS(r,o,u){var m=Ms(r);function S(){for(var I=arguments.length,D=it(I),W=I,j=Lo(S);W--;)D[W]=arguments[W];var gt=I<3&&D[0]!==j&&D[I-1]!==j?[]:xi(D,j);if(I-=gt.length,I<u)return Um(r,o,td,S.placeholder,n,D,gt,n,n,u-I);var pt=this&&this!==_n&&this instanceof S?m:r;return Yn(pt,this,D)}return S}function zm(r){return function(o,u,m){var S=Ge(o);if(!zn(o)){var I=Bt(u,3);o=mn(o),u=function(W){return I(S[W],W,S)}}var D=r(o,u,m);return D>-1?S[I?o[D]:D]:n}}function Vm(r){return Jr(function(o){var u=o.length,m=u,S=lr.prototype.thru;for(r&&o.reverse();m--;){var I=o[m];if(typeof I!="function")throw new ar(l);if(S&&!D&&id(I)=="wrapper")var D=new lr([],!0)}for(m=D?m:u;++m<u;){I=o[m];var W=id(I),j=W=="wrapper"?Vh(I):n;j&&Gh(j[0])&&j[1]==(N|R|B|H)&&!j[4].length&&j[9]==1?D=D[id(j[0])].apply(D,j[3]):D=I.length==1&&Gh(I)?D[W]():D.thru(I)}return function(){var gt=arguments,pt=gt[0];if(D&>.length==1&&Jt(pt))return D.plant(pt).value();for(var _t=0,Ct=u?o[_t].apply(this,gt):pt;++_t<u;)Ct=o[_t].call(this,Ct);return Ct}})}function td(r,o,u,m,S,I,D,W,j,gt){var pt=o&N,_t=o&x,Ct=o&C,Nt=o&(R|O),Vt=o&X,le=Ct?n:Ms(r);function Ht(){for(var me=arguments.length,Ae=it(me),Jn=me;Jn--;)Ae[Jn]=arguments[Jn];if(Nt)var Rn=Lo(Ht),$n=i1(Ae,Rn);if(m&&(Ae=Mm(Ae,m,S,Nt)),I&&(Ae=Lm(Ae,I,D,Nt)),me-=$n,Nt&&me<gt){var cn=xi(Ae,Rn);return Um(r,o,td,Ht.placeholder,u,Ae,cn,W,j,gt-me)}var _r=_t?u:this,ni=Ct?_r[r]:r;return me=Ae.length,W?Ae=f2(Ae,W):Vt&&me>1&&Ae.reverse(),pt&&j<me&&(Ae.length=j),this&&this!==_n&&this instanceof Ht&&(ni=le||Ms(ni)),ni.apply(_r,Ae)}return Ht}function Hm(r,o){return function(u,m){return yS(u,r,o(m),{})}}function ed(r,o){return function(u,m){var S;if(u===n&&m===n)return o;if(u!==n&&(S=u),m!==n){if(S===n)return m;typeof u=="string"||typeof m=="string"?(u=jn(u),m=jn(m)):(u=Pm(u),m=Pm(m)),S=r(u,m)}return S}}function Dh(r){return Jr(function(o){return o=Qe(o,Zn(Bt())),de(function(u){var m=this;return r(o,function(S){return Yn(S,m,u)})})})}function nd(r,o){o=o===n?" ":jn(o);var u=o.length;if(u<2)return u?Eh(o,r):o;var m=Eh(o,Wu(r/ko(o)));return Po(o)?ki(vr(m),0,r).join(""):m.slice(0,r)}function XS(r,o,u,m){var S=o&x,I=Ms(r);function D(){for(var W=-1,j=arguments.length,gt=-1,pt=m.length,_t=it(pt+j),Ct=this&&this!==_n&&this instanceof D?I:r;++gt<pt;)_t[gt]=m[gt];for(;j--;)_t[gt++]=arguments[++W];return Yn(Ct,S?u:this,_t)}return D}function Wm(r){return function(o,u,m){return m&&typeof m!="number"&&Nn(o,u,m)&&(u=m=n),o=ei(o),u===n?(u=o,o=0):u=ei(u),m=m===n?o<u?1:-1:ei(m),NS(o,u,m,r)}}function rd(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=fr(o),u=fr(u)),r(o,u)}}function Um(r,o,u,m,S,I,D,W,j,gt){var pt=o&R,_t=pt?D:n,Ct=pt?n:D,Nt=pt?I:n,Vt=pt?n:I;o|=pt?B:V,o&=~(pt?V:B),o&T||(o&=-4);var le=[r,o,S,Nt,_t,Vt,Ct,W,j,gt],Ht=u.apply(n,le);return Gh(r)&&eb(Ht,le),Ht.placeholder=m,nb(Ht,r,o)}function Fh(r){var o=pn[r];return function(u,m){if(u=fr(u),m=m==null?0:kn(ie(m),292),m&&nm(u)){var S=(He(u)+"e").split("e"),I=o(S[0]+"e"+(+S[1]+m));return S=(He(I)+"e").split("e"),+(S[0]+"e"+(+S[1]-m))}return o(u)}}var YS=Io&&1/Nu(new Io([,-0]))[1]==dt?function(r){return new Io(r)}:og;function Gm(r){return function(o){var u=Tn(o);return u==ue?hh(o):u==we?d1(o):r1(o,r(o))}}function Qr(r,o,u,m,S,I,D,W){var j=o&C;if(!j&&typeof r!="function")throw new ar(l);var gt=m?m.length:0;if(gt||(o&=-97,m=S=n),D=D===n?D:vn(ie(D),0),W=W===n?W:ie(W),gt-=S?S.length:0,o&V){var pt=m,_t=S;m=S=n}var Ct=j?n:Vh(r),Nt=[r,o,u,m,S,pt,_t,I,D,W];if(Ct&&c2(Nt,Ct),r=Nt[0],o=Nt[1],u=Nt[2],m=Nt[3],S=Nt[4],W=Nt[9]=Nt[9]===n?j?0:r.length:vn(Nt[9]-gt,0),!W&&o&(R|O)&&(o&=-25),!o||o==x)var Vt=KS(r,o,u);else o==R||o==O?Vt=qS(r,o,W):(o==B||o==(x|B))&&!S.length?Vt=XS(r,o,u,m):Vt=td.apply(n,Nt);var le=Ct?Am:eb;return nb(le(Vt,Nt),r,o)}function Km(r,o,u,m){return r===n||br(r,Eo[u])&&!We.call(m,u)?o:r}function qm(r,o,u,m,S,I){return tn(r)&&tn(o)&&(I.set(o,r),ju(r,o,n,qm,I),I.delete(o)),r}function ZS(r){return Fs(r)?n:r}function Xm(r,o,u,m,S,I){var D=u&y,W=r.length,j=o.length;if(W!=j&&!(D&&j>W))return!1;var gt=I.get(r),pt=I.get(o);if(gt&&pt)return gt==o&&pt==r;var _t=-1,Ct=!0,Nt=u&w?new eo:n;for(I.set(r,o),I.set(o,r);++_t<W;){var Vt=r[_t],le=o[_t];if(m)var Ht=D?m(le,Vt,_t,o,r,I):m(Vt,le,_t,r,o,I);if(Ht!==n){if(Ht)continue;Ct=!1;break}if(Nt){if(!ah(o,function(me,Ae){if(!Ss(Nt,Ae)&&(Vt===me||S(Vt,me,u,m,I)))return Nt.push(Ae)})){Ct=!1;break}}else if(!(Vt===le||S(Vt,le,u,m,I))){Ct=!1;break}}return I.delete(r),I.delete(o),Ct}function jS(r,o,u,m,S,I,D){switch(u){case Ie:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Me:return!(r.byteLength!=o.byteLength||!I(new Bu(r),new Bu(o)));case ye:case Rt:case Ee:return br(+r,+o);case pe:return r.name==o.name&&r.message==o.message;case ae:case xe:return r==o+"";case ue:var W=hh;case we:var j=m&y;if(W||(W=Nu),r.size!=o.size&&!j)return!1;var gt=D.get(r);if(gt)return gt==o;m|=w,D.set(r,o);var pt=Xm(W(r),W(o),m,S,I,D);return D.delete(r),pt;case zt:if(Ts)return Ts.call(r)==Ts.call(o)}return!1}function QS(r,o,u,m,S,I){var D=u&y,W=Bh(r),j=W.length,gt=Bh(o),pt=gt.length;if(j!=pt&&!D)return!1;for(var _t=j;_t--;){var Ct=W[_t];if(!(D?Ct in o:We.call(o,Ct)))return!1}var Nt=I.get(r),Vt=I.get(o);if(Nt&&Vt)return Nt==o&&Vt==r;var le=!0;I.set(r,o),I.set(o,r);for(var Ht=D;++_t<j;){Ct=W[_t];var me=r[Ct],Ae=o[Ct];if(m)var Jn=D?m(Ae,me,Ct,o,r,I):m(me,Ae,Ct,r,o,I);if(!(Jn===n?me===Ae||S(me,Ae,u,m,I):Jn)){le=!1;break}Ht||(Ht=Ct=="constructor")}if(le&&!Ht){var Rn=r.constructor,$n=o.constructor;Rn!=$n&&"constructor"in r&&"constructor"in o&&!(typeof Rn=="function"&&Rn instanceof Rn&&typeof $n=="function"&&$n instanceof $n)&&(le=!1)}return I.delete(r),I.delete(o),le}function Jr(r){return qh($m(r,n,lb),r+"")}function Bh(r){return hm(r,mn,Wh)}function zh(r){return hm(r,Vn,Ym)}var Vh=Gu?function(r){return Gu.get(r)}:og;function id(r){for(var o=r.name+"",u=Oo[o],m=We.call(Oo,o)?u.length:0;m--;){var S=u[m],I=S.func;if(I==null||I==r)return S.name}return o}function Lo(r){var o=We.call(P,"placeholder")?P:r;return o.placeholder}function Bt(){var r=P.iteratee||rg;return r=r===rg?vm:r,arguments.length?r(arguments[0],arguments[1]):r}function od(r,o){var u=r.__data__;return o2(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Hh(r){for(var o=mn(r),u=o.length;u--;){var m=o[u],S=r[m];o[u]=[m,S,Qm(S)]}return o}function io(r,o){var u=l1(r,o);return pm(u)?u:n}function JS(r){var o=We.call(r,$i),u=r[$i];try{r[$i]=n;var m=!0}catch{}var S=Du.call(r);return m&&(o?r[$i]=u:delete r[$i]),S}var Wh=ph?function(r){return r==null?[]:(r=Ge(r),yi(ph(r),function(o){return tm.call(r,o)}))}:sg,Ym=ph?function(r){for(var o=[];r;)wi(o,Wh(r)),r=zu(r);return o}:sg,Tn=On;(vh&&Tn(new vh(new ArrayBuffer(1)))!=Ie||Cs&&Tn(new Cs)!=ue||mh&&Tn(mh.resolve())!=Ft||Io&&Tn(new Io)!=we||Ps&&Tn(new Ps)!=re)&&(Tn=function(r){var o=On(r),u=o==Ot?r.constructor:n,m=u?oo(u):"";if(m)switch(m){case M1:return Ie;case L1:return ue;case D1:return Ft;case F1:return we;case B1:return re}return o});function $S(r,o,u){for(var m=-1,S=u.length;++m<S;){var I=u[m],D=I.size;switch(I.type){case"drop":r+=D;break;case"dropRight":o-=D;break;case"take":o=kn(o,r+D);break;case"takeRight":r=vn(r,o-D);break}}return{start:r,end:o}}function t2(r){var o=r.match(Tr);return o?o[1].split(Qi):[]}function Zm(r,o,u){o=Pi(o,r);for(var m=-1,S=o.length,I=!1;++m<S;){var D=Or(o[m]);if(!(I=r!=null&&u(r,D)))break;r=r[D]}return I||++m!=S?I:(S=r==null?0:r.length,!!S&&fd(S)&&$r(D,S)&&(Jt(r)||so(r)))}function e2(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&We.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function jm(r){return typeof r.constructor=="function"&&!Ls(r)?No(zu(r)):{}}function n2(r,o,u){var m=r.constructor;switch(o){case Me:return Lh(r);case ye:case Rt:return new m(+r);case Ie:return zS(r,u);case Je:case sn:case an:case Ue:case Ce:case Ve:case un:case Dt:case $t:return Nm(r,u);case ue:return new m;case Ee:case xe:return new m(r);case ae:return VS(r);case we:return new m;case zt:return HS(r)}}function r2(r,o){var u=o.length;if(!u)return r;var m=u-1;return o[m]=(u>1?"& ":"")+o[m],o=o.join(u>2?", ":" "),r.replace(pr,`{
|
|
418
|
+
/* [wrapped with `+o+`] */
|
|
419
|
+
`)}function i2(r){return Jt(r)||so(r)||!!(em&&r&&r[em])}function $r(r,o){var u=typeof r;return o=o??ft,!!o&&(u=="number"||u!="symbol"&&vx.test(r))&&r>-1&&r%1==0&&r<o}function Nn(r,o,u){if(!tn(u))return!1;var m=typeof o;return(m=="number"?zn(u)&&$r(o,u.length):m=="string"&&o in u)?br(u[o],r):!1}function Uh(r,o){if(Jt(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Qn(r)?!0:gr.test(r)||!Fn.test(r)||o!=null&&r in Ge(o)}function o2(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Gh(r){var o=id(r),u=P[o];if(typeof u!="function"||!(o in Se.prototype))return!1;if(r===u)return!0;var m=Vh(u);return!!m&&r===m[0]}function s2(r){return!!Qv&&Qv in r}var a2=Mu?ti:ag;function Ls(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Eo;return r===u}function Qm(r){return r===r&&!tn(r)}function Jm(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==n||r in Ge(u))}}function l2(r){var o=ud(r,function(m){return u.size===h&&u.clear(),m}),u=o.cache;return o}function c2(r,o){var u=r[1],m=o[1],S=u|m,I=S<(x|C|N),D=m==N&&u==R||m==N&&u==H&&r[7].length<=o[8]||m==(N|H)&&o[7].length<=o[8]&&u==R;if(!(I||D))return r;m&x&&(r[2]=o[2],S|=u&x?0:T);var W=o[3];if(W){var j=r[3];r[3]=j?Mm(j,W,o[4]):W,r[4]=j?xi(r[3],p):o[4]}return W=o[5],W&&(j=r[5],r[5]=j?Lm(j,W,o[6]):W,r[6]=j?xi(r[5],p):o[6]),W=o[7],W&&(r[7]=W),m&N&&(r[8]=r[8]==null?o[8]:kn(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=S,r}function u2(r){var o=[];if(r!=null)for(var u in Ge(r))o.push(u);return o}function d2(r){return Du.call(r)}function $m(r,o,u){return o=vn(o===n?r.length-1:o,0),function(){for(var m=arguments,S=-1,I=vn(m.length-o,0),D=it(I);++S<I;)D[S]=m[o+S];S=-1;for(var W=it(o+1);++S<o;)W[S]=m[S];return W[o]=u(D),Yn(r,this,W)}}function tb(r,o){return o.length<2?r:ro(r,ur(o,0,-1))}function f2(r,o){for(var u=r.length,m=kn(o.length,u),S=Bn(r);m--;){var I=o[m];r[m]=$r(I,u)?S[I]:n}return r}function Kh(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var eb=rb(Am),Ds=k1||function(r,o){return _n.setTimeout(r,o)},qh=rb(LS);function nb(r,o,u){var m=o+"";return qh(r,r2(m,h2(t2(m),u)))}function rb(r){var o=0,u=0;return function(){var m=O1(),S=nt-(m-u);if(u=m,S>0){if(++o>=U)return arguments[0]}else o=0;return r.apply(n,arguments)}}function sd(r,o){var u=-1,m=r.length,S=m-1;for(o=o===n?m:o;++u<o;){var I=Th(u,S),D=r[I];r[I]=r[u],r[u]=D}return r.length=o,r}var ib=l2(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Re,function(u,m,S,I){o.push(S?I.replace(Cn,"$1"):m||u)}),o});function Or(r){if(typeof r=="string"||Qn(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function oo(r){if(r!=null){try{return Lu.call(r)}catch{}try{return r+""}catch{}}return""}function h2(r,o){return sr(It,function(u){var m="_."+u[0];o&u[1]&&!Iu(r,m)&&r.push(m)}),r.sort()}function ob(r){if(r instanceof Se)return r.clone();var o=new lr(r.__wrapped__,r.__chain__);return o.__actions__=Bn(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function g2(r,o,u){(u?Nn(r,o,u):o===n)?o=1:o=vn(ie(o),0);var m=r==null?0:r.length;if(!m||o<1)return[];for(var S=0,I=0,D=it(Wu(m/o));S<m;)D[I++]=ur(r,S,S+=o);return D}function p2(r){for(var o=-1,u=r==null?0:r.length,m=0,S=[];++o<u;){var I=r[o];I&&(S[m++]=I)}return S}function v2(){var r=arguments.length;if(!r)return[];for(var o=it(r-1),u=arguments[0],m=r;m--;)o[m-1]=arguments[m];return wi(Jt(u)?Bn(u):[u],yn(o,1))}var m2=de(function(r,o){return ln(r)?Is(r,yn(o,1,ln,!0)):[]}),b2=de(function(r,o){var u=dr(o);return ln(u)&&(u=n),ln(r)?Is(r,yn(o,1,ln,!0),Bt(u,2)):[]}),_2=de(function(r,o){var u=dr(o);return ln(u)&&(u=n),ln(r)?Is(r,yn(o,1,ln,!0),n,u):[]});function y2(r,o,u){var m=r==null?0:r.length;return m?(o=u||o===n?1:ie(o),ur(r,o<0?0:o,m)):[]}function w2(r,o,u){var m=r==null?0:r.length;return m?(o=u||o===n?1:ie(o),o=m-o,ur(r,0,o<0?0:o)):[]}function x2(r,o){return r&&r.length?Ju(r,Bt(o,3),!0,!0):[]}function S2(r,o){return r&&r.length?Ju(r,Bt(o,3),!0):[]}function A2(r,o,u,m){var S=r==null?0:r.length;return S?(u&&typeof u!="number"&&Nn(r,o,u)&&(u=0,m=S),vS(r,o,u,m)):[]}function sb(r,o,u){var m=r==null?0:r.length;if(!m)return-1;var S=u==null?0:ie(u);return S<0&&(S=vn(m+S,0)),Ou(r,Bt(o,3),S)}function ab(r,o,u){var m=r==null?0:r.length;if(!m)return-1;var S=m-1;return u!==n&&(S=ie(u),S=u<0?vn(m+S,0):kn(S,m-1)),Ou(r,Bt(o,3),S,!0)}function lb(r){var o=r==null?0:r.length;return o?yn(r,1):[]}function C2(r){var o=r==null?0:r.length;return o?yn(r,dt):[]}function P2(r,o){var u=r==null?0:r.length;return u?(o=o===n?1:ie(o),yn(r,o)):[]}function k2(r){for(var o=-1,u=r==null?0:r.length,m={};++o<u;){var S=r[o];m[S[0]]=S[1]}return m}function cb(r){return r&&r.length?r[0]:n}function T2(r,o,u){var m=r==null?0:r.length;if(!m)return-1;var S=u==null?0:ie(u);return S<0&&(S=vn(m+S,0)),Co(r,o,S)}function E2(r){var o=r==null?0:r.length;return o?ur(r,0,-1):[]}var I2=de(function(r){var o=Qe(r,Rh);return o.length&&o[0]===r[0]?Sh(o):[]}),O2=de(function(r){var o=dr(r),u=Qe(r,Rh);return o===dr(u)?o=n:u.pop(),u.length&&u[0]===r[0]?Sh(u,Bt(o,2)):[]}),N2=de(function(r){var o=dr(r),u=Qe(r,Rh);return o=typeof o=="function"?o:n,o&&u.pop(),u.length&&u[0]===r[0]?Sh(u,n,o):[]});function R2(r,o){return r==null?"":E1.call(r,o)}function dr(r){var o=r==null?0:r.length;return o?r[o-1]:n}function M2(r,o,u){var m=r==null?0:r.length;if(!m)return-1;var S=m;return u!==n&&(S=ie(u),S=S<0?vn(m+S,0):kn(S,m-1)),o===o?h1(r,o,S):Ou(r,Uv,S,!0)}function L2(r,o){return r&&r.length?ym(r,ie(o)):n}var D2=de(ub);function ub(r,o){return r&&r.length&&o&&o.length?kh(r,o):r}function F2(r,o,u){return r&&r.length&&o&&o.length?kh(r,o,Bt(u,2)):r}function B2(r,o,u){return r&&r.length&&o&&o.length?kh(r,o,n,u):r}var z2=Jr(function(r,o){var u=r==null?0:r.length,m=_h(r,o);return Sm(r,Qe(o,function(S){return $r(S,u)?+S:S}).sort(Rm)),m});function V2(r,o){var u=[];if(!(r&&r.length))return u;var m=-1,S=[],I=r.length;for(o=Bt(o,3);++m<I;){var D=r[m];o(D,m,r)&&(u.push(D),S.push(m))}return Sm(r,S),u}function Xh(r){return r==null?r:R1.call(r)}function H2(r,o,u){var m=r==null?0:r.length;return m?(u&&typeof u!="number"&&Nn(r,o,u)?(o=0,u=m):(o=o==null?0:ie(o),u=u===n?m:ie(u)),ur(r,o,u)):[]}function W2(r,o){return Qu(r,o)}function U2(r,o,u){return Ih(r,o,Bt(u,2))}function G2(r,o){var u=r==null?0:r.length;if(u){var m=Qu(r,o);if(m<u&&br(r[m],o))return m}return-1}function K2(r,o){return Qu(r,o,!0)}function q2(r,o,u){return Ih(r,o,Bt(u,2),!0)}function X2(r,o){var u=r==null?0:r.length;if(u){var m=Qu(r,o,!0)-1;if(br(r[m],o))return m}return-1}function Y2(r){return r&&r.length?Cm(r):[]}function Z2(r,o){return r&&r.length?Cm(r,Bt(o,2)):[]}function j2(r){var o=r==null?0:r.length;return o?ur(r,1,o):[]}function Q2(r,o,u){return r&&r.length?(o=u||o===n?1:ie(o),ur(r,0,o<0?0:o)):[]}function J2(r,o,u){var m=r==null?0:r.length;return m?(o=u||o===n?1:ie(o),o=m-o,ur(r,o<0?0:o,m)):[]}function $2(r,o){return r&&r.length?Ju(r,Bt(o,3),!1,!0):[]}function tA(r,o){return r&&r.length?Ju(r,Bt(o,3)):[]}var eA=de(function(r){return Ci(yn(r,1,ln,!0))}),nA=de(function(r){var o=dr(r);return ln(o)&&(o=n),Ci(yn(r,1,ln,!0),Bt(o,2))}),rA=de(function(r){var o=dr(r);return o=typeof o=="function"?o:n,Ci(yn(r,1,ln,!0),n,o)});function iA(r){return r&&r.length?Ci(r):[]}function oA(r,o){return r&&r.length?Ci(r,Bt(o,2)):[]}function sA(r,o){return o=typeof o=="function"?o:n,r&&r.length?Ci(r,n,o):[]}function Yh(r){if(!(r&&r.length))return[];var o=0;return r=yi(r,function(u){if(ln(u))return o=vn(u.length,o),!0}),dh(o,function(u){return Qe(r,lh(u))})}function db(r,o){if(!(r&&r.length))return[];var u=Yh(r);return o==null?u:Qe(u,function(m){return Yn(o,n,m)})}var aA=de(function(r,o){return ln(r)?Is(r,o):[]}),lA=de(function(r){return Nh(yi(r,ln))}),cA=de(function(r){var o=dr(r);return ln(o)&&(o=n),Nh(yi(r,ln),Bt(o,2))}),uA=de(function(r){var o=dr(r);return o=typeof o=="function"?o:n,Nh(yi(r,ln),n,o)}),dA=de(Yh);function fA(r,o){return Em(r||[],o||[],Es)}function hA(r,o){return Em(r||[],o||[],Rs)}var gA=de(function(r){var o=r.length,u=o>1?r[o-1]:n;return u=typeof u=="function"?(r.pop(),u):n,db(r,u)});function fb(r){var o=P(r);return o.__chain__=!0,o}function pA(r,o){return o(r),r}function ad(r,o){return o(r)}var vA=Jr(function(r){var o=r.length,u=o?r[0]:0,m=this.__wrapped__,S=function(I){return _h(I,r)};return o>1||this.__actions__.length||!(m instanceof Se)||!$r(u)?this.thru(S):(m=m.slice(u,+u+(o?1:0)),m.__actions__.push({func:ad,args:[S],thisArg:n}),new lr(m,this.__chain__).thru(function(I){return o&&!I.length&&I.push(n),I}))});function mA(){return fb(this)}function bA(){return new lr(this.value(),this.__chain__)}function _A(){this.__values__===n&&(this.__values__=Pb(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function yA(){return this}function wA(r){for(var o,u=this;u instanceof qu;){var m=ob(u);m.__index__=0,m.__values__=n,o?S.__wrapped__=m:o=m;var S=m;u=u.__wrapped__}return S.__wrapped__=r,o}function xA(){var r=this.__wrapped__;if(r instanceof Se){var o=r;return this.__actions__.length&&(o=new Se(this)),o=o.reverse(),o.__actions__.push({func:ad,args:[Xh],thisArg:n}),new lr(o,this.__chain__)}return this.thru(Xh)}function SA(){return Tm(this.__wrapped__,this.__actions__)}var AA=$u(function(r,o,u){We.call(r,u)?++r[u]:jr(r,u,1)});function CA(r,o,u){var m=Jt(r)?Hv:pS;return u&&Nn(r,o,u)&&(o=n),m(r,Bt(o,3))}function PA(r,o){var u=Jt(r)?yi:dm;return u(r,Bt(o,3))}var kA=zm(sb),TA=zm(ab);function EA(r,o){return yn(ld(r,o),1)}function IA(r,o){return yn(ld(r,o),dt)}function OA(r,o,u){return u=u===n?1:ie(u),yn(ld(r,o),u)}function hb(r,o){var u=Jt(r)?sr:Ai;return u(r,Bt(o,3))}function gb(r,o){var u=Jt(r)?jx:um;return u(r,Bt(o,3))}var NA=$u(function(r,o,u){We.call(r,u)?r[u].push(o):jr(r,u,[o])});function RA(r,o,u,m){r=zn(r)?r:Fo(r),u=u&&!m?ie(u):0;var S=r.length;return u<0&&(u=vn(S+u,0)),hd(r)?u<=S&&r.indexOf(o,u)>-1:!!S&&Co(r,o,u)>-1}var MA=de(function(r,o,u){var m=-1,S=typeof o=="function",I=zn(r)?it(r.length):[];return Ai(r,function(D){I[++m]=S?Yn(o,D,u):Os(D,o,u)}),I}),LA=$u(function(r,o,u){jr(r,u,o)});function ld(r,o){var u=Jt(r)?Qe:mm;return u(r,Bt(o,3))}function DA(r,o,u,m){return r==null?[]:(Jt(o)||(o=o==null?[]:[o]),u=m?n:u,Jt(u)||(u=u==null?[]:[u]),wm(r,o,u))}var FA=$u(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function BA(r,o,u){var m=Jt(r)?sh:Kv,S=arguments.length<3;return m(r,Bt(o,4),u,S,Ai)}function zA(r,o,u){var m=Jt(r)?Qx:Kv,S=arguments.length<3;return m(r,Bt(o,4),u,S,um)}function VA(r,o){var u=Jt(r)?yi:dm;return u(r,dd(Bt(o,3)))}function HA(r){var o=Jt(r)?sm:RS;return o(r)}function WA(r,o,u){(u?Nn(r,o,u):o===n)?o=1:o=ie(o);var m=Jt(r)?uS:MS;return m(r,o)}function UA(r){var o=Jt(r)?dS:DS;return o(r)}function GA(r){if(r==null)return 0;if(zn(r))return hd(r)?ko(r):r.length;var o=Tn(r);return o==ue||o==we?r.size:Ch(r).length}function KA(r,o,u){var m=Jt(r)?ah:FS;return u&&Nn(r,o,u)&&(o=n),m(r,Bt(o,3))}var qA=de(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Nn(r,o[0],o[1])?o=[]:u>2&&Nn(o[0],o[1],o[2])&&(o=[o[0]]),wm(r,yn(o,1),[])}),cd=P1||function(){return _n.Date.now()};function XA(r,o){if(typeof o!="function")throw new ar(l);return r=ie(r),function(){if(--r<1)return o.apply(this,arguments)}}function pb(r,o,u){return o=u?n:o,o=r&&o==null?r.length:o,Qr(r,N,n,n,n,n,o)}function vb(r,o){var u;if(typeof o!="function")throw new ar(l);return r=ie(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=n),u}}var Zh=de(function(r,o,u){var m=x;if(u.length){var S=xi(u,Lo(Zh));m|=B}return Qr(r,m,o,u,S)}),mb=de(function(r,o,u){var m=x|C;if(u.length){var S=xi(u,Lo(mb));m|=B}return Qr(o,m,r,u,S)});function bb(r,o,u){o=u?n:o;var m=Qr(r,R,n,n,n,n,n,o);return m.placeholder=bb.placeholder,m}function _b(r,o,u){o=u?n:o;var m=Qr(r,O,n,n,n,n,n,o);return m.placeholder=_b.placeholder,m}function yb(r,o,u){var m,S,I,D,W,j,gt=0,pt=!1,_t=!1,Ct=!0;if(typeof r!="function")throw new ar(l);o=fr(o)||0,tn(u)&&(pt=!!u.leading,_t="maxWait"in u,I=_t?vn(fr(u.maxWait)||0,o):I,Ct="trailing"in u?!!u.trailing:Ct);function Nt(cn){var _r=m,ni=S;return m=S=n,gt=cn,D=r.apply(ni,_r),D}function Vt(cn){return gt=cn,W=Ds(me,o),pt?Nt(cn):D}function le(cn){var _r=cn-j,ni=cn-gt,zb=o-_r;return _t?kn(zb,I-ni):zb}function Ht(cn){var _r=cn-j,ni=cn-gt;return j===n||_r>=o||_r<0||_t&&ni>=I}function me(){var cn=cd();if(Ht(cn))return Ae(cn);W=Ds(me,le(cn))}function Ae(cn){return W=n,Ct&&m?Nt(cn):(m=S=n,D)}function Jn(){W!==n&&Im(W),gt=0,m=j=S=W=n}function Rn(){return W===n?D:Ae(cd())}function $n(){var cn=cd(),_r=Ht(cn);if(m=arguments,S=this,j=cn,_r){if(W===n)return Vt(j);if(_t)return Im(W),W=Ds(me,o),Nt(j)}return W===n&&(W=Ds(me,o)),D}return $n.cancel=Jn,$n.flush=Rn,$n}var YA=de(function(r,o){return cm(r,1,o)}),ZA=de(function(r,o,u){return cm(r,fr(o)||0,u)});function jA(r){return Qr(r,X)}function ud(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new ar(l);var u=function(){var m=arguments,S=o?o.apply(this,m):m[0],I=u.cache;if(I.has(S))return I.get(S);var D=r.apply(this,m);return u.cache=I.set(S,D)||I,D};return u.cache=new(ud.Cache||Zr),u}ud.Cache=Zr;function dd(r){if(typeof r!="function")throw new ar(l);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function QA(r){return vb(2,r)}var JA=BS(function(r,o){o=o.length==1&&Jt(o[0])?Qe(o[0],Zn(Bt())):Qe(yn(o,1),Zn(Bt()));var u=o.length;return de(function(m){for(var S=-1,I=kn(m.length,u);++S<I;)m[S]=o[S].call(this,m[S]);return Yn(r,this,m)})}),jh=de(function(r,o){var u=xi(o,Lo(jh));return Qr(r,B,n,o,u)}),wb=de(function(r,o){var u=xi(o,Lo(wb));return Qr(r,V,n,o,u)}),$A=Jr(function(r,o){return Qr(r,H,n,n,n,o)});function tC(r,o){if(typeof r!="function")throw new ar(l);return o=o===n?o:ie(o),de(r,o)}function eC(r,o){if(typeof r!="function")throw new ar(l);return o=o==null?0:vn(ie(o),0),de(function(u){var m=u[o],S=ki(u,0,o);return m&&wi(S,m),Yn(r,this,S)})}function nC(r,o,u){var m=!0,S=!0;if(typeof r!="function")throw new ar(l);return tn(u)&&(m="leading"in u?!!u.leading:m,S="trailing"in u?!!u.trailing:S),yb(r,o,{leading:m,maxWait:o,trailing:S})}function rC(r){return pb(r,1)}function iC(r,o){return jh(Mh(o),r)}function oC(){if(!arguments.length)return[];var r=arguments[0];return Jt(r)?r:[r]}function sC(r){return cr(r,b)}function aC(r,o){return o=typeof o=="function"?o:n,cr(r,b,o)}function lC(r){return cr(r,g|b)}function cC(r,o){return o=typeof o=="function"?o:n,cr(r,g|b,o)}function uC(r,o){return o==null||lm(r,o,mn(o))}function br(r,o){return r===o||r!==r&&o!==o}var dC=rd(xh),fC=rd(function(r,o){return r>=o}),so=gm(function(){return arguments}())?gm:function(r){return rn(r)&&We.call(r,"callee")&&!tm.call(r,"callee")},Jt=it.isArray,hC=Lv?Zn(Lv):wS;function zn(r){return r!=null&&fd(r.length)&&!ti(r)}function ln(r){return rn(r)&&zn(r)}function gC(r){return r===!0||r===!1||rn(r)&&On(r)==ye}var Ti=T1||ag,pC=Dv?Zn(Dv):xS;function vC(r){return rn(r)&&r.nodeType===1&&!Fs(r)}function mC(r){if(r==null)return!0;if(zn(r)&&(Jt(r)||typeof r=="string"||typeof r.splice=="function"||Ti(r)||Do(r)||so(r)))return!r.length;var o=Tn(r);if(o==ue||o==we)return!r.size;if(Ls(r))return!Ch(r).length;for(var u in r)if(We.call(r,u))return!1;return!0}function bC(r,o){return Ns(r,o)}function _C(r,o,u){u=typeof u=="function"?u:n;var m=u?u(r,o):n;return m===n?Ns(r,o,n,u):!!m}function Qh(r){if(!rn(r))return!1;var o=On(r);return o==pe||o==Xt||typeof r.message=="string"&&typeof r.name=="string"&&!Fs(r)}function yC(r){return typeof r=="number"&&nm(r)}function ti(r){if(!tn(r))return!1;var o=On(r);return o==ve||o==Gt||o==ze||o==Ne}function xb(r){return typeof r=="number"&&r==ie(r)}function fd(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ft}function tn(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function rn(r){return r!=null&&typeof r=="object"}var Sb=Fv?Zn(Fv):AS;function wC(r,o){return r===o||Ah(r,o,Hh(o))}function xC(r,o,u){return u=typeof u=="function"?u:n,Ah(r,o,Hh(o),u)}function SC(r){return Ab(r)&&r!=+r}function AC(r){if(a2(r))throw new Zt(a);return pm(r)}function CC(r){return r===null}function PC(r){return r==null}function Ab(r){return typeof r=="number"||rn(r)&&On(r)==Ee}function Fs(r){if(!rn(r)||On(r)!=Ot)return!1;var o=zu(r);if(o===null)return!0;var u=We.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&Lu.call(u)==x1}var Jh=Bv?Zn(Bv):CS;function kC(r){return xb(r)&&r>=-9007199254740991&&r<=ft}var Cb=zv?Zn(zv):PS;function hd(r){return typeof r=="string"||!Jt(r)&&rn(r)&&On(r)==xe}function Qn(r){return typeof r=="symbol"||rn(r)&&On(r)==zt}var Do=Vv?Zn(Vv):kS;function TC(r){return r===n}function EC(r){return rn(r)&&Tn(r)==re}function IC(r){return rn(r)&&On(r)==on}var OC=rd(Ph),NC=rd(function(r,o){return r<=o});function Pb(r){if(!r)return[];if(zn(r))return hd(r)?vr(r):Bn(r);if(As&&r[As])return u1(r[As]());var o=Tn(r),u=o==ue?hh:o==we?Nu:Fo;return u(r)}function ei(r){if(!r)return r===0?r:0;if(r=fr(r),r===dt||r===-1/0){var o=r<0?-1:1;return o*yt}return r===r?r:0}function ie(r){var o=ei(r),u=o%1;return o===o?u?o-u:o:0}function kb(r){return r?no(ie(r),0,ot):0}function fr(r){if(typeof r=="number")return r;if(Qn(r))return mt;if(tn(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=tn(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=qv(r);var u=Qf.test(r);return u||px.test(r)?Xx(r.slice(2),u?2:8):_i.test(r)?mt:+r}function Tb(r){return Ir(r,Vn(r))}function RC(r){return r?no(ie(r),-9007199254740991,ft):r===0?r:0}function He(r){return r==null?"":jn(r)}var MC=Ro(function(r,o){if(Ls(o)||zn(o)){Ir(o,mn(o),r);return}for(var u in o)We.call(o,u)&&Es(r,u,o[u])}),Eb=Ro(function(r,o){Ir(o,Vn(o),r)}),gd=Ro(function(r,o,u,m){Ir(o,Vn(o),r,m)}),LC=Ro(function(r,o,u,m){Ir(o,mn(o),r,m)}),DC=Jr(_h);function FC(r,o){var u=No(r);return o==null?u:am(u,o)}var BC=de(function(r,o){r=Ge(r);var u=-1,m=o.length,S=m>2?o[2]:n;for(S&&Nn(o[0],o[1],S)&&(m=1);++u<m;)for(var I=o[u],D=Vn(I),W=-1,j=D.length;++W<j;){var gt=D[W],pt=r[gt];(pt===n||br(pt,Eo[gt])&&!We.call(r,gt))&&(r[gt]=I[gt])}return r}),zC=de(function(r){return r.push(n,qm),Yn(Ib,n,r)});function VC(r,o){return Wv(r,Bt(o,3),Er)}function HC(r,o){return Wv(r,Bt(o,3),wh)}function WC(r,o){return r==null?r:yh(r,Bt(o,3),Vn)}function UC(r,o){return r==null?r:fm(r,Bt(o,3),Vn)}function GC(r,o){return r&&Er(r,Bt(o,3))}function KC(r,o){return r&&wh(r,Bt(o,3))}function qC(r){return r==null?[]:Zu(r,mn(r))}function XC(r){return r==null?[]:Zu(r,Vn(r))}function $h(r,o,u){var m=r==null?n:ro(r,o);return m===n?u:m}function YC(r,o){return r!=null&&Zm(r,o,mS)}function tg(r,o){return r!=null&&Zm(r,o,bS)}var ZC=Hm(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=Du.call(o)),r[o]=u},ng(Hn)),jC=Hm(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=Du.call(o)),We.call(r,o)?r[o].push(u):r[o]=[u]},Bt),QC=de(Os);function mn(r){return zn(r)?om(r):Ch(r)}function Vn(r){return zn(r)?om(r,!0):TS(r)}function JC(r,o){var u={};return o=Bt(o,3),Er(r,function(m,S,I){jr(u,o(m,S,I),m)}),u}function $C(r,o){var u={};return o=Bt(o,3),Er(r,function(m,S,I){jr(u,S,o(m,S,I))}),u}var tP=Ro(function(r,o,u){ju(r,o,u)}),Ib=Ro(function(r,o,u,m){ju(r,o,u,m)}),eP=Jr(function(r,o){var u={};if(r==null)return u;var m=!1;o=Qe(o,function(I){return I=Pi(I,r),m||(m=I.length>1),I}),Ir(r,zh(r),u),m&&(u=cr(u,g|v|b,ZS));for(var S=o.length;S--;)Oh(u,o[S]);return u});function nP(r,o){return Ob(r,dd(Bt(o)))}var rP=Jr(function(r,o){return r==null?{}:IS(r,o)});function Ob(r,o){if(r==null)return{};var u=Qe(zh(r),function(m){return[m]});return o=Bt(o),xm(r,u,function(m,S){return o(m,S[0])})}function iP(r,o,u){o=Pi(o,r);var m=-1,S=o.length;for(S||(S=1,r=n);++m<S;){var I=r==null?n:r[Or(o[m])];I===n&&(m=S,I=u),r=ti(I)?I.call(r):I}return r}function oP(r,o,u){return r==null?r:Rs(r,o,u)}function sP(r,o,u,m){return m=typeof m=="function"?m:n,r==null?r:Rs(r,o,u,m)}var Nb=Gm(mn),Rb=Gm(Vn);function aP(r,o,u){var m=Jt(r),S=m||Ti(r)||Do(r);if(o=Bt(o,4),u==null){var I=r&&r.constructor;S?u=m?new I:[]:tn(r)?u=ti(I)?No(zu(r)):{}:u={}}return(S?sr:Er)(r,function(D,W,j){return o(u,D,W,j)}),u}function lP(r,o){return r==null?!0:Oh(r,o)}function cP(r,o,u){return r==null?r:km(r,o,Mh(u))}function uP(r,o,u,m){return m=typeof m=="function"?m:n,r==null?r:km(r,o,Mh(u),m)}function Fo(r){return r==null?[]:fh(r,mn(r))}function dP(r){return r==null?[]:fh(r,Vn(r))}function fP(r,o,u){return u===n&&(u=o,o=n),u!==n&&(u=fr(u),u=u===u?u:0),o!==n&&(o=fr(o),o=o===o?o:0),no(fr(r),o,u)}function hP(r,o,u){return o=ei(o),u===n?(u=o,o=0):u=ei(u),r=fr(r),_S(r,o,u)}function gP(r,o,u){if(u&&typeof u!="boolean"&&Nn(r,o,u)&&(o=u=n),u===n&&(typeof o=="boolean"?(u=o,o=n):typeof r=="boolean"&&(u=r,r=n)),r===n&&o===n?(r=0,o=1):(r=ei(r),o===n?(o=r,r=0):o=ei(o)),r>o){var m=r;r=o,o=m}if(u||r%1||o%1){var S=rm();return kn(r+S*(o-r+qx("1e-"+((S+"").length-1))),o)}return Th(r,o)}var pP=Mo(function(r,o,u){return o=o.toLowerCase(),r+(u?Mb(o):o)});function Mb(r){return eg(He(r).toLowerCase())}function Lb(r){return r=He(r),r&&r.replace(mx,o1).replace(Dx,"")}function vP(r,o,u){r=He(r),o=jn(o);var m=r.length;u=u===n?m:no(ie(u),0,m);var S=u;return u-=o.length,u>=0&&r.slice(u,S)==o}function mP(r){return r=He(r),r&&De.test(r)?r.replace(nn,s1):r}function bP(r){return r=He(r),r&&$e.test(r)?r.replace(Ut,"\\$&"):r}var _P=Mo(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),yP=Mo(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),wP=Bm("toLowerCase");function xP(r,o,u){r=He(r),o=ie(o);var m=o?ko(r):0;if(!o||m>=o)return r;var S=(o-m)/2;return nd(Uu(S),u)+r+nd(Wu(S),u)}function SP(r,o,u){r=He(r),o=ie(o);var m=o?ko(r):0;return o&&m<o?r+nd(o-m,u):r}function AP(r,o,u){r=He(r),o=ie(o);var m=o?ko(r):0;return o&&m<o?nd(o-m,u)+r:r}function CP(r,o,u){return u||o==null?o=0:o&&(o=+o),N1(He(r).replace(dn,""),o||0)}function PP(r,o,u){return(u?Nn(r,o,u):o===n)?o=1:o=ie(o),Eh(He(r),o)}function kP(){var r=arguments,o=He(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var TP=Mo(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function EP(r,o,u){return u&&typeof u!="number"&&Nn(r,o,u)&&(o=u=n),u=u===n?ot:u>>>0,u?(r=He(r),r&&(typeof o=="string"||o!=null&&!Jh(o))&&(o=jn(o),!o&&Po(r))?ki(vr(r),0,u):r.split(o,u)):[]}var IP=Mo(function(r,o,u){return r+(u?" ":"")+eg(o)});function OP(r,o,u){return r=He(r),u=u==null?0:no(ie(u),0,r.length),o=jn(o),r.slice(u,u+o.length)==o}function NP(r,o,u){var m=P.templateSettings;u&&Nn(r,o,u)&&(o=n),r=He(r),o=gd({},o,m,Km);var S=gd({},o.imports,m.imports,Km),I=mn(S),D=fh(S,I),W,j,gt=0,pt=o.interpolate||ku,_t="__p += '",Ct=gh((o.escape||ku).source+"|"+pt.source+"|"+(pt===gn?Pn:ku).source+"|"+(o.evaluate||ku).source+"|$","g"),Nt="//# sourceURL="+(We.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hx+"]")+`
|
|
420
|
+
`;r.replace(Ct,function(Ht,me,Ae,Jn,Rn,$n){return Ae||(Ae=Jn),_t+=r.slice(gt,$n).replace(bx,a1),me&&(W=!0,_t+=`' +
|
|
421
|
+
__e(`+me+`) +
|
|
422
|
+
'`),Rn&&(j=!0,_t+=`';
|
|
423
|
+
`+Rn+`;
|
|
424
|
+
__p += '`),Ae&&(_t+=`' +
|
|
425
|
+
((__t = (`+Ae+`)) == null ? '' : __t) +
|
|
426
|
+
'`),gt=$n+Ht.length,Ht}),_t+=`';
|
|
427
|
+
`;var Vt=We.call(o,"variable")&&o.variable;if(!Vt)_t=`with (obj) {
|
|
428
|
+
`+_t+`
|
|
429
|
+
}
|
|
430
|
+
`;else if(bi.test(Vt))throw new Zt(c);_t=(j?_t.replace(Pe,""):_t).replace(fn,"$1").replace(ke,"$1;"),_t="function("+(Vt||"obj")+`) {
|
|
431
|
+
`+(Vt?"":`obj || (obj = {});
|
|
432
|
+
`)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
|
|
433
|
+
function print() { __p += __j.call(arguments, '') }
|
|
434
|
+
`:`;
|
|
435
|
+
`)+_t+`return __p
|
|
436
|
+
}`;var le=Fb(function(){return Fe(I,Nt+"return "+_t).apply(n,D)});if(le.source=_t,Qh(le))throw le;return le}function RP(r){return He(r).toLowerCase()}function MP(r){return He(r).toUpperCase()}function LP(r,o,u){if(r=He(r),r&&(u||o===n))return qv(r);if(!r||!(o=jn(o)))return r;var m=vr(r),S=vr(o),I=Xv(m,S),D=Yv(m,S)+1;return ki(m,I,D).join("")}function DP(r,o,u){if(r=He(r),r&&(u||o===n))return r.slice(0,jv(r)+1);if(!r||!(o=jn(o)))return r;var m=vr(r),S=Yv(m,vr(o))+1;return ki(m,0,S).join("")}function FP(r,o,u){if(r=He(r),r&&(u||o===n))return r.replace(dn,"");if(!r||!(o=jn(o)))return r;var m=vr(r),S=Xv(m,vr(o));return ki(m,S).join("")}function BP(r,o){var u=tt,m=et;if(tn(o)){var S="separator"in o?o.separator:S;u="length"in o?ie(o.length):u,m="omission"in o?jn(o.omission):m}r=He(r);var I=r.length;if(Po(r)){var D=vr(r);I=D.length}if(u>=I)return r;var W=u-ko(m);if(W<1)return m;var j=D?ki(D,0,W).join(""):r.slice(0,W);if(S===n)return j+m;if(D&&(W+=j.length-W),Jh(S)){if(r.slice(W).search(S)){var gt,pt=j;for(S.global||(S=gh(S.source,He(In.exec(S))+"g")),S.lastIndex=0;gt=S.exec(pt);)var _t=gt.index;j=j.slice(0,_t===n?W:_t)}}else if(r.indexOf(jn(S),W)!=W){var Ct=j.lastIndexOf(S);Ct>-1&&(j=j.slice(0,Ct))}return j+m}function zP(r){return r=He(r),r&&Le.test(r)?r.replace(Yt,g1):r}var VP=Mo(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),eg=Bm("toUpperCase");function Db(r,o,u){return r=He(r),o=u?n:o,o===n?c1(r)?m1(r):t1(r):r.match(o)||[]}var Fb=de(function(r,o){try{return Yn(r,n,o)}catch(u){return Qh(u)?u:new Zt(u)}}),HP=Jr(function(r,o){return sr(o,function(u){u=Or(u),jr(r,u,Zh(r[u],r))}),r});function WP(r){var o=r==null?0:r.length,u=Bt();return r=o?Qe(r,function(m){if(typeof m[1]!="function")throw new ar(l);return[u(m[0]),m[1]]}):[],de(function(m){for(var S=-1;++S<o;){var I=r[S];if(Yn(I[0],this,m))return Yn(I[1],this,m)}})}function UP(r){return gS(cr(r,g))}function ng(r){return function(){return r}}function GP(r,o){return r==null||r!==r?o:r}var KP=Vm(),qP=Vm(!0);function Hn(r){return r}function rg(r){return vm(typeof r=="function"?r:cr(r,g))}function XP(r){return bm(cr(r,g))}function YP(r,o){return _m(r,cr(o,g))}var ZP=de(function(r,o){return function(u){return Os(u,r,o)}}),jP=de(function(r,o){return function(u){return Os(r,u,o)}});function ig(r,o,u){var m=mn(o),S=Zu(o,m);u==null&&!(tn(o)&&(S.length||!m.length))&&(u=o,o=r,r=this,S=Zu(o,mn(o)));var I=!(tn(u)&&"chain"in u)||!!u.chain,D=ti(r);return sr(S,function(W){var j=o[W];r[W]=j,D&&(r.prototype[W]=function(){var gt=this.__chain__;if(I||gt){var pt=r(this.__wrapped__),_t=pt.__actions__=Bn(this.__actions__);return _t.push({func:j,args:arguments,thisArg:r}),pt.__chain__=gt,pt}return j.apply(r,wi([this.value()],arguments))})}),r}function QP(){return _n._===this&&(_n._=S1),this}function og(){}function JP(r){return r=ie(r),de(function(o){return ym(o,r)})}var $P=Dh(Qe),tk=Dh(Hv),ek=Dh(ah);function Bb(r){return Uh(r)?lh(Or(r)):OS(r)}function nk(r){return function(o){return r==null?n:ro(r,o)}}var rk=Wm(),ik=Wm(!0);function sg(){return[]}function ag(){return!1}function ok(){return{}}function sk(){return""}function ak(){return!0}function lk(r,o){if(r=ie(r),r<1||r>ft)return[];var u=ot,m=kn(r,ot);o=Bt(o),r-=ot;for(var S=dh(m,o);++u<r;)o(u);return S}function ck(r){return Jt(r)?Qe(r,Or):Qn(r)?[r]:Bn(ib(He(r)))}function uk(r){var o=++w1;return He(r)+o}var dk=ed(function(r,o){return r+o},0),fk=Fh("ceil"),hk=ed(function(r,o){return r/o},1),gk=Fh("floor");function pk(r){return r&&r.length?Yu(r,Hn,xh):n}function vk(r,o){return r&&r.length?Yu(r,Bt(o,2),xh):n}function mk(r){return Gv(r,Hn)}function bk(r,o){return Gv(r,Bt(o,2))}function _k(r){return r&&r.length?Yu(r,Hn,Ph):n}function yk(r,o){return r&&r.length?Yu(r,Bt(o,2),Ph):n}var wk=ed(function(r,o){return r*o},1),xk=Fh("round"),Sk=ed(function(r,o){return r-o},0);function Ak(r){return r&&r.length?uh(r,Hn):0}function Ck(r,o){return r&&r.length?uh(r,Bt(o,2)):0}return P.after=XA,P.ary=pb,P.assign=MC,P.assignIn=Eb,P.assignInWith=gd,P.assignWith=LC,P.at=DC,P.before=vb,P.bind=Zh,P.bindAll=HP,P.bindKey=mb,P.castArray=oC,P.chain=fb,P.chunk=g2,P.compact=p2,P.concat=v2,P.cond=WP,P.conforms=UP,P.constant=ng,P.countBy=AA,P.create=FC,P.curry=bb,P.curryRight=_b,P.debounce=yb,P.defaults=BC,P.defaultsDeep=zC,P.defer=YA,P.delay=ZA,P.difference=m2,P.differenceBy=b2,P.differenceWith=_2,P.drop=y2,P.dropRight=w2,P.dropRightWhile=x2,P.dropWhile=S2,P.fill=A2,P.filter=PA,P.flatMap=EA,P.flatMapDeep=IA,P.flatMapDepth=OA,P.flatten=lb,P.flattenDeep=C2,P.flattenDepth=P2,P.flip=jA,P.flow=KP,P.flowRight=qP,P.fromPairs=k2,P.functions=qC,P.functionsIn=XC,P.groupBy=NA,P.initial=E2,P.intersection=I2,P.intersectionBy=O2,P.intersectionWith=N2,P.invert=ZC,P.invertBy=jC,P.invokeMap=MA,P.iteratee=rg,P.keyBy=LA,P.keys=mn,P.keysIn=Vn,P.map=ld,P.mapKeys=JC,P.mapValues=$C,P.matches=XP,P.matchesProperty=YP,P.memoize=ud,P.merge=tP,P.mergeWith=Ib,P.method=ZP,P.methodOf=jP,P.mixin=ig,P.negate=dd,P.nthArg=JP,P.omit=eP,P.omitBy=nP,P.once=QA,P.orderBy=DA,P.over=$P,P.overArgs=JA,P.overEvery=tk,P.overSome=ek,P.partial=jh,P.partialRight=wb,P.partition=FA,P.pick=rP,P.pickBy=Ob,P.property=Bb,P.propertyOf=nk,P.pull=D2,P.pullAll=ub,P.pullAllBy=F2,P.pullAllWith=B2,P.pullAt=z2,P.range=rk,P.rangeRight=ik,P.rearg=$A,P.reject=VA,P.remove=V2,P.rest=tC,P.reverse=Xh,P.sampleSize=WA,P.set=oP,P.setWith=sP,P.shuffle=UA,P.slice=H2,P.sortBy=qA,P.sortedUniq=Y2,P.sortedUniqBy=Z2,P.split=EP,P.spread=eC,P.tail=j2,P.take=Q2,P.takeRight=J2,P.takeRightWhile=$2,P.takeWhile=tA,P.tap=pA,P.throttle=nC,P.thru=ad,P.toArray=Pb,P.toPairs=Nb,P.toPairsIn=Rb,P.toPath=ck,P.toPlainObject=Tb,P.transform=aP,P.unary=rC,P.union=eA,P.unionBy=nA,P.unionWith=rA,P.uniq=iA,P.uniqBy=oA,P.uniqWith=sA,P.unset=lP,P.unzip=Yh,P.unzipWith=db,P.update=cP,P.updateWith=uP,P.values=Fo,P.valuesIn=dP,P.without=aA,P.words=Db,P.wrap=iC,P.xor=lA,P.xorBy=cA,P.xorWith=uA,P.zip=dA,P.zipObject=fA,P.zipObjectDeep=hA,P.zipWith=gA,P.entries=Nb,P.entriesIn=Rb,P.extend=Eb,P.extendWith=gd,ig(P,P),P.add=dk,P.attempt=Fb,P.camelCase=pP,P.capitalize=Mb,P.ceil=fk,P.clamp=fP,P.clone=sC,P.cloneDeep=lC,P.cloneDeepWith=cC,P.cloneWith=aC,P.conformsTo=uC,P.deburr=Lb,P.defaultTo=GP,P.divide=hk,P.endsWith=vP,P.eq=br,P.escape=mP,P.escapeRegExp=bP,P.every=CA,P.find=kA,P.findIndex=sb,P.findKey=VC,P.findLast=TA,P.findLastIndex=ab,P.findLastKey=HC,P.floor=gk,P.forEach=hb,P.forEachRight=gb,P.forIn=WC,P.forInRight=UC,P.forOwn=GC,P.forOwnRight=KC,P.get=$h,P.gt=dC,P.gte=fC,P.has=YC,P.hasIn=tg,P.head=cb,P.identity=Hn,P.includes=RA,P.indexOf=T2,P.inRange=hP,P.invoke=QC,P.isArguments=so,P.isArray=Jt,P.isArrayBuffer=hC,P.isArrayLike=zn,P.isArrayLikeObject=ln,P.isBoolean=gC,P.isBuffer=Ti,P.isDate=pC,P.isElement=vC,P.isEmpty=mC,P.isEqual=bC,P.isEqualWith=_C,P.isError=Qh,P.isFinite=yC,P.isFunction=ti,P.isInteger=xb,P.isLength=fd,P.isMap=Sb,P.isMatch=wC,P.isMatchWith=xC,P.isNaN=SC,P.isNative=AC,P.isNil=PC,P.isNull=CC,P.isNumber=Ab,P.isObject=tn,P.isObjectLike=rn,P.isPlainObject=Fs,P.isRegExp=Jh,P.isSafeInteger=kC,P.isSet=Cb,P.isString=hd,P.isSymbol=Qn,P.isTypedArray=Do,P.isUndefined=TC,P.isWeakMap=EC,P.isWeakSet=IC,P.join=R2,P.kebabCase=_P,P.last=dr,P.lastIndexOf=M2,P.lowerCase=yP,P.lowerFirst=wP,P.lt=OC,P.lte=NC,P.max=pk,P.maxBy=vk,P.mean=mk,P.meanBy=bk,P.min=_k,P.minBy=yk,P.stubArray=sg,P.stubFalse=ag,P.stubObject=ok,P.stubString=sk,P.stubTrue=ak,P.multiply=wk,P.nth=L2,P.noConflict=QP,P.noop=og,P.now=cd,P.pad=xP,P.padEnd=SP,P.padStart=AP,P.parseInt=CP,P.random=gP,P.reduce=BA,P.reduceRight=zA,P.repeat=PP,P.replace=kP,P.result=iP,P.round=xk,P.runInContext=Y,P.sample=HA,P.size=GA,P.snakeCase=TP,P.some=KA,P.sortedIndex=W2,P.sortedIndexBy=U2,P.sortedIndexOf=G2,P.sortedLastIndex=K2,P.sortedLastIndexBy=q2,P.sortedLastIndexOf=X2,P.startCase=IP,P.startsWith=OP,P.subtract=Sk,P.sum=Ak,P.sumBy=Ck,P.template=NP,P.times=lk,P.toFinite=ei,P.toInteger=ie,P.toLength=kb,P.toLower=RP,P.toNumber=fr,P.toSafeInteger=RC,P.toString=He,P.toUpper=MP,P.trim=LP,P.trimEnd=DP,P.trimStart=FP,P.truncate=BP,P.unescape=zP,P.uniqueId=uk,P.upperCase=VP,P.upperFirst=eg,P.each=hb,P.eachRight=gb,P.first=cb,ig(P,function(){var r={};return Er(P,function(o,u){We.call(P.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),P.VERSION=i,sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){P[r].placeholder=P}),sr(["drop","take"],function(r,o){Se.prototype[r]=function(u){u=u===n?1:vn(ie(u),0);var m=this.__filtered__&&!o?new Se(this):this.clone();return m.__filtered__?m.__takeCount__=kn(u,m.__takeCount__):m.__views__.push({size:kn(u,ot),type:r+(m.__dir__<0?"Right":"")}),m},Se.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),sr(["filter","map","takeWhile"],function(r,o){var u=o+1,m=u==Z||u==rt;Se.prototype[r]=function(S){var I=this.clone();return I.__iteratees__.push({iteratee:Bt(S,3),type:u}),I.__filtered__=I.__filtered__||m,I}}),sr(["head","last"],function(r,o){var u="take"+(o?"Right":"");Se.prototype[r]=function(){return this[u](1).value()[0]}}),sr(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");Se.prototype[r]=function(){return this.__filtered__?new Se(this):this[u](1)}}),Se.prototype.compact=function(){return this.filter(Hn)},Se.prototype.find=function(r){return this.filter(r).head()},Se.prototype.findLast=function(r){return this.reverse().find(r)},Se.prototype.invokeMap=de(function(r,o){return typeof r=="function"?new Se(this):this.map(function(u){return Os(u,r,o)})}),Se.prototype.reject=function(r){return this.filter(dd(Bt(r)))},Se.prototype.slice=function(r,o){r=ie(r);var u=this;return u.__filtered__&&(r>0||o<0)?new Se(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==n&&(o=ie(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},Se.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Se.prototype.toArray=function(){return this.take(ot)},Er(Se.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),m=/^(?:head|last)$/.test(o),S=P[m?"take"+(o=="last"?"Right":""):o],I=m||/^find/.test(o);S&&(P.prototype[o]=function(){var D=this.__wrapped__,W=m?[1]:arguments,j=D instanceof Se,gt=W[0],pt=j||Jt(D),_t=function(me){var Ae=S.apply(P,wi([me],W));return m&&Ct?Ae[0]:Ae};pt&&u&&typeof gt=="function"&>.length!=1&&(j=pt=!1);var Ct=this.__chain__,Nt=!!this.__actions__.length,Vt=I&&!Ct,le=j&&!Nt;if(!I&&pt){D=le?D:new Se(this);var Ht=r.apply(D,W);return Ht.__actions__.push({func:ad,args:[_t],thisArg:n}),new lr(Ht,Ct)}return Vt&&le?r.apply(this,W):(Ht=this.thru(_t),Vt?m?Ht.value()[0]:Ht.value():Ht)})}),sr(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ru[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);P.prototype[r]=function(){var S=arguments;if(m&&!this.__chain__){var I=this.value();return o.apply(Jt(I)?I:[],S)}return this[u](function(D){return o.apply(Jt(D)?D:[],S)})}}),Er(Se.prototype,function(r,o){var u=P[o];if(u){var m=u.name+"";We.call(Oo,m)||(Oo[m]=[]),Oo[m].push({name:o,func:u})}}),Oo[td(n,C).name]=[{name:"wrapper",func:n}],Se.prototype.clone=z1,Se.prototype.reverse=V1,Se.prototype.value=H1,P.prototype.at=vA,P.prototype.chain=mA,P.prototype.commit=bA,P.prototype.next=_A,P.prototype.plant=wA,P.prototype.reverse=xA,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=SA,P.prototype.first=P.prototype.head,As&&(P.prototype[As]=yA),P},To=b1();Ji?((Ji.exports=To)._=To,rh._=To):_n._=To}).call(Lr)})(tf,tf.exports);var a4=tf.exports;const j_=K0(a4);function l4(e,t){const n=e.target.value;/^#[0-9A-Fa-f]{6}$/.test(n)&&M(t,n,!0)}function Q_(e){e.stopPropagation(),e.preventDefault()}function c4(e,t,n){e.stopPropagation(),e.preventDefault(),M(t,!f(t)),f(t)&&setTimeout(n,0)}function J_(e,t){e.key==="Escape"&&t()}var u4=(e,t,n)=>t(f(n)),d4=J('<button type="button"></button>'),f4=J('<div id="color-picker-panel" tabindex="-1"><div class="flex items-center justify-between border-b px-3 py-2"><h3 class="text-sm font-medium">Color</h3> <!></div> <div class="p-3"><div class="space-y-3"><div class="relative h-28 cursor-crosshair rounded"><div class="absolute h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-md"></div></div> <div class="relative h-4 cursor-pointer rounded" style="background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"><div class="absolute top-0 h-full w-1 -translate-x-1/2 border-x border-white shadow-sm"></div></div> <div class="flex items-center gap-2"><div class="h-6 w-6 rounded border"></div> <input type="text" class="bg-background flex-1 rounded border px-2 py-1 text-xs uppercase"/></div> <div class="space-y-1"><div class="flex items-center justify-between text-xs"><span>Opacity</span> <span> </span></div> <!></div> <div class="space-y-1"><div class="text-xs">Presets</div> <div class="grid grid-cols-8 gap-1"></div></div></div> <div class="mt-3 flex justify-end gap-2"><!> <!></div></div></div>'),h4=J('<div class="relative inline-block"><button type="button" class="m-0 border-0 bg-transparent p-0" tabindex="0"><!></button> <!></div>');function Cz(e,t){ct(t,!0);let n=k(t,"initialColor",3,"#ff0000"),i=k(t,"initialAlpha",3,1),s=k(t,"position",3,"right"),a=bt(!1),l,c=bt(Sn(n())),d=bt(Sn(i()));const h=["#ff0000","#ff8000","#ffff00","#80ff00","#00ff00","#00ffff","#0080ff","#0000ff","#8000ff","#ff00ff","#ff0080","#ffffff","#cccccc","#888888","#444444","#000000"];let p,g,v=bt(0),b=bt(100),y=bt(50);be(()=>{if(f(c).startsWith("#")){const[Z,Q,rt]=w(f(c));M(v,Z,!0),M(b,Q,!0),M(y,rt,!0)}}),be(()=>{M(c,x(f(v),f(b),f(y)),!0)});function w(Z){Z=Z.replace(/^#/,"");const Q=parseInt(Z.slice(0,2),16)/255,rt=parseInt(Z.slice(2,4),16)/255,dt=parseInt(Z.slice(4,6),16)/255,ft=Math.max(Q,rt,dt),yt=Math.min(Q,rt,dt),mt=(ft+yt)/2;let ot=0,st=0;if(ft!==yt){const wt=ft-yt;switch(st=mt>.5?wt/(2-ft-yt):wt/(ft+yt),ft){case Q:ot=((rt-dt)/wt+(rt<dt?6:0))/6;break;case rt:ot=((dt-Q)/wt+2)/6;break;case dt:ot=((Q-rt)/wt+4)/6;break}}return[Math.round(ot*360),Math.round(st*100),Math.round(mt*100)]}function x(Z,Q,rt){Z/=360,Q/=100,rt/=100;let dt,ft,yt;if(Q===0)dt=ft=yt=rt;else{const st=rt<.5?rt*(1+Q):rt+Q-rt*Q,wt=2*rt-st;dt=mt(wt,st,Z+1/3),ft=mt(wt,st,Z),yt=mt(wt,st,Z-1/3)}function mt(st,wt,It){return It<0&&(It+=1),It>1&&(It-=1),It<1/6?st+(wt-st)*6*It:It<1/2?wt:It<2/3?st+(wt-st)*(2/3-It)*6:st}const ot=st=>{const wt=Math.round(st*255).toString(16);return wt.length===1?"0"+wt:wt};return`#${ot(dt)}${ot(ft)}${ot(yt)}`}function C(Z){if(!p)return;const Q=p.getBoundingClientRect(),rt=Math.max(0,Math.min(1,(Z.clientX-Q.left)/Q.width)),dt=Math.max(0,Math.min(1,(Z.clientY-Q.top)/Q.height));if(M(b,Math.round(rt*100),!0),M(y,Math.round((1-dt)*100),!0),Z.buttons!==1&&Z.type!=="mousedown")return;const ft=yt=>C(yt);document.addEventListener("mousemove",ft),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",ft)},{once:!0})}function T(Z){if(!g)return;const Q=g.getBoundingClientRect(),rt=Math.max(0,Math.min(1,(Z.clientX-Q.left)/Q.width));if(M(v,Math.round(rt*360),!0),Z.buttons!==1&&Z.type!=="mousedown")return;const dt=ft=>T(ft);document.addEventListener("mousemove",dt),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",dt)},{once:!0})}function R(Z){M(c,Z,!0)}function O(Z){M(d,Z[0],!0)}function B(){t.onChange&&t.onChange(f(c),f(d)),M(a,!1)}function V(){M(a,!1)}function N(){function Z(rt){if(f(a)&&l){const dt=document.getElementById("color-picker-panel");dt&&!dt.contains(rt.target)&&!l.contains(rt.target)&&M(a,!1)}}document.addEventListener("mousedown",Z);const Q=()=>H();return window.addEventListener("resize",Q),{destroy:()=>{document.removeEventListener("mousedown",Z),window.removeEventListener("resize",Q)}}}function H(){l&&requestAnimationFrame(()=>{const Z=document.getElementById("color-picker-panel");if(!Z)return;const Q=l.getBoundingClientRect(),rt=window.innerWidth,dt=window.innerHeight,ft=Z.offsetWidth,yt=Z.offsetHeight;let mt,ot;switch(s()){case"top":mt=Q.left+Q.width/2-ft/2,ot=Q.top-yt-8;break;case"bottom":mt=Q.left+Q.width/2-ft/2,ot=Q.bottom+8;break;case"left":mt=Q.left-ft-8,ot=Q.top;break;case"right":default:mt=Q.right+8,ot=Q.top;break}mt<10&&(mt=10),ot<10&&(ot=10),mt+ft>rt-10&&(mt=rt-ft-10),ot+yt>dt-10&&(ot=dt-yt-10),Z.style.position="fixed",Z.style.left=`${mt}px`,Z.style.top=`${ot}px`})}E0(()=>{if(f(a))return N().destroy});var X=h4(),tt=q(X);tt.__click=[c4,a,H],tt.__keydown=[J_,V];var et=q(tt);lt(et,()=>t.children),G(tt),Dn(tt,Z=>l=Z,()=>l);var U=at(tt,2);{var nt=Z=>{var Q=K(),rt=L(Q);kt(rt,()=>xu,(dt,ft)=>{ft(dt,{children:(yt,mt)=>{var ot=f4();ot.__keydown=[J_,V],ot.__click=[Q_],ot.__mousedown=[Q_];var st=q(ot),wt=at(q(st),2);xn(wt,{variant:"ghost",size:"icon",class:"h-6 w-6",onclick:V,children:(zt,ne)=>{Sp(zt,{class:"h-4 w-4"})},$$slots:{default:!0}}),G(st);var It=at(st,2),Kt=q(It),_e=q(Kt);_e.__mousedown=C;var ze=q(_e);G(_e),Dn(_e,zt=>p=zt,()=>p);var ye=at(_e,2);ye.__mousedown=T;var Rt=q(ye);G(ye),Dn(ye,zt=>g=zt,()=>g);var Xt=at(ye,2),pe=q(Xt),ve=at(pe,2);lT(ve),ve.__input=[l4,c],G(Xt);var Gt=at(Xt,2),ue=q(Gt),Ee=at(q(ue),2),Ke=q(Ee);G(Ee),G(ue);var Ot=at(ue,2);{let zt=E(()=>[f(d)]);GD(Ot,{min:0,max:1,step:.01,get value(){return f(zt)},onValueChange:O})}G(Gt);var Ft=at(Gt,2),Ne=at(q(Ft),2);rr(Ne,21,()=>h,vu,(zt,ne)=>{var re=d4();re.__click=[u4,R,ne],Mt(on=>{qn(re,1,on),Ln(re,`background-color: ${f(ne)}`),At(re,"title",f(ne))},[()=>bo(ee("h-4 w-4 rounded-sm border",f(c)===f(ne)?"ring-primary ring-1":""))]),A(zt,re)}),G(Ne),G(Ft),G(Kt);var ae=at(Kt,2),we=q(ae);xn(we,{size:"sm",variant:"outline",class:"h-7 px-2 py-0 text-xs",onclick:V,children:(zt,ne)=>{te();var re=Te("Cancel");A(zt,re)},$$slots:{default:!0}});var xe=at(we,2);xn(xe,{size:"sm",class:"h-7 px-2 py-0 text-xs",onclick:B,children:(zt,ne)=>{te();var re=Te("Apply");A(zt,re)},$$slots:{default:!0}}),G(ae),G(It),G(ot),Mt((zt,ne)=>{qn(ot,1,zt),Ln(_e,`background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${f(v)}, 100%, 50%))`),Ln(ze,`left: ${f(b)}%; top: ${100-f(y)}%; background-color: ${f(c)}`),Ln(Rt,`left: ${f(v)/360*100}%`),Ln(pe,`background-color: ${f(c)}`),cT(ve,f(c)),fe(Ke,`${ne??""}%`)},[()=>bo(ee("bg-popover text-popover-foreground z-50 w-56 rounded-md border shadow-md",t.class)),()=>Math.round(f(d)*100)]),wp(3,ot,()=>Mw,()=>({duration:150,y:0,x:0})),A(yt,ot)},$$slots:{default:!0}})}),A(Z,Q)};vt(U,Z=>{f(a)&&Z(nt)})}G(X),A(e,X),ut()}Zi(["click","keydown","mousedown","input"]);var g4=J("<div></div>");function zw(e,t){ct(t,!0);const n=k(t,"rootMargin",3,"200px"),i=k(t,"threshold",3,0),s=k(t,"disabled",3,!1);let a=bt(null);be(()=>{if(!f(a)||s())return;const c=new IntersectionObserver(d=>{d[0].isIntersecting&&t.onIntersect()},{rootMargin:n(),threshold:i()});return c.observe(f(a)),()=>c.disconnect()});var l=g4();Dn(l,c=>M(a,c),()=>f(a)),A(e,l),ut()}function Eg(e,t,n=!1){const s={...e};if(n)return s.x=Math.round(Math.max(t.x,Math.min(s.x,t.x+t.width-s.width))),s.y=Math.round(Math.max(t.y,Math.min(s.y,t.y+t.height-s.height))),s;{const a=e.x,l=e.y,c=e.x+e.width,d=e.y+e.height,h=Math.max(t.x,a),p=Math.max(t.y,l),g=Math.min(t.x+t.width,c),v=Math.min(t.y+t.height,d),b={x:Math.round(h),y:Math.round(p),width:Math.round(g-h),height:Math.round(v-p)};return b.width=Math.max(1,b.width),b.height=Math.max(1,b.height),b}}var up="http://www.w3.org/1999/xhtml";const $_={svg:"http://www.w3.org/2000/svg",xhtml:up,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Yf(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),$_.hasOwnProperty(t)?{space:$_[t],local:e}:e}function p4(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===up&&t.documentElement.namespaceURI===up?t.createElement(e):t.createElementNS(n,e)}}function v4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vw(e){var t=Yf(e);return(t.local?v4:p4)(t)}function m4(){}function av(e){return e==null?m4:function(){return this.querySelector(e)}}function b4(e){typeof e!="function"&&(e=av(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],l=a.length,c=i[s]=new Array(l),d,h,p=0;p<l;++p)(d=a[p])&&(h=e.call(d,d.__data__,p,a))&&("__data__"in d&&(h.__data__=d.__data__),c[p]=h);return new ir(i,this._parents)}function _4(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function y4(){return[]}function Hw(e){return e==null?y4:function(){return this.querySelectorAll(e)}}function w4(e){return function(){return _4(e.apply(this,arguments))}}function x4(e){typeof e=="function"?e=w4(e):e=Hw(e);for(var t=this._groups,n=t.length,i=[],s=[],a=0;a<n;++a)for(var l=t[a],c=l.length,d,h=0;h<c;++h)(d=l[h])&&(i.push(e.call(d,d.__data__,h,l)),s.push(d));return new ir(i,s)}function Ww(e){return function(){return this.matches(e)}}function Uw(e){return function(t){return t.matches(e)}}var S4=Array.prototype.find;function A4(e){return function(){return S4.call(this.children,e)}}function C4(){return this.firstElementChild}function P4(e){return this.select(e==null?C4:A4(typeof e=="function"?e:Uw(e)))}var k4=Array.prototype.filter;function T4(){return Array.from(this.children)}function E4(e){return function(){return k4.call(this.children,e)}}function I4(e){return this.selectAll(e==null?T4:E4(typeof e=="function"?e:Uw(e)))}function O4(e){typeof e!="function"&&(e=Ww(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],l=a.length,c=i[s]=[],d,h=0;h<l;++h)(d=a[h])&&e.call(d,d.__data__,h,a)&&c.push(d);return new ir(i,this._parents)}function Gw(e){return new Array(e.length)}function N4(){return new ir(this._enter||this._groups.map(Gw),this._parents)}function ef(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ef.prototype={constructor:ef,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function R4(e){return function(){return e}}function M4(e,t,n,i,s,a){for(var l=0,c,d=t.length,h=a.length;l<h;++l)(c=t[l])?(c.__data__=a[l],i[l]=c):n[l]=new ef(e,a[l]);for(;l<d;++l)(c=t[l])&&(s[l]=c)}function L4(e,t,n,i,s,a,l){var c,d,h=new Map,p=t.length,g=a.length,v=new Array(p),b;for(c=0;c<p;++c)(d=t[c])&&(v[c]=b=l.call(d,d.__data__,c,t)+"",h.has(b)?s[c]=d:h.set(b,d));for(c=0;c<g;++c)b=l.call(e,a[c],c,a)+"",(d=h.get(b))?(i[c]=d,d.__data__=a[c],h.delete(b)):n[c]=new ef(e,a[c]);for(c=0;c<p;++c)(d=t[c])&&h.get(v[c])===d&&(s[c]=d)}function D4(e){return e.__data__}function F4(e,t){if(!arguments.length)return Array.from(this,D4);var n=t?L4:M4,i=this._parents,s=this._groups;typeof e!="function"&&(e=R4(e));for(var a=s.length,l=new Array(a),c=new Array(a),d=new Array(a),h=0;h<a;++h){var p=i[h],g=s[h],v=g.length,b=B4(e.call(p,p&&p.__data__,h,i)),y=b.length,w=c[h]=new Array(y),x=l[h]=new Array(y),C=d[h]=new Array(v);n(p,g,w,x,C,b,t);for(var T=0,R=0,O,B;T<y;++T)if(O=w[T]){for(T>=R&&(R=T+1);!(B=x[R])&&++R<y;);O._next=B||null}}return l=new ir(l,i),l._enter=c,l._exit=d,l}function B4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function z4(){return new ir(this._exit||this._groups.map(Gw),this._parents)}function V4(e,t,n){var i=this.enter(),s=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?a.remove():n(a),i&&s?i.merge(s).order():s}function H4(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,s=n.length,a=i.length,l=Math.min(s,a),c=new Array(s),d=0;d<l;++d)for(var h=n[d],p=i[d],g=h.length,v=c[d]=new Array(g),b,y=0;y<g;++y)(b=h[y]||p[y])&&(v[y]=b);for(;d<s;++d)c[d]=n[d];return new ir(c,this._parents)}function W4(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],s=i.length-1,a=i[s],l;--s>=0;)(l=i[s])&&(a&&l.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(l,a),a=l);return this}function U4(e){e||(e=G4);function t(g,v){return g&&v?e(g.__data__,v.__data__):!g-!v}for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a){for(var l=n[a],c=l.length,d=s[a]=new Array(c),h,p=0;p<c;++p)(h=l[p])&&(d[p]=h);d.sort(t)}return new ir(s,this._parents).order()}function G4(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function K4(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function q4(){return Array.from(this)}function X4(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,a=i.length;s<a;++s){var l=i[s];if(l)return l}return null}function Y4(){let e=0;for(const t of this)++e;return e}function Z4(){return!this.node()}function j4(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var s=t[n],a=0,l=s.length,c;a<l;++a)(c=s[a])&&e.call(c,c.__data__,a,s);return this}function Q4(e){return function(){this.removeAttribute(e)}}function J4(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $4(e,t){return function(){this.setAttribute(e,t)}}function tB(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function eB(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function nB(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function rB(e,t){var n=Yf(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?J4:Q4:typeof t=="function"?n.local?nB:eB:n.local?tB:$4)(n,t))}function Kw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function iB(e){return function(){this.style.removeProperty(e)}}function oB(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sB(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function aB(e,t,n){return arguments.length>1?this.each((t==null?iB:typeof t=="function"?sB:oB)(e,t,n??"")):fs(this.node(),e)}function fs(e,t){return e.style.getPropertyValue(t)||Kw(e).getComputedStyle(e,null).getPropertyValue(t)}function lB(e){return function(){delete this[e]}}function cB(e,t){return function(){this[e]=t}}function uB(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function dB(e,t){return arguments.length>1?this.each((t==null?lB:typeof t=="function"?uB:cB)(e,t)):this.node()[e]}function qw(e){return e.trim().split(/^|\s+/)}function lv(e){return e.classList||new Xw(e)}function Xw(e){this._node=e,this._names=qw(e.getAttribute("class")||"")}Xw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Yw(e,t){for(var n=lv(e),i=-1,s=t.length;++i<s;)n.add(t[i])}function Zw(e,t){for(var n=lv(e),i=-1,s=t.length;++i<s;)n.remove(t[i])}function fB(e){return function(){Yw(this,e)}}function hB(e){return function(){Zw(this,e)}}function gB(e,t){return function(){(t.apply(this,arguments)?Yw:Zw)(this,e)}}function pB(e,t){var n=qw(e+"");if(arguments.length<2){for(var i=lv(this.node()),s=-1,a=n.length;++s<a;)if(!i.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?gB:t?fB:hB)(n,t))}function vB(){this.textContent=""}function mB(e){return function(){this.textContent=e}}function bB(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _B(e){return arguments.length?this.each(e==null?vB:(typeof e=="function"?bB:mB)(e)):this.node().textContent}function yB(){this.innerHTML=""}function wB(e){return function(){this.innerHTML=e}}function xB(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function SB(e){return arguments.length?this.each(e==null?yB:(typeof e=="function"?xB:wB)(e)):this.node().innerHTML}function AB(){this.nextSibling&&this.parentNode.appendChild(this)}function CB(){return this.each(AB)}function PB(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kB(){return this.each(PB)}function TB(e){var t=typeof e=="function"?e:Vw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function EB(){return null}function IB(e,t){var n=typeof e=="function"?e:Vw(e),i=t==null?EB:typeof t=="function"?t:av(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function OB(){var e=this.parentNode;e&&e.removeChild(this)}function NB(){return this.each(OB)}function RB(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function MB(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function LB(e){return this.select(e?MB:RB)}function DB(e){return arguments.length?this.property("__data__",e):this.node().__data__}function FB(e){return function(t){e.call(this,t,this.__data__)}}function BB(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function zB(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,s=t.length,a;n<s;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function VB(e,t,n){return function(){var i=this.__on,s,a=FB(t);if(i){for(var l=0,c=i.length;l<c;++l)if((s=i[l]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=a,s.options=n),s.value=t;return}}this.addEventListener(e.type,a,n),s={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(s):this.__on=[s]}}function HB(e,t,n){var i=BB(e+""),s,a=i.length,l;if(arguments.length<2){var c=this.node().__on;if(c){for(var d=0,h=c.length,p;d<h;++d)for(s=0,p=c[d];s<a;++s)if((l=i[s]).type===p.type&&l.name===p.name)return p.value}return}for(c=t?VB:zB,s=0;s<a;++s)this.each(c(i[s],t,n));return this}function jw(e,t,n){var i=Kw(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,n):(s=i.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function WB(e,t){return function(){return jw(this,e,t)}}function UB(e,t){return function(){return jw(this,e,t.apply(this,arguments))}}function GB(e,t){return this.each((typeof t=="function"?UB:WB)(e,t))}function*KB(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,a=i.length,l;s<a;++s)(l=i[s])&&(yield l)}var Qw=[null];function ir(e,t){this._groups=e,this._parents=t}function Cu(){return new ir([[document.documentElement]],Qw)}function qB(){return this}ir.prototype=Cu.prototype={constructor:ir,select:b4,selectAll:x4,selectChild:P4,selectChildren:I4,filter:O4,data:F4,enter:N4,exit:z4,join:V4,merge:H4,selection:qB,order:W4,sort:U4,call:K4,nodes:q4,node:X4,size:Y4,empty:Z4,each:j4,attr:rB,style:aB,property:dB,classed:pB,text:_B,html:SB,raise:CB,lower:kB,append:TB,insert:IB,remove:NB,clone:LB,datum:DB,on:HB,dispatch:GB,[Symbol.iterator]:KB};function vo(e){return typeof e=="string"?new ir([[document.querySelector(e)]],[document.documentElement]):new ir([[e]],Qw)}function XB(e){let t;for(;t=e.sourceEvent;)e=t;return e}function t0(e,t){if(e=XB(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var YB={value:()=>{}};function cv(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Wd(n)}function Wd(e){this._=e}function ZB(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Wd.prototype=cv.prototype={constructor:Wd,on:function(e,t){var n=this._,i=ZB(e+"",n),s,a=-1,l=i.length;if(arguments.length<2){for(;++a<l;)if((s=(e=i[a]).type)&&(s=jB(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<l;)if(s=(e=i[a]).type)n[s]=e0(n[s],e.name,t);else if(t==null)for(s in n)n[s]=e0(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wd(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),i=0,s,a;i<s;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,s=a.length;i<s;++i)a[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,a=i.length;s<a;++s)i[s].value.apply(t,n)}};function jB(e,t){for(var n=0,i=e.length,s;n<i;++n)if((s=e[n]).name===t)return s.value}function e0(e,t,n){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=YB,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const QB={passive:!1},ua={capture:!0,passive:!1};function Ig(e){e.stopImmediatePropagation()}function qo(e){e.preventDefault(),e.stopImmediatePropagation()}function JB(e){var t=e.document.documentElement,n=vo(e).on("dragstart.drag",qo,ua);"onselectstart"in t?n.on("selectstart.drag",qo,ua):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function $B(e,t){var n=e.document.documentElement,i=vo(e).on("dragstart.drag",null);t&&(i.on("click.drag",qo,ua),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const kd=e=>()=>e;function dp(e,{sourceEvent:t,subject:n,target:i,identifier:s,active:a,x:l,y:c,dx:d,dy:h,dispatch:p}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:p}})}dp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function t9(e){return!e.ctrlKey&&!e.button}function e9(){return this.parentNode}function n9(e,t){return t??{x:e.x,y:e.y}}function r9(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jw(){var e=t9,t=e9,n=n9,i=r9,s={},a=cv("start","drag","end"),l=0,c,d,h,p,g=0;function v(O){O.on("mousedown.drag",b).filter(i).on("touchstart.drag",x).on("touchmove.drag",C,QB).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(O,B){if(!(p||!e.call(this,O,B))){var V=R(this,t.call(this,O,B),O,B,"mouse");V&&(vo(O.view).on("mousemove.drag",y,ua).on("mouseup.drag",w,ua),JB(O.view),Ig(O),h=!1,c=O.clientX,d=O.clientY,V("start",O))}}function y(O){if(qo(O),!h){var B=O.clientX-c,V=O.clientY-d;h=B*B+V*V>g}s.mouse("drag",O)}function w(O){vo(O.view).on("mousemove.drag mouseup.drag",null),$B(O.view,h),qo(O),s.mouse("end",O)}function x(O,B){if(e.call(this,O,B)){var V=O.changedTouches,N=t.call(this,O,B),H=V.length,X,tt;for(X=0;X<H;++X)(tt=R(this,N,O,B,V[X].identifier,V[X]))&&(Ig(O),tt("start",O,V[X]))}}function C(O){var B=O.changedTouches,V=B.length,N,H;for(N=0;N<V;++N)(H=s[B[N].identifier])&&(qo(O),H("drag",O,B[N]))}function T(O){var B=O.changedTouches,V=B.length,N,H;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),N=0;N<V;++N)(H=s[B[N].identifier])&&(Ig(O),H("end",O,B[N]))}function R(O,B,V,N,H,X){var tt=a.copy(),et=t0(X||V,B),U,nt,Z;if((Z=n.call(O,new dp("beforestart",{sourceEvent:V,target:v,identifier:H,active:l,x:et[0],y:et[1],dx:0,dy:0,dispatch:tt}),N))!=null)return U=Z.x-et[0]||0,nt=Z.y-et[1]||0,function Q(rt,dt,ft){var yt=et,mt;switch(rt){case"start":s[H]=Q,mt=l++;break;case"end":delete s[H],--l;case"drag":et=t0(ft||dt,B),mt=l;break}tt.call(rt,O,new dp(rt,{sourceEvent:dt,subject:Z,target:v,identifier:H,active:mt,x:et[0]+U,y:et[1]+nt,dx:et[0]-yt[0],dy:et[1]-yt[1],dispatch:tt}),N)}}return v.filter=function(O){return arguments.length?(e=typeof O=="function"?O:kd(!!O),v):e},v.container=function(O){return arguments.length?(t=typeof O=="function"?O:kd(O),v):t},v.subject=function(O){return arguments.length?(n=typeof O=="function"?O:kd(O),v):n},v.touchable=function(O){return arguments.length?(i=typeof O=="function"?O:kd(!!O),v):i},v.on=function(){var O=a.on.apply(a,arguments);return O===a?v:O},v.clickDistance=function(O){return arguments.length?(g=(O=+O)*O,v):Math.sqrt(g)},v}function i9({handle:e,getCurrentBbox:t,onResize:n,onDragEnd:i,onInteractionStart:s,onInteractionEnd:a}){let l;return Jw().on("start",()=>{l=t(),s==null||s()}).on("drag",c=>{let d=l.x,h=l.y,p=l.width,g=l.height;const v=c.x-c.subject.x,b=c.y-c.subject.y;switch(e){case"nw":d=l.x+v,h=l.y+b,p=l.width-v,g=l.height-b;break;case"ne":h=l.y+b,p=l.width+v,g=l.height-b;break;case"sw":d=l.x+v,p=l.width-v,g=l.height+b;break;case"se":p=l.width+v,g=l.height+b;break;case"n":h=l.y+b,g=l.height-b;break;case"s":g=l.height+b;break;case"w":d=l.x+v,p=l.width-v;break;case"e":p=l.width+v;break}const y=1;p<y&&(p=y,e.includes("w")&&(d=l.x+l.width-y)),g<y&&(g=y,e.includes("n")&&(h=l.y+l.height-y));const w=Math.round(d),x=Math.round(h),C=Math.round(p),T=Math.round(g);n&&n({x:w,y:x,width:C,height:T})}).on("end",()=>{const{x:c,y:d,width:h,height:p}=t();i&&i({x:c,y:d,width:h,height:p}),a==null||a()})}function o9({getCurrentBbox:e,onMove:t,onDragEnd:n,onInteractionStart:i,onInteractionEnd:s}){let a;return Jw().on("start",()=>{a=e(),i==null||i()}).on("drag",l=>{const c=l.x-l.subject.x,d=l.y-l.subject.y,h=Math.round(a.x+c),p=Math.round(a.y+d);t&&t({x:h,y:p,width:a.width,height:a.height})}).on("end",()=>{const l=e();n&&n(l),s==null||s()})}var s9=Cr('<text dominant-baseline="middle" text-anchor="end"> </text><text text-anchor="middle"> </text><text dominant-baseline="middle" text-anchor="end"> </text>',1),a9=Cr('<g><rect stroke-width="2" pointer-events="all" vector-effect="non-scaling-stroke" class="movable-rectangle" style="cursor: move;"></rect><!></g>');function l9(e,t){ct(t,!0);const n=k(t,"bbox",15),i=k(t,"colorStroke",3,"#007bff"),s=k(t,"colorFill",3,"transparent"),a=k(t,"opacity",3,.3),l=k(t,"handleSize",3,12),c=k(t,"scale",3,1),d=E(()=>n().x),h=E(()=>n().y),p=E(()=>n().width),g=E(()=>n().height);let v=bt(void 0),b=bt(!1);function y(){if(!f(v))return;const B=l()/c(),H=Math.max(3,Math.min(B,f(p)*.1,f(g)*.1,7)),X=[{id:"nw",x:f(d)-H/2,y:f(h)-H/2,cursor:"nwse-resize",label:"Resize northwest corner"},{id:"ne",x:f(d)+f(p)-H/2,y:f(h)-H/2,cursor:"nesw-resize",label:"Resize northeast corner"},{id:"sw",x:f(d)-H/2,y:f(h)+f(g)-H/2,cursor:"nesw-resize",label:"Resize southwest corner"},{id:"se",x:f(d)+f(p)-H/2,y:f(h)+f(g)-H/2,cursor:"nwse-resize",label:"Resize southeast corner"},{id:"n",x:f(d)+f(p)/2-H/2,y:f(h)-H/2,cursor:"ns-resize",label:"Resize top edge"},{id:"s",x:f(d)+f(p)/2-H/2,y:f(h)+f(g)-H/2,cursor:"ns-resize",label:"Resize bottom edge"},{id:"w",x:f(d)-H/2,y:f(h)+f(g)/2-H/2,cursor:"ew-resize",label:"Resize left edge"},{id:"e",x:f(d)+f(p)-H/2,y:f(h)+f(g)/2-H/2,cursor:"ew-resize",label:"Resize right edge"}],et=vo(f(v)).selectAll(".resize-handle").data(X,U=>U.id);et.enter().append("rect").attr("class","resize-handle").attr("width",H).attr("height",H).attr("fill",i()).attr("stroke",i()).attr("stroke-width","1").attr("vector-effect","non-scaling-stroke").attr("role","button").attr("style",U=>`cursor: ${U.cursor};`).attr("data-testid",U=>`resize-handle-${U.id}`).attr("aria-label",U=>U.label).merge(et).attr("x",U=>U.x).attr("y",U=>U.y).attr("width",H).attr("height",H).attr("fill",i()).attr("stroke",i()),et.exit().remove()}function w(){if(!f(v))return;["nw","ne","sw","se","n","s","w","e"].forEach(N=>{if(!f(v))return;const H=f(v).querySelector(`[data-testid="resize-handle-${N}"]`);H&&vo(H).call(i9({handle:N,getCurrentBbox:()=>({x:f(d),y:f(h),width:f(p),height:f(g)}),onResize:X=>{n(n().x=X.x,!0),n(n().y=X.y,!0),n(n().width=X.width,!0),n(n().height=X.height,!0),t.onResize&&t.onResize(X),y()},onDragEnd:X=>{t.onDragEnd&&t.onDragEnd(X)},onInteractionStart:()=>{M(b,!0)},onInteractionEnd:()=>{M(b,!1)}}))});const V=f(v).querySelector(".movable-rectangle");V&&vo(V).call(o9({getCurrentBbox:()=>({x:f(d),y:f(h),width:f(p),height:f(g)}),onMove:N=>{n(n().x=N.x,!0),n(n().y=N.y,!0),n(n().width=N.width,!0),n(n().height=N.height,!0),t.onMove&&t.onMove(N),y()},onDragEnd:N=>{t.onDragEnd&&t.onDragEnd(N)},onInteractionStart:()=>{M(b,!0)},onInteractionEnd:()=>{M(b,!1)}}))}ps(()=>{f(v)&&(y(),w())});const x=async()=>{f(v)&&(await Ff(),y(),w())};be(()=>{y(),x()});var C=a9(),T=q(C),R=at(T);{var O=B=>{var V=s9(),N=L(V),H=q(N);G(N);var X=at(N),tt=q(X);G(X);var et=at(X),U=q(et);G(et),Mt(()=>{At(N,"x",f(d)-10/c()),At(N,"y",f(h)+1/c()),At(N,"fill",i()),At(N,"font-size",14/c()),fe(H,`x: ${f(d)??""}, y: ${f(h)??""}`),At(X,"x",f(d)+f(p)/2),At(X,"y",f(h)+f(g)+20/c()),At(X,"fill",i()),At(X,"font-size",14/c()),fe(tt,`w: ${f(p)??""}px`),At(et,"x",f(d)-10/c()),At(et,"y",f(h)+f(g)/2),At(et,"fill",i()),At(et,"font-size",14/c()),fe(U,`h: ${f(g)??""}px`)}),A(B,V)};vt(R,B=>{f(b)&&B(O)})}G(C),Dn(C,B=>M(v,B),()=>f(v)),Mt(()=>{At(T,"x",f(d)),At(T,"y",f(h)),At(T,"width",f(p)),At(T,"height",f(g)),At(T,"stroke",i()),At(T,"fill",s()),At(T,"fill-opacity",a())}),A(e,C),ut()}var c9=Cr('<g data-testid="sample-annotation"><!><!><!></g>');function u9(e,t){var nt,Z;ct(t,!0);const n=()=>qt(d,"$customLabelColorsStore",i),[i,s]=Ur(),a=k(t,"showLabel",3,!1),l=k(t,"isResizable",3,!1),c=k(t,"scale",3,1),{customLabelColorsStore:d}=tv(),h=E(()=>t.annotation.annotation_label.annotation_label_name),p=(Z=(nt=t.annotation)==null?void 0:nt.instance_segmentation_details)==null?void 0:Z.segmentation_mask,g=E(()=>t.annotation.annotation_id),v=E(()=>Di(f(h),1)),b=E(()=>{var Q;return((Q=n()[f(h)])==null?void 0:Q.color)??Di(f(h),1).color}),y=E(()=>{var Q;return((Q=n()[f(h)])==null?void 0:Q.color)??Di(f(h),.4).color}),w=E(()=>{var Q;return((Q=n()[f(h)])==null?void 0:Q.alpha)*.4});let x=bt(Sn($d(t.annotation)));const C=Q=>{M(x,t.constraintBox?Eg(Q,t.constraintBox,!1):Q,!0)},T=Q=>{M(x,t.constraintBox?Eg(Q,t.constraintBox,!0):Q,!0)},R=Q=>{var dt;const rt=t.constraintBox?Eg(Q,t.constraintBox,!0):Q;M(x,rt,!0),(dt=t.onBoundingBoxChanged)==null||dt.call(t,rt)},O=E(()=>[f(x).x,f(x).y,f(x).width,f(x).height]);var B=c9(),V=q(B);{var N=Q=>{{let rt=E(()=>[f(x).x,f(x).y]);g9(Q,{get coordinates(){return f(rt)},get colorText(){return f(v)},get label(){return f(h)}})}};vt(V,Q=>{a()&&Q(N)})}var H=at(V);{var X=Q=>{$w(Q,{get segmentation(){return p},get width(){return t.imageWidth},get colorFill(){return f(y)},get opacity(){return f(w)}})};vt(H,Q=>{p&&Q(X)})}var tt=at(H);{var et=Q=>{l9(Q,{get colorStroke(){return f(b)},get colorFill(){return f(y)},get opacity(){return f(w)},get scale(){return c()},onResize:C,onMove:T,onDragEnd:R,get bbox(){return f(x)},set bbox(rt){M(x,rt,!0)}})},U=Q=>{f9(Q,{get bbox(){return f(O)},get annotationId(){return f(g)},get label(){return f(h)},get colorStroke(){return f(b)},get colorFill(){return f(y)},get opacity(){return f(w)}})};vt(tt,Q=>{l()&&t.constraintBox?Q(et):Q(U,!1)})}G(B),Mt(()=>{At(B,"data-annotation-label",f(h)),At(B,"data-annotation-id",f(g))}),A(e,B),ut(),s()}var d9=Cr('<rect vector-effect="non-scaling-stroke" stroke-width="2" pointer-events="all" data-testid="annotation_box"></rect>');function f9(e,t){const n=k(t,"isPrediction",3,!1),[i,s,a,l]=t.bbox,c=n()?"5,5":"none",d=n()?.8:1;var h=d9();Mt(()=>{At(h,"x",i),At(h,"y",s),At(h,"width",a),At(h,"height",l),At(h,"stroke",t.colorStroke),At(h,"stroke-opacity",d),At(h,"stroke-dasharray",c),At(h,"fill",t.colorFill),At(h,"fill-opacity",t.opacity),At(h,"aria-label",t.label)}),A(e,h)}var h9=Cr('<g class="unscaled"><rect></rect><text class="annotation-label-text" data-testid="svg-annotation-text"> </text></g>');function g9(e,t){ct(t,!0);const n=k(t,"fontSize",3,14),i=k(t,"isPrediction",3,!1),s=E(()=>T0(t.coordinates,2)),a=E(()=>f(s)[0]),l=E(()=>f(s)[1]);let c=bt(null);const d=E(()=>f(c)?(f(c).textContent=i()?`${t.label} (pred)`:t.label,f(c).getBBox()):{width:0,height:0}),h=5,p=i()?.8:1,g=i()?"italic":"normal";var v=h9(),b=q(v),y=at(b);At(y,"x",h),At(y,"y",-5);var w=q(y,!0);G(y),Dn(y,x=>M(c,x),()=>f(c)),G(v),Mt(()=>{var x,C,T;At(v,"transform",`translate(${f(a)}, ${f(l)})`),At(v,"data-label",t.label),At(b,"y",-((x=f(d))==null?void 0:x.height)),At(b,"width",((C=f(d))==null?void 0:C.width)+h*2),At(b,"height",(T=f(d))==null?void 0:T.height),At(b,"fill",t.colorText.color),At(b,"opacity",p),At(y,"fill",t.colorText.contrastColor),At(y,"font-size",n()),At(y,"font-style",g),fe(w,i()?`${t.label} (pred)`:t.label)}),A(e,v),ut()}function p9(e){if(typeof document>"u")return{r:0,g:0,b:0,a:255};const t=document.createElement("canvas");t.width=1,t.height=1;const n=t.getContext("2d",{willReadFrequently:!0});if(!n)return console.error("Failed to get context for color parsing, returning default black"),{r:0,g:0,b:0,a:255};n.fillStyle=e,n.fillRect(0,0,1,1);try{const i=n.getImageData(0,0,1,1).data;return{r:i[0],g:i[1],b:i[2],a:i[3]}}catch(i){return console.error("Failed to getImageData for color parsing, returning default black:",i),{r:0,g:0,b:0,a:255}}}function v9(e,t,n){const i=e.reduce((C,T)=>C+T,0),s=Math.ceil(i/t);if(t<=0||s<=0||!Number.isFinite(t)||!Number.isFinite(s))return{dataUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",height:0};if(typeof document>"u")throw new Error("Canvas API (document) not available. Ensure tests mock the DOM and Canvas.");const a=document.createElement("canvas");a.width=t,a.height=s;const l=a.getContext("2d",{willReadFrequently:!0});if(!l)throw new Error("Failed to get canvas 2D context. Check canvas support or mocks.");if(typeof l.createImageData!="function"||typeof l.putImageData!="function")throw new Error("Canvas context mock is incomplete. Missing 'createImageData' or 'putImageData'. Please update test environment mocks (e.g., jest-canvas-mock).");let c;try{c=l.createImageData(t,s)}catch(C){throw console.error(`Error calling ctx.createImageData(${t}, ${s}). Check mock implementation.`,C),C}const d=c.data,h=d.length,{r:p,g,b:v,a:b}=p9(n);let y=0,w=0;e.forEach((C,T)=>{if(C===0)return;if(T%2!==0){const O=y+C;for(;y<O;){const B=Math.floor(y/t),V=y%t;w=(B*t+V)*4,w>=0&&w<h-3&&(d[w]=p,d[w+1]=g,d[w+2]=v,d[w+3]=b),y++}}else y+=C}),l.putImageData(c,0,0);let x="";try{x=a.toDataURL()}catch(C){console.error("Error calling canvas.toDataURL(). Check mock implementation.",C),x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}return{dataUrl:x,height:s}}var m9=Cr('<image x="0" y="0"></image>');function $w(e,t){ct(t,!0);const n=k(t,"colorFill",3,"rgba(255, 0, 0, 0.2)"),i=k(t,"opacity",3,.4);if(!t.segmentation)throw new Error("Segmentation data is required");const s=E(()=>{const d=n().replace(/rgba?\((\d+,\s*\d+,\s*\d+)(?:,\s*[\d.]+)?\)/,"rgb($1)");return v9(t.segmentation,t.width,d)}),a=E(()=>f(s).dataUrl),l=E(()=>f(s).height);var c=m9();Mt(()=>{At(c,"href",f(a)),At(c,"width",t.width),At(c,"height",f(l)),At(c,"opacity",i())}),A(e,c),ut()}var b9=Cr('<svg style="position: absolute; top: 0; left: 0;"><g></g></svg>');function _9(e,t){ct(t,!0);const n=()=>qt(l,"$isHidden",i),[i,s]=Ur(),a=k(t,"sampleImageObjectFit",3,"contain"),{isHidden:l}=Iw(),c=E(()=>t.sample.annotations.filter(g=>g.annotation_type!=="classification"));var d=b9(),h=q(d);let p;rr(h,21,()=>f(c),g=>g.annotation_id,(g,v)=>{u9(g,{get annotation(){return f(v)},get showLabel(){return t.showLabel},get imageWidth(){return t.sample.width}})}),G(h),G(d),Mt(g=>{At(d,"viewBox",`0 0 ${t.sample.width} ${t.sample.height}`),At(d,"preserveAspectRatio",a()==="contain"?"xMidYMid meet":"xMidYMid slice"),At(d,"width",t.containerWidth),At(d,"height",t.containerHeight),p=qn(h,0,"",null,p,g)},[()=>({invisible:n()})]),A(e,d),ut(),s()}function y9(e,t){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),t())}var w9=Cr('<rect fill="none" stroke="hsl(var(--primary))" stroke-width="3" pointer-events="none" vector-effect="non-scaling-stroke"></rect>'),x9=Cr('<g role="button" tabindex="0" data-testid="selectable-svg-group"><!><!></g>');function Pz(e,t){ct(t,!0);let n=k(t,"isSelected",3,!1);const{x:i,y:s,width:a,height:l}=t.box,c=()=>{t.onSelect(t.groupId)};var d=x9();d.__click=c;let h;d.__keydown=[y9,c],Ln(d,"",{},{cursor:"pointer"});var p=q(d);lt(p,()=>t.children);var g=at(p);{var v=b=>{var y=w9();Mt(()=>{At(y,"x",i),At(y,"y",s),At(y,"width",a),At(y,"height",l)}),A(b,y)};vt(g,b=>{n()&&b(v)})}G(d),Mt(b=>{h=qn(d,0,"group svelte-lseqsj",null,h,b),At(d,"data-group-id",t.groupId)},[()=>({selected:n()})]),A(e,d),ut()}Zi(["click","keydown"]);const S9=({datasetId:e,annotationId:t,onUpdate:n})=>{const i=wT({path:{annotation_id:t,dataset_id:e}}),s=mu(),{updateAnnotations:a}=W0({datasetId:e}),l=O0(i),c=()=>{s.invalidateQueries({queryKey:i.queryKey}),s.invalidateQueries({queryKey:yp().queryKey}),s.invalidateQueries({queryKey:_p({path:{dataset_id:e}}).queryKey})};return{updateAnnotation:async h=>{try{await a([h]),c(),us.success("Annotation updated successfully"),n==null||n()}catch(p){us.error("Failed to update annotation:"+p.message)}},annotation:l,refetch:c}};var A9=J('<span class="text-sm"> </span> <span class="break-all text-sm"> </span>',1),C9=J('<div class="grid grid-cols-[6rem_1fr] gap-y-3 text-diffuse-foreground"></div>'),P9=J('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <pre class="min-w-[8rem] flex-1 overflow-x-auto whitespace-pre-wrap rounded bg-muted p-2 text-sm"> </pre></div>'),k9=J('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <span class="min-w-[8rem] flex-1 break-all text-sm"> </span></div>'),T9=J('<div class="space-y-3 text-diffuse-foreground"></div>'),E9=J("<!> <!>",1);function I9(e,t){ct(t,!0);const n=k(t,"showCustomMetadata",3,!0),i=E(()=>[{id:"height",label:"Height:",value:lp(t.sample.height)+"px"},{id:"width",label:"Width:",value:lp(t.sample.width)+"px"},{id:"filename",label:"Filename:",value:t.sample.file_name},{id:"filepath",label:"Filepath:",value:t.sample.file_path_abs}]),s=E(()=>{const h=[];if(t.sample.metadata_dict&&typeof t.sample.metadata_dict=="object"&&"data"in t.sample.metadata_dict){const p=t.sample.metadata_dict.data;p&&typeof p=="object"&&Object.entries(p).forEach(([g,v])=>{const b=Js(v),y=typeof v=="object"&&v!==null&&!Array.isArray(v);h.push({id:`metadata_${g}`,label:`${g}:`,value:b,isComplex:y})})}return h});var a=E9(),l=L(a);ca(l,{title:"Sample details",children:(h,p)=>{var g=C9();rr(g,21,()=>f(i),({label:v,value:b,id:y})=>v,(v,b)=>{let y=()=>f(b).label,w=()=>f(b).value,x=()=>f(b).id;var C=A9(),T=L(C),R=q(T,!0);G(T);var O=at(T,2),B=q(O,!0);G(O),Mt(()=>{fe(R,y()),At(O,"data-testid",`sample-metadata-${x()}`),fe(B,w())}),A(v,C)}),G(g),A(h,g)}});var c=at(l,2);{var d=h=>{ca(h,{title:"Metadata",children:(p,g)=>{var v=T9();rr(v,21,()=>f(s),({label:b,value:y,id:w,isComplex:x})=>b,(b,y)=>{let w=()=>f(y).label,x=()=>f(y).value,C=()=>f(y).id,T=()=>f(y).isComplex;var R=K(),O=L(R);{var B=N=>{var H=P9(),X=q(H),tt=q(X,!0);G(X);var et=at(X,2),U=q(et,!0);G(et),G(H),Mt(()=>{At(X,"title",w()),fe(tt,w()),fe(U,x())}),A(N,H)},V=N=>{var H=k9(),X=q(H),tt=q(X,!0);G(X);var et=at(X,2),U=q(et,!0);G(et),G(H),Mt(()=>{At(X,"title",w()),fe(tt,w()),At(et,"data-testid",`sample-metadata-${C()}`),fe(U,x())}),A(N,H)};vt(O,N=>{T()?N(B):N(V,!1)})}A(b,R)}),G(v),A(p,v)}})};vt(c,h=>{n()&&f(s).length>0&&h(d)})}A(e,a),ut()}var O9=J('You are going to delete this annotation. This action cannot be undone. <div class="mt-2 flex justify-end gap-2"><!> <!></div>',1),N9=J("<!> <!>",1),R9=J('<button type="button"><span class="flex flex-1 flex-col gap-1"><span class="text-sm font-medium" data-testid="sample-details-pannel-annotation-name"><!></span> <span class="text-xs text-muted-foreground"> <!></span></span> <div class="flex gap-3"><!> <!></div></button>');function M9(e,t){ct(t,!0);const n=()=>qt(b,"$result",a),i=()=>qt(f(C),"$annotationResp",a),s=()=>qt(g,"$isEditingMode",a),[a,l]=Ur(),c=k(t,"isSelected",3,!1),d=k(t,"isHidden",3,!1),h=st=>{switch(st){case"object_detection":return"Object Detection";case"instance_segmentation":return"Instance Segmentation";case"semantic_segmentation":return"Semantic Segmentation";case"classification":return"Image Classification";default:return st}},p=st=>{const wt=st.object_detection_details||st.instance_segmentation_details;if(wt){const{width:It,height:Kt}=wt;return`${Math.round(It)}x${Math.round(Kt)}px`}return""},{isEditingMode:g}=Ki.data.globalStorage,{datasetId:v}=Ki.data,b=nv(),y=E(()=>iv(n().data||[])),w=E(()=>t.annotation.annotation_id),x=E(()=>S9({datasetId:v,annotationId:f(w),onUpdate:t.onUpdate})),C=E(()=>f(x).annotation),T=E(()=>f(x).updateAnnotation),R=E(()=>i().data||t.annotation),O=E(()=>{const st=f(R).annotation_label.annotation_label_name,wt=f(y).find(It=>It.value===st);return wt||{value:st,label:st}});let B=bt(!1);var V=R9();V.__click=function(...st){var wt;(wt=t.onClick)==null||wt.apply(this,st)};var N=q(V),H=q(N),X=q(H);{var tt=st=>{{const wt=(Kt,_e)=>{let ze=()=>_e==null?void 0:_e().inputValue;rv(Kt,{get label(){return ze()}})};let It=E(()=>f(y).find(Kt=>{var _e;return Kt.value===((_e=f(O))==null?void 0:_e.value)}));ev(st,{get items(){return f(y)},get selectedItem(){return f(It)},name:"annotation-label",placeholder:"Select or create a label",onSelect:Kt=>{f(T)({annotation_id:f(w),dataset_id:v,label_name:Kt.value})},notFound:wt,$$slots:{notFound:!0}})}},et=st=>{var wt=Te();Mt(()=>fe(wt,f(R).annotation_label.annotation_label_name)),A(st,wt)};vt(X,st=>{s()?st(tt):st(et,!1)})}G(H);var U=at(H,2),nt=q(U),Z=at(nt);{var Q=st=>{var wt=Te();Mt(It=>fe(wt,`(${It??""})`),[()=>p(f(R))]),A(st,wt)};vt(Z,st=>{p(f(R))&&st(Q)})}G(U),G(N);var rt=at(N,2),dt=q(rt);{var ft=st=>{HT(st,{class:"size-6 text-muted-foreground",get onclick(){return t.onToggleShowAnnotation}})},yt=st=>{WT(st,{class:"size-6",get onclick(){return t.onToggleShowAnnotation}})};vt(dt,st=>{d()?st(ft):st(yt,!1)})}var mt=at(dt,2);{var ot=st=>{var wt=K(),It=L(wt);kt(It,()=>jp,(Kt,_e)=>{_e(Kt,{get open(){return f(B)},set open(ze){M(B,ze,!0)},children:(ze,ye)=>{var Rt=N9(),Xt=L(Rt);kt(Xt,()=>Qp,(ve,Gt)=>{Gt(ve,{children:(ue,Ee)=>{YT(ue,{class:"size-6"})},$$slots:{default:!0}})});var pe=at(Xt,2);kt(pe,()=>Zp,(ve,Gt)=>{Gt(ve,{children:(ue,Ee)=>{te();var Ke=O9(),Ot=at(L(Ke)),Ft=q(Ot);xn(Ft,{variant:"destructive",size:"sm",onclick:ae=>{ae.stopPropagation(),t.onDeleteAnnotation(ae),M(B,!1)},children:(ae,we)=>{te();var xe=Te("Delete");A(ae,xe)},$$slots:{default:!0}});var Ne=at(Ft,2);xn(Ne,{variant:"outline",size:"sm",onclick:ae=>{ae.stopPropagation(),M(B,!1)},children:(ae,we)=>{te();var xe=Te("Cancel");A(ae,xe)},$$slots:{default:!0}}),G(Ot),A(ue,Ke)},$$slots:{default:!0}})}),A(ze,Rt)},$$slots:{default:!0}})}),A(st,wt)};vt(mt,st=>{s()&&st(ot)})}G(rt),G(V),Mt((st,wt)=>{qn(V,1,st),fe(nt,`${wt??""} `)},[()=>bo(ee("flex w-full items-start justify-between gap-2 rounded-sm px-4 py-3 text-left align-baseline transition-colors",c()?"border border-accent-foreground/20 bg-accent":"bg-card hover:bg-accent/50")),()=>h(f(R).annotation_type)]),A(e,V),ut(),l()}Zi(["click"]);var L9=(e,t,n)=>{e.stopPropagation(),t.onRemoveTag(f(n).tag_id)},D9=J('<div class="inline-flex items-center gap-1 rounded-lg bg-card px-2 py-1 text-xs"><span> </span> <button type="button" class="flex size-4 items-center justify-center rounded-full text-muted-foreground transition hover:text-destructive focus:outline-none disabled:cursor-not-allowed disabled:opacity-50">x</button></div>'),F9=J('<div class="flex flex-wrap gap-1"></div>'),B9=J('<label class="flex w-full flex-col gap-3 text-muted-foreground"><div class="text-sm">Select or create a label for a new annotation.</div> <!></label>'),z9=J('<div class="items-left mb-2 flex flex-col justify-between space-y-2 bg-muted p-2"><div class="mb-2 w-full"><!></div> <!></div>'),V9=J('<div class="flex flex-col gap-3 space-y-4"><!> <div class="flex flex-col gap-2"></div></div>'),H9=J('<div class="flex h-full min-h-0 flex-col space-y-4 overflow-y-auto dark:[color-scheme:dark]"><!> <!> <!></div>');function kz(e,t){ct(t,!0);const n=()=>qt(g,"$annotationLabels",s),i=()=>qt(p,"$isEditingMode",s),[s,a]=Ur();let l=k(t,"addAnnotationEnabled",15,!1),c=k(t,"addAnnotationLabel",15,void 0);const d=E(()=>t.sample.tags??[]),h=E(()=>t.sample.annotations?[...t.sample.annotations].sort((b,y)=>b.annotation_label.annotation_label_name.localeCompare(y.annotation_label.annotation_label_name)):[]),{isEditingMode:p}=Ki.data.globalStorage,g=nv(),v=E(()=>iv(n().data||[]));Ow(e,{className:"h-full",children:(b,y)=>{Nw(b,{className:"h-full flex flex-col",children:(w,x)=>{var C=H9(),T=q(C);{var R=V=>{ca(V,{title:"Tags",get icon(){return XT},children:(N,H)=>{var X=F9();rr(X,21,()=>f(d),tt=>tt.tag_id,(tt,et)=>{var U=D9(),nt=q(U),Z=q(nt,!0);G(nt);var Q=at(nt,2);Q.__click=[L9,t,et],G(U),Mt(()=>{fe(Z,f(et).name),At(Q,"aria-label",`Remove tag ${f(et).name}`)}),A(tt,U)}),G(X),A(N,X)}})};vt(T,V=>{f(d).length>0&&V(R)})}var O=at(T,2);ca(O,{title:"Annotations",children:(V,N)=>{var H=V9(),X=q(H);{var tt=U=>{var nt=z9(),Z=q(nt),Q=q(Z);{let ft=E(()=>l()?"default":"outline");xn(Q,{title:"Add annotation",get variant(){return f(ft)},"data-testid":"create-rectangle",class:"w-full",onclick:()=>{l(!l())},children:(yt,mt)=>{te();var ot=Te("Add annotation");A(yt,ot)},$$slots:{default:!0}})}G(Z);var rt=at(Z,2);{var dt=ft=>{var yt=B9(),mt=at(q(yt),2);{const ot=(wt,It)=>{let Kt=()=>It==null?void 0:It().inputValue;rv(wt,{get label(){return Kt()}})};let st=E(()=>f(v).find(wt=>{var It;return wt.value===((It=c())==null?void 0:It.value)}));ev(mt,{get items(){return f(v)},get selectedItem(){return f(st)},name:"annotation-label",label:"Choose or create a label",className:"w-full",placeholder:"Select or create a label",onSelect:wt=>{c(wt)},notFound:ot,$$slots:{notFound:!0}})}G(yt),A(ft,yt)};vt(rt,ft=>{l()&&ft(dt)})}G(nt),A(U,nt)};vt(X,U=>{i()&&U(tt)})}var et=at(X,2);rr(et,21,()=>f(h),vu,(U,nt)=>{{let Z=E(()=>t.selectedAnnotationId===f(nt).annotation_id),Q=E(()=>t.annotationsIdsToHide.has(f(nt).annotation_id));M9(U,{get annotation(){return f(nt)},get isSelected(){return f(Z)},onClick:()=>t.onAnnotationClick(f(nt).annotation_id),onDeleteAnnotation:()=>t.onDeleteAnnotation(f(nt).annotation_id),get isHidden(){return f(Q)},onToggleShowAnnotation:rt=>{rt.stopPropagation(),t.onToggleShowAnnotation(f(nt).annotation_id)},get onUpdate(){return t.onUpdate}})}}),G(et),G(H),A(V,H)}});var B=at(O,2);I9(B,{get sample(){return t.sample}}),G(C),A(w,C)},$$slots:{default:!0}})},$$slots:{default:!0}}),ut(),a()}Zi(["click"]);var W9=J('<img loading="lazy"/>');function U9(e,t){ct(t,!0);const n=k(t,"objectFit",3,"contain"),{getDatasetVersion:i}=Gi();let s=bt("");ps(async()=>{var l;(l=t.sample)!=null&&l.dataset_id&&M(s,await i(t.sample.dataset_id),!0)});var a=W9();Mt(l=>{At(a,"src",`${I0}/sample/${t.sample.sample_id}${f(s)?`?v=${f(s)}`:""}`),At(a,"alt",t.sample.file_path_abs),qn(a,1,l,"svelte-1a2mlic"),Ln(a,`--object-fit: ${n()??""}`)},[()=>bo(ee("sample-image rounded-lg bg-black",t.class))]),A(e,a),ut()}const G9=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 xT({queryKey:t,queryFn:async({pageParam:n=0,signal:i})=>{const s=K9(e,n),{data:a}=await gT({path:{dataset_id:e.dataset_id},body:s,signal:i,throwOnError:!0});return a},initialPageParam:0,getNextPageParam:n=>n.nextCursor??void 0,enabled:q9(e)})},K9=(e,t)=>{var i,s,a;const n={pagination:{offset:t,limit:100},text_embedding:e.text_embedding,filters:{metadata_filters:e.metadata_values?N0(e.metadata_values):void 0}};if(e.mode==="classifier"&&e.classifierSamples){const l=[...e.classifierSamples.positiveSampleIds,...e.classifierSamples.negativeSampleIds];return{...n,sample_ids:l}}else if(e.mode==="normal"&&e.filters)return{...n,filters:{...n.filters,annotation_label_ids:(i=e.filters.annotation_label_ids)!=null&&i.length?e.filters.annotation_label_ids:void 0,tag_ids:(s=e.filters.tag_ids)!=null&&s.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,sample_ids:(a=e.filters.sample_ids)!=null&&a.length?e.filters.sample_ids:void 0}};return n},q9=e=>e.mode==="classifier"?!!(e.classifierSamples&&(e.classifierSamples.positiveSampleIds.length>0||e.classifierSamples.negativeSampleIds.length>0)):!0,X9=e=>{const t=G9(e),n=V0(t),i=mu();return{samples:n,refresh:()=>{i.invalidateQueries({queryKey:t.queryKey})}}},fp=en({}),n0=(e,t)=>{if(!(e==null&&t==null))return{min:e??void 0,max:t??void 0}},Y9=e=>{if(!e)return{};const t=n0(e.min_width,e.max_width),n=n0(e.min_height,e.max_height);return{width:t,height:n}},Z9=ra(fp,e=>{var c,d,h,p;if(!(e!=null&&e.dataset_id)||!(e!=null&&e.mode)||e.mode==="classifier")return null;const t={},{width:n,height:i}=Y9((c=e.filters)==null?void 0:c.dimensions);n&&(t.width=n),i&&(t.height=i);const s=(d=e.filters)==null?void 0:d.sample_ids;s&&s.length>0&&(t.sample_ids=s);const a=(h=e.filters)==null?void 0:h.annotation_label_ids;a&&a.length>0&&(t.annotation_label_ids=a);const l=(p=e.filters)==null?void 0:p.tag_ids;if(l&&l.length>0&&(t.tag_ids=l),e.metadata_values){const g=N0(e.metadata_values);g.length>0&&(t.metadata_filters=g)}return Object.keys(t).length>0?t:null}),j9=()=>({filterParams:fp,sampleFilter:Z9,updateFilterParams:t=>{fp.set(t)}});function Q9(e,t){const n=e.currentTarget.dataset.sampleId;t(n)}function J9(e,t,n){if(f(t))return;const i=e.currentTarget.dataset.sampleId,s=e.currentTarget.dataset.index;ea(na.toSample({sampleId:i,datasetId:n.dataset_id,sampleIndex:Number(s)}))}function $9(e,t){if(e.key==="Enter"||e.key===" "){e.preventDefault();const n=e.currentTarget.dataset.sampleId;t(n)}}var t8=J('<div class="flex h-full w-full items-center justify-center"><div>Loading samples...</div></div>'),e8=J('<div class="flex h-full w-full items-center justify-center"><div class="mb-2 font-medium">Error loading samples</div></div>'),n8=J('<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>'),r8=J('<div class="pointer-events-none absolute inset-x-0 bottom-0 z-10 rounded-b-lg bg-black/60 px-2 py-1 text-xs font-medium text-white"><span class="block truncate"> </span></div>'),i8=J('<div data-testid="sample-grid-item" role="button" tabindex="0"><div class="absolute right-7 top-1 z-10"><!></div> <div class="relative overflow-hidden rounded-lg" style="width: var(--sample-width); height: var(--sample-height);"><!> <!> <!></div></div>'),o8=J('<div class="flex justify-center p-4"><!></div>'),s8=J("<!> <!>",1),a8=J('<div class="viewport flex-1 svelte-w4icmb"><!></div>'),l8=J('<div class="flex h-full w-full items-center justify-center" data-testid="samples-loading"><div>Loading...</div></div>');function Tz(e,t){ct(t,!0);const n=()=>qt(V,"$isCreateClassifiersPanelOpen",w),i=()=>qt(N,"$isRefineClassifiersPanelOpen",w),s=()=>qt(X,"$classifierSamples",w),a=()=>qt(t.selectedAnnotationFilterIds,"$selectedAnnotationFilterIds",w),l=()=>qt(R,"$tagsSelected",w),c=()=>qt(O,"$dimensions",w),d=()=>qt(B,"$metadataValues",w),h=()=>qt(t.textEmbedding,"$textEmbedding",w),p=()=>qt(rt,"$filterParams",w),g=()=>qt(f(yt),"$infiniteSamples",w),v=()=>qt(C,"$gridViewSampleRenderingStore",w),b=()=>qt(T,"$showSampleFilenamesStore",w),y=()=>qt(H,"$selectedSampleIds",w),[w,x]=Ur(),{gridViewSampleRenderingStore:C,showSampleFilenamesStore:T}=zf(),{tagsSelected:R}=M0({dataset_id:t.dataset_id,kind:["sample"]}),{dimensionsValues:O}=fT(),{metadataValues:B}=ST(t.dataset_id),{isCreateClassifiersPanelOpen:V}=ov(),{isRefineClassifiersPanelOpen:N}=sv(),{selectedSampleIds:H,classifierSamples:X,toggleSampleSelection:tt,getDatasetVersion:et,setSamplesTotalCount:U}=Gi(),nt=E(()=>n()||i()),Z=E(()=>{var Ot,Ft;return{dataset_id:t.dataset_id,mode:f(nt)?"classifier":"normal",...f(nt)?{classifierSamples:s()}:{filters:{annotation_label_ids:(Ot=a())!=null&&Ot.length?a():void 0,tag_ids:l().size>0?Array.from(l()):void 0,dimensions:c()}},metadata_values:d(),text_embedding:(Ft=h())==null?void 0:Ft.embedding}}),Q=Ot=>Ot.mode==="classifier"?Ot:{...Ot,filters:Ot.filters?j_.omit(Ot.filters,["sample_ids"]):void 0},{filterParams:rt,updateFilterParams:dt}=j9();be(()=>{var ae;const Ot=f(Z),Ft=p();if(Ft&&j_.isEqual(Q(Ot),Q(Ft)))return;let Ne=Ot;if(Ne.mode==="normal"){const we=(Ft==null?void 0:Ft.mode)==="normal"?(ae=Ft.filters)==null?void 0:ae.sample_ids:void 0;we&&we.length>0&&(Ne={...Ne,filters:{...Ne.filters??{},sample_ids:we}})}dt(Ne)});const ft=E(()=>X9(p())),yt=E(()=>f(ft).samples),mt=E(()=>g()&&g().data?g().data.pages.flatMap(Ot=>Ot.data):[]);let ot=bt(null),st=bt(!1),wt=bt(Sn(v())),It=bt(0);const{initialize:Kt,savePosition:_e,getRestoredPosition:ze}=Ew("samples_scroll");ps(async()=>{Kt(),await et(t.dataset_id),M(st,!0)});const ye=E(()=>{var Ft;return[a().join(","),Array.from(l()).join(","),`${c().min_width}-${c().max_width}`,`${c().min_height}-${c().max_height}`,JSON.stringify(d()),((Ft=h())==null?void 0:Ft.queryText)||"",f(nt)?"classifier":"normal",f(nt)&&s()?`pos:${s().positiveSampleIds.length},neg:${s().negativeSampleIds.length}`:""].filter(Boolean).join("|")}),Rt=E(()=>ze(f(ye)));function Xt(Ot){const Ft=Ot.target.scrollTop;_e(Ft,f(ye))}be(()=>{M(wt,v(),!0)}),be(()=>{var Ot;g().isSuccess&&((Ot=g().data)==null?void 0:Ot.pages.length)>0&&U(g().data.pages[0].total_count)}),be(()=>{if(!f(ot))return;M(It,f(ot).clientHeight,!0);const Ot=new ResizeObserver(()=>{f(ot)&&M(It,f(ot).clientHeight,!0)});return Ot.observe(f(ot)),()=>{Ot.disconnect()}});function pe(){g().hasNextPage&&!g().isFetchingNextPage&&g().fetchNextPage()}const ve=16;var Gt=K(),ue=L(Gt);{var Ee=Ot=>{var Ft=t8();A(Ot,Ft)},Ke=Ot=>{var Ft=K(),Ne=L(Ft);{var ae=xe=>{var zt=e8();A(xe,zt)},we=xe=>{var zt=K(),ne=L(zt);{var re=Me=>{var Ie=n8(),Je=q(Ie),sn=at(q(Je),2),an=q(sn);{var Ue=Ve=>{var un=Te("No samples available for this classifier.");A(Ve,un)},Ce=Ve=>{var un=Te("This dataset doesn't contain any samples.");A(Ve,un)};vt(an,Ve=>{f(nt)?Ve(Ue):Ve(Ce,!1)})}G(sn),G(Je),G(Ie),A(Me,Ie)},on=Me=>{var Ie=K(),Je=L(Ie);{var sn=Ue=>{var Ce=a8(),Ve=q(Ce);{const un=(fn,ke)=>{let Yt=()=>ke==null?void 0:ke().index,nn=()=>ke==null?void 0:ke().style;var Le=K(),De=L(Le);Ui(De,()=>g().dataUpdatedAt,Oe=>{var hn=K(),gn=L(hn);{var Fn=gr=>{const Re=E(()=>{var Cn,Pn;return b()?f(mt)[Yt()].file_name:(Pn=(Cn=f(mt)[Yt()].captions)==null?void 0:Cn[0])==null?void 0:Pn.text});var Ut=i8();let $e;Ut.__click=[Q9,tt],Ut.__dblclick=[J9,nt,t],Ut.__keydown=[$9,tt];var dn=q(Ut),kr=q(dn);{let Cn=E(()=>y().has(f(mt)[Yt()].sample_id));tx(kr,{onSelect:()=>{},get isSelected(){return f(Cn)}})}G(dn);var pr=at(dn,2),Tr=q(pr);U9(Tr,{get sample(){return f(mt)[Yt()]},get objectFit(){return f(wt)}});var Qi=at(Tr,2);_9(Qi,{get sample(){return f(mt)[Yt()]},get containerWidth(){return t.sampleWidth},get sampleImageObjectFit(){return f(wt)},get containerHeight(){return t.sampleHeight}});var Xr=at(Qi,2);{var bi=Cn=>{var Pn=r8(),In=q(Pn),_i=q(In,!0);G(In),G(Pn),Mt(()=>{At(In,"title",f(Re)),fe(_i,f(Re))}),A(Cn,Pn)};vt(Xr,Cn=>{f(Re)&&Cn(bi)})}G(pr),G(Ut),Mt(Cn=>{$e=qn(Ut,1,"relative svelte-w4icmb",null,$e,Cn),Ln(Ut,nn()),At(Ut,"data-sample-id",f(mt)[Yt()].sample_id),At(Ut,"data-sample-name",f(mt)[Yt()].file_name),At(Ut,"data-index",Yt()),At(Ut,"aria-label",f(nt)?`Select sample: ${f(mt)[Yt()].file_name}`:`View sample: ${f(mt)[Yt()].file_name}`)},[()=>({"sample-selected":y().has(f(mt)[Yt()].sample_id)})]),A(gr,Ut)};vt(gn,gr=>{f(mt)[Yt()]&&gr(Fn)})}A(Oe,hn)}),A(fn,Le)},Dt=fn=>{var ke=s8(),Yt=L(ke);Ui(Yt,()=>f(mt).length,De=>{{let Oe=E(()=>!g().hasNextPage||g().isFetchingNextPage);zw(De,{onIntersect:pe,get disabled(){return f(Oe)}})}});var nn=at(Yt,2);{var Le=De=>{var Oe=o8(),hn=q(Oe);U0(hn,{}),G(Oe),A(De,Oe)};vt(nn,De=>{g().isFetchingNextPage&&De(Le)})}A(fn,ke)};let $t=E(()=>t.sampleHeight+ve),Pe=E(()=>t.sampleWidth+ve);H0(Ve,{get itemCount(){return f(mt).length},get itemHeight(){return f($t)},get itemWidth(){return f(Pe)},get height(){return f(It)},get scrollPosition(){return f(Rt)},onscroll:Xt,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:un,footer:Dt,$$slots:{item:!0,footer:!0}})}G(Ce),Dn(Ce,un=>M(ot,un),()=>f(ot)),A(Ue,Ce)},an=Ue=>{var Ce=l8();A(Ue,Ce)};vt(Je,Ue=>{f(st)?Ue(sn):Ue(an,!1)},!0)}A(Me,Ie)};vt(ne,Me=>{g().isSuccess&&f(mt).length===0?Me(re):Me(on,!1)},!0)}A(xe,zt)};vt(Ne,xe=>{g().isError?xe(ae):xe(we,!1)},!0)}A(Ot,Ft)};vt(ue,Ot=>{g().isPending?Ot(Ee):Ot(Ke,!1)})}A(e,Gt),ut(),x()}Zi(["click","dblclick","keydown"]);function tx(e,t){const n=k(t,"isSelected",3,!1);Bw(e,{get checked(){return n()},get onCheckedChange(){return t.onSelect},"data-testid":"sample-selected-box"})}function uv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ex(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Pu(){}var da=.7,nf=1/da,Xo="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c8=/^#([0-9a-f]{3,8})$/,u8=new RegExp(`^rgb\\(${Xo},${Xo},${Xo}\\)$`),d8=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),f8=new RegExp(`^rgba\\(${Xo},${Xo},${Xo},${fa}\\)$`),h8=new RegExp(`^rgba\\(${zr},${zr},${zr},${fa}\\)$`),g8=new RegExp(`^hsl\\(${fa},${zr},${zr}\\)$`),p8=new RegExp(`^hsla\\(${fa},${zr},${zr},${fa}\\)$`),r0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uv(Pu,ha,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:i0,formatHex:i0,formatHex8:v8,formatHsl:m8,formatRgb:o0,toString:o0});function i0(){return this.rgb().formatHex()}function v8(){return this.rgb().formatHex8()}function m8(){return nx(this).formatHsl()}function o0(){return this.rgb().formatRgb()}function ha(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c8.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?s0(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Td(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Td(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=u8.exec(e))?new Kn(t[1],t[2],t[3],1):(t=d8.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=f8.exec(e))?Td(t[1],t[2],t[3],t[4]):(t=h8.exec(e))?Td(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=g8.exec(e))?c0(t[1],t[2]/100,t[3]/100,1):(t=p8.exec(e))?c0(t[1],t[2]/100,t[3]/100,t[4]):r0.hasOwnProperty(e)?s0(r0[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function s0(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Td(e,t,n,i){return i<=0&&(e=t=n=NaN),new Kn(e,t,n,i)}function b8(e){return e instanceof Pu||(e=ha(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function hp(e,t,n,i){return arguments.length===1?b8(e):new Kn(e,t,n,i??1)}function Kn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}uv(Kn,hp,ex(Pu,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(mo(this.r),mo(this.g),mo(this.b),rf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:a0,formatHex:a0,formatHex8:_8,formatRgb:l0,toString:l0}));function a0(){return`#${uo(this.r)}${uo(this.g)}${uo(this.b)}`}function _8(){return`#${uo(this.r)}${uo(this.g)}${uo(this.b)}${uo((isNaN(this.opacity)?1:this.opacity)*255)}`}function l0(){const e=rf(this.opacity);return`${e===1?"rgb(":"rgba("}${mo(this.r)}, ${mo(this.g)}, ${mo(this.b)}${e===1?")":`, ${e})`}`}function rf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uo(e){return e=mo(e),(e<16?"0":"")+e.toString(16)}function c0(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yr(e,t,n,i)}function nx(e){if(e instanceof yr)return new yr(e.h,e.s,e.l,e.opacity);if(e instanceof Pu||(e=ha(e)),!e)return new yr;if(e instanceof yr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),a=Math.max(t,n,i),l=NaN,c=a-s,d=(a+s)/2;return c?(t===a?l=(n-i)/c+(n<i)*6:n===a?l=(i-t)/c+2:l=(t-n)/c+4,c/=d<.5?a+s:2-a-s,l*=60):c=d>0&&d<1?0:l,new yr(l,c,d,e.opacity)}function y8(e,t,n,i){return arguments.length===1?nx(e):new yr(e,t,n,i??1)}function yr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}uv(yr,y8,ex(Pu,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new yr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new yr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new Kn(Og(e>=240?e-240:e+120,s,i),Og(e,s,i),Og(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new yr(u0(this.h),Ed(this.s),Ed(this.l),rf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rf(this.opacity);return`${e===1?"hsl(":"hsla("}${u0(this.h)}, ${Ed(this.s)*100}%, ${Ed(this.l)*100}%${e===1?")":`, ${e})`}`}}));function u0(e){return e=(e||0)%360,e<0?e+360:e}function Ed(e){return Math.max(0,Math.min(1,e||0))}function Og(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const rx=e=>()=>e;function w8(e,t){return function(n){return e+n*t}}function x8(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function S8(e){return(e=+e)==1?ix:function(t,n){return n-t?x8(t,n,e):rx(isNaN(t)?n:t)}}function ix(e,t){var n=t-e;return n?w8(e,n):rx(isNaN(e)?t:e)}const d0=function e(t){var n=S8(t);function i(s,a){var l=n((s=hp(s)).r,(a=hp(a)).r),c=n(s.g,a.g),d=n(s.b,a.b),h=ix(s.opacity,a.opacity);return function(p){return s.r=l(p),s.g=c(p),s.b=d(p),s.opacity=h(p),s+""}}return i.gamma=e,i}(1);function Li(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var gp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ng=new RegExp(gp.source,"g");function A8(e){return function(){return e}}function C8(e){return function(t){return e(t)+""}}function P8(e,t){var n=gp.lastIndex=Ng.lastIndex=0,i,s,a,l=-1,c=[],d=[];for(e=e+"",t=t+"";(i=gp.exec(e))&&(s=Ng.exec(t));)(a=s.index)>n&&(a=t.slice(n,a),c[l]?c[l]+=a:c[++l]=a),(i=i[0])===(s=s[0])?c[l]?c[l]+=s:c[++l]=s:(c[++l]=null,d.push({i:l,x:Li(i,s)})),n=Ng.lastIndex;return n<t.length&&(a=t.slice(n),c[l]?c[l]+=a:c[++l]=a),c.length<2?d[0]?C8(d[0].x):A8(t):(t=d.length,function(h){for(var p=0,g;p<t;++p)c[(g=d[p]).i]=g.x(h);return c.join("")})}var f0=180/Math.PI,pp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ox(e,t,n,i,s,a){var l,c,d;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(d=e*n+t*i)&&(n-=e*d,i-=t*d),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,d/=c),e*i<t*n&&(e=-e,t=-t,d=-d,l=-l),{translateX:s,translateY:a,rotate:Math.atan2(t,e)*f0,skewX:Math.atan(d)*f0,scaleX:l,scaleY:c}}var Id;function k8(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?pp:ox(t.a,t.b,t.c,t.d,t.e,t.f)}function T8(e){return e==null||(Id||(Id=document.createElementNS("http://www.w3.org/2000/svg","g")),Id.setAttribute("transform",e),!(e=Id.transform.baseVal.consolidate()))?pp:(e=e.matrix,ox(e.a,e.b,e.c,e.d,e.e,e.f))}function sx(e,t,n,i){function s(h){return h.length?h.pop()+" ":""}function a(h,p,g,v,b,y){if(h!==g||p!==v){var w=b.push("translate(",null,t,null,n);y.push({i:w-4,x:Li(h,g)},{i:w-2,x:Li(p,v)})}else(g||v)&&b.push("translate("+g+t+v+n)}function l(h,p,g,v){h!==p?(h-p>180?p+=360:p-h>180&&(h+=360),v.push({i:g.push(s(g)+"rotate(",null,i)-2,x:Li(h,p)})):p&&g.push(s(g)+"rotate("+p+i)}function c(h,p,g,v){h!==p?v.push({i:g.push(s(g)+"skewX(",null,i)-2,x:Li(h,p)}):p&&g.push(s(g)+"skewX("+p+i)}function d(h,p,g,v,b,y){if(h!==g||p!==v){var w=b.push(s(b)+"scale(",null,",",null,")");y.push({i:w-4,x:Li(h,g)},{i:w-2,x:Li(p,v)})}else(g!==1||v!==1)&&b.push(s(b)+"scale("+g+","+v+")")}return function(h,p){var g=[],v=[];return h=e(h),p=e(p),a(h.translateX,h.translateY,p.translateX,p.translateY,g,v),l(h.rotate,p.rotate,g,v),c(h.skewX,p.skewX,g,v),d(h.scaleX,h.scaleY,p.scaleX,p.scaleY,g,v),h=p=null,function(b){for(var y=-1,w=v.length,x;++y<w;)g[(x=v[y]).i]=x.x(b);return g.join("")}}}var E8=sx(k8,"px, ","px)","deg)"),I8=sx(T8,", ",")",")"),hs=0,$s=0,Ys=0,ax=1e3,of,ta,sf=0,yo=0,Zf=0,ga=typeof performance=="object"&&performance.now?performance:Date,lx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dv(){return yo||(lx(O8),yo=ga.now()+Zf)}function O8(){yo=0}function af(){this._call=this._time=this._next=null}af.prototype=cx.prototype={constructor:af,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?dv():+n)+(t==null?0:+t),!this._next&&ta!==this&&(ta?ta._next=this:of=this,ta=this),this._call=e,this._time=n,vp()},stop:function(){this._call&&(this._call=null,this._time=1/0,vp())}};function cx(e,t,n){var i=new af;return i.restart(e,t,n),i}function N8(){dv(),++hs;for(var e=of,t;e;)(t=yo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--hs}function h0(){yo=(sf=ga.now())+Zf,hs=$s=0;try{N8()}finally{hs=0,M8(),yo=0}}function R8(){var e=ga.now(),t=e-sf;t>ax&&(Zf-=t,sf=e)}function M8(){for(var e,t=of,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:of=n);ta=e,vp(i)}function vp(e){if(!hs){$s&&($s=clearTimeout($s));var t=e-yo;t>24?(e<1/0&&($s=setTimeout(h0,e-ga.now()-Zf)),Ys&&(Ys=clearInterval(Ys))):(Ys||(sf=ga.now(),Ys=setInterval(R8,ax)),hs=1,lx(h0))}}function g0(e,t,n){var i=new af;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,n),i}var L8=cv("start","end","cancel","interrupt"),D8=[],ux=0,p0=1,mp=2,Ud=3,v0=4,bp=5,Gd=6;function jf(e,t,n,i,s,a){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;F8(e,n,{name:t,index:i,group:s,on:L8,tween:D8,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ux})}function fv(e,t){var n=Pr(e,t);if(n.state>ux)throw new Error("too late; already scheduled");return n}function qr(e,t){var n=Pr(e,t);if(n.state>Ud)throw new Error("too late; already running");return n}function Pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function F8(e,t,n){var i=e.__transition,s;i[t]=n,n.timer=cx(a,0,n.time);function a(h){n.state=p0,n.timer.restart(l,n.delay,n.time),n.delay<=h&&l(h-n.delay)}function l(h){var p,g,v,b;if(n.state!==p0)return d();for(p in i)if(b=i[p],b.name===n.name){if(b.state===Ud)return g0(l);b.state===v0?(b.state=Gd,b.timer.stop(),b.on.call("interrupt",e,e.__data__,b.index,b.group),delete i[p]):+p<t&&(b.state=Gd,b.timer.stop(),b.on.call("cancel",e,e.__data__,b.index,b.group),delete i[p])}if(g0(function(){n.state===Ud&&(n.state=v0,n.timer.restart(c,n.delay,n.time),c(h))}),n.state=mp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===mp){for(n.state=Ud,s=new Array(v=n.tween.length),p=0,g=-1;p<v;++p)(b=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(s[++g]=b);s.length=g+1}}function c(h){for(var p=h<n.duration?n.ease.call(null,h/n.duration):(n.timer.restart(d),n.state=bp,1),g=-1,v=s.length;++g<v;)s[g].call(e,p);n.state===bp&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=Gd,n.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}}function B8(e,t){var n=e.__transition,i,s,a=!0,l;if(n){t=t==null?null:t+"";for(l in n){if((i=n[l]).name!==t){a=!1;continue}s=i.state>mp&&i.state<bp,i.state=Gd,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[l]}a&&delete e.__transition}}function z8(e){return this.each(function(){B8(this,e)})}function V8(e,t){var n,i;return function(){var s=qr(this,e),a=s.tween;if(a!==n){i=n=a;for(var l=0,c=i.length;l<c;++l)if(i[l].name===t){i=i.slice(),i.splice(l,1);break}}s.tween=i}}function H8(e,t,n){var i,s;if(typeof n!="function")throw new Error;return function(){var a=qr(this,e),l=a.tween;if(l!==i){s=(i=l).slice();for(var c={name:t,value:n},d=0,h=s.length;d<h;++d)if(s[d].name===t){s[d]=c;break}d===h&&s.push(c)}a.tween=s}}function W8(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Pr(this.node(),n).tween,s=0,a=i.length,l;s<a;++s)if((l=i[s]).name===e)return l.value;return null}return this.each((t==null?V8:H8)(n,e,t))}function hv(e,t,n){var i=e._id;return e.each(function(){var s=qr(this,i);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Pr(s,i).value[t]}}function dx(e,t){var n;return(typeof t=="number"?Li:t instanceof ha?d0:(n=ha(t))?(t=n,d0):P8)(e,t)}function U8(e){return function(){this.removeAttribute(e)}}function G8(e){return function(){this.removeAttributeNS(e.space,e.local)}}function K8(e,t,n){var i,s=n+"",a;return function(){var l=this.getAttribute(e);return l===s?null:l===i?a:a=t(i=l,n)}}function q8(e,t,n){var i,s=n+"",a;return function(){var l=this.getAttributeNS(e.space,e.local);return l===s?null:l===i?a:a=t(i=l,n)}}function X8(e,t,n){var i,s,a;return function(){var l,c=n(this),d;return c==null?void this.removeAttribute(e):(l=this.getAttribute(e),d=c+"",l===d?null:l===i&&d===s?a:(s=d,a=t(i=l,c)))}}function Y8(e,t,n){var i,s,a;return function(){var l,c=n(this),d;return c==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),d=c+"",l===d?null:l===i&&d===s?a:(s=d,a=t(i=l,c)))}}function Z8(e,t){var n=Yf(e),i=n==="transform"?I8:dx;return this.attrTween(e,typeof t=="function"?(n.local?Y8:X8)(n,i,hv(this,"attr."+e,t)):t==null?(n.local?G8:U8)(n):(n.local?q8:K8)(n,i,t))}function j8(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Q8(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function J8(e,t){var n,i;function s(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&Q8(e,a)),n}return s._value=t,s}function $8(e,t){var n,i;function s(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&j8(e,a)),n}return s._value=t,s}function t6(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=Yf(e);return this.tween(n,(i.local?J8:$8)(i,t))}function e6(e,t){return function(){fv(this,e).delay=+t.apply(this,arguments)}}function n6(e,t){return t=+t,function(){fv(this,e).delay=t}}function r6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?e6:n6)(t,e)):Pr(this.node(),t).delay}function i6(e,t){return function(){qr(this,e).duration=+t.apply(this,arguments)}}function o6(e,t){return t=+t,function(){qr(this,e).duration=t}}function s6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?i6:o6)(t,e)):Pr(this.node(),t).duration}function a6(e,t){if(typeof t!="function")throw new Error;return function(){qr(this,e).ease=t}}function l6(e){var t=this._id;return arguments.length?this.each(a6(t,e)):Pr(this.node(),t).ease}function c6(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;qr(this,e).ease=n}}function u6(e){if(typeof e!="function")throw new Error;return this.each(c6(this._id,e))}function d6(e){typeof e!="function"&&(e=Ww(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],l=a.length,c=i[s]=[],d,h=0;h<l;++h)(d=a[h])&&e.call(d,d.__data__,h,a)&&c.push(d);return new mi(i,this._parents,this._name,this._id)}function f6(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,s=n.length,a=Math.min(i,s),l=new Array(i),c=0;c<a;++c)for(var d=t[c],h=n[c],p=d.length,g=l[c]=new Array(p),v,b=0;b<p;++b)(v=d[b]||h[b])&&(g[b]=v);for(;c<i;++c)l[c]=t[c];return new mi(l,this._parents,this._name,this._id)}function h6(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function g6(e,t,n){var i,s,a=h6(t)?fv:qr;return function(){var l=a(this,e),c=l.on;c!==i&&(s=(i=c).copy()).on(t,n),l.on=s}}function p6(e,t){var n=this._id;return arguments.length<2?Pr(this.node(),n).on.on(e):this.each(g6(n,e,t))}function v6(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function m6(){return this.on("end.remove",v6(this._id))}function b6(e){var t=this._name,n=this._id;typeof e!="function"&&(e=av(e));for(var i=this._groups,s=i.length,a=new Array(s),l=0;l<s;++l)for(var c=i[l],d=c.length,h=a[l]=new Array(d),p,g,v=0;v<d;++v)(p=c[v])&&(g=e.call(p,p.__data__,v,c))&&("__data__"in p&&(g.__data__=p.__data__),h[v]=g,jf(h[v],t,n,v,h,Pr(p,n)));return new mi(a,this._parents,t,n)}function _6(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Hw(e));for(var i=this._groups,s=i.length,a=[],l=[],c=0;c<s;++c)for(var d=i[c],h=d.length,p,g=0;g<h;++g)if(p=d[g]){for(var v=e.call(p,p.__data__,g,d),b,y=Pr(p,n),w=0,x=v.length;w<x;++w)(b=v[w])&&jf(b,t,n,w,v,y);a.push(v),l.push(p)}return new mi(a,l,t,n)}var y6=Cu.prototype.constructor;function w6(){return new y6(this._groups,this._parents)}function x6(e,t){var n,i,s;return function(){var a=fs(this,e),l=(this.style.removeProperty(e),fs(this,e));return a===l?null:a===n&&l===i?s:s=t(n=a,i=l)}}function fx(e){return function(){this.style.removeProperty(e)}}function S6(e,t,n){var i,s=n+"",a;return function(){var l=fs(this,e);return l===s?null:l===i?a:a=t(i=l,n)}}function A6(e,t,n){var i,s,a;return function(){var l=fs(this,e),c=n(this),d=c+"";return c==null&&(d=c=(this.style.removeProperty(e),fs(this,e))),l===d?null:l===i&&d===s?a:(s=d,a=t(i=l,c))}}function C6(e,t){var n,i,s,a="style."+t,l="end."+a,c;return function(){var d=qr(this,e),h=d.on,p=d.value[a]==null?c||(c=fx(t)):void 0;(h!==n||s!==p)&&(i=(n=h).copy()).on(l,s=p),d.on=i}}function P6(e,t,n){var i=(e+="")=="transform"?E8:dx;return t==null?this.styleTween(e,x6(e,i)).on("end.style."+e,fx(e)):typeof t=="function"?this.styleTween(e,A6(e,i,hv(this,"style."+e,t))).each(C6(this._id,e)):this.styleTween(e,S6(e,i,t),n).on("end.style."+e,null)}function k6(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function T6(e,t,n){var i,s;function a(){var l=t.apply(this,arguments);return l!==s&&(i=(s=l)&&k6(e,l,n)),i}return a._value=t,a}function E6(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,T6(e,t,n??""))}function I6(e){return function(){this.textContent=e}}function O6(e){return function(){var t=e(this);this.textContent=t??""}}function N6(e){return this.tween("text",typeof e=="function"?O6(hv(this,"text",e)):I6(e==null?"":e+""))}function R6(e){return function(t){this.textContent=e.call(this,t)}}function M6(e){var t,n;function i(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&R6(s)),t}return i._value=e,i}function L6(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,M6(e))}function D6(){for(var e=this._name,t=this._id,n=hx(),i=this._groups,s=i.length,a=0;a<s;++a)for(var l=i[a],c=l.length,d,h=0;h<c;++h)if(d=l[h]){var p=Pr(d,t);jf(d,e,n,h,l,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new mi(i,this._parents,e,n)}function F6(){var e,t,n=this,i=n._id,s=n.size();return new Promise(function(a,l){var c={value:l},d={value:function(){--s===0&&a()}};n.each(function(){var h=qr(this,i),p=h.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(d)),h.on=t}),s===0&&a()})}var B6=0;function mi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function hx(){return++B6}var oi=Cu.prototype;mi.prototype={constructor:mi,select:b6,selectAll:_6,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:d6,merge:f6,selection:w6,transition:D6,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:p6,attr:Z8,attrTween:t6,style:P6,styleTween:E6,text:N6,textTween:L6,remove:m6,tween:W8,delay:r6,duration:s6,ease:l6,easeVarying:u6,end:F6,[Symbol.iterator]:oi[Symbol.iterator]};function z6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var V6={time:null,delay:0,duration:250,ease:z6};function H6(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function W6(e){var t,n;e instanceof mi?(t=e._id,e=e._name):(t=hx(),(n=V6).time=dv(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,a=0;a<s;++a)for(var l=i[a],c=l.length,d,h=0;h<c;++h)(d=l[h])&&jf(d,e,t,h,l,n||H6(d,t));return new mi(i,this._parents,e,t)}Cu.prototype.interrupt=z8;Cu.prototype.transition=W6;function Ho(e,t,n){this.k=e,this.x=t,this.y=n}Ho.prototype={constructor:Ho,scale:function(e){return e===1?this:new Ho(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ho(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ez=new Ho(1,0,0);Ho.prototype;export{$B as $,mz as A,Nw as B,Ow as C,tx as D,Di as E,kz as F,ev as G,rv as H,bn as I,iv as J,bz as K,zw as L,lp as M,ca as N,I9 as O,ir as P,Qw as Q,l9 as R,Tz as S,_4 as T,cv as U,Ez as V,Ho as W,t0 as X,B8 as Y,JB as Z,j_ as _,GD as a,xn as a0,hD as a1,fD as a2,LI as a3,$y as a4,AM as a5,xz as a6,wz as a7,wp as a8,UT as a9,pw as aA,hw as aB,fw as aC,_L as aD,gL as aE,vw as aF,D_ as aG,XT as aH,mw as aI,gw as aJ,sv as aK,Z_ as aL,j9 as aM,OE as aN,An as aO,he as aP,D0 as aQ,KT as aR,yz as aa,VT as ab,sF as ac,W_ as ad,H_ as ae,Fw as af,Dw as ag,Lw as ah,oF as ai,$D as aj,aF as ak,_F as al,cp as am,fz as an,B0 as ao,xF as ap,ov as aq,JT as ar,Az as as,Sz as at,xp as au,GT as av,Bw as aw,Vo as ax,Cz as ay,tv as az,JE as b,pz as c,Qt as d,F as e,ee as f,vz as g,gz as h,gg as i,tE as j,V0 as k,U9 as l,Wt as m,U0 as n,$d as o,Pz as p,u9 as q,S9 as r,$T as s,LT as t,jt as u,Iw as v,nv as w,_z as x,vo as y,Jw as z};
|