@llmops/app 0.1.1 → 0.1.2-beta.2
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.
- package/dist/.vite/manifest.json +151 -151
- package/dist/assets/{Form-DurABL93.js → Form-bF8b4dv7.js} +1 -1
- package/dist/assets/{_environment-cvjo84jE.js → _environment-D5l09GAI.js} +1 -1
- package/dist/assets/{_tabs-CvacR8ma.js → _tabs-BNNM1siJ.js} +1 -1
- package/dist/assets/{_tabs-CPULxPXH.js → _tabs-Dp8TdfLH.js} +1 -1
- package/dist/assets/{_variant-D-Su5y6J.js → _variant-CQVlnb-0.js} +1 -1
- package/dist/assets/{_variants-GQL6AngK.js → _variants-DGp4og5c.js} +1 -1
- package/dist/assets/{button-BEBWfv3K.js → button-Buvtsnw_.js} +1 -1
- package/dist/assets/check-DYJ_WRTT.js +1 -0
- package/dist/assets/{chevron-right-CB5eOw5R.js → chevron-right-Dx22YibX.js} +1 -1
- package/dist/assets/{configs-Ckb1Gh45.js → configs-Bkn9xFBW.js} +1 -1
- package/dist/assets/{copy-zjZRJuNG.js → copy-Dnga8M98.js} +1 -1
- package/dist/assets/{environments-DtJ5Lpag.js → environments-9oINv4N0.js} +1 -1
- package/dist/assets/{formatDistance-BLefUVjS.js → formatDistance-BDFPqAEk.js} +1 -1
- package/dist/assets/index-B0z8_uQL.js +1 -0
- package/dist/assets/{index-P3WhIAgM.js → index-Bhx-JeV9.js} +4 -4
- package/dist/assets/{index-Bx7fi-TU.js → index-D_5wDvfg.js} +1 -1
- package/dist/assets/index-DcAb9uJ1.css +1 -0
- package/dist/assets/{index-DnOI3CO7.js → index-QEjwsaMP.js} +1 -1
- package/dist/assets/{index.esm-JXXIAvjH.js → index.esm-j_XNTlvC.js} +1 -1
- package/dist/assets/new-config-state.css-DmkNQXkJ.js +1 -0
- package/dist/assets/{plus-NtaGeY4B.js → plus-BSA1-dHv.js} +1 -1
- package/dist/assets/{route-CILbCcM1.js → route-C1Nn5gbx.js} +1 -1
- package/dist/assets/{route-O6imc6-P.js → route-fKPGSrF6.js} +1 -1
- package/dist/assets/{secrets-C7EM3Vc4.js → secrets-FONvuzI0.js} +1 -1
- package/dist/assets/{settings-BKtjj2be.js → settings-BZkchAIX.js} +1 -1
- package/dist/assets/{settings-BaUSziYN.js → settings-CjJ-MU5l.js} +1 -1
- package/dist/assets/{table-3bd5M2VH.js → table-DBimQ0ta.js} +1 -1
- package/dist/assets/{tabs.css-BtjQBzCx.js → tabs.css-Zzy-7QB-.js} +1 -1
- package/dist/assets/{targeting-ER2jmmgx.js → targeting-CWOhjCxo.js} +1 -1
- package/dist/assets/{update-or-create-name-DL3P6ioS.js → update-or-create-name-CwP-2EDr.js} +1 -1
- package/dist/assets/{useButton-BsGawsAH.js → useButton--JB4PDp_.js} +1 -1
- package/dist/assets/{useConfigList-82kvWQBI.js → useConfigList-Spw4rWA5.js} +1 -1
- package/dist/assets/{useConfigVariants-6VXcu6gd.js → useConfigVariants-BFeuBiSB.js} +1 -1
- package/dist/assets/{useEnvironments-CnQLCTUT.js → useEnvironments-B98gze20.js} +1 -1
- package/dist/assets/{useMutation-CfseLGia.js → useMutation-B4YJswXZ.js} +1 -1
- package/dist/assets/{useRole-DgeL5bnU.js → useRole-BjdV6JP8.js} +1 -1
- package/dist/assets/{useSetTargeting-DaZE0wc4.js → useSetTargeting-D_8m28K_.js} +1 -1
- package/dist/assets/{useTargetingRules-DQJaFv3c.js → useTargetingRules-DvZM680c.js} +1 -1
- package/dist/assets/{useValueChanged-CNJVEKor.js → useValueChanged-DZbz5Gsg.js} +1 -1
- package/dist/assets/{variants-Ctf9tC34.js → variants-kW37gpVY.js} +1 -1
- package/dist/assets/variants.css-XOktTgR0.js +1 -0
- package/dist/index.cjs +14 -3
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +14 -3
- package/package.json +3 -3
- package/dist/assets/check-Ch_sNRmE.js +0 -1
- package/dist/assets/index-D0RzYU3K.js +0 -1
- package/dist/assets/index-JoHQ-XGK.css +0 -1
- package/dist/assets/new-config-state.css-DYWW4gMw.js +0 -1
- package/dist/assets/variants.css-C0L7Oivg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as w,b as k,e as z,f as I,g as Y,j as n,a as R,h as L,i as X,I as F,u as J,d as Q,L as Z,O as ee}from"./index-
|
|
1
|
+
import{r as w,b as k,e as z,f as I,g as Y,j as n,a as R,h as L,i as X,I as F,u as J,d as Q,L as Z,O as ee}from"./index-Bhx-JeV9.js";import{f as te,u as ne,w as q,b as se,C as ae,c as A,B as oe,h as O,H as ie,a as re,g as le}from"./formatDistance-BDFPqAEk.js";import{B}from"./button-Buvtsnw_.js";import{c as ce,u as me,f as U,g as de,a as ue,b as fe,d as ve,U as ge,X as pe,e as he,l as xe,r as je,t as Ce}from"./update-or-create-name-CwP-2EDr.js";import{T as be,a as ye,b as V,c as Se,d as we,e as Ne}from"./table-DBimQ0ta.js";import{u as Re,g as G}from"./useEnvironments-B98gze20.js";import{h as K}from"./index.esm-j_XNTlvC.js";import{u as W}from"./useMutation-B4YJswXZ.js";import{C as De}from"./chevron-right-Dx22YibX.js";import{P as Ee}from"./plus-BSA1-dHv.js";/* empty css */import"./useButton--JB4PDp_.js";/* empty css */const H=ce();function Te(){const[e,t]=w.useState([{id:"createdAt",desc:!1}]),[s,a]=w.useState([]),[l,i]=w.useState(""),{data:d}=Re(),m=k(),{environment:r}=z({strict:!1}),u=I(),f=w.useCallback(o=>{u.prefetchQuery(Y(o))},[u]),N=w.useMemo(()=>[H.accessor("name",{header:"Name",cell:o=>o.row.original.isProd?`${o.getValue()} (this environment)`:o.getValue()}),H.accessor("isProd",{header:"Production",cell:o=>o.getValue()?"Yes":"No"}),H.accessor("createdAt",{header:"Creation Date",cell:o=>te(new Date(o.getValue()),new Date,{addSuffix:!0})})],[]),g=me({data:d||[],columns:N,state:{sorting:e,columnFilters:s,globalFilter:l},onSortingChange:t,onColumnFiltersChange:a,onGlobalFilterChange:i,getCoreRowModel:ve(),getFilteredRowModel:fe(),getSortedRowModel:ue(),getPaginationRowModel:de(),initialState:{pagination:{pageSize:100}}});return n.jsx("div",{children:n.jsxs(be,{children:[n.jsx(ye,{children:g.getHeaderGroups().map(o=>n.jsx(V,{children:o.headers.map(c=>{const v=c.column.getIsSorted();return n.jsx(Se,{sortable:c.column.getCanSort(),onClick:c.column.getToggleSortingHandler(),sortDirection:v==="asc"?"asc":v==="desc"?"desc":null,children:c.isPlaceholder?null:U(c.column.columnDef.header,c.getContext())},c.id)})},o.id))}),n.jsx(we,{children:g.getRowModel().rows.map(o=>n.jsx(V,{interactive:!0,selected:o.original.id===r,onMouseEnter:()=>f(o.original.id),onClick:()=>m({to:"/environments/$environment",params:{environment:o.original.id}}),children:o.getVisibleCells().map(c=>n.jsx(Ne,{children:U(c.column.columnDef.cell,c.getContext())},c.id))},o.id))})]})})}const Pe=()=>{const e=R.c(3),t=k(),s=I();let a;return e[0]!==t||e[1]!==s?(a={mutationFn:$e,onSuccess:async l=>{await s.invalidateQueries({queryKey:G()}),l?.id&&t({to:"/environments/$environment",params:{environment:l?.id}})}},e[0]=t,e[1]=s,e[2]=a):a=e[2],W(a)};async function $e(e){const t=e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),a=await(await L.v1.environments.$post({json:{name:e.name,slug:t,isProd:e.isProd}})).json();return"data"in a?a.data:void 0}const Me=()=>{const e=R.c(2),t=I();let s;return e[0]!==t?(s={mutationFn:_e,onSuccess:()=>{t.invalidateQueries({queryKey:G()})}},e[0]=t,e[1]=s):s=e[1],W(s)};async function _e(e){const s=await(await L.v1.environments[":id"].$patch({param:{id:e.id},json:{name:e.name}})).json();return"data"in s?s.data:void 0}const Fe=e=>{const t=R.c(7),{id:s,environment:a}=e,{mutateAsync:l}=Pe(),{mutateAsync:i}=Me(),d=a?.isProd,m=a?.isProd?"You can't rename Production environment.":void 0;let r;return t[0]!==l||t[1]!==a||t[2]!==s||t[3]!==d||t[4]!==m||t[5]!==i?(r=n.jsx(ge,{id:s,disabled:d,tooltip:m,entity:a,placeholder:"Environment Name",onCreate:l,onUpdate:i}),t[0]=l,t[1]=a,t[2]=s,t[3]=d,t[4]=m,t[5]=i,t[6]=r):r=t[6],r},ke=e=>{const t=R.c(11),{id:s}=e,a=k(),{data:l}=X(s);let i;t[0]!==a?(i=()=>{a({to:"/environments"})},t[0]=a,t[1]=i):i=t[1];const d=i;let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(F,{icon:pe}),t[2]=m):m=t[2];let r;t[3]!==d?(r=n.jsx(B,{onClick:d,size:"icon",scheme:"gray",variant:"ghost",children:m}),t[3]=d,t[4]=r):r=t[4];let u;t[5]!==l||t[6]!==s?(u=s?n.jsx(Fe,{id:s,environment:l??void 0},s):null,t[5]=l,t[6]=s,t[7]=u):u=t[7];let f;return t[8]!==r||t[9]!==u?(f=n.jsxs("div",{className:K,children:[r,u]}),t[8]=r,t[9]=u,t[10]=f):f=t[10],f};function Xe(){const e=R.c(40),{toggleSidebar:t}=ne(),{containerRef:s,setTileWidth:a}=he();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const i=z(l),d=J(),m=k();let r;e[1]!==d?(r=d.filter(Be).map(He),e[1]=d,e[2]=r):r=e[2];const u=r;let f;e[3]!==m?(f=()=>{m({to:"/environments/$environment",params:{environment:"new"}})},e[3]=m,e[4]=f):f=e[4];const N=f;let g;e[5]!==i.environment||e[6]!==a?(g=()=>{i?.environment?a("25%"):a("100%")},e[5]=i.environment,e[6]=a,e[7]=g):g=e[7];const o=i?.environment;let c;e[8]!==o?(c=[o],e[8]=o,e[9]=c):c=e[9],w.useEffect(g,c);let v;e[10]!==t?(v=()=>{t()},e[10]=t,e[11]=v):v=e[11];let D;e[12]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx(F,{icon:ae}),e[12]=D):D=e[12];let p;e[13]!==v?(p=n.jsx(B,{onClick:v,size:"icon",variant:"ghost",scheme:"gray",children:D}),e[13]=v,e[14]=p):p=e[14];let E;e[15]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(F,{icon:De,className:A}),e[15]=E):E=e[15];let h;e[16]!==u?(h=n.jsx(oe,{items:u}),e[16]=u,e[17]=h):h=e[17];let x;e[18]!==h||e[19]!==p?(x=n.jsxs("div",{className:O,children:[p,E,h]}),e[18]=h,e[19]=p,e[20]=x):x=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(F,{icon:Ee,className:A}),e[21]=T):T=e[21];let j;e[22]!==N?(j=n.jsx("div",{className:O,children:n.jsxs(B,{variant:"outline",scheme:"gray",onClick:N,children:[T,"New Environment"]})}),e[22]=N,e[23]=j):j=e[23];let C;e[24]!==x||e[25]!==j?(C=n.jsxs(ie,{className:re,children:[x,j]}),e[24]=x,e[25]=j,e[26]=C):C=e[26];let P,$;e[27]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsxs("div",{className:Q(q,xe),children:[n.jsx("div",{className:K}),n.jsx(Te,{})]}),$=Q(q,je),e[27]=P,e[28]=$):(P=e[27],$=e[28]);let b;e[29]!==i.environment?(b=n.jsx(ke,{id:i.environment}),e[29]=i.environment,e[30]=b):b=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx(ee,{}),e[31]=M):M=e[31];let y;e[32]!==b?(y=n.jsx("div",{className:$,children:n.jsxs("div",{children:[b,M]})}),e[32]=b,e[33]=y):y=e[33];let S;e[34]!==s||e[35]!==y?(S=n.jsx("div",{className:le,children:n.jsxs("div",{ref:s,className:Ce,children:[P,y]})}),e[34]=s,e[35]=y,e[36]=S):S=e[36];let _;return e[37]!==C||e[38]!==S?(_=n.jsxs(n.Fragment,{children:[C,S]}),e[37]=C,e[38]=S,e[39]=_):_=e[39],_}function He(e){const t=e.loaderData?.title,s=e.staticData.customData?.title,a=t??s;return{key:e.id,label:n.jsx(Z,{to:e.pathname,className:se,children:a}),prefix:e.staticData.customData?.icon}}function Be(e){return!!e.staticData.customData?.title||!!e.loaderData?.title}export{Xe as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ce,d as mn,j as lt,k as _s,R as pn,r as L}from"./index-P3WhIAgM.js";var Os="na2u4m1 na2u4m0 _1lg22bkw0",Rs="na2u4m2",Is="na2u4m3",Ws="na2u4m4";const pu=t=>{const e=ce.c(17);let n,s,i,r;e[0]!==t?({items:s,separator:r,className:n,...i}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i,e[4]=r):(n=e[1],s=e[2],i=e[3],r=e[4]);const o=r===void 0?"/":r;let a;e[5]!==n?(a=mn(Os,n),e[5]=n,e[6]=a):a=e[6];let l;if(e[7]!==s||e[8]!==o){let u;e[10]!==s.length||e[11]!==o?(u=(f,d)=>lt.jsxs("div",{className:Rs,children:[f.prefix,lt.jsx("div",{className:Is,children:f.label}),d<s.length-1&<.jsx("span",{className:Ws,"aria-hidden":"true",children:o})]},f.key),e[10]=s.length,e[11]=o,e[12]=u):u=e[12],l=s.map(u),e[7]=s,e[8]=o,e[9]=l}else l=e[9];let c;return e[13]!==i||e[14]!==a||e[15]!==l?(c=lt.jsx("nav",{...i,className:a,"aria-label":"Breadcrumb",children:l}),e[13]=i,e[14]=a,e[15]=l,e[16]=c):c=e[16],c};var Bs="f7jxdn0";const gu=t=>{const e=ce.c(5);let n;e[0]!==t.className?(n=mn(Bs,t.className),e[0]=t.className,e[1]=n):n=e[1];let s;return e[2]!==t||e[3]!==n?(s=lt.jsx("header",{...t,className:n}),e[2]=t,e[3]=n,e[4]=s):s=e[4],s};const Ns=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],yu=_s("columns-2",Ns);var bu="_6smcqd0",vu="_6smcqd1",Su="_6smcqd3",wu="_6smcqd4";const W={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function gn(t){return"init"in t}function $t(t){return!!t.write}function Be(t){return"v"in t||"e"in t}function kt(t){if("e"in t)throw t.e;if((W?"production":void 0)!=="production"&&!("v"in t))throw new Error("[Bug] atom state is not initialized");return t.v}const Pt=new WeakMap;function yn(t){var e;return Ft(t)&&!!((e=Pt.get(t))!=null&&e[0])}function Ks(t){const e=Pt.get(t);e?.[0]&&(e[0]=!1,e[1].forEach(n=>n()))}function zt(t,e){let n=Pt.get(t);if(!n){n=[!0,new Set],Pt.set(t,n);const s=()=>{n[0]=!1};t.then(s,s)}n[1].add(e)}function Ft(t){return typeof t?.then=="function"}function bn(t,e,n){if(!n.p.has(t)){n.p.add(t);const s=()=>n.p.delete(t);e.then(s,s)}}function vn(t,e,n){var s;const i=new Set;for(const r of((s=n.get(t))==null?void 0:s.t)||[])n.has(r)&&i.add(r);for(const r of e.p)i.add(r);return i}const js=(t,e,...n)=>e.read(...n),Ls=(t,e,...n)=>e.write(...n),$s=(t,e)=>{var n;return(n=e.unstable_onInit)==null?void 0:n.call(e,t)},zs=(t,e,n)=>{var s;return(s=e.onMount)==null?void 0:s.call(e,n)},Xs=(t,e)=>{var n;const s=P(t),i=s[0],r=s[6],o=s[9];if((W?"production":void 0)!=="production"&&!e)throw new Error("Atom is undefined or null");let a=i.get(e);return a||(a={d:new Map,p:new Set,n:0},i.set(e,a),(n=r.i)==null||n.call(r,e),o?.(t,e)),a},Us=t=>{const e=P(t),n=e[1],s=e[3],i=e[4],r=e[5],o=e[6],a=e[13],l=[],c=u=>{try{u()}catch(f){l.push(f)}};do{o.f&&c(o.f);const u=new Set,f=u.add.bind(u);s.forEach(d=>{var h;return(h=n.get(d))==null?void 0:h.l.forEach(f)}),s.clear(),r.forEach(f),r.clear(),i.forEach(f),i.clear(),u.forEach(c),s.size&&a(t)}while(s.size||r.size||i.size);if(l.length)throw new AggregateError(l)},Ys=t=>{const e=P(t),n=e[1],s=e[2],i=e[3],r=e[11],o=e[14],a=e[17],l=[],c=new WeakSet,u=new WeakSet,f=Array.from(i);for(;f.length;){const d=f[f.length-1],h=r(t,d);if(u.has(d)){f.pop();continue}if(c.has(d)){if(s.get(d)===h.n)l.push([d,h]);else if((W?"production":void 0)!=="production"&&s.has(d))throw new Error("[Bug] invalidated atom exists");u.add(d),f.pop();continue}c.add(d);for(const p of vn(d,h,n))c.has(p)||f.push(p)}for(let d=l.length-1;d>=0;--d){const[h,p]=l[d];let g=!1;for(const m of p.d.keys())if(m!==h&&i.has(m)){g=!0;break}g&&(o(t,h),a(t,h)),s.delete(h)}},Xt=new WeakSet,Hs=(t,e)=>{var n,s;const i=P(t),r=i[1],o=i[2],a=i[3],l=i[6],c=i[7],u=i[11],f=i[12],d=i[13],h=i[14],p=i[16],g=i[17],m=u(t,e);if(Be(m)&&(r.has(e)&&o.get(e)!==m.n||Array.from(m.d).every(([y,V])=>h(t,y).n===V)))return m;m.d.clear();let v=!0;function w(){r.has(e)&&(g(t,e),d(t),f(t))}function M(y){var V;if(y===e){const E=u(t,y);if(!Be(E))if(gn(y))Et(t,y,y.init);else throw new Error("no atom init");return kt(E)}const k=h(t,y);try{return kt(k)}finally{m.d.set(y,k.n),yn(m.v)&&bn(e,m.v,k),(V=r.get(y))==null||V.t.add(e),v||w()}}let T,b;const A={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(W?"production":void 0)!=="production"&&!$t(e)&&console.warn("setSelf function cannot be used with read-only atom"),!b&&$t(e)&&(b=(...y)=>{if((W?"production":void 0)!=="production"&&v&&console.warn("setSelf function cannot be called in sync"),!v)try{return p(t,e,...y)}finally{d(t),f(t)}}),b}},x=m.n;try{(W?"production":void 0)!=="production"&&Xt.delete(t);const y=c(t,e,M,A);return(W?"production":void 0)!=="production"&&Xt.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),Et(t,e,y),Ft(y)&&(zt(y,()=>T?.abort()),y.then(w,w)),(n=l.r)==null||n.call(l,e),m}catch(y){return delete m.v,m.e=y,++m.n,m}finally{v=!1,x!==m.n&&o.get(e)===x&&(o.set(e,m.n),a.add(e),(s=l.c)==null||s.call(l,e))}},Gs=(t,e)=>{const n=P(t),s=n[1],i=n[2],r=n[11],o=[e];for(;o.length;){const a=o.pop(),l=r(t,a);for(const c of vn(a,l,s)){const u=r(t,c);i.set(c,u.n),o.push(c)}}},Sn=(t,e,...n)=>{const s=P(t),i=s[3],r=s[6],o=s[8],a=s[11],l=s[12],c=s[13],u=s[14],f=s[15],d=s[17];let h=!0;const p=m=>kt(u(t,m)),g=(m,...v)=>{var w;const M=a(t,m);try{if(m===e){if(!gn(m))throw new Error("atom not writable");(W?"production":void 0)!=="production"&&Xt.add(t);const T=M.n,b=v[0];Et(t,m,b),d(t,m),T!==M.n&&(i.add(m),(w=r.c)==null||w.call(r,m),f(t,m));return}else return Sn(t,m,...v)}finally{h||(c(t),l(t))}};try{return o(t,e,p,g,...n)}finally{h=!1}},qs=(t,e)=>{var n;const s=P(t),i=s[1],r=s[3],o=s[6],a=s[11],l=s[15],c=s[18],u=s[19],f=a(t,e),d=i.get(e);if(d&&!yn(f.v)){for(const[h,p]of f.d)if(!d.d.has(h)){const g=a(t,h);c(t,h).t.add(e),d.d.add(h),p!==g.n&&(r.add(h),(n=o.c)==null||n.call(o,h),l(t,h))}for(const h of d.d||[])if(!f.d.has(h)){d.d.delete(h);const p=u(t,h);p?.t.delete(e)}}},wn=(t,e)=>{var n;const s=P(t),i=s[1],r=s[4],o=s[6],a=s[10],l=s[11],c=s[12],u=s[13],f=s[14],d=s[16],h=l(t,e);let p=i.get(e);if(!p){f(t,e);for(const g of h.d.keys())wn(t,g).t.add(e);if(p={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(e,p),(n=o.m)==null||n.call(o,e),$t(e)){const g=()=>{let m=!0;const v=(...w)=>{try{return d(t,e,...w)}finally{m||(u(t),c(t))}};try{const w=a(t,e,v);w&&(p.u=()=>{m=!0;try{w()}finally{m=!1}})}finally{m=!1}};r.add(g)}}return p},Zs=(t,e)=>{var n;const s=P(t),i=s[1],r=s[5],o=s[6],a=s[11],l=s[19],c=a(t,e);let u=i.get(e);if(u&&!u.l.size&&!Array.from(u.t).some(f=>{var d;return(d=i.get(f))==null?void 0:d.d.has(e)})){u.u&&r.add(u.u),u=void 0,i.delete(e),(n=o.u)==null||n.call(o,e);for(const f of c.d.keys()){const d=l(t,f);d?.t.delete(e)}return}return u},Et=(t,e,n)=>{const s=P(t)[11],i=s(t,e),r="v"in i,o=i.v;if(Ft(n))for(const a of i.d.keys())bn(e,n,s(t,a));i.v=n,delete i.e,(!r||!Object.is(o,i.v))&&(++i.n,Ft(o)&&Ks(o))},Js=(t,e)=>{const n=P(t)[14];return kt(n(t,e))},Qs=(t,e,...n)=>{const s=P(t),i=s[12],r=s[13],o=s[16];try{return o(t,e,...n)}finally{r(t),i(t)}},ti=(t,e,n)=>{const s=P(t),i=s[12],r=s[18],o=s[19],l=r(t,e).l;return l.add(n),i(t),()=>{l.delete(n),o(t,e),i(t)}},Tn=new WeakMap,P=t=>{const e=Tn.get(t);if((W?"production":void 0)!=="production"&&!e)throw new Error("Store must be created by buildStore to read its building blocks");return e};function ei(...t){const e={get(s){const i=P(e)[21];return i(e,s)},set(s,...i){const r=P(e)[22];return r(e,s,...i)},sub(s,i){const r=P(e)[23];return r(e,s,i)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},js,Ls,$s,zs,Xs,Us,Ys,Hs,Gs,Sn,qs,wn,Zs,Et,Js,Qs,ti,void 0].map((s,i)=>t[i]||s);return Tn.set(e,Object.freeze(n)),e}const Mn={};let ni=0;function An(t,e){const n=`atom${++ni}`,s={toString(){return(Mn?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?s.read=t:(s.init=t,s.read=si,s.write=ii),s}function si(t){return t(this)}function ii(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}function ri(){return ei()}let ot;function oi(){return ot||(ot=ri(),(Mn?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ot),globalThis.__JOTAI_DEFAULT_STORE__!==ot&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ot}const ai={},ui=L.createContext(void 0);function Vn(t){return L.useContext(ui)||oi()}const Ut=t=>typeof t?.then=="function",Yt=t=>{t.status||(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}))},li=pn.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(Yt(t),t)}),Wt=new WeakMap,Ne=(t,e)=>{let n=Wt.get(t);return n||(n=new Promise((s,i)=>{let r=t;const o=c=>u=>{r===c&&s(u)},a=c=>u=>{r===c&&i(u)},l=()=>{try{const c=e();Ut(c)?(Wt.set(c,n),r=c,c.then(o(c),a(c)),zt(c,l)):s(c)}catch(c){i(c)}};t.then(o(t),a(t)),zt(t,l)}),Wt.set(t,n)),n};function ci(t,e){const{delay:n,unstable_promiseStatus:s=!pn.use}={},i=Vn(),[[r,o,a],l]=L.useReducer(u=>{const f=i.get(t);return Object.is(u[0],f)&&u[1]===i&&u[2]===t?u:[f,i,t]},void 0,()=>[i.get(t),i,t]);let c=r;if((o!==i||a!==t)&&(l(),c=i.get(t)),L.useEffect(()=>{const u=i.sub(t,()=>{if(s)try{const f=i.get(t);Ut(f)&&Yt(Ne(f,()=>i.get(t)))}catch{}if(typeof n=="number"){setTimeout(l,n);return}l()});return l(),u},[i,t,n,s]),L.useDebugValue(c),Ut(c)){const u=Ne(c,()=>i.get(t));return s&&Yt(u),li(u)}return c}function fi(t,e){const n=Vn();return L.useCallback((...i)=>{if((ai?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...i)},[n,t])}function di(t,e){return[ci(t),fi(t)]}function hi(t,e){t.indexOf(e)===-1&&t.push(e)}function xn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const H=(t,e,n)=>n>e?e:n<t?t:n;let fe=()=>{};const B={},Dn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function mi(t){return typeof t=="object"&&t!==null}const Cn=t=>/^0[^.\s]+$/u.test(t);function de(t){let e;return()=>(e===void 0&&(e=t()),e)}const J=t=>t,pi=(t,e)=>n=>e(t(n)),he=(...t)=>t.reduce(pi),me=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class kn{constructor(){this.subscriptions=[]}add(e){return hi(this.subscriptions,e),()=>xn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const R=t=>t*1e3,O=t=>t/1e3;function Pn(t,e){return e?t*(1e3/e):0}const gi=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},Fn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,yi=1e-7,bi=12;function vi(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Fn(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>yi&&++a<bi);return o}function bt(t,e,n,s){if(t===e&&n===s)return J;const i=r=>vi(r,0,1,t,n);return r=>r===0||r===1?r:Fn(i(r),e,s)}const En=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_n=t=>e=>1-t(1-e),On=bt(.33,1.53,.69,.99),pe=_n(On),Rn=En(pe),In=t=>(t*=2)<1?.5*pe(t):.5*(2-Math.pow(2,-10*(t-1))),ge=t=>1-Math.sin(Math.acos(t)),Si=_n(ge),Wn=En(ge),wi=bt(.42,0,1,1),Ti=bt(0,0,.58,1),Bn=bt(.42,0,.58,1),Nn=t=>Array.isArray(t)&&typeof t[0]!="number";function Kn(t,e){return Nn(t)?t[gi(0,t.length,e)]:t}const jn=t=>Array.isArray(t)&&typeof t[0]=="number",Mi={linear:J,easeIn:wi,easeInOut:Bn,easeOut:Ti,circIn:ge,circInOut:Wn,circOut:Si,backIn:pe,backInOut:Rn,backOut:On,anticipate:In},Ai=t=>typeof t=="string",Ke=t=>{if(jn(t)){fe(t.length===4);const[e,n,s,i]=t;return bt(e,n,s,i)}else if(Ai(t))return Mi[t];return t},At=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Vi(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&i?n:s;return f&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const xi=40;function Ln(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=At.reduce((M,T)=>(M[T]=Vi(r),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const M=B.useManualTiming?i.timestamp:performance.now();n=!1,B.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(M-i.timestamp,xi),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},m=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:At.reduce((M,T)=>{const b=o[T];return M[T]=(A,x=!1,y=!1)=>(n||m(),b.schedule(A,x,y)),M},{}),cancel:M=>{for(let T=0;T<At.length;T++)o[At[T]].cancel(M)},state:i,steps:o}}const{schedule:N,cancel:Ht,state:_t}=Ln(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let Dt;function Di(){Dt=void 0}const _={now:()=>(Dt===void 0&&_.set(_t.isProcessing||B.useManualTiming?_t.timestamp:performance.now()),Dt),set:t=>{Dt=t,queueMicrotask(Di)}},$n=t=>e=>typeof e=="string"&&e.startsWith(t),zn=$n("--"),Ci=$n("var(--"),ye=t=>Ci(t)?ki.test(t.split("/*")[0].trim()):!1,ki=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Q={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ht={...Q,transform:t=>H(0,1,t)},Vt={...Q,default:1},ft=t=>Math.round(t*1e5)/1e5,be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pi(t){return t==null}const Fi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ve=(t,e)=>n=>!!(typeof n=="string"&&Fi.test(n)&&n.startsWith(t)||e&&!Pi(n)&&Object.prototype.hasOwnProperty.call(n,e)),Xn=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(be);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ei=t=>H(0,255,t),Bt={...Q,transform:t=>Math.round(Ei(t))},z={test:ve("rgb","red"),parse:Xn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Bt.transform(t)+", "+Bt.transform(e)+", "+Bt.transform(n)+", "+ft(ht.transform(s))+")"};function _i(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Gt={test:ve("#"),parse:_i,transform:z.transform},vt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),j=vt("deg"),Z=vt("%"),S=vt("px"),Oi=vt("vh"),Ri=vt("vw"),je={...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(t*100)},q={test:ve("hsl","hue"),parse:Xn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Z.transform(ft(e))+", "+Z.transform(ft(n))+", "+ft(ht.transform(s))+")"},C={test:t=>z.test(t)||Gt.test(t)||q.test(t),parse:t=>z.test(t)?z.parse(t):q.test(t)?q.parse(t):Gt.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?z.transform(t):q.transform(t),getAnimatableNone:t=>{const e=C.parse(t);return e.alpha=0,C.transform(e)}},Ii=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wi(t){return isNaN(t)&&typeof t=="string"&&(t.match(be)?.length||0)+(t.match(Ii)?.length||0)>0}const Un="number",Yn="color",Bi="var",Ni="var(",Le="${}",Ki=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Ki,l=>(C.test(l)?(s.color.push(r),i.push(Yn),n.push(C.parse(l))):l.startsWith(Ni)?(s.var.push(r),i.push(Bi),n.push(l)):(s.number.push(r),i.push(Un),n.push(parseFloat(l))),++r,Le)).split(Le);return{values:n,split:a,indexes:s,types:i}}function Hn(t){return mt(t).values}function Gn(t){const{split:e,types:n}=mt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Un?r+=ft(i[o]):a===Yn?r+=C.transform(i[o]):r+=i[o]}return r}}const ji=t=>typeof t=="number"?0:C.test(t)?C.getAnimatableNone(t):t;function Li(t){const e=Hn(t);return Gn(t)(e.map(ji))}const tt={test:Wi,parse:Hn,createTransformer:Gn,getAnimatableNone:Li};function Nt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $i({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Nt(l,a,t+1/3),r=Nt(l,a,t),o=Nt(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(t,e){return n=>n>0?e:t}const St=(t,e,n)=>t+(e-t)*n,Kt=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},zi=[Gt,z,q],Xi=t=>zi.find(e=>e.test(t));function $e(t){const e=Xi(t);if(!e)return!1;let n=e.parse(t);return e===q&&(n=$i(n)),n}const ze=(t,e)=>{const n=$e(t),s=$e(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=Kt(n.red,s.red,r),i.green=Kt(n.green,s.green,r),i.blue=Kt(n.blue,s.blue,r),i.alpha=St(n.alpha,s.alpha,r),z.transform(i))},qt=new Set(["none","hidden"]);function Ui(t,e){return qt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Yi(t,e){return n=>St(t,e,n)}function Se(t){return typeof t=="number"?Yi:typeof t=="string"?ye(t)?Ot:C.test(t)?ze:qi:Array.isArray(t)?qn:typeof t=="object"?C.test(t)?ze:Hi:Ot}function qn(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Se(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Hi(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Se(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Gi(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const qi=(t,e)=>{const n=tt.createTransformer(e),s=mt(t),i=mt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qt.has(t)&&!i.values.length||qt.has(e)&&!s.values.length?Ui(t,e):he(qn(Gi(s,i),i.values),n):Ot(t,e)};function Zn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?St(t,e,n):Se(t)(t,e)}const Zi=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>N.update(e,n),stop:()=>Ht(e),now:()=>_t.isProcessing?_t.timestamp:_.now()}},Jn=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Rt=2e4;function we(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Rt;)e+=n,s=t.next(e);return e>=Rt?1/0:e}function Qn(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(we(s),Rt);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:O(i)}}const Ji=5;function ts(t,e,n){const s=Math.max(e-Ji,0);return Pn(n-t(s),e-s)}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jt=.001;function Qi({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,r,o=1-e;o=H(D.minDamping,D.maxDamping,o),t=H(D.minDuration,D.maxDuration,O(t)),o<1?(i=c=>{const u=c*o,f=u*t,d=u-n,h=Zt(c,o),p=Math.exp(-f);return jt-d/h*p},r=c=>{const f=c*o*t,d=f*n+n,h=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-f),g=Zt(Math.pow(c,2),o);return(-i(c)+jt>0?-1:1)*((d-h)*p)/g}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-jt+u*f},r=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=er(i,r,a);if(t=R(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const tr=12;function er(t,e,n){let s=n;for(let i=1;i<tr;i++)s=s-t(s)/e(s);return s}function Zt(t,e){return t*Math.sqrt(1-e*e)}const nr=["duration","bounce"],sr=["stiffness","damping","mass"];function Xe(t,e){return e.some(n=>t[n]!==void 0)}function ir(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Xe(t,sr)&&Xe(t,nr))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Qi(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function pt(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=ir({...n,velocity:-O(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),m=o-r,v=O(Math.sqrt(l/u)),w=Math.abs(m)<5;s||(s=w?D.restSpeed.granular:D.restSpeed.default),i||(i=w?D.restDelta.granular:D.restDelta.default);let M;if(g<1){const b=Zt(v,g);M=A=>{const x=Math.exp(-g*v*A);return o-x*((p+g*v*m)/b*Math.sin(b*A)+m*Math.cos(b*A))}}else if(g===1)M=b=>o-Math.exp(-v*b)*(m+(p+v*m)*b);else{const b=v*Math.sqrt(g*g-1);M=A=>{const x=Math.exp(-g*v*A),y=Math.min(b*A,300);return o-x*((p+g*v*m)*Math.sinh(y)+b*m*Math.cosh(y))/b}}const T={calculatedDuration:h&&f||null,next:b=>{const A=M(b);if(h)a.done=b>=f;else{let x=b===0?p:0;g<1&&(x=b===0?R(p):ts(M,b,A));const y=Math.abs(x)<=s,V=Math.abs(o-A)<=i;a.done=y&&V}return a.value=a.done?o:A,a},toString:()=>{const b=Math.min(we(T),Rt),A=Jn(x=>T.next(b*x).value,b,30);return b+"ms "+A},toTransition:()=>{}};return T}pt.applyToOptions=t=>{const e=Qn(t,100,pt);return t.ease=e.ease,t.duration=R(e.duration),t.type="keyframes",t};function Jt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const m=f+g,v=o===void 0?m:o(m);v!==m&&(g=v-f);const w=y=>-g*Math.exp(-y/s),M=y=>v+w(y),T=y=>{const V=w(y),k=M(y);d.done=Math.abs(V)<=c,d.value=d.done?v:k};let b,A;const x=y=>{h(d.value)&&(b=y,A=pt({keyframes:[d.value,p(d.value)],velocity:ts(M,y,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return x(0),{calculatedDuration:null,next:y=>{let V=!1;return!A&&b===void 0&&(V=!0,T(y),x(y)),b!==void 0&&y>=b?A.next(y-b):(!V&&T(y),d)}}}function rr(t,e,n){const s=[],i=n||B.mix||Zn,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||J:e;a=he(l,a)}s.push(a)}return s}function or(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(fe(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rr(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=me(t[f],t[f+1],u);return a[f](d)};return n?u=>c(H(t[0],t[r-1],u)):c}function es(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=me(0,e,s);t.push(St(n,1,i))}}function ns(t){const e=[0];return es(e,t.length-1),e}function ar(t,e){return t.map(n=>n*e)}function ur(t,e){return t.map(()=>e||Bn).splice(0,t.length-1)}function dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Nn(s)?s.map(Ke):Ke(s),r={done:!1,value:e[0]},o=ar(n&&n.length===e.length?n:ns(e),t),a=or(o,e,{ease:Array.isArray(i)?i:ur(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const lr=t=>t!==null;function Te(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(lr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const cr={decay:Jt,inertia:Jt,tween:dt,keyframes:dt,spring:pt};function ss(t){typeof t.type=="string"&&(t.type=cr[t.type])}class Me{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const fr=t=>t/100;class Ae extends Me{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==_.now()&&this.tick(_.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ss(e);const{type:n=dt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||dt;l!==dt&&typeof a[0]!="number"&&(this.mixKeyframes=he(fr,Zn(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=we(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,T=s;if(f){const y=Math.min(this.currentTime,i)/a;let V=Math.floor(y),k=y%1;!k&&y>=1&&(k=1),k===1&&V--,V=Math.min(V,f+1),!!(V%2)&&(d==="reverse"?(k=1-k,h&&(k-=h/a)):d==="mirror"&&(T=o)),M=H(0,1,k)*a}const b=w?{done:!1,value:u[0]}:T.next(M);r&&(b.value=r(b.value));let{done:A}=b;!w&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return x&&p!==Jt&&(b.value=Te(u,this.options,m,this.speed)),g&&g(b.value),x&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return O(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(_.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Zi,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function dr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const X=t=>t*180/Math.PI,Qt=t=>{const e=X(Math.atan2(t[1],t[0]));return te(e)},hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qt,rotateZ:Qt,skewX:t=>X(Math.atan(t[1])),skewY:t=>X(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},te=t=>(t=t%360,t<0&&(t+=360),t),Ue=Qt,Ye=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),He=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),mr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ye,scaleY:He,scale:t=>(Ye(t)+He(t))/2,rotateX:t=>te(X(Math.atan2(t[6],t[5]))),rotateY:t=>te(X(Math.atan2(-t[2],t[0]))),rotateZ:Ue,rotate:Ue,skewX:t=>X(Math.atan(t[4])),skewY:t=>X(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ee(t){return t.includes("scale")?1:0}function ne(t,e){if(!t||t==="none")return ee(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=mr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=hr,i=a}if(!i)return ee(e);const r=s[e],o=i[1].split(",").map(gr);return typeof r=="function"?r(o):o[r]}const pr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ne(n,e)};function gr(t){return parseFloat(t.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nt=new Set(et),Ge=t=>t===Q||t===S,yr=new Set(["x","y","z"]),br=et.filter(t=>!yr.has(t));function vr(t){const e=[];return br.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const U={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ne(e,"x"),y:(t,{transform:e})=>ne(e,"y")};U.translateX=U.x;U.translateY=U.y;const Y=new Set;let se=!1,ie=!1,re=!1;function is(){if(ie){const t=Array.from(Y).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=vr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ie=!1,se=!1,Y.forEach(t=>t.complete(re)),Y.clear()}function rs(){Y.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ie=!0)})}function Sr(){re=!0,rs(),is(),re=!1}class Ve{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Y.add(this),se||(se=!0,N.read(rs),N.resolveKeyframes(is))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}dr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Y.delete(this)}cancel(){this.state==="scheduled"&&(Y.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wr=t=>t.startsWith("--");function Tr(t,e,n){wr(e)?t.style.setProperty(e,n):t.style[e]=n}const Mr=de(()=>window.ScrollTimeline!==void 0),Ar={};function Vr(t,e){const n=de(t);return()=>Ar[e]??n()}const os=Vr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function as(t,e){if(t)return typeof t=="function"?os()?Jn(t,e):"ease-out":jn(t)?ct(t):Array.isArray(t)?t.map(n=>as(n,e)||qe.easeOut):qe[t]}function xr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const f=as(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function xe(t){return typeof t=="function"&&"applyToOptions"in t}function Dr({type:t,...e}){return xe(t)&&os()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Cr extends Me{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,fe(typeof e.type!="string");const c=Dr(e);this.animation=xr(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=Te(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Tr(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return O(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=R(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Mr()?(this.animation.timeline=e,J):n(this)}}const us={anticipate:In,backInOut:Rn,circInOut:Wn};function kr(t){return t in us}function Pr(t){typeof t.ease=="string"&&kr(t.ease)&&(t.ease=us[t.ease])}const Ze=10;class Fr extends Cr{constructor(e){Pr(e),ss(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ae({...o,autoplay:!1}),l=R(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ze).value,a.sample(l).value,Ze),a.stop()}}const Je=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function Er(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _r(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Je(i,e),a=Je(r,e);return!o||!a?!1:Er(t)||(n==="spring"||xe(n))&&s}function oe(t){t.duration=0,t.type="keyframes"}const Or=new Set(["opacity","clipPath","filter","transform"]),Rr=de(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ir(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Rr()&&n&&Or.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Wr=40;class Br extends Me{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...f},h=u?.KeyframeResolver||Ve;this.keyframeResolver=new h(a,(p,g,m)=>this.onKeyframesResolved(p,g,d,!m),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=_.now(),_r(e,r,o,a)||((B.instantAnimations||!l)&&u?.(Te(e,s,n)),e[0]=e[e.length-1],oe(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},h=!c&&Ir(d)?new Fr({...d,element:d.motionValue.owner.current}):new Ae(d);h.finished.then(()=>this.notifyFinished()).catch(J),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Sr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class Nr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Qe(this.animations,"duration")}get iterationDuration(){return Qe(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Qe(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class Kr extends Nr{then(e,n){return this.finished.finally(e).then(()=>{})}}const jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lr(t){const e=jr.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ls(t,e,n=1){const[s,i]=Lr(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Dn(o)?parseFloat(o):o}return ye(i)?ls(i,e,n+1):i}function cs(t,e){return t?.[e]??t?.default??t}const fs=new Set(["width","height","top","left","right","bottom",...et]),$r={test:t=>t==="auto",parse:t=>t},ds=t=>e=>e.test(t),hs=[Q,S,Z,j,Ri,Oi,$r],tn=t=>hs.find(ds(t));function zr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Cn(t):!0}const Xr=new Set(["brightness","contrast","saturate","opacity"]);function Ur(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(be)||[];if(!s)return t;const i=n.replace(s,"");let r=Xr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Yr=/\b([a-z-]*)\(.*?\)/gu,ae={...tt,getAnimatableNone:t=>{const e=t.match(Yr);return e?e.map(Ur).join(" "):t}},en={...Q,transform:Math.round},Hr={rotate:j,rotateX:j,rotateY:j,rotateZ:j,scale:Vt,scaleX:Vt,scaleY:Vt,scaleZ:Vt,skew:j,skewX:j,skewY:j,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:ht,originX:je,originY:je,originZ:S},De={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...Hr,zIndex:en,fillOpacity:ht,strokeOpacity:ht,numOctaves:en},Gr={...De,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:ae,WebkitFilter:ae},ms=t=>Gr[t];function ps(t,e){let n=ms(t);return n!==ae&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qr=new Set(["auto","none","0"]);function Zr(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!qr.has(r)&&mt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ps(n,i)}class Jr extends Ve{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),ye(c))){const u=ls(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!fs.has(s)||e.length!==2)return;const[i,r]=e,o=tn(i),a=tn(r);if(o!==a)if(Ge(o)&&Ge(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else U[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||zr(e[i]))&&s.push(i);s.length&&Zr(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Qr(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const gs=(t,e)=>e&&typeof t=="number"?e.transform(t):t,nn=30,to=t=>!isNaN(parseFloat(t));class eo{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=_.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=to(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new kn);const s=this.events[e].add(n);return e==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>nn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nn);return Pn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gt(t,e){return new eo(t,e)}const{schedule:no}=Ln(queueMicrotask,!1);function ys(t){return mi(t)&&"ownerSVGElement"in t}function so(t){return ys(t)&&t.tagName==="svg"}const F=t=>!!(t&&t.getVelocity),io=[...hs,C,tt],ro=t=>io.find(ds(t));function Ce(t){return typeof t=="object"&&!Array.isArray(t)}function bs(t,e,n,s){return typeof t=="string"&&Ce(e)?Qr(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function oo(t,e,n){return t*(e+1)}function sn(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function ao(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(xn(t,i),s--)}}function uo(t,e,n,s,i,r){ao(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:St(i,r,s[o]),easing:Kn(n,o)})}function lo(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function co(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const fo="easeInOut";function ho(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let h=0;h<t.length;h++){const p=t[h];if(typeof p=="string"){c.set(p,f);continue}else if(!Array.isArray(p)){c.set(p.name,sn(f,p.at,u,c));continue}let[g,m,v={}]=p;v.at!==void 0&&(f=sn(f,v.at,u,c));let w=0;const M=(T,b,A,x=0,y=0)=>{const V=mo(T),{delay:k=0,times:E=ns(V),type:It="keyframes",repeat:wt,repeatType:du,repeatDelay:hu=0,...Es}=b;let{ease:K=e.ease||"easeOut",duration:I}=b;const Ee=typeof k=="function"?k(x,y):k,_e=V.length,Oe=xe(It)?It:i?.[It||"keyframes"];if(_e<=2&&Oe){let st=100;if(_e===2&&yo(V)){const it=V[1]-V[0];st=Math.abs(it)}const Tt={...Es};I!==void 0&&(Tt.duration=R(I));const Mt=Qn(Tt,st,Oe);K=Mt.ease,I=Mt.duration}I??(I=r);const Re=f+Ee;E.length===1&&E[0]===0&&(E[1]=1);const Ie=E.length-V.length;if(Ie>0&&es(E,Ie),V.length===1&&V.unshift(null),wt){I=oo(I,wt);const st=[...V],Tt=[...E];K=Array.isArray(K)?[...K]:[K];const Mt=[...K];for(let it=0;it<wt;it++){V.push(...st);for(let rt=0;rt<st.length;rt++)E.push(Tt[rt]+(it+1)),K.push(rt===0?"linear":Kn(Mt,rt-1))}lo(E,wt)}const We=Re+I;uo(A,V,K,E,Re,We),w=Math.max(Ee+I,w),d=Math.max(We,d)};if(F(g)){const T=rn(g,a);M(m,v,on("default",T))}else{const T=bs(g,m,s,l),b=T.length;for(let A=0;A<b;A++){m=m,v=v;const x=T[A],y=rn(x,a);for(const V in m)M(m[V],po(v,V),on(V,y),A,b)}}u=f,f+=w}return a.forEach((h,p)=>{for(const g in h){const m=h[g];m.sort(co);const v=[],w=[],M=[];for(let b=0;b<m.length;b++){const{at:A,value:x,easing:y}=m[b];v.push(x),w.push(me(0,d,A)),M.push(y||"easeOut")}w[0]!==0&&(w.unshift(0),v.unshift(v[0]),M.unshift(fo)),w[w.length-1]!==1&&(w.push(1),v.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const T=o.get(p);T.keyframes[g]=v,T.transition[g]={...e,duration:d,ease:M,times:w,...n}}}),o}function rn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function on(t,e){return e[t]||(e[t]=[]),e[t]}function mo(t){return Array.isArray(t)?t:[t]}function po(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const go=t=>typeof t=="number",yo=t=>t.every(go),yt=new WeakMap,bo=t=>Array.isArray(t);function an(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function vs(t,e,n,s){if(typeof e=="function"){const[i,r]=an(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=an(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function vo(t,e,n){const s=t.getProps();return vs(s,e,s.custom,t)}function So(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function wo(t){return bo(t)?t[t.length-1]||0:t}function To(t,e){const n=vo(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=wo(r[o]);So(t,o,a)}}function Mo(t){return!!(F(t)&&t.add)}function Ao(t,e){const n=t.getValue("willChange");if(Mo(n))return n.add(e);if(!n&&B.WillChange){const s=new B.WillChange("auto");t.addValue("willChange",s),s.add(e)}}const ke=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vo="framerAppearId",xo="data-"+ke(Vo);function Do(t){return t.props[xo]}const Co=t=>t!==null;function ko(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Co),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}const Po={type:"spring",stiffness:500,damping:25,restSpeed:10},Fo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Eo={type:"keyframes",duration:.8},_o={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oo=(t,{keyframes:e})=>e.length>2?Eo:nt.has(t)?t.startsWith("scale")?Fo(e[1]):Po:_o;function Ro({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ss=(t,e,n,s={},i,r)=>o=>{const a=cs(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-R(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ro(a)||Object.assign(u,Oo(t,u)),u.duration&&(u.duration=R(u.duration)),u.repeatDelay&&(u.repeatDelay=R(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oe(u),u.delay===0&&(f=!0)),(B.instantAnimations||B.skipAnimations)&&(f=!0,oe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const d=ko(u.keyframes,a);if(d!==void 0){N.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ae(u):new Br(u)};function Io({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Wo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const f=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||c&&Io(c,u))continue;const h={delay:n,...cs(r||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const v=Do(t);if(v){const w=window.MotionHandoffAnimation(v,u,N);w!==null&&(h.startTime=w,g=!0)}}Ao(t,u),f.start(Ss(u,f,d,t.shouldReduceMotion&&fs.has(u)?{type:!1}:h,t,g));const m=f.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{N.update(()=>{o&&To(t,o)})}),l}function Bo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function No(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ko(t,e){return Bo(No(t.getBoundingClientRect(),e))}const un={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ue={};for(const t in un)ue[t]={isEnabled:e=>un[t].some(n=>!!e[n])};const ln=()=>({min:0,max:0}),Pe=()=>({x:ln(),y:ln()}),jo=typeof window<"u",le={current:null},ws={current:!1};function Lo(){if(ws.current=!0,!!jo)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>le.current=t.matches;t.addEventListener("change",e),e()}else le.current=!1}function $o(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function zo(t){return typeof t=="string"||Array.isArray(t)}const Xo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uo=["initial",...Xo];function Ts(t){return $o(t.animate)||Uo.some(e=>zo(t[e]))}function Yo(t){return!!(Ts(t)||t.variants)}function Ho(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,gt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,gt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const cn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ms{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ve,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=_.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,N.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ts(n),this.isVariantNode=Yo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&F(h)&&h.set(l[d])}}mount(e){this.current=e,yt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),ws.current||Lo(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:le.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ht(this.notifyUpdate),Ht(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=nt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ue){const n=ue[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<cn.length;s++){const i=cn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ho(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=gt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Dn(s)||Cn(s))?s=parseFloat(s):!ro(s)&&tt.test(n)&&(s=ps(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=vs(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new kn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){no.render(this.render)}}class As extends Ms{constructor(){super(...arguments),this.KeyframeResolver=Jr}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Go={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qo=et.length;function Zo(t,e,n){let s="",i=!0;for(let r=0;r<qo;r++){const o=et[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=gs(a,De[o]);if(!l){i=!1;const u=Go[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Vs(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(nt.has(l)){o=!0;continue}else if(zn(l)){i[l]=c;continue}else{const u=gs(c,De[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=Zo(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function xs(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}const Jo={};function Qo(t,{layout:e,layoutId:n}){return nt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Jo[t]||t==="opacity")}function Ds(t,e,n){const{style:s}=t,i={};for(const r in s)(F(s[r])||e.style&&F(e.style[r])||Qo(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(i[r]=s[r]);return i}function ta(t){return window.getComputedStyle(t)}class ea extends As{constructor(){super(...arguments),this.type="html",this.renderInstance=xs}readValueFromInstance(e,n){if(nt.has(n))return this.projection?.isProjecting?ee(n):pr(e,n);{const s=ta(e),i=(zn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ko(e,n)}build(e,n,s){Vs(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ds(e,n,s)}}function na(t,e){return t in e}class sa extends Ms{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(na(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return Pe()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}const ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},ra={offset:"strokeDashoffset",array:"strokeDasharray"};function oa(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?ia:ra;t[r.offset]=S.transform(-s);const o=S.transform(e),a=S.transform(n);t[r.array]=`${o} ${a}`}function aa(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Vs(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d}=t;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&oa(f,i,r,o,!1)}const Cs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ua=t=>typeof t=="string"&&t.toLowerCase()==="svg";function la(t,e,n,s){xs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Cs.has(i)?i:ke(i),e.attrs[i])}function ca(t,e,n){const s=Ds(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=et.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class fa extends As{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pe}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(nt.has(n)){const s=ms(n);return s&&s.default||0}return n=Cs.has(n)?n:ke(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ca(e,n,s)}build(e,n,s){aa(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){la(e,n,s,i)}mount(e){this.isSVGTag=ua(e.tagName),super.mount(e)}}function da(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ys(t)&&!so(t)?new fa(e):new ea(e);n.mount(t),yt.set(t,n)}function ha(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new sa(e);n.mount(t),yt.set(t,n)}function ma(t,e,n){const s=F(t)?t:gt(t);return s.start(Ss("",s,e,n)),s.animation}function pa(t,e){return F(t)||typeof t=="number"||typeof t=="string"&&!Ce(e)}function ks(t,e,n,s){const i=[];if(pa(t,e))i.push(ma(t,Ce(e)&&e.default||e,n&&(n.default||n)));else{const r=bs(t,e,s),o=r.length;for(let a=0;a<o;a++){const l=r[a],c=l instanceof Element?da:ha;yt.has(l)||c(l);const u=yt.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...Wo(u,{...e,transition:f},{}))}}return i}function ga(t,e,n){const s=[];return ho(t,e,n,{spring:pt}).forEach(({keyframes:r,transition:o},a)=>{s.push(...ks(a,r,o))}),s}function ya(t){return Array.isArray(t)&&t.some(Array.isArray)}function ba(t){function e(n,s,i){let r=[],o;if(ya(n))r=ga(n,s,t);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),r=ks(n,s,c,t)}const a=new Kr(r);return o&&a.finished.then(o),a}return e}const va=ba(),Sa="--sidebar-width",Ps=()=>typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue(Sa).trim()||"192px";An(Ps());const wa=()=>Ps()==="40px",Ta=An(wa()),G="--sidebar-width";function Tu(){const t=ce.c(19),[e,n]=di(Ta),s=L.useRef(null);let i;t[0]!==e||t[1]!==n?(i=g=>{if(typeof document<"u"&&g!==e){const m=g?"40px":"192px";s.current&&(s.current.cancel(),s.current=null);const v=getComputedStyle(document.documentElement).getPropertyValue(G).trim()||"192px",w=parseFloat(v.replace(/[^\d.]/g,"")),M=parseFloat(m.replace(/[^\d.]/g,""));if(Math.abs(w-M)>1){const T=m.replace(/[\d.]/g,"");s.current=va(w,M,{duration:.3,ease:"circInOut",onUpdate:b=>{document.documentElement.style.setProperty(G,`${b}${T}`)},onComplete:()=>{s.current=null,document.documentElement.style.setProperty(G,m)}}),n(g)}else n(g),document.documentElement.style.setProperty(G,m)}},t[0]=e,t[1]=n,t[2]=i):i=t[2];const r=i;let o;t[3]!==e||t[4]!==r?(o=()=>{r(!e)},t[3]=e,t[4]=r,t[5]=o):o=t[5];const a=o;let l;t[6]!==r?(l=()=>{r(!0)},t[6]=r,t[7]=l):l=t[7];const c=l;let u;t[8]!==r?(u=()=>{r(!1)},t[8]=r,t[9]=u):u=t[9];const f=u;let d;t[10]!==e?(d=()=>{if(typeof document<"u"){const g=getComputedStyle(document.documentElement).getPropertyValue(G).trim(),m=e?"40px":"192px";(!g||g!==m)&&document.documentElement.style.setProperty(G,m)}return()=>{s.current&&(s.current.cancel(),s.current=null)}},t[10]=e,t[11]=d):d=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[12]=h):h=t[12],L.useEffect(d,h);let p;return t[13]!==c||t[14]!==f||t[15]!==e||t[16]!==r||t[17]!==a?(p={isCollapsed:e,setSidebarCollapsed:r,toggleSidebar:a,collapseSidebar:c,expandSidebar:f},t[13]=c,t[14]=f,t[15]=e,t[16]=r,t[17]=a,t[18]=p):p=t[18],p}var Mu="_1aj0kmd0",Au="_1aj0kmd2 _1aj0kmd1 _1lg22bkdo _1lg22bkuf _1lg22bk107 _1lg22bk10a _1lg22bkpr _1lg22bk10k";const xt=43200,fn=1440,dn=Symbol.for("constructDateFrom");function Fs(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&dn in t?t[dn](e):t instanceof Date?new t.constructor(e):new Date(e)}function $(t,e){return Fs(t,t)}let Ma={};function Aa(){return Ma}function hn(t){const e=$(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Fe(t,...e){const n=Fs.bind(null,t||e.find(s=>typeof s=="object"));return e.map(n)}function Ct(t,e){const n=+$(t)-+$(e);return n<0?-1:n>0?1:n}function Va(t,e,n){const[s,i]=Fe(n?.in,t,e),r=s.getFullYear()-i.getFullYear(),o=s.getMonth()-i.getMonth();return r*12+o}function xa(t){return e=>{const s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function Da(t,e){return+$(t)-+$(e)}function Ca(t,e){const n=$(t);return n.setHours(23,59,59,999),n}function ka(t,e){const n=$(t),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function Pa(t,e){const n=$(t);return+Ca(n)==+ka(n)}function Fa(t,e,n){const[s,i,r]=Fe(n?.in,t,t,e),o=Ct(i,r),a=Math.abs(Va(i,r));if(a<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*a);let l=Ct(i,r)===-o;Pa(s)&&a===1&&Ct(s,r)===1&&(l=!1);const c=o*(a-+l);return c===0?0:c}function Ea(t,e,n){const s=Da(t,e)/1e3;return xa(n?.roundingMethod)(s)}const _a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Oa=(t,e,n)=>{let s;const i=_a[t];return typeof i=="string"?s=i:e===1?s=i.one:s=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Lt(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ra={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ia={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ba={date:Lt({formats:Ra,defaultWidth:"full"}),time:Lt({formats:Ia,defaultWidth:"full"}),dateTime:Lt({formats:Wa,defaultWidth:"full"})},Na={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ka=(t,e,n,s)=>Na[t];function at(t){return(e,n)=>{const s=n?.context?String(n.context):"standalone";let i;if(s==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}const ja={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},La={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},za={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Xa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ua={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ya=(t,e)=>{const n=Number(t),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ha={ordinalNumber:Ya,era:at({values:ja,defaultWidth:"wide"}),quarter:at({values:La,defaultWidth:"wide",argumentCallback:t=>t-1}),month:at({values:$a,defaultWidth:"wide"}),day:at({values:za,defaultWidth:"wide"}),dayPeriod:at({values:Xa,defaultWidth:"wide",formattingValues:Ua,defaultFormattingWidth:"wide"})};function ut(t){return(e,n={})=>{const s=n.width,i=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;const o=r[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?qa(a,f=>f.test(o)):Ga(a,f=>f.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function Ga(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function qa(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Za(t){return(e,n={})=>{const s=e.match(t.matchPattern);if(!s)return null;const i=s[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const Ja=/^(\d+)(th|st|nd|rd)?/i,Qa=/\d+/i,tu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eu={any:[/^b/i,/^(a|c)/i]},nu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},su={any:[/1/i,/2/i,/3/i,/4/i]},iu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ru={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ou={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},au={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cu={ordinalNumber:Za({matchPattern:Ja,parsePattern:Qa,valueCallback:t=>parseInt(t,10)}),era:ut({matchPatterns:tu,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),quarter:ut({matchPatterns:nu,defaultMatchWidth:"wide",parsePatterns:su,defaultParseWidth:"any",valueCallback:t=>t+1}),month:ut({matchPatterns:iu,defaultMatchWidth:"wide",parsePatterns:ru,defaultParseWidth:"any"}),day:ut({matchPatterns:ou,defaultMatchWidth:"wide",parsePatterns:au,defaultParseWidth:"any"}),dayPeriod:ut({matchPatterns:uu,defaultMatchWidth:"any",parsePatterns:lu,defaultParseWidth:"any"})},fu={code:"en-US",formatDistance:Oa,formatLong:Ba,formatRelative:Ka,localize:Ha,match:cu,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vu(t,e,n){const s=Aa(),i=n?.locale??s.locale??fu,r=2520,o=Ct(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[l,c]=Fe(n?.in,...o>0?[e,t]:[t,e]),u=Ea(c,l),f=(hn(c)-hn(l))/1e3,d=Math.round((u-f)/60);let h;if(d<2)return n?.includeSeconds?u<5?i.formatDistance("lessThanXSeconds",5,a):u<10?i.formatDistance("lessThanXSeconds",10,a):u<20?i.formatDistance("lessThanXSeconds",20,a):u<40?i.formatDistance("halfAMinute",0,a):u<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):d===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<fn){const p=Math.round(d/60);return i.formatDistance("aboutXHours",p,a)}else{if(d<r)return i.formatDistance("xDays",1,a);if(d<xt){const p=Math.round(d/fn);return i.formatDistance("xDays",p,a)}else if(d<xt*2)return h=Math.round(d/xt),i.formatDistance("aboutXMonths",h,a)}if(h=Fa(c,l),h<12){const p=Math.round(d/xt);return i.formatDistance("xMonths",p,a)}else{const p=h%12,g=Math.trunc(h/12);return p<3?i.formatDistance("aboutXYears",g,a):p<9?i.formatDistance("overXYears",g,a):i.formatDistance("almostXYears",g+1,a)}}export{pu as B,yu as C,gu as H,bu as a,wu as b,Su as c,va as d,Vu as f,Mu as g,vu as h,Tu as u,Au as w};
|
|
1
|
+
import{a as ce,d as mn,j as lt,k as _s,R as pn,r as L}from"./index-Bhx-JeV9.js";var Os="na2u4m1 na2u4m0 _1lg22bkw0",Rs="na2u4m2",Is="na2u4m3",Ws="na2u4m4";const pu=t=>{const e=ce.c(17);let n,s,i,r;e[0]!==t?({items:s,separator:r,className:n,...i}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i,e[4]=r):(n=e[1],s=e[2],i=e[3],r=e[4]);const o=r===void 0?"/":r;let a;e[5]!==n?(a=mn(Os,n),e[5]=n,e[6]=a):a=e[6];let l;if(e[7]!==s||e[8]!==o){let u;e[10]!==s.length||e[11]!==o?(u=(f,d)=>lt.jsxs("div",{className:Rs,children:[f.prefix,lt.jsx("div",{className:Is,children:f.label}),d<s.length-1&<.jsx("span",{className:Ws,"aria-hidden":"true",children:o})]},f.key),e[10]=s.length,e[11]=o,e[12]=u):u=e[12],l=s.map(u),e[7]=s,e[8]=o,e[9]=l}else l=e[9];let c;return e[13]!==i||e[14]!==a||e[15]!==l?(c=lt.jsx("nav",{...i,className:a,"aria-label":"Breadcrumb",children:l}),e[13]=i,e[14]=a,e[15]=l,e[16]=c):c=e[16],c};var Bs="f7jxdn0";const gu=t=>{const e=ce.c(5);let n;e[0]!==t.className?(n=mn(Bs,t.className),e[0]=t.className,e[1]=n):n=e[1];let s;return e[2]!==t||e[3]!==n?(s=lt.jsx("header",{...t,className:n}),e[2]=t,e[3]=n,e[4]=s):s=e[4],s};const Ns=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],yu=_s("columns-2",Ns);var bu="_6smcqd0",vu="_6smcqd1",Su="_6smcqd3",wu="_6smcqd4";const W={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function gn(t){return"init"in t}function $t(t){return!!t.write}function Be(t){return"v"in t||"e"in t}function kt(t){if("e"in t)throw t.e;if((W?"production":void 0)!=="production"&&!("v"in t))throw new Error("[Bug] atom state is not initialized");return t.v}const Pt=new WeakMap;function yn(t){var e;return Ft(t)&&!!((e=Pt.get(t))!=null&&e[0])}function Ks(t){const e=Pt.get(t);e?.[0]&&(e[0]=!1,e[1].forEach(n=>n()))}function zt(t,e){let n=Pt.get(t);if(!n){n=[!0,new Set],Pt.set(t,n);const s=()=>{n[0]=!1};t.then(s,s)}n[1].add(e)}function Ft(t){return typeof t?.then=="function"}function bn(t,e,n){if(!n.p.has(t)){n.p.add(t);const s=()=>n.p.delete(t);e.then(s,s)}}function vn(t,e,n){var s;const i=new Set;for(const r of((s=n.get(t))==null?void 0:s.t)||[])n.has(r)&&i.add(r);for(const r of e.p)i.add(r);return i}const js=(t,e,...n)=>e.read(...n),Ls=(t,e,...n)=>e.write(...n),$s=(t,e)=>{var n;return(n=e.unstable_onInit)==null?void 0:n.call(e,t)},zs=(t,e,n)=>{var s;return(s=e.onMount)==null?void 0:s.call(e,n)},Xs=(t,e)=>{var n;const s=P(t),i=s[0],r=s[6],o=s[9];if((W?"production":void 0)!=="production"&&!e)throw new Error("Atom is undefined or null");let a=i.get(e);return a||(a={d:new Map,p:new Set,n:0},i.set(e,a),(n=r.i)==null||n.call(r,e),o?.(t,e)),a},Us=t=>{const e=P(t),n=e[1],s=e[3],i=e[4],r=e[5],o=e[6],a=e[13],l=[],c=u=>{try{u()}catch(f){l.push(f)}};do{o.f&&c(o.f);const u=new Set,f=u.add.bind(u);s.forEach(d=>{var h;return(h=n.get(d))==null?void 0:h.l.forEach(f)}),s.clear(),r.forEach(f),r.clear(),i.forEach(f),i.clear(),u.forEach(c),s.size&&a(t)}while(s.size||r.size||i.size);if(l.length)throw new AggregateError(l)},Ys=t=>{const e=P(t),n=e[1],s=e[2],i=e[3],r=e[11],o=e[14],a=e[17],l=[],c=new WeakSet,u=new WeakSet,f=Array.from(i);for(;f.length;){const d=f[f.length-1],h=r(t,d);if(u.has(d)){f.pop();continue}if(c.has(d)){if(s.get(d)===h.n)l.push([d,h]);else if((W?"production":void 0)!=="production"&&s.has(d))throw new Error("[Bug] invalidated atom exists");u.add(d),f.pop();continue}c.add(d);for(const p of vn(d,h,n))c.has(p)||f.push(p)}for(let d=l.length-1;d>=0;--d){const[h,p]=l[d];let g=!1;for(const m of p.d.keys())if(m!==h&&i.has(m)){g=!0;break}g&&(o(t,h),a(t,h)),s.delete(h)}},Xt=new WeakSet,Hs=(t,e)=>{var n,s;const i=P(t),r=i[1],o=i[2],a=i[3],l=i[6],c=i[7],u=i[11],f=i[12],d=i[13],h=i[14],p=i[16],g=i[17],m=u(t,e);if(Be(m)&&(r.has(e)&&o.get(e)!==m.n||Array.from(m.d).every(([y,V])=>h(t,y).n===V)))return m;m.d.clear();let v=!0;function w(){r.has(e)&&(g(t,e),d(t),f(t))}function M(y){var V;if(y===e){const E=u(t,y);if(!Be(E))if(gn(y))Et(t,y,y.init);else throw new Error("no atom init");return kt(E)}const k=h(t,y);try{return kt(k)}finally{m.d.set(y,k.n),yn(m.v)&&bn(e,m.v,k),(V=r.get(y))==null||V.t.add(e),v||w()}}let T,b;const A={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(W?"production":void 0)!=="production"&&!$t(e)&&console.warn("setSelf function cannot be used with read-only atom"),!b&&$t(e)&&(b=(...y)=>{if((W?"production":void 0)!=="production"&&v&&console.warn("setSelf function cannot be called in sync"),!v)try{return p(t,e,...y)}finally{d(t),f(t)}}),b}},x=m.n;try{(W?"production":void 0)!=="production"&&Xt.delete(t);const y=c(t,e,M,A);return(W?"production":void 0)!=="production"&&Xt.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),Et(t,e,y),Ft(y)&&(zt(y,()=>T?.abort()),y.then(w,w)),(n=l.r)==null||n.call(l,e),m}catch(y){return delete m.v,m.e=y,++m.n,m}finally{v=!1,x!==m.n&&o.get(e)===x&&(o.set(e,m.n),a.add(e),(s=l.c)==null||s.call(l,e))}},Gs=(t,e)=>{const n=P(t),s=n[1],i=n[2],r=n[11],o=[e];for(;o.length;){const a=o.pop(),l=r(t,a);for(const c of vn(a,l,s)){const u=r(t,c);i.set(c,u.n),o.push(c)}}},Sn=(t,e,...n)=>{const s=P(t),i=s[3],r=s[6],o=s[8],a=s[11],l=s[12],c=s[13],u=s[14],f=s[15],d=s[17];let h=!0;const p=m=>kt(u(t,m)),g=(m,...v)=>{var w;const M=a(t,m);try{if(m===e){if(!gn(m))throw new Error("atom not writable");(W?"production":void 0)!=="production"&&Xt.add(t);const T=M.n,b=v[0];Et(t,m,b),d(t,m),T!==M.n&&(i.add(m),(w=r.c)==null||w.call(r,m),f(t,m));return}else return Sn(t,m,...v)}finally{h||(c(t),l(t))}};try{return o(t,e,p,g,...n)}finally{h=!1}},qs=(t,e)=>{var n;const s=P(t),i=s[1],r=s[3],o=s[6],a=s[11],l=s[15],c=s[18],u=s[19],f=a(t,e),d=i.get(e);if(d&&!yn(f.v)){for(const[h,p]of f.d)if(!d.d.has(h)){const g=a(t,h);c(t,h).t.add(e),d.d.add(h),p!==g.n&&(r.add(h),(n=o.c)==null||n.call(o,h),l(t,h))}for(const h of d.d||[])if(!f.d.has(h)){d.d.delete(h);const p=u(t,h);p?.t.delete(e)}}},wn=(t,e)=>{var n;const s=P(t),i=s[1],r=s[4],o=s[6],a=s[10],l=s[11],c=s[12],u=s[13],f=s[14],d=s[16],h=l(t,e);let p=i.get(e);if(!p){f(t,e);for(const g of h.d.keys())wn(t,g).t.add(e);if(p={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(e,p),(n=o.m)==null||n.call(o,e),$t(e)){const g=()=>{let m=!0;const v=(...w)=>{try{return d(t,e,...w)}finally{m||(u(t),c(t))}};try{const w=a(t,e,v);w&&(p.u=()=>{m=!0;try{w()}finally{m=!1}})}finally{m=!1}};r.add(g)}}return p},Zs=(t,e)=>{var n;const s=P(t),i=s[1],r=s[5],o=s[6],a=s[11],l=s[19],c=a(t,e);let u=i.get(e);if(u&&!u.l.size&&!Array.from(u.t).some(f=>{var d;return(d=i.get(f))==null?void 0:d.d.has(e)})){u.u&&r.add(u.u),u=void 0,i.delete(e),(n=o.u)==null||n.call(o,e);for(const f of c.d.keys()){const d=l(t,f);d?.t.delete(e)}return}return u},Et=(t,e,n)=>{const s=P(t)[11],i=s(t,e),r="v"in i,o=i.v;if(Ft(n))for(const a of i.d.keys())bn(e,n,s(t,a));i.v=n,delete i.e,(!r||!Object.is(o,i.v))&&(++i.n,Ft(o)&&Ks(o))},Js=(t,e)=>{const n=P(t)[14];return kt(n(t,e))},Qs=(t,e,...n)=>{const s=P(t),i=s[12],r=s[13],o=s[16];try{return o(t,e,...n)}finally{r(t),i(t)}},ti=(t,e,n)=>{const s=P(t),i=s[12],r=s[18],o=s[19],l=r(t,e).l;return l.add(n),i(t),()=>{l.delete(n),o(t,e),i(t)}},Tn=new WeakMap,P=t=>{const e=Tn.get(t);if((W?"production":void 0)!=="production"&&!e)throw new Error("Store must be created by buildStore to read its building blocks");return e};function ei(...t){const e={get(s){const i=P(e)[21];return i(e,s)},set(s,...i){const r=P(e)[22];return r(e,s,...i)},sub(s,i){const r=P(e)[23];return r(e,s,i)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},js,Ls,$s,zs,Xs,Us,Ys,Hs,Gs,Sn,qs,wn,Zs,Et,Js,Qs,ti,void 0].map((s,i)=>t[i]||s);return Tn.set(e,Object.freeze(n)),e}const Mn={};let ni=0;function An(t,e){const n=`atom${++ni}`,s={toString(){return(Mn?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?s.read=t:(s.init=t,s.read=si,s.write=ii),s}function si(t){return t(this)}function ii(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}function ri(){return ei()}let ot;function oi(){return ot||(ot=ri(),(Mn?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ot),globalThis.__JOTAI_DEFAULT_STORE__!==ot&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ot}const ai={},ui=L.createContext(void 0);function Vn(t){return L.useContext(ui)||oi()}const Ut=t=>typeof t?.then=="function",Yt=t=>{t.status||(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}))},li=pn.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(Yt(t),t)}),Wt=new WeakMap,Ne=(t,e)=>{let n=Wt.get(t);return n||(n=new Promise((s,i)=>{let r=t;const o=c=>u=>{r===c&&s(u)},a=c=>u=>{r===c&&i(u)},l=()=>{try{const c=e();Ut(c)?(Wt.set(c,n),r=c,c.then(o(c),a(c)),zt(c,l)):s(c)}catch(c){i(c)}};t.then(o(t),a(t)),zt(t,l)}),Wt.set(t,n)),n};function ci(t,e){const{delay:n,unstable_promiseStatus:s=!pn.use}={},i=Vn(),[[r,o,a],l]=L.useReducer(u=>{const f=i.get(t);return Object.is(u[0],f)&&u[1]===i&&u[2]===t?u:[f,i,t]},void 0,()=>[i.get(t),i,t]);let c=r;if((o!==i||a!==t)&&(l(),c=i.get(t)),L.useEffect(()=>{const u=i.sub(t,()=>{if(s)try{const f=i.get(t);Ut(f)&&Yt(Ne(f,()=>i.get(t)))}catch{}if(typeof n=="number"){setTimeout(l,n);return}l()});return l(),u},[i,t,n,s]),L.useDebugValue(c),Ut(c)){const u=Ne(c,()=>i.get(t));return s&&Yt(u),li(u)}return c}function fi(t,e){const n=Vn();return L.useCallback((...i)=>{if((ai?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...i)},[n,t])}function di(t,e){return[ci(t),fi(t)]}function hi(t,e){t.indexOf(e)===-1&&t.push(e)}function xn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const H=(t,e,n)=>n>e?e:n<t?t:n;let fe=()=>{};const B={},Dn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function mi(t){return typeof t=="object"&&t!==null}const Cn=t=>/^0[^.\s]+$/u.test(t);function de(t){let e;return()=>(e===void 0&&(e=t()),e)}const J=t=>t,pi=(t,e)=>n=>e(t(n)),he=(...t)=>t.reduce(pi),me=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class kn{constructor(){this.subscriptions=[]}add(e){return hi(this.subscriptions,e),()=>xn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const R=t=>t*1e3,O=t=>t/1e3;function Pn(t,e){return e?t*(1e3/e):0}const gi=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},Fn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,yi=1e-7,bi=12;function vi(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Fn(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>yi&&++a<bi);return o}function bt(t,e,n,s){if(t===e&&n===s)return J;const i=r=>vi(r,0,1,t,n);return r=>r===0||r===1?r:Fn(i(r),e,s)}const En=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_n=t=>e=>1-t(1-e),On=bt(.33,1.53,.69,.99),pe=_n(On),Rn=En(pe),In=t=>(t*=2)<1?.5*pe(t):.5*(2-Math.pow(2,-10*(t-1))),ge=t=>1-Math.sin(Math.acos(t)),Si=_n(ge),Wn=En(ge),wi=bt(.42,0,1,1),Ti=bt(0,0,.58,1),Bn=bt(.42,0,.58,1),Nn=t=>Array.isArray(t)&&typeof t[0]!="number";function Kn(t,e){return Nn(t)?t[gi(0,t.length,e)]:t}const jn=t=>Array.isArray(t)&&typeof t[0]=="number",Mi={linear:J,easeIn:wi,easeInOut:Bn,easeOut:Ti,circIn:ge,circInOut:Wn,circOut:Si,backIn:pe,backInOut:Rn,backOut:On,anticipate:In},Ai=t=>typeof t=="string",Ke=t=>{if(jn(t)){fe(t.length===4);const[e,n,s,i]=t;return bt(e,n,s,i)}else if(Ai(t))return Mi[t];return t},At=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Vi(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&i?n:s;return f&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const xi=40;function Ln(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=At.reduce((M,T)=>(M[T]=Vi(r),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const M=B.useManualTiming?i.timestamp:performance.now();n=!1,B.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(M-i.timestamp,xi),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},m=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:At.reduce((M,T)=>{const b=o[T];return M[T]=(A,x=!1,y=!1)=>(n||m(),b.schedule(A,x,y)),M},{}),cancel:M=>{for(let T=0;T<At.length;T++)o[At[T]].cancel(M)},state:i,steps:o}}const{schedule:N,cancel:Ht,state:_t}=Ln(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let Dt;function Di(){Dt=void 0}const _={now:()=>(Dt===void 0&&_.set(_t.isProcessing||B.useManualTiming?_t.timestamp:performance.now()),Dt),set:t=>{Dt=t,queueMicrotask(Di)}},$n=t=>e=>typeof e=="string"&&e.startsWith(t),zn=$n("--"),Ci=$n("var(--"),ye=t=>Ci(t)?ki.test(t.split("/*")[0].trim()):!1,ki=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Q={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ht={...Q,transform:t=>H(0,1,t)},Vt={...Q,default:1},ft=t=>Math.round(t*1e5)/1e5,be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pi(t){return t==null}const Fi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ve=(t,e)=>n=>!!(typeof n=="string"&&Fi.test(n)&&n.startsWith(t)||e&&!Pi(n)&&Object.prototype.hasOwnProperty.call(n,e)),Xn=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(be);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ei=t=>H(0,255,t),Bt={...Q,transform:t=>Math.round(Ei(t))},z={test:ve("rgb","red"),parse:Xn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Bt.transform(t)+", "+Bt.transform(e)+", "+Bt.transform(n)+", "+ft(ht.transform(s))+")"};function _i(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Gt={test:ve("#"),parse:_i,transform:z.transform},vt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),j=vt("deg"),Z=vt("%"),S=vt("px"),Oi=vt("vh"),Ri=vt("vw"),je={...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(t*100)},q={test:ve("hsl","hue"),parse:Xn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Z.transform(ft(e))+", "+Z.transform(ft(n))+", "+ft(ht.transform(s))+")"},C={test:t=>z.test(t)||Gt.test(t)||q.test(t),parse:t=>z.test(t)?z.parse(t):q.test(t)?q.parse(t):Gt.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?z.transform(t):q.transform(t),getAnimatableNone:t=>{const e=C.parse(t);return e.alpha=0,C.transform(e)}},Ii=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wi(t){return isNaN(t)&&typeof t=="string"&&(t.match(be)?.length||0)+(t.match(Ii)?.length||0)>0}const Un="number",Yn="color",Bi="var",Ni="var(",Le="${}",Ki=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Ki,l=>(C.test(l)?(s.color.push(r),i.push(Yn),n.push(C.parse(l))):l.startsWith(Ni)?(s.var.push(r),i.push(Bi),n.push(l)):(s.number.push(r),i.push(Un),n.push(parseFloat(l))),++r,Le)).split(Le);return{values:n,split:a,indexes:s,types:i}}function Hn(t){return mt(t).values}function Gn(t){const{split:e,types:n}=mt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Un?r+=ft(i[o]):a===Yn?r+=C.transform(i[o]):r+=i[o]}return r}}const ji=t=>typeof t=="number"?0:C.test(t)?C.getAnimatableNone(t):t;function Li(t){const e=Hn(t);return Gn(t)(e.map(ji))}const tt={test:Wi,parse:Hn,createTransformer:Gn,getAnimatableNone:Li};function Nt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $i({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Nt(l,a,t+1/3),r=Nt(l,a,t),o=Nt(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(t,e){return n=>n>0?e:t}const St=(t,e,n)=>t+(e-t)*n,Kt=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},zi=[Gt,z,q],Xi=t=>zi.find(e=>e.test(t));function $e(t){const e=Xi(t);if(!e)return!1;let n=e.parse(t);return e===q&&(n=$i(n)),n}const ze=(t,e)=>{const n=$e(t),s=$e(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=Kt(n.red,s.red,r),i.green=Kt(n.green,s.green,r),i.blue=Kt(n.blue,s.blue,r),i.alpha=St(n.alpha,s.alpha,r),z.transform(i))},qt=new Set(["none","hidden"]);function Ui(t,e){return qt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Yi(t,e){return n=>St(t,e,n)}function Se(t){return typeof t=="number"?Yi:typeof t=="string"?ye(t)?Ot:C.test(t)?ze:qi:Array.isArray(t)?qn:typeof t=="object"?C.test(t)?ze:Hi:Ot}function qn(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Se(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Hi(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Se(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Gi(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const qi=(t,e)=>{const n=tt.createTransformer(e),s=mt(t),i=mt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qt.has(t)&&!i.values.length||qt.has(e)&&!s.values.length?Ui(t,e):he(qn(Gi(s,i),i.values),n):Ot(t,e)};function Zn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?St(t,e,n):Se(t)(t,e)}const Zi=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>N.update(e,n),stop:()=>Ht(e),now:()=>_t.isProcessing?_t.timestamp:_.now()}},Jn=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Rt=2e4;function we(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Rt;)e+=n,s=t.next(e);return e>=Rt?1/0:e}function Qn(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(we(s),Rt);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:O(i)}}const Ji=5;function ts(t,e,n){const s=Math.max(e-Ji,0);return Pn(n-t(s),e-s)}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jt=.001;function Qi({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,r,o=1-e;o=H(D.minDamping,D.maxDamping,o),t=H(D.minDuration,D.maxDuration,O(t)),o<1?(i=c=>{const u=c*o,f=u*t,d=u-n,h=Zt(c,o),p=Math.exp(-f);return jt-d/h*p},r=c=>{const f=c*o*t,d=f*n+n,h=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-f),g=Zt(Math.pow(c,2),o);return(-i(c)+jt>0?-1:1)*((d-h)*p)/g}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-jt+u*f},r=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=er(i,r,a);if(t=R(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const tr=12;function er(t,e,n){let s=n;for(let i=1;i<tr;i++)s=s-t(s)/e(s);return s}function Zt(t,e){return t*Math.sqrt(1-e*e)}const nr=["duration","bounce"],sr=["stiffness","damping","mass"];function Xe(t,e){return e.some(n=>t[n]!==void 0)}function ir(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Xe(t,sr)&&Xe(t,nr))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Qi(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function pt(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=ir({...n,velocity:-O(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),m=o-r,v=O(Math.sqrt(l/u)),w=Math.abs(m)<5;s||(s=w?D.restSpeed.granular:D.restSpeed.default),i||(i=w?D.restDelta.granular:D.restDelta.default);let M;if(g<1){const b=Zt(v,g);M=A=>{const x=Math.exp(-g*v*A);return o-x*((p+g*v*m)/b*Math.sin(b*A)+m*Math.cos(b*A))}}else if(g===1)M=b=>o-Math.exp(-v*b)*(m+(p+v*m)*b);else{const b=v*Math.sqrt(g*g-1);M=A=>{const x=Math.exp(-g*v*A),y=Math.min(b*A,300);return o-x*((p+g*v*m)*Math.sinh(y)+b*m*Math.cosh(y))/b}}const T={calculatedDuration:h&&f||null,next:b=>{const A=M(b);if(h)a.done=b>=f;else{let x=b===0?p:0;g<1&&(x=b===0?R(p):ts(M,b,A));const y=Math.abs(x)<=s,V=Math.abs(o-A)<=i;a.done=y&&V}return a.value=a.done?o:A,a},toString:()=>{const b=Math.min(we(T),Rt),A=Jn(x=>T.next(b*x).value,b,30);return b+"ms "+A},toTransition:()=>{}};return T}pt.applyToOptions=t=>{const e=Qn(t,100,pt);return t.ease=e.ease,t.duration=R(e.duration),t.type="keyframes",t};function Jt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const m=f+g,v=o===void 0?m:o(m);v!==m&&(g=v-f);const w=y=>-g*Math.exp(-y/s),M=y=>v+w(y),T=y=>{const V=w(y),k=M(y);d.done=Math.abs(V)<=c,d.value=d.done?v:k};let b,A;const x=y=>{h(d.value)&&(b=y,A=pt({keyframes:[d.value,p(d.value)],velocity:ts(M,y,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return x(0),{calculatedDuration:null,next:y=>{let V=!1;return!A&&b===void 0&&(V=!0,T(y),x(y)),b!==void 0&&y>=b?A.next(y-b):(!V&&T(y),d)}}}function rr(t,e,n){const s=[],i=n||B.mix||Zn,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||J:e;a=he(l,a)}s.push(a)}return s}function or(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(fe(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rr(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=me(t[f],t[f+1],u);return a[f](d)};return n?u=>c(H(t[0],t[r-1],u)):c}function es(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=me(0,e,s);t.push(St(n,1,i))}}function ns(t){const e=[0];return es(e,t.length-1),e}function ar(t,e){return t.map(n=>n*e)}function ur(t,e){return t.map(()=>e||Bn).splice(0,t.length-1)}function dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Nn(s)?s.map(Ke):Ke(s),r={done:!1,value:e[0]},o=ar(n&&n.length===e.length?n:ns(e),t),a=or(o,e,{ease:Array.isArray(i)?i:ur(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const lr=t=>t!==null;function Te(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(lr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const cr={decay:Jt,inertia:Jt,tween:dt,keyframes:dt,spring:pt};function ss(t){typeof t.type=="string"&&(t.type=cr[t.type])}class Me{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const fr=t=>t/100;class Ae extends Me{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==_.now()&&this.tick(_.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ss(e);const{type:n=dt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||dt;l!==dt&&typeof a[0]!="number"&&(this.mixKeyframes=he(fr,Zn(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=we(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,T=s;if(f){const y=Math.min(this.currentTime,i)/a;let V=Math.floor(y),k=y%1;!k&&y>=1&&(k=1),k===1&&V--,V=Math.min(V,f+1),!!(V%2)&&(d==="reverse"?(k=1-k,h&&(k-=h/a)):d==="mirror"&&(T=o)),M=H(0,1,k)*a}const b=w?{done:!1,value:u[0]}:T.next(M);r&&(b.value=r(b.value));let{done:A}=b;!w&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return x&&p!==Jt&&(b.value=Te(u,this.options,m,this.speed)),g&&g(b.value),x&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return O(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(_.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Zi,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function dr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const X=t=>t*180/Math.PI,Qt=t=>{const e=X(Math.atan2(t[1],t[0]));return te(e)},hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qt,rotateZ:Qt,skewX:t=>X(Math.atan(t[1])),skewY:t=>X(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},te=t=>(t=t%360,t<0&&(t+=360),t),Ue=Qt,Ye=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),He=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),mr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ye,scaleY:He,scale:t=>(Ye(t)+He(t))/2,rotateX:t=>te(X(Math.atan2(t[6],t[5]))),rotateY:t=>te(X(Math.atan2(-t[2],t[0]))),rotateZ:Ue,rotate:Ue,skewX:t=>X(Math.atan(t[4])),skewY:t=>X(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ee(t){return t.includes("scale")?1:0}function ne(t,e){if(!t||t==="none")return ee(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=mr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=hr,i=a}if(!i)return ee(e);const r=s[e],o=i[1].split(",").map(gr);return typeof r=="function"?r(o):o[r]}const pr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ne(n,e)};function gr(t){return parseFloat(t.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nt=new Set(et),Ge=t=>t===Q||t===S,yr=new Set(["x","y","z"]),br=et.filter(t=>!yr.has(t));function vr(t){const e=[];return br.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const U={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ne(e,"x"),y:(t,{transform:e})=>ne(e,"y")};U.translateX=U.x;U.translateY=U.y;const Y=new Set;let se=!1,ie=!1,re=!1;function is(){if(ie){const t=Array.from(Y).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=vr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ie=!1,se=!1,Y.forEach(t=>t.complete(re)),Y.clear()}function rs(){Y.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ie=!0)})}function Sr(){re=!0,rs(),is(),re=!1}class Ve{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Y.add(this),se||(se=!0,N.read(rs),N.resolveKeyframes(is))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}dr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Y.delete(this)}cancel(){this.state==="scheduled"&&(Y.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wr=t=>t.startsWith("--");function Tr(t,e,n){wr(e)?t.style.setProperty(e,n):t.style[e]=n}const Mr=de(()=>window.ScrollTimeline!==void 0),Ar={};function Vr(t,e){const n=de(t);return()=>Ar[e]??n()}const os=Vr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function as(t,e){if(t)return typeof t=="function"?os()?Jn(t,e):"ease-out":jn(t)?ct(t):Array.isArray(t)?t.map(n=>as(n,e)||qe.easeOut):qe[t]}function xr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const f=as(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function xe(t){return typeof t=="function"&&"applyToOptions"in t}function Dr({type:t,...e}){return xe(t)&&os()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Cr extends Me{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,fe(typeof e.type!="string");const c=Dr(e);this.animation=xr(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=Te(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Tr(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return O(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=R(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Mr()?(this.animation.timeline=e,J):n(this)}}const us={anticipate:In,backInOut:Rn,circInOut:Wn};function kr(t){return t in us}function Pr(t){typeof t.ease=="string"&&kr(t.ease)&&(t.ease=us[t.ease])}const Ze=10;class Fr extends Cr{constructor(e){Pr(e),ss(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ae({...o,autoplay:!1}),l=R(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ze).value,a.sample(l).value,Ze),a.stop()}}const Je=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function Er(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _r(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Je(i,e),a=Je(r,e);return!o||!a?!1:Er(t)||(n==="spring"||xe(n))&&s}function oe(t){t.duration=0,t.type="keyframes"}const Or=new Set(["opacity","clipPath","filter","transform"]),Rr=de(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ir(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Rr()&&n&&Or.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Wr=40;class Br extends Me{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...f},h=u?.KeyframeResolver||Ve;this.keyframeResolver=new h(a,(p,g,m)=>this.onKeyframesResolved(p,g,d,!m),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=_.now(),_r(e,r,o,a)||((B.instantAnimations||!l)&&u?.(Te(e,s,n)),e[0]=e[e.length-1],oe(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},h=!c&&Ir(d)?new Fr({...d,element:d.motionValue.owner.current}):new Ae(d);h.finished.then(()=>this.notifyFinished()).catch(J),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Sr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class Nr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Qe(this.animations,"duration")}get iterationDuration(){return Qe(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Qe(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class Kr extends Nr{then(e,n){return this.finished.finally(e).then(()=>{})}}const jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lr(t){const e=jr.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ls(t,e,n=1){const[s,i]=Lr(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Dn(o)?parseFloat(o):o}return ye(i)?ls(i,e,n+1):i}function cs(t,e){return t?.[e]??t?.default??t}const fs=new Set(["width","height","top","left","right","bottom",...et]),$r={test:t=>t==="auto",parse:t=>t},ds=t=>e=>e.test(t),hs=[Q,S,Z,j,Ri,Oi,$r],tn=t=>hs.find(ds(t));function zr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Cn(t):!0}const Xr=new Set(["brightness","contrast","saturate","opacity"]);function Ur(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(be)||[];if(!s)return t;const i=n.replace(s,"");let r=Xr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Yr=/\b([a-z-]*)\(.*?\)/gu,ae={...tt,getAnimatableNone:t=>{const e=t.match(Yr);return e?e.map(Ur).join(" "):t}},en={...Q,transform:Math.round},Hr={rotate:j,rotateX:j,rotateY:j,rotateZ:j,scale:Vt,scaleX:Vt,scaleY:Vt,scaleZ:Vt,skew:j,skewX:j,skewY:j,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:ht,originX:je,originY:je,originZ:S},De={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...Hr,zIndex:en,fillOpacity:ht,strokeOpacity:ht,numOctaves:en},Gr={...De,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:ae,WebkitFilter:ae},ms=t=>Gr[t];function ps(t,e){let n=ms(t);return n!==ae&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qr=new Set(["auto","none","0"]);function Zr(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!qr.has(r)&&mt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ps(n,i)}class Jr extends Ve{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),ye(c))){const u=ls(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!fs.has(s)||e.length!==2)return;const[i,r]=e,o=tn(i),a=tn(r);if(o!==a)if(Ge(o)&&Ge(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else U[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||zr(e[i]))&&s.push(i);s.length&&Zr(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Qr(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const gs=(t,e)=>e&&typeof t=="number"?e.transform(t):t,nn=30,to=t=>!isNaN(parseFloat(t));class eo{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=_.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=to(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new kn);const s=this.events[e].add(n);return e==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>nn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nn);return Pn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gt(t,e){return new eo(t,e)}const{schedule:no}=Ln(queueMicrotask,!1);function ys(t){return mi(t)&&"ownerSVGElement"in t}function so(t){return ys(t)&&t.tagName==="svg"}const F=t=>!!(t&&t.getVelocity),io=[...hs,C,tt],ro=t=>io.find(ds(t));function Ce(t){return typeof t=="object"&&!Array.isArray(t)}function bs(t,e,n,s){return typeof t=="string"&&Ce(e)?Qr(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function oo(t,e,n){return t*(e+1)}function sn(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function ao(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(xn(t,i),s--)}}function uo(t,e,n,s,i,r){ao(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:St(i,r,s[o]),easing:Kn(n,o)})}function lo(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function co(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const fo="easeInOut";function ho(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let h=0;h<t.length;h++){const p=t[h];if(typeof p=="string"){c.set(p,f);continue}else if(!Array.isArray(p)){c.set(p.name,sn(f,p.at,u,c));continue}let[g,m,v={}]=p;v.at!==void 0&&(f=sn(f,v.at,u,c));let w=0;const M=(T,b,A,x=0,y=0)=>{const V=mo(T),{delay:k=0,times:E=ns(V),type:It="keyframes",repeat:wt,repeatType:du,repeatDelay:hu=0,...Es}=b;let{ease:K=e.ease||"easeOut",duration:I}=b;const Ee=typeof k=="function"?k(x,y):k,_e=V.length,Oe=xe(It)?It:i?.[It||"keyframes"];if(_e<=2&&Oe){let st=100;if(_e===2&&yo(V)){const it=V[1]-V[0];st=Math.abs(it)}const Tt={...Es};I!==void 0&&(Tt.duration=R(I));const Mt=Qn(Tt,st,Oe);K=Mt.ease,I=Mt.duration}I??(I=r);const Re=f+Ee;E.length===1&&E[0]===0&&(E[1]=1);const Ie=E.length-V.length;if(Ie>0&&es(E,Ie),V.length===1&&V.unshift(null),wt){I=oo(I,wt);const st=[...V],Tt=[...E];K=Array.isArray(K)?[...K]:[K];const Mt=[...K];for(let it=0;it<wt;it++){V.push(...st);for(let rt=0;rt<st.length;rt++)E.push(Tt[rt]+(it+1)),K.push(rt===0?"linear":Kn(Mt,rt-1))}lo(E,wt)}const We=Re+I;uo(A,V,K,E,Re,We),w=Math.max(Ee+I,w),d=Math.max(We,d)};if(F(g)){const T=rn(g,a);M(m,v,on("default",T))}else{const T=bs(g,m,s,l),b=T.length;for(let A=0;A<b;A++){m=m,v=v;const x=T[A],y=rn(x,a);for(const V in m)M(m[V],po(v,V),on(V,y),A,b)}}u=f,f+=w}return a.forEach((h,p)=>{for(const g in h){const m=h[g];m.sort(co);const v=[],w=[],M=[];for(let b=0;b<m.length;b++){const{at:A,value:x,easing:y}=m[b];v.push(x),w.push(me(0,d,A)),M.push(y||"easeOut")}w[0]!==0&&(w.unshift(0),v.unshift(v[0]),M.unshift(fo)),w[w.length-1]!==1&&(w.push(1),v.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const T=o.get(p);T.keyframes[g]=v,T.transition[g]={...e,duration:d,ease:M,times:w,...n}}}),o}function rn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function on(t,e){return e[t]||(e[t]=[]),e[t]}function mo(t){return Array.isArray(t)?t:[t]}function po(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const go=t=>typeof t=="number",yo=t=>t.every(go),yt=new WeakMap,bo=t=>Array.isArray(t);function an(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function vs(t,e,n,s){if(typeof e=="function"){const[i,r]=an(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=an(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function vo(t,e,n){const s=t.getProps();return vs(s,e,s.custom,t)}function So(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function wo(t){return bo(t)?t[t.length-1]||0:t}function To(t,e){const n=vo(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=wo(r[o]);So(t,o,a)}}function Mo(t){return!!(F(t)&&t.add)}function Ao(t,e){const n=t.getValue("willChange");if(Mo(n))return n.add(e);if(!n&&B.WillChange){const s=new B.WillChange("auto");t.addValue("willChange",s),s.add(e)}}const ke=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vo="framerAppearId",xo="data-"+ke(Vo);function Do(t){return t.props[xo]}const Co=t=>t!==null;function ko(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Co),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}const Po={type:"spring",stiffness:500,damping:25,restSpeed:10},Fo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Eo={type:"keyframes",duration:.8},_o={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oo=(t,{keyframes:e})=>e.length>2?Eo:nt.has(t)?t.startsWith("scale")?Fo(e[1]):Po:_o;function Ro({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ss=(t,e,n,s={},i,r)=>o=>{const a=cs(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-R(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ro(a)||Object.assign(u,Oo(t,u)),u.duration&&(u.duration=R(u.duration)),u.repeatDelay&&(u.repeatDelay=R(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oe(u),u.delay===0&&(f=!0)),(B.instantAnimations||B.skipAnimations)&&(f=!0,oe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const d=ko(u.keyframes,a);if(d!==void 0){N.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ae(u):new Br(u)};function Io({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Wo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const f=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||c&&Io(c,u))continue;const h={delay:n,...cs(r||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const v=Do(t);if(v){const w=window.MotionHandoffAnimation(v,u,N);w!==null&&(h.startTime=w,g=!0)}}Ao(t,u),f.start(Ss(u,f,d,t.shouldReduceMotion&&fs.has(u)?{type:!1}:h,t,g));const m=f.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{N.update(()=>{o&&To(t,o)})}),l}function Bo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function No(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ko(t,e){return Bo(No(t.getBoundingClientRect(),e))}const un={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ue={};for(const t in un)ue[t]={isEnabled:e=>un[t].some(n=>!!e[n])};const ln=()=>({min:0,max:0}),Pe=()=>({x:ln(),y:ln()}),jo=typeof window<"u",le={current:null},ws={current:!1};function Lo(){if(ws.current=!0,!!jo)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>le.current=t.matches;t.addEventListener("change",e),e()}else le.current=!1}function $o(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function zo(t){return typeof t=="string"||Array.isArray(t)}const Xo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uo=["initial",...Xo];function Ts(t){return $o(t.animate)||Uo.some(e=>zo(t[e]))}function Yo(t){return!!(Ts(t)||t.variants)}function Ho(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,gt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,gt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const cn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ms{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ve,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=_.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,N.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ts(n),this.isVariantNode=Yo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&F(h)&&h.set(l[d])}}mount(e){this.current=e,yt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),ws.current||Lo(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:le.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ht(this.notifyUpdate),Ht(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=nt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ue){const n=ue[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<cn.length;s++){const i=cn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ho(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=gt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Dn(s)||Cn(s))?s=parseFloat(s):!ro(s)&&tt.test(n)&&(s=ps(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=vs(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new kn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){no.render(this.render)}}class As extends Ms{constructor(){super(...arguments),this.KeyframeResolver=Jr}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Go={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qo=et.length;function Zo(t,e,n){let s="",i=!0;for(let r=0;r<qo;r++){const o=et[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=gs(a,De[o]);if(!l){i=!1;const u=Go[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Vs(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(nt.has(l)){o=!0;continue}else if(zn(l)){i[l]=c;continue}else{const u=gs(c,De[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=Zo(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function xs(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}const Jo={};function Qo(t,{layout:e,layoutId:n}){return nt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Jo[t]||t==="opacity")}function Ds(t,e,n){const{style:s}=t,i={};for(const r in s)(F(s[r])||e.style&&F(e.style[r])||Qo(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(i[r]=s[r]);return i}function ta(t){return window.getComputedStyle(t)}class ea extends As{constructor(){super(...arguments),this.type="html",this.renderInstance=xs}readValueFromInstance(e,n){if(nt.has(n))return this.projection?.isProjecting?ee(n):pr(e,n);{const s=ta(e),i=(zn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ko(e,n)}build(e,n,s){Vs(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ds(e,n,s)}}function na(t,e){return t in e}class sa extends Ms{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(na(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return Pe()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}const ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},ra={offset:"strokeDashoffset",array:"strokeDasharray"};function oa(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?ia:ra;t[r.offset]=S.transform(-s);const o=S.transform(e),a=S.transform(n);t[r.array]=`${o} ${a}`}function aa(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Vs(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d}=t;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&oa(f,i,r,o,!1)}const Cs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ua=t=>typeof t=="string"&&t.toLowerCase()==="svg";function la(t,e,n,s){xs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Cs.has(i)?i:ke(i),e.attrs[i])}function ca(t,e,n){const s=Ds(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=et.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class fa extends As{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pe}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(nt.has(n)){const s=ms(n);return s&&s.default||0}return n=Cs.has(n)?n:ke(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ca(e,n,s)}build(e,n,s){aa(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){la(e,n,s,i)}mount(e){this.isSVGTag=ua(e.tagName),super.mount(e)}}function da(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ys(t)&&!so(t)?new fa(e):new ea(e);n.mount(t),yt.set(t,n)}function ha(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new sa(e);n.mount(t),yt.set(t,n)}function ma(t,e,n){const s=F(t)?t:gt(t);return s.start(Ss("",s,e,n)),s.animation}function pa(t,e){return F(t)||typeof t=="number"||typeof t=="string"&&!Ce(e)}function ks(t,e,n,s){const i=[];if(pa(t,e))i.push(ma(t,Ce(e)&&e.default||e,n&&(n.default||n)));else{const r=bs(t,e,s),o=r.length;for(let a=0;a<o;a++){const l=r[a],c=l instanceof Element?da:ha;yt.has(l)||c(l);const u=yt.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...Wo(u,{...e,transition:f},{}))}}return i}function ga(t,e,n){const s=[];return ho(t,e,n,{spring:pt}).forEach(({keyframes:r,transition:o},a)=>{s.push(...ks(a,r,o))}),s}function ya(t){return Array.isArray(t)&&t.some(Array.isArray)}function ba(t){function e(n,s,i){let r=[],o;if(ya(n))r=ga(n,s,t);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),r=ks(n,s,c,t)}const a=new Kr(r);return o&&a.finished.then(o),a}return e}const va=ba(),Sa="--sidebar-width",Ps=()=>typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue(Sa).trim()||"192px";An(Ps());const wa=()=>Ps()==="40px",Ta=An(wa()),G="--sidebar-width";function Tu(){const t=ce.c(19),[e,n]=di(Ta),s=L.useRef(null);let i;t[0]!==e||t[1]!==n?(i=g=>{if(typeof document<"u"&&g!==e){const m=g?"40px":"192px";s.current&&(s.current.cancel(),s.current=null);const v=getComputedStyle(document.documentElement).getPropertyValue(G).trim()||"192px",w=parseFloat(v.replace(/[^\d.]/g,"")),M=parseFloat(m.replace(/[^\d.]/g,""));if(Math.abs(w-M)>1){const T=m.replace(/[\d.]/g,"");s.current=va(w,M,{duration:.3,ease:"circInOut",onUpdate:b=>{document.documentElement.style.setProperty(G,`${b}${T}`)},onComplete:()=>{s.current=null,document.documentElement.style.setProperty(G,m)}}),n(g)}else n(g),document.documentElement.style.setProperty(G,m)}},t[0]=e,t[1]=n,t[2]=i):i=t[2];const r=i;let o;t[3]!==e||t[4]!==r?(o=()=>{r(!e)},t[3]=e,t[4]=r,t[5]=o):o=t[5];const a=o;let l;t[6]!==r?(l=()=>{r(!0)},t[6]=r,t[7]=l):l=t[7];const c=l;let u;t[8]!==r?(u=()=>{r(!1)},t[8]=r,t[9]=u):u=t[9];const f=u;let d;t[10]!==e?(d=()=>{if(typeof document<"u"){const g=getComputedStyle(document.documentElement).getPropertyValue(G).trim(),m=e?"40px":"192px";(!g||g!==m)&&document.documentElement.style.setProperty(G,m)}return()=>{s.current&&(s.current.cancel(),s.current=null)}},t[10]=e,t[11]=d):d=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[12]=h):h=t[12],L.useEffect(d,h);let p;return t[13]!==c||t[14]!==f||t[15]!==e||t[16]!==r||t[17]!==a?(p={isCollapsed:e,setSidebarCollapsed:r,toggleSidebar:a,collapseSidebar:c,expandSidebar:f},t[13]=c,t[14]=f,t[15]=e,t[16]=r,t[17]=a,t[18]=p):p=t[18],p}var Mu="_1aj0kmd0",Au="_1aj0kmd2 _1aj0kmd1 _1lg22bkdo _1lg22bkuf _1lg22bk107 _1lg22bk10a _1lg22bkpr _1lg22bk10k";const xt=43200,fn=1440,dn=Symbol.for("constructDateFrom");function Fs(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&dn in t?t[dn](e):t instanceof Date?new t.constructor(e):new Date(e)}function $(t,e){return Fs(t,t)}let Ma={};function Aa(){return Ma}function hn(t){const e=$(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Fe(t,...e){const n=Fs.bind(null,t||e.find(s=>typeof s=="object"));return e.map(n)}function Ct(t,e){const n=+$(t)-+$(e);return n<0?-1:n>0?1:n}function Va(t,e,n){const[s,i]=Fe(n?.in,t,e),r=s.getFullYear()-i.getFullYear(),o=s.getMonth()-i.getMonth();return r*12+o}function xa(t){return e=>{const s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function Da(t,e){return+$(t)-+$(e)}function Ca(t,e){const n=$(t);return n.setHours(23,59,59,999),n}function ka(t,e){const n=$(t),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function Pa(t,e){const n=$(t);return+Ca(n)==+ka(n)}function Fa(t,e,n){const[s,i,r]=Fe(n?.in,t,t,e),o=Ct(i,r),a=Math.abs(Va(i,r));if(a<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*a);let l=Ct(i,r)===-o;Pa(s)&&a===1&&Ct(s,r)===1&&(l=!1);const c=o*(a-+l);return c===0?0:c}function Ea(t,e,n){const s=Da(t,e)/1e3;return xa(n?.roundingMethod)(s)}const _a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Oa=(t,e,n)=>{let s;const i=_a[t];return typeof i=="string"?s=i:e===1?s=i.one:s=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Lt(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ra={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ia={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ba={date:Lt({formats:Ra,defaultWidth:"full"}),time:Lt({formats:Ia,defaultWidth:"full"}),dateTime:Lt({formats:Wa,defaultWidth:"full"})},Na={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ka=(t,e,n,s)=>Na[t];function at(t){return(e,n)=>{const s=n?.context?String(n.context):"standalone";let i;if(s==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}const ja={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},La={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},za={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Xa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ua={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ya=(t,e)=>{const n=Number(t),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ha={ordinalNumber:Ya,era:at({values:ja,defaultWidth:"wide"}),quarter:at({values:La,defaultWidth:"wide",argumentCallback:t=>t-1}),month:at({values:$a,defaultWidth:"wide"}),day:at({values:za,defaultWidth:"wide"}),dayPeriod:at({values:Xa,defaultWidth:"wide",formattingValues:Ua,defaultFormattingWidth:"wide"})};function ut(t){return(e,n={})=>{const s=n.width,i=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;const o=r[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?qa(a,f=>f.test(o)):Ga(a,f=>f.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function Ga(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function qa(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Za(t){return(e,n={})=>{const s=e.match(t.matchPattern);if(!s)return null;const i=s[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const Ja=/^(\d+)(th|st|nd|rd)?/i,Qa=/\d+/i,tu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eu={any:[/^b/i,/^(a|c)/i]},nu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},su={any:[/1/i,/2/i,/3/i,/4/i]},iu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ru={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ou={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},au={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cu={ordinalNumber:Za({matchPattern:Ja,parsePattern:Qa,valueCallback:t=>parseInt(t,10)}),era:ut({matchPatterns:tu,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),quarter:ut({matchPatterns:nu,defaultMatchWidth:"wide",parsePatterns:su,defaultParseWidth:"any",valueCallback:t=>t+1}),month:ut({matchPatterns:iu,defaultMatchWidth:"wide",parsePatterns:ru,defaultParseWidth:"any"}),day:ut({matchPatterns:ou,defaultMatchWidth:"wide",parsePatterns:au,defaultParseWidth:"any"}),dayPeriod:ut({matchPatterns:uu,defaultMatchWidth:"any",parsePatterns:lu,defaultParseWidth:"any"})},fu={code:"en-US",formatDistance:Oa,formatLong:Ba,formatRelative:Ka,localize:Ha,match:cu,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vu(t,e,n){const s=Aa(),i=n?.locale??s.locale??fu,r=2520,o=Ct(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[l,c]=Fe(n?.in,...o>0?[e,t]:[t,e]),u=Ea(c,l),f=(hn(c)-hn(l))/1e3,d=Math.round((u-f)/60);let h;if(d<2)return n?.includeSeconds?u<5?i.formatDistance("lessThanXSeconds",5,a):u<10?i.formatDistance("lessThanXSeconds",10,a):u<20?i.formatDistance("lessThanXSeconds",20,a):u<40?i.formatDistance("halfAMinute",0,a):u<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):d===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<fn){const p=Math.round(d/60);return i.formatDistance("aboutXHours",p,a)}else{if(d<r)return i.formatDistance("xDays",1,a);if(d<xt){const p=Math.round(d/fn);return i.formatDistance("xDays",p,a)}else if(d<xt*2)return h=Math.round(d/xt),i.formatDistance("aboutXMonths",h,a)}if(h=Fa(c,l),h<12){const p=Math.round(d/xt);return i.formatDistance("xMonths",p,a)}else{const p=h%12,g=Math.trunc(h/12);return p<3?i.formatDistance("aboutXYears",g,a):p<9?i.formatDistance("overXYears",g,a):i.formatDistance("almostXYears",g+1,a)}}export{pu as B,yu as C,gu as H,bu as a,wu as b,Su as c,va as d,Vu as f,Mu as g,vu as h,Tu as u,Au as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as V,a as F,u as G,b as M,r as W,d as q,j as s,L as $,I as B,S as J}from"./index-Bhx-JeV9.js";import{u as K,w as O,f as P,b as Q,C as X,c as Y,B as Z,h as L,H as ee,a as se,g as ae}from"./formatDistance-BDFPqAEk.js";import{B as te}from"./button-Buvtsnw_.js";import{T as le,a as ie,b as z,c as A,d as re,e as E}from"./table-DBimQ0ta.js";import{u as ne}from"./useConfigList-Spw4rWA5.js";import{C as ce}from"./chevron-right-Dx22YibX.js";import{C as oe}from"./check-DYJ_WRTT.js";import{C as de}from"./copy-Dnga8M98.js";/* empty css */import"./useButton--JB4PDp_.js";var me="_1xlxh5s0",xe="_1xlxh5s1",he="_1xlxh5s2",fe="_1xlxh5s3",pe="_1xlxh5s5 _1xlxh5s4 _1lg22bks0 _1lg22bksf _1lg22bktu",be=V({defaultClassName:"_1xlxh5s6",variantClassNames:{variant:{primary:"_1xlxh5s7"}},defaultVariants:{},compoundVariants:[]}),ue="_1xlxh5s9 _1xlxh5s8 _1lg22bkvx",H="_1xlxh5sb _1xlxh5sa _1lg22bkw0",je="_1xlxh5sc",_e="_1xlxh5se _1xlxh5sd _1lg22bkux _1lg22bkj3 _1lg22bkw0",ve="_1xlxh5sf",ge="_1xlxh5sg";function Ae(){const e=F.c(44),{toggleSidebar:a}=K(),r=G(),b=M(),{data:T}=ne(),[u,R]=W.useState(!1),U=typeof window<"u"?`${window.location.origin}/api/genai/v1`:"/api/genai/v1";let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=async()=>{await navigator.clipboard.writeText(U),R(!0),setTimeout(()=>R(!1),2e3)},e[0]=j):j=e[0];const I=j;let t,l,n,c,i;if(e[1]!==T||e[2]!==u||e[3]!==r||e[4]!==b||e[5]!==a){const k=T?.slice().sort(ye).slice(0,3);let v;e[11]!==r?(v=r.filter(Ne).map(Ce),e[11]=r,e[12]=v):v=e[12];const D=v;let m;e[13]!==a?(m=()=>{a()},e[13]=a,e[14]=m):m=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(B,{icon:X}),e[15]=g):g=e[15];let x;e[16]!==m?(x=s.jsx(te,{onClick:m,size:"icon",variant:"ghost",scheme:"gray",children:g}),e[16]=m,e[17]=x):x=e[17];let C;e[18]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(B,{icon:ce,className:Y}),e[18]=C):C=e[18];let h;e[19]!==D?(h=s.jsx(Z,{items:D}),e[19]=D,e[20]=h):h=e[20];let f;e[21]!==h||e[22]!==x?(f=s.jsxs("div",{className:L,children:[x,C,h]}),e[21]=h,e[22]=x,e[23]=f):f=e[23];let N,y;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("span",{className:_e,children:"Base URL"}),y=s.jsx("span",{className:ve,children:U}),e[24]=N,e[25]=y):(N=e[24],y=e[25]);let p;e[26]!==u?(p=s.jsx("div",{className:L,children:s.jsxs("div",{className:je,children:[N,y,s.jsx("button",{type:"button",className:ge,onClick:I,"aria-label":"Copy base URL",children:u?s.jsx(oe,{size:14}):s.jsx(de,{size:14})})]})}),e[26]=u,e[27]=p):p=e[27],e[28]!==f||e[29]!==p?(i=s.jsxs(ee,{className:se,children:[f,p]}),e[28]=f,e[29]=p,e[30]=i):i=e[30],c=ae,e[31]===Symbol.for("react.memo_cache_sentinel")?(t=q(O,me),e[31]=t):t=e[31];let S;e[32]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("h2",{className:H,children:"Get Started"}),e[32]=S):S=e[32],e[33]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:xe,children:[S,s.jsx("div",{className:pe,children:s.jsxs($,{to:"/configs/$id",params:{id:"new"},className:be({variant:"primary"}),children:[s.jsx(B,{icon:J,size:"lg"}),s.jsx("span",{className:ue,children:"Create New Config"})]})})]}),e[33]=l):l=e[33],n=k&&k.length>0&&s.jsxs("div",{className:he,children:[s.jsx("h2",{className:H,children:"Recent"}),s.jsx("div",{className:fe,children:s.jsxs(le,{children:[s.jsx(ie,{children:s.jsxs(z,{children:[s.jsx(A,{children:"Name"}),s.jsx(A,{children:"Updated"})]})}),s.jsx(re,{children:k.map(w=>s.jsxs(z,{interactive:!0,onClick:()=>b({to:"/configs/$id",params:{id:w.id}}),children:[s.jsx(E,{children:w.name}),s.jsx(E,{children:P(new Date(w.updatedAt),new Date,{addSuffix:!0})})]},w.id))})]})})]}),e[1]=T,e[2]=u,e[3]=r,e[4]=b,e[5]=a,e[6]=t,e[7]=l,e[8]=n,e[9]=c,e[10]=i}else t=e[6],l=e[7],n=e[8],c=e[9],i=e[10];let o;e[34]!==t||e[35]!==l||e[36]!==n?(o=s.jsxs("div",{className:t,children:[l,n]}),e[34]=t,e[35]=l,e[36]=n,e[37]=o):o=e[37];let d;e[38]!==c||e[39]!==o?(d=s.jsx("div",{className:c,children:o}),e[38]=c,e[39]=o,e[40]=d):d=e[40];let _;return e[41]!==i||e[42]!==d?(_=s.jsxs(s.Fragment,{children:[i,d]}),e[41]=i,e[42]=d,e[43]=_):_=e[43],_}function Ce(e){const a=e.loaderData?.title,r=e.staticData.customData?.title,b=a??r;return{key:e.id,label:s.jsx($,{to:e.pathname,className:Q,children:b}),prefix:e.staticData.customData?.icon}}function Ne(e){return!!e.staticData.customData?.title||!!e.loaderData?.title}function ye(e,a){return new Date(a.updatedAt).getTime()-new Date(e.updatedAt).getTime()}export{Ae as component};
|